@burnt-labs/xion-types 0.0.1-test.1762962136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jest.config.js +18 -0
- package/package.json +56 -0
- package/scripts/aminos.ts +29 -0
- package/scripts/codegen.ts +94 -0
- package/scripts/download-protos.ts +248 -0
- package/telescope.config.json +84 -0
- package/tsconfig.esm.json +9 -0
- package/tsconfig.json +18 -0
- package/types/abstractaccount/bundle.ts +35 -0
- package/types/abstractaccount/client.ts +48 -0
- package/types/abstractaccount/lcd.ts +130 -0
- package/types/abstractaccount/rpc.query.ts +93 -0
- package/types/abstractaccount/rpc.tx.ts +74 -0
- package/types/abstractaccount/v1/account.ts +250 -0
- package/types/abstractaccount/v1/events.ts +135 -0
- package/types/abstractaccount/v1/genesis.ts +106 -0
- package/types/abstractaccount/v1/params.ts +192 -0
- package/types/abstractaccount/v1/query.lcd.ts +19 -0
- package/types/abstractaccount/v1/query.rpc.Query.ts +31 -0
- package/types/abstractaccount/v1/query.ts +160 -0
- package/types/abstractaccount/v1/tx.amino.ts +14 -0
- package/types/abstractaccount/v1/tx.registry.ts +53 -0
- package/types/abstractaccount/v1/tx.rpc.msg.ts +29 -0
- package/types/abstractaccount/v1/tx.ts +454 -0
- package/types/amino/amino.ts +1 -0
- package/types/amino/bundle.ts +5 -0
- package/types/binary.ts +535 -0
- package/types/cosmos/app/runtime/v1alpha1/module.ts +492 -0
- package/types/cosmos/app/v1alpha1/config.ts +437 -0
- package/types/cosmos/app/v1alpha1/module.ts +466 -0
- package/types/cosmos/app/v1alpha1/query.rpc.Query.ts +31 -0
- package/types/cosmos/app/v1alpha1/query.ts +176 -0
- package/types/cosmos/auth/module/v1/module.ts +288 -0
- package/types/cosmos/auth/v1beta1/auth.ts +562 -0
- package/types/cosmos/auth/v1beta1/genesis.ts +123 -0
- package/types/cosmos/auth/v1beta1/query.lcd.ts +91 -0
- package/types/cosmos/auth/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/auth/v1beta1/query.ts +2005 -0
- package/types/cosmos/auth/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/auth/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/auth/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/auth/v1beta1/tx.ts +208 -0
- package/types/cosmos/authz/module/v1/module.ts +77 -0
- package/types/cosmos/authz/v1beta1/authz.ts +599 -0
- package/types/cosmos/authz/v1beta1/event.ts +274 -0
- package/types/cosmos/authz/v1beta1/genesis.ts +99 -0
- package/types/cosmos/authz/v1beta1/query.lcd.ts +59 -0
- package/types/cosmos/authz/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/authz/v1beta1/query.ts +734 -0
- package/types/cosmos/authz/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/authz/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/authz/v1beta1/tx.rpc.msg.ts +49 -0
- package/types/cosmos/authz/v1beta1/tx.ts +666 -0
- package/types/cosmos/autocli/v1/options.ts +1317 -0
- package/types/cosmos/autocli/v1/query.rpc.Query.ts +32 -0
- package/types/cosmos/autocli/v1/query.ts +298 -0
- package/types/cosmos/bank/module/v1/module.ts +156 -0
- package/types/cosmos/bank/v1beta1/authz.ts +134 -0
- package/types/cosmos/bank/v1beta1/bank.ts +984 -0
- package/types/cosmos/bank/v1beta1/genesis.ts +316 -0
- package/types/cosmos/bank/v1beta1/query.lcd.ts +207 -0
- package/types/cosmos/bank/v1beta1/query.rpc.Query.ts +212 -0
- package/types/cosmos/bank/v1beta1/query.ts +3051 -0
- package/types/cosmos/bank/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/bank/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/bank/v1beta1/tx.rpc.msg.ts +53 -0
- package/types/cosmos/bank/v1beta1/tx.ts +845 -0
- package/types/cosmos/base/abci/v1beta1/abci.ts +1776 -0
- package/types/cosmos/base/node/v1beta1/query.lcd.ts +25 -0
- package/types/cosmos/base/node/v1beta1/query.rpc.Service.ts +42 -0
- package/types/cosmos/base/node/v1beta1/query.ts +467 -0
- package/types/cosmos/base/query/v1beta1/pagination.ts +372 -0
- package/types/cosmos/base/reflection/v1beta1/reflection.ts +385 -0
- package/types/cosmos/base/reflection/v2alpha1/reflection.ts +2790 -0
- package/types/cosmos/base/tendermint/v1beta1/query.lcd.ts +87 -0
- package/types/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +103 -0
- package/types/cosmos/base/tendermint/v1beta1/query.ts +2358 -0
- package/types/cosmos/base/tendermint/v1beta1/types.ts +492 -0
- package/types/cosmos/base/v1beta1/coin.ts +449 -0
- package/types/cosmos/benchmark/module/v1/module.ts +384 -0
- package/types/cosmos/benchmark/v1/benchmark.ts +186 -0
- package/types/cosmos/benchmark/v1/tx.amino.ts +9 -0
- package/types/cosmos/benchmark/v1/tx.registry.ts +35 -0
- package/types/cosmos/benchmark/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/benchmark/v1/tx.ts +224 -0
- package/types/cosmos/bundle.ts +807 -0
- package/types/cosmos/circuit/module/v1/module.ts +100 -0
- package/types/cosmos/circuit/v1/query.lcd.ts +40 -0
- package/types/cosmos/circuit/v1/query.rpc.Query.ts +55 -0
- package/types/cosmos/circuit/v1/query.ts +576 -0
- package/types/cosmos/circuit/v1/tx.amino.ts +19 -0
- package/types/cosmos/circuit/v1/tx.registry.ts +71 -0
- package/types/cosmos/circuit/v1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/circuit/v1/tx.ts +685 -0
- package/types/cosmos/circuit/v1/types.ts +419 -0
- package/types/cosmos/client.ts +100 -0
- package/types/cosmos/consensus/module/v1/module.ts +100 -0
- package/types/cosmos/consensus/v1/query.lcd.ts +19 -0
- package/types/cosmos/consensus/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/consensus/v1/query.ts +182 -0
- package/types/cosmos/consensus/v1/tx.amino.ts +9 -0
- package/types/cosmos/consensus/v1/tx.registry.ts +35 -0
- package/types/cosmos/consensus/v1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/consensus/v1/tx.ts +257 -0
- package/types/cosmos/counter/module/v1/module.ts +100 -0
- package/types/cosmos/counter/v1/query.rpc.Query.ts +31 -0
- package/types/cosmos/counter/v1/query.ts +171 -0
- package/types/cosmos/counter/v1/tx.amino.ts +9 -0
- package/types/cosmos/counter/v1/tx.registry.ts +35 -0
- package/types/cosmos/counter/v1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/counter/v1/tx.ts +217 -0
- package/types/cosmos/crisis/module/v1/module.ts +119 -0
- package/types/cosmos/crisis/v1beta1/genesis.ts +105 -0
- package/types/cosmos/crisis/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/crisis/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/crisis/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/crisis/v1beta1/tx.ts +413 -0
- package/types/cosmos/crypto/bls12_381/keys.ts +207 -0
- package/types/cosmos/crypto/ed25519/keys.ts +214 -0
- package/types/cosmos/crypto/hd/v1/hd.ts +180 -0
- package/types/cosmos/crypto/keyring/v1/record.ts +542 -0
- package/types/cosmos/crypto/multisig/keys.ts +124 -0
- package/types/cosmos/crypto/multisig/v1beta1/multisig.ts +231 -0
- package/types/cosmos/crypto/secp256k1/keys.ts +207 -0
- package/types/cosmos/crypto/secp256r1/keys.ts +203 -0
- package/types/cosmos/distribution/module/v1/module.ts +115 -0
- package/types/cosmos/distribution/v1beta1/distribution.ts +1551 -0
- package/types/cosmos/distribution/v1beta1/genesis.ts +1208 -0
- package/types/cosmos/distribution/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/distribution/v1beta1/query.rpc.Query.ts +137 -0
- package/types/cosmos/distribution/v1beta1/query.ts +2195 -0
- package/types/cosmos/distribution/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/distribution/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/distribution/v1beta1/tx.rpc.msg.ts +96 -0
- package/types/cosmos/distribution/v1beta1/tx.ts +1460 -0
- package/types/cosmos/epochs/module/v1/module.ts +77 -0
- package/types/cosmos/epochs/v1beta1/events.ts +205 -0
- package/types/cosmos/epochs/v1beta1/genesis.ts +384 -0
- package/types/cosmos/epochs/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/epochs/v1beta1/query.rpc.Query.ts +42 -0
- package/types/cosmos/epochs/v1beta1/query.ts +390 -0
- package/types/cosmos/evidence/module/v1/module.ts +77 -0
- package/types/cosmos/evidence/v1beta1/evidence.ts +166 -0
- package/types/cosmos/evidence/v1beta1/genesis.ts +103 -0
- package/types/cosmos/evidence/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/evidence/v1beta1/query.rpc.Query.ts +44 -0
- package/types/cosmos/evidence/v1beta1/query.ts +458 -0
- package/types/cosmos/evidence/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/evidence/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/evidence/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/evidence/v1beta1/tx.ts +243 -0
- package/types/cosmos/feegrant/module/v1/module.ts +77 -0
- package/types/cosmos/feegrant/v1beta1/feegrant.ts +701 -0
- package/types/cosmos/feegrant/v1beta1/genesis.ts +99 -0
- package/types/cosmos/feegrant/v1beta1/query.lcd.ts +44 -0
- package/types/cosmos/feegrant/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/feegrant/v1beta1/query.ts +683 -0
- package/types/cosmos/feegrant/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/feegrant/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +43 -0
- package/types/cosmos/feegrant/v1beta1/tx.ts +683 -0
- package/types/cosmos/genutil/module/v1/module.ts +77 -0
- package/types/cosmos/genutil/v1beta1/genesis.ts +103 -0
- package/types/cosmos/gov/module/v1/module.ts +123 -0
- package/types/cosmos/gov/v1/genesis.ts +288 -0
- package/types/cosmos/gov/v1/gov.ts +1889 -0
- package/types/cosmos/gov/v1/query.lcd.ts +95 -0
- package/types/cosmos/gov/v1/query.rpc.Query.ts +119 -0
- package/types/cosmos/gov/v1/query.ts +2026 -0
- package/types/cosmos/gov/v1/tx.amino.ts +39 -0
- package/types/cosmos/gov/v1/tx.registry.ts +143 -0
- package/types/cosmos/gov/v1/tx.rpc.msg.ts +75 -0
- package/types/cosmos/gov/v1/tx.ts +1911 -0
- package/types/cosmos/gov/v1beta1/genesis.ts +221 -0
- package/types/cosmos/gov/v1beta1/gov.ts +1725 -0
- package/types/cosmos/gov/v1beta1/query.lcd.ts +89 -0
- package/types/cosmos/gov/v1beta1/query.rpc.Query.ts +108 -0
- package/types/cosmos/gov/v1beta1/query.ts +1813 -0
- package/types/cosmos/gov/v1beta1/tx.amino.ts +24 -0
- package/types/cosmos/gov/v1beta1/tx.registry.ts +89 -0
- package/types/cosmos/gov/v1beta1/tx.rpc.msg.ts +45 -0
- package/types/cosmos/gov/v1beta1/tx.ts +1128 -0
- package/types/cosmos/group/module/v1/module.ts +128 -0
- package/types/cosmos/group/v1/events.ts +1195 -0
- package/types/cosmos/group/v1/genesis.ts +256 -0
- package/types/cosmos/group/v1/query.lcd.ts +158 -0
- package/types/cosmos/group/v1/query.rpc.Query.ts +182 -0
- package/types/cosmos/group/v1/query.ts +3108 -0
- package/types/cosmos/group/v1/tx.amino.ts +74 -0
- package/types/cosmos/group/v1/tx.registry.ts +269 -0
- package/types/cosmos/group/v1/tx.rpc.msg.ts +125 -0
- package/types/cosmos/group/v1/tx.ts +3353 -0
- package/types/cosmos/group/v1/types.ts +2248 -0
- package/types/cosmos/ics23/v1/proofs.ts +2167 -0
- package/types/cosmos/lcd.ts +125 -0
- package/types/cosmos/mint/module/v1/module.ts +115 -0
- package/types/cosmos/mint/v1beta1/genesis.ts +120 -0
- package/types/cosmos/mint/v1beta1/mint.ts +313 -0
- package/types/cosmos/mint/v1beta1/query.lcd.ts +31 -0
- package/types/cosmos/mint/v1beta1/query.rpc.Query.ts +53 -0
- package/types/cosmos/mint/v1beta1/query.ts +544 -0
- package/types/cosmos/mint/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/mint/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/mint/v1beta1/tx.rpc.msg.ts +24 -0
- package/types/cosmos/mint/v1beta1/tx.ts +208 -0
- package/types/cosmos/msg/textual/v1/textual.ts +1 -0
- package/types/cosmos/msg/v1/msg.ts +1 -0
- package/types/cosmos/nft/module/v1/module.ts +77 -0
- package/types/cosmos/nft/v1beta1/event.ts +429 -0
- package/types/cosmos/nft/v1beta1/genesis.ts +243 -0
- package/types/cosmos/nft/v1beta1/nft.ts +389 -0
- package/types/cosmos/nft/v1beta1/query.lcd.ts +77 -0
- package/types/cosmos/nft/v1beta1/query.rpc.Query.ts +102 -0
- package/types/cosmos/nft/v1beta1/query.ts +1513 -0
- package/types/cosmos/nft/v1beta1/tx.amino.ts +9 -0
- package/types/cosmos/nft/v1beta1/tx.registry.ts +35 -0
- package/types/cosmos/nft/v1beta1/tx.rpc.msg.ts +21 -0
- package/types/cosmos/nft/v1beta1/tx.ts +232 -0
- package/types/cosmos/params/module/v1/module.ts +77 -0
- package/types/cosmos/params/v1beta1/params.ts +262 -0
- package/types/cosmos/params/v1beta1/query.lcd.ts +35 -0
- package/types/cosmos/params/v1beta1/query.rpc.Query.ts +45 -0
- package/types/cosmos/params/v1beta1/query.ts +521 -0
- package/types/cosmos/protocolpool/module/v1/module.ts +100 -0
- package/types/cosmos/protocolpool/v1/genesis.ts +126 -0
- package/types/cosmos/protocolpool/v1/query.lcd.ts +37 -0
- package/types/cosmos/protocolpool/v1/query.rpc.Query.ts +64 -0
- package/types/cosmos/protocolpool/v1/query.ts +761 -0
- package/types/cosmos/protocolpool/v1/tx.amino.ts +29 -0
- package/types/cosmos/protocolpool/v1/tx.registry.ts +107 -0
- package/types/cosmos/protocolpool/v1/tx.rpc.msg.ts +69 -0
- package/types/cosmos/protocolpool/v1/tx.ts +1124 -0
- package/types/cosmos/protocolpool/v1/types.ts +268 -0
- package/types/cosmos/query/v1/query.ts +1 -0
- package/types/cosmos/reflection/v1/reflection.ts +178 -0
- package/types/cosmos/rpc.query.ts +90 -0
- package/types/cosmos/rpc.tx.ts +71 -0
- package/types/cosmos/slashing/module/v1/module.ts +100 -0
- package/types/cosmos/slashing/v1beta1/genesis.ts +511 -0
- package/types/cosmos/slashing/v1beta1/query.lcd.ts +40 -0
- package/types/cosmos/slashing/v1beta1/query.rpc.Query.ts +55 -0
- package/types/cosmos/slashing/v1beta1/query.ts +606 -0
- package/types/cosmos/slashing/v1beta1/slashing.ts +371 -0
- package/types/cosmos/slashing/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/slashing/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/slashing/v1beta1/tx.rpc.msg.ts +36 -0
- package/types/cosmos/slashing/v1beta1/tx.ts +377 -0
- package/types/cosmos/staking/module/v1/module.ts +165 -0
- package/types/cosmos/staking/v1beta1/authz.ts +321 -0
- package/types/cosmos/staking/v1beta1/genesis.ts +370 -0
- package/types/cosmos/staking/v1beta1/query.lcd.ts +174 -0
- package/types/cosmos/staking/v1beta1/query.rpc.Query.ts +217 -0
- package/types/cosmos/staking/v1beta1/query.ts +3187 -0
- package/types/cosmos/staking/v1beta1/staking.ts +3193 -0
- package/types/cosmos/staking/v1beta1/tx.amino.ts +39 -0
- package/types/cosmos/staking/v1beta1/tx.registry.ts +143 -0
- package/types/cosmos/staking/v1beta1/tx.rpc.msg.ts +84 -0
- package/types/cosmos/staking/v1beta1/tx.ts +1642 -0
- package/types/cosmos/store/internal/kv/v1beta1/kv.ts +208 -0
- package/types/cosmos/store/snapshots/v1/snapshot.ts +840 -0
- package/types/cosmos/store/streaming/abci/grpc.ts +393 -0
- package/types/cosmos/store/v1beta1/commit_info.ts +369 -0
- package/types/cosmos/store/v1beta1/listening.ts +296 -0
- package/types/cosmos/tx/config/v1/config.ts +127 -0
- package/types/cosmos/tx/signing/v1beta1/signing.ts +713 -0
- package/types/cosmos/tx/v1beta1/service.lcd.ts +59 -0
- package/types/cosmos/tx/v1beta1/service.rpc.Service.ts +119 -0
- package/types/cosmos/tx/v1beta1/service.ts +2319 -0
- package/types/cosmos/tx/v1beta1/tx.ts +2168 -0
- package/types/cosmos/upgrade/module/v1/module.ts +100 -0
- package/types/cosmos/upgrade/v1beta1/query.lcd.ts +54 -0
- package/types/cosmos/upgrade/v1beta1/query.rpc.Query.ts +82 -0
- package/types/cosmos/upgrade/v1beta1/query.ts +1004 -0
- package/types/cosmos/upgrade/v1beta1/tx.amino.ts +14 -0
- package/types/cosmos/upgrade/v1beta1/tx.registry.ts +53 -0
- package/types/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +32 -0
- package/types/cosmos/upgrade/v1beta1/tx.ts +368 -0
- package/types/cosmos/upgrade/v1beta1/upgrade.ts +623 -0
- package/types/cosmos/vesting/module/v1/module.ts +77 -0
- package/types/cosmos/vesting/v1beta1/tx.amino.ts +19 -0
- package/types/cosmos/vesting/v1beta1/tx.registry.ts +71 -0
- package/types/cosmos/vesting/v1beta1/tx.rpc.msg.ts +46 -0
- package/types/cosmos/vesting/v1beta1/tx.ts +688 -0
- package/types/cosmos/vesting/v1beta1/vesting.ts +751 -0
- package/types/cosmos_proto/bundle.ts +5 -0
- package/types/cosmos_proto/cosmos.ts +355 -0
- package/types/cosmwasm/bundle.ts +39 -0
- package/types/cosmwasm/client.ts +48 -0
- package/types/cosmwasm/lcd.ts +132 -0
- package/types/cosmwasm/rpc.query.ts +95 -0
- package/types/cosmwasm/rpc.tx.ts +76 -0
- package/types/cosmwasm/wasm/v1/authz.ts +1409 -0
- package/types/cosmwasm/wasm/v1/genesis.ts +544 -0
- package/types/cosmwasm/wasm/v1/ibc.ts +437 -0
- package/types/cosmwasm/wasm/v1/proposal_legacy.ts +2711 -0
- package/types/cosmwasm/wasm/v1/query.lcd.ts +154 -0
- package/types/cosmwasm/wasm/v1/query.rpc.Query.ts +181 -0
- package/types/cosmwasm/wasm/v1/query.ts +3339 -0
- package/types/cosmwasm/wasm/v1/tx.amino.ts +89 -0
- package/types/cosmwasm/wasm/v1/tx.registry.ts +323 -0
- package/types/cosmwasm/wasm/v1/tx.rpc.msg.ts +197 -0
- package/types/cosmwasm/wasm/v1/tx.ts +4403 -0
- package/types/cosmwasm/wasm/v1/types.ts +1193 -0
- package/types/gogoproto/bundle.ts +5 -0
- package/types/gogoproto/gogo.ts +1 -0
- package/types/google/api/annotations.ts +1 -0
- package/types/google/api/apikeys/v2/apikeys.ts +1245 -0
- package/types/google/api/apikeys/v2/resources.ts +1268 -0
- package/types/google/api/auth.ts +1175 -0
- package/types/google/api/backend.ts +691 -0
- package/types/google/api/billing.ts +333 -0
- package/types/google/api/client.ts +3100 -0
- package/types/google/api/cloudquotas/v1/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1/resources.ts +2065 -0
- package/types/google/api/cloudquotas/v1beta/cloudquotas.ts +1196 -0
- package/types/google/api/cloudquotas/v1beta/quota_adjuster_settings.ts +509 -0
- package/types/google/api/cloudquotas/v1beta/resources.ts +2069 -0
- package/types/google/api/config_change.ts +385 -0
- package/types/google/api/consumer.ts +362 -0
- package/types/google/api/context.ts +418 -0
- package/types/google/api/control.ts +141 -0
- package/types/google/api/distribution.ts +1253 -0
- package/types/google/api/documentation.ts +738 -0
- package/types/google/api/endpoint.ts +245 -0
- package/types/google/api/error_reason.ts +816 -0
- package/types/google/api/expr/conformance/v1alpha1/conformance_service.ts +1293 -0
- package/types/google/api/expr/v1alpha1/checked.ts +2259 -0
- package/types/google/api/expr/v1alpha1/eval.ts +675 -0
- package/types/google/api/expr/v1alpha1/explain.ts +257 -0
- package/types/google/api/expr/v1alpha1/syntax.ts +2983 -0
- package/types/google/api/expr/v1alpha1/value.ts +771 -0
- package/types/google/api/expr/v1beta1/decl.ts +563 -0
- package/types/google/api/expr/v1beta1/eval.ts +758 -0
- package/types/google/api/expr/v1beta1/expr.ts +1750 -0
- package/types/google/api/expr/v1beta1/source.ts +446 -0
- package/types/google/api/expr/v1beta1/value.ts +771 -0
- package/types/google/api/field_behavior.ts +136 -0
- package/types/google/api/field_info.ts +319 -0
- package/types/google/api/http.ts +1362 -0
- package/types/google/api/httpbody.ts +270 -0
- package/types/google/api/label.ts +174 -0
- package/types/google/api/launch_stage.ts +112 -0
- package/types/google/api/log.ts +201 -0
- package/types/google/api/logging.ts +355 -0
- package/types/google/api/metric.ts +1174 -0
- package/types/google/api/monitored_resource.ts +841 -0
- package/types/google/api/monitoring.ts +430 -0
- package/types/google/api/policy.ts +314 -0
- package/types/google/api/quota.ts +1040 -0
- package/types/google/api/resource.ts +769 -0
- package/types/google/api/routing.ts +1405 -0
- package/types/google/api/service.ts +790 -0
- package/types/google/api/servicecontrol/v1/check_error.ts +366 -0
- package/types/google/api/servicecontrol/v1/distribution.ts +773 -0
- package/types/google/api/servicecontrol/v1/http_request.ts +427 -0
- package/types/google/api/servicecontrol/v1/log_entry.ts +804 -0
- package/types/google/api/servicecontrol/v1/metric_value.ts +499 -0
- package/types/google/api/servicecontrol/v1/operation.ts +544 -0
- package/types/google/api/servicecontrol/v1/quota_controller.ts +1041 -0
- package/types/google/api/servicecontrol/v1/service_controller.ts +1164 -0
- package/types/google/api/servicecontrol/v2/service_controller.ts +949 -0
- package/types/google/api/servicemanagement/v1/resources.ts +1888 -0
- package/types/google/api/servicemanagement/v1/servicemanager.ts +2444 -0
- package/types/google/api/serviceusage/v1/resources.ts +629 -0
- package/types/google/api/serviceusage/v1/serviceusage.ts +1530 -0
- package/types/google/api/serviceusage/v1beta1/resources.ts +2972 -0
- package/types/google/api/serviceusage/v1beta1/serviceusage.ts +4567 -0
- package/types/google/api/source_info.ts +97 -0
- package/types/google/api/system_parameter.ts +461 -0
- package/types/google/api/usage.ts +404 -0
- package/types/google/api/visibility.ts +328 -0
- package/types/google/bundle.ts +115 -0
- package/types/google/logging/type/log_severity.ts +104 -0
- package/types/google/longrunning/operations.ts +1153 -0
- package/types/google/protobuf/any.ts +424 -0
- package/types/google/protobuf/api.ts +942 -0
- package/types/google/protobuf/descriptor.ts +7801 -0
- package/types/google/protobuf/duration.ts +284 -0
- package/types/google/protobuf/empty.ts +93 -0
- package/types/google/protobuf/field_mask.ts +694 -0
- package/types/google/protobuf/source_context.ts +105 -0
- package/types/google/protobuf/struct.ts +584 -0
- package/types/google/protobuf/timestamp.ts +373 -0
- package/types/google/protobuf/type.ts +1279 -0
- package/types/google/protobuf/wrappers.ts +1002 -0
- package/types/google/rpc/code.ts +286 -0
- package/types/google/rpc/context/attribute_context.ts +2517 -0
- package/types/google/rpc/context/audit_context.ts +188 -0
- package/types/google/rpc/error_details.ts +2467 -0
- package/types/google/rpc/http.ts +424 -0
- package/types/google/rpc/status.ts +173 -0
- package/types/helpers.ts +259 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +107 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.lcd.ts +25 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.rpc.Query.ts +42 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.amino.ts +19 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +71 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +692 -0
- package/types/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +675 -0
- package/types/ibc/applications/interchain_accounts/host/v1/host.ts +261 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.lcd.ts +19 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.rpc.Query.ts +31 -0
- package/types/ibc/applications/interchain_accounts/host/v1/query.ts +176 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/interchain_accounts/host/v1/tx.ts +440 -0
- package/types/ibc/applications/interchain_accounts/v1/account.ts +115 -0
- package/types/ibc/applications/interchain_accounts/v1/metadata.ts +206 -0
- package/types/ibc/applications/interchain_accounts/v1/packet.ts +262 -0
- package/types/ibc/applications/transfer/v1/authz.ts +297 -0
- package/types/ibc/applications/transfer/v1/denomtrace.ts +133 -0
- package/types/ibc/applications/transfer/v1/genesis.ts +156 -0
- package/types/ibc/applications/transfer/v1/packet.ts +186 -0
- package/types/ibc/applications/transfer/v1/query.lcd.ts +76 -0
- package/types/ibc/applications/transfer/v1/query.rpc.Query.ts +88 -0
- package/types/ibc/applications/transfer/v1/query.ts +1233 -0
- package/types/ibc/applications/transfer/v1/token.ts +347 -0
- package/types/ibc/applications/transfer/v1/transfer.ts +140 -0
- package/types/ibc/applications/transfer/v1/tx.amino.ts +14 -0
- package/types/ibc/applications/transfer/v1/tx.registry.ts +53 -0
- package/types/ibc/applications/transfer/v1/tx.rpc.msg.ts +29 -0
- package/types/ibc/applications/transfer/v1/tx.ts +579 -0
- package/types/ibc/bundle.ts +265 -0
- package/types/ibc/client.ts +72 -0
- package/types/ibc/core/channel/v1/channel.ts +1455 -0
- package/types/ibc/core/channel/v1/genesis.ts +351 -0
- package/types/ibc/core/channel/v1/query.lcd.ts +135 -0
- package/types/ibc/core/channel/v1/query.rpc.Query.ts +200 -0
- package/types/ibc/core/channel/v1/query.ts +3943 -0
- package/types/ibc/core/channel/v1/tx.amino.ts +54 -0
- package/types/ibc/core/channel/v1/tx.registry.ts +197 -0
- package/types/ibc/core/channel/v1/tx.rpc.msg.ts +96 -0
- package/types/ibc/core/channel/v1/tx.ts +2558 -0
- package/types/ibc/core/channel/v2/genesis.ts +433 -0
- package/types/ibc/core/channel/v2/packet.ts +640 -0
- package/types/ibc/core/channel/v2/query.lcd.ts +77 -0
- package/types/ibc/core/channel/v2/query.rpc.Query.ts +108 -0
- package/types/ibc/core/channel/v2/query.ts +2075 -0
- package/types/ibc/core/channel/v2/tx.amino.ts +24 -0
- package/types/ibc/core/channel/v2/tx.registry.ts +89 -0
- package/types/ibc/core/channel/v2/tx.rpc.msg.ts +45 -0
- package/types/ibc/core/channel/v2/tx.ts +1003 -0
- package/types/ibc/core/client/v1/client.ts +636 -0
- package/types/ibc/core/client/v1/genesis.ts +448 -0
- package/types/ibc/core/client/v1/query.lcd.ts +102 -0
- package/types/ibc/core/client/v1/query.rpc.Query.ts +149 -0
- package/types/ibc/core/client/v1/query.ts +2588 -0
- package/types/ibc/core/client/v1/tx.amino.ts +44 -0
- package/types/ibc/core/client/v1/tx.registry.ts +161 -0
- package/types/ibc/core/client/v1/tx.rpc.msg.ts +77 -0
- package/types/ibc/core/client/v1/tx.ts +1796 -0
- package/types/ibc/core/client/v2/config.ts +115 -0
- package/types/ibc/core/client/v2/counterparty.ts +122 -0
- package/types/ibc/core/client/v2/genesis.ts +220 -0
- package/types/ibc/core/client/v2/query.lcd.ts +25 -0
- package/types/ibc/core/client/v2/query.rpc.Query.ts +42 -0
- package/types/ibc/core/client/v2/query.ts +402 -0
- package/types/ibc/core/client/v2/tx.amino.ts +14 -0
- package/types/ibc/core/client/v2/tx.registry.ts +53 -0
- package/types/ibc/core/client/v2/tx.rpc.msg.ts +29 -0
- package/types/ibc/core/client/v2/tx.ts +453 -0
- package/types/ibc/core/commitment/v1/commitment.ts +321 -0
- package/types/ibc/core/commitment/v2/commitment.ts +193 -0
- package/types/ibc/core/connection/v1/connection.ts +1056 -0
- package/types/ibc/core/connection/v1/genesis.ts +150 -0
- package/types/ibc/core/connection/v1/query.lcd.ts +61 -0
- package/types/ibc/core/connection/v1/query.rpc.Query.ts +97 -0
- package/types/ibc/core/connection/v1/query.ts +1472 -0
- package/types/ibc/core/connection/v1/tx.amino.ts +29 -0
- package/types/ibc/core/connection/v1/tx.registry.ts +107 -0
- package/types/ibc/core/connection/v1/tx.rpc.msg.ts +59 -0
- package/types/ibc/core/connection/v1/tx.ts +1456 -0
- package/types/ibc/core/types/v1/genesis.ts +191 -0
- package/types/ibc/lcd.ts +176 -0
- package/types/ibc/lightclients/solomachine/v2/solomachine.ts +2161 -0
- package/types/ibc/lightclients/solomachine/v3/solomachine.ts +1114 -0
- package/types/ibc/lightclients/tendermint/v1/tendermint.ts +891 -0
- package/types/ibc/lightclients/wasm/v1/genesis.ts +201 -0
- package/types/ibc/lightclients/wasm/v1/query.lcd.ts +34 -0
- package/types/ibc/lightclients/wasm/v1/query.rpc.Query.ts +44 -0
- package/types/ibc/lightclients/wasm/v1/query.ts +413 -0
- package/types/ibc/lightclients/wasm/v1/tx.amino.ts +19 -0
- package/types/ibc/lightclients/wasm/v1/tx.registry.ts +71 -0
- package/types/ibc/lightclients/wasm/v1/tx.rpc.msg.ts +37 -0
- package/types/ibc/lightclients/wasm/v1/tx.ts +640 -0
- package/types/ibc/lightclients/wasm/v1/wasm.ts +444 -0
- package/types/ibc/rpc.query.ts +123 -0
- package/types/ibc/rpc.tx.ts +104 -0
- package/types/index.ts +25 -0
- package/types/tendermint/abci/types.ts +6565 -0
- package/types/tendermint/bundle.ts +33 -0
- package/types/tendermint/crypto/keys.ts +106 -0
- package/types/tendermint/crypto/proof.ts +576 -0
- package/types/tendermint/p2p/types.ts +523 -0
- package/types/tendermint/types/block.ts +134 -0
- package/types/tendermint/types/evidence.ts +491 -0
- package/types/tendermint/types/params.ts +839 -0
- package/types/tendermint/types/types.ts +2266 -0
- package/types/tendermint/types/validator.ts +399 -0
- package/types/tendermint/version/types.ts +228 -0
- package/types/utf8.ts +149 -0
- package/types/varint.ts +489 -0
- package/types/xion/bundle.ts +117 -0
- package/types/xion/client.ts +57 -0
- package/types/xion/feeabs/v1beta1/epoch.ts +386 -0
- package/types/xion/feeabs/v1beta1/genesis.ts +136 -0
- package/types/xion/feeabs/v1beta1/osmosisibc.ts +868 -0
- package/types/xion/feeabs/v1beta1/params.ts +189 -0
- package/types/xion/feeabs/v1beta1/proposal.ts +593 -0
- package/types/xion/feeabs/v1beta1/query.lcd.ts +37 -0
- package/types/xion/feeabs/v1beta1/query.rpc.Query.ts +64 -0
- package/types/xion/feeabs/v1beta1/query.ts +732 -0
- package/types/xion/feeabs/v1beta1/tx.amino.ts +39 -0
- package/types/xion/feeabs/v1beta1/tx.registry.ts +143 -0
- package/types/xion/feeabs/v1beta1/tx.rpc.msg.ts +72 -0
- package/types/xion/feeabs/v1beta1/tx.ts +1261 -0
- package/types/xion/globalfee/v1/genesis.ts +249 -0
- package/types/xion/globalfee/v1/query.lcd.ts +19 -0
- package/types/xion/globalfee/v1/query.rpc.Query.ts +31 -0
- package/types/xion/globalfee/v1/query.ts +178 -0
- package/types/xion/jwk/v1/audience.ts +224 -0
- package/types/xion/jwk/v1/genesis.ts +117 -0
- package/types/xion/jwk/v1/params.ts +113 -0
- package/types/xion/jwk/v1/query.lcd.ts +52 -0
- package/types/xion/jwk/v1/query.rpc.Query.ts +77 -0
- package/types/xion/jwk/v1/query.ts +1697 -0
- package/types/xion/jwk/v1/tx.amino.ts +29 -0
- package/types/xion/jwk/v1/tx.registry.ts +107 -0
- package/types/xion/jwk/v1/tx.rpc.msg.ts +53 -0
- package/types/xion/jwk/v1/tx.ts +1040 -0
- package/types/xion/lcd.ts +147 -0
- package/types/xion/mint/v1/event.ts +216 -0
- package/types/xion/mint/v1/genesis.ts +114 -0
- package/types/xion/mint/v1/mint.ts +307 -0
- package/types/xion/mint/v1/query.lcd.ts +31 -0
- package/types/xion/mint/v1/query.rpc.Query.ts +53 -0
- package/types/xion/mint/v1/query.ts +508 -0
- package/types/xion/mint/v1/tx.amino.ts +9 -0
- package/types/xion/mint/v1/tx.registry.ts +35 -0
- package/types/xion/mint/v1/tx.rpc.msg.ts +26 -0
- package/types/xion/mint/v1/tx.ts +222 -0
- package/types/xion/rpc.query.ts +105 -0
- package/types/xion/rpc.tx.ts +83 -0
- package/types/xion/v1/feegrant.ts +457 -0
- package/types/xion/v1/genesis.ts +116 -0
- package/types/xion/v1/query.rpc.Query.ts +64 -0
- package/types/xion/v1/query.ts +862 -0
- package/types/xion/v1/tx.amino.ts +24 -0
- package/types/xion/v1/tx.registry.ts +89 -0
- package/types/xion/v1/tx.rpc.msg.ts +57 -0
- package/types/xion/v1/tx.ts +793 -0
|
@@ -0,0 +1,1175 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { BinaryReader, BinaryWriter } from "../../binary";
|
|
3
|
+
/**
|
|
4
|
+
* `Authentication` defines the authentication configuration for API methods
|
|
5
|
+
* provided by an API service.
|
|
6
|
+
*
|
|
7
|
+
* Example:
|
|
8
|
+
*
|
|
9
|
+
* name: calendar.googleapis.com
|
|
10
|
+
* authentication:
|
|
11
|
+
* providers:
|
|
12
|
+
* - id: google_calendar_auth
|
|
13
|
+
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
|
14
|
+
* issuer: https://securetoken.google.com
|
|
15
|
+
* rules:
|
|
16
|
+
* - selector: "*"
|
|
17
|
+
* requirements:
|
|
18
|
+
* provider_id: google_calendar_auth
|
|
19
|
+
* - selector: google.calendar.Delegate
|
|
20
|
+
* oauth:
|
|
21
|
+
* canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
|
22
|
+
*/
|
|
23
|
+
export interface Authentication {
|
|
24
|
+
/**
|
|
25
|
+
* A list of authentication rules that apply to individual API methods.
|
|
26
|
+
*
|
|
27
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
28
|
+
*/
|
|
29
|
+
rules: AuthenticationRule[];
|
|
30
|
+
/** Defines a set of authentication providers that a service supports. */
|
|
31
|
+
providers: AuthProvider[];
|
|
32
|
+
}
|
|
33
|
+
export interface AuthenticationProtoMsg {
|
|
34
|
+
typeUrl: "/google.api.Authentication";
|
|
35
|
+
value: Uint8Array;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* `Authentication` defines the authentication configuration for API methods
|
|
39
|
+
* provided by an API service.
|
|
40
|
+
*
|
|
41
|
+
* Example:
|
|
42
|
+
*
|
|
43
|
+
* name: calendar.googleapis.com
|
|
44
|
+
* authentication:
|
|
45
|
+
* providers:
|
|
46
|
+
* - id: google_calendar_auth
|
|
47
|
+
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
|
48
|
+
* issuer: https://securetoken.google.com
|
|
49
|
+
* rules:
|
|
50
|
+
* - selector: "*"
|
|
51
|
+
* requirements:
|
|
52
|
+
* provider_id: google_calendar_auth
|
|
53
|
+
* - selector: google.calendar.Delegate
|
|
54
|
+
* oauth:
|
|
55
|
+
* canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
|
56
|
+
* @name AuthenticationAmino
|
|
57
|
+
* @package google.api
|
|
58
|
+
* @see proto type: google.api.Authentication
|
|
59
|
+
*/
|
|
60
|
+
export interface AuthenticationAmino {
|
|
61
|
+
/**
|
|
62
|
+
* A list of authentication rules that apply to individual API methods.
|
|
63
|
+
*
|
|
64
|
+
* **NOTE:** All service configuration rules follow "last one wins" order.
|
|
65
|
+
*/
|
|
66
|
+
rules?: AuthenticationRuleAmino[];
|
|
67
|
+
/**
|
|
68
|
+
* Defines a set of authentication providers that a service supports.
|
|
69
|
+
*/
|
|
70
|
+
providers?: AuthProviderAmino[];
|
|
71
|
+
}
|
|
72
|
+
export interface AuthenticationAminoMsg {
|
|
73
|
+
type: "/google.api.Authentication";
|
|
74
|
+
value: AuthenticationAmino;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* `Authentication` defines the authentication configuration for API methods
|
|
78
|
+
* provided by an API service.
|
|
79
|
+
*
|
|
80
|
+
* Example:
|
|
81
|
+
*
|
|
82
|
+
* name: calendar.googleapis.com
|
|
83
|
+
* authentication:
|
|
84
|
+
* providers:
|
|
85
|
+
* - id: google_calendar_auth
|
|
86
|
+
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
|
87
|
+
* issuer: https://securetoken.google.com
|
|
88
|
+
* rules:
|
|
89
|
+
* - selector: "*"
|
|
90
|
+
* requirements:
|
|
91
|
+
* provider_id: google_calendar_auth
|
|
92
|
+
* - selector: google.calendar.Delegate
|
|
93
|
+
* oauth:
|
|
94
|
+
* canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
|
95
|
+
*/
|
|
96
|
+
export interface AuthenticationSDKType {
|
|
97
|
+
rules: AuthenticationRuleSDKType[];
|
|
98
|
+
providers: AuthProviderSDKType[];
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Authentication rules for the service.
|
|
102
|
+
*
|
|
103
|
+
* By default, if a method has any authentication requirements, every request
|
|
104
|
+
* must include a valid credential matching one of the requirements.
|
|
105
|
+
* It's an error to include more than one kind of credential in a single
|
|
106
|
+
* request.
|
|
107
|
+
*
|
|
108
|
+
* If a method doesn't have any auth requirements, request credentials will be
|
|
109
|
+
* ignored.
|
|
110
|
+
*/
|
|
111
|
+
export interface AuthenticationRule {
|
|
112
|
+
/**
|
|
113
|
+
* Selects the methods to which this rule applies.
|
|
114
|
+
*
|
|
115
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
|
116
|
+
* details.
|
|
117
|
+
*/
|
|
118
|
+
selector: string;
|
|
119
|
+
/** The requirements for OAuth credentials. */
|
|
120
|
+
oauth?: OAuthRequirements;
|
|
121
|
+
/**
|
|
122
|
+
* If true, the service accepts API keys without any other credential.
|
|
123
|
+
* This flag only applies to HTTP and gRPC requests.
|
|
124
|
+
*/
|
|
125
|
+
allowWithoutCredential: boolean;
|
|
126
|
+
/** Requirements for additional authentication providers. */
|
|
127
|
+
requirements: AuthRequirement[];
|
|
128
|
+
}
|
|
129
|
+
export interface AuthenticationRuleProtoMsg {
|
|
130
|
+
typeUrl: "/google.api.AuthenticationRule";
|
|
131
|
+
value: Uint8Array;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Authentication rules for the service.
|
|
135
|
+
*
|
|
136
|
+
* By default, if a method has any authentication requirements, every request
|
|
137
|
+
* must include a valid credential matching one of the requirements.
|
|
138
|
+
* It's an error to include more than one kind of credential in a single
|
|
139
|
+
* request.
|
|
140
|
+
*
|
|
141
|
+
* If a method doesn't have any auth requirements, request credentials will be
|
|
142
|
+
* ignored.
|
|
143
|
+
* @name AuthenticationRuleAmino
|
|
144
|
+
* @package google.api
|
|
145
|
+
* @see proto type: google.api.AuthenticationRule
|
|
146
|
+
*/
|
|
147
|
+
export interface AuthenticationRuleAmino {
|
|
148
|
+
/**
|
|
149
|
+
* Selects the methods to which this rule applies.
|
|
150
|
+
*
|
|
151
|
+
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
|
152
|
+
* details.
|
|
153
|
+
*/
|
|
154
|
+
selector?: string;
|
|
155
|
+
/**
|
|
156
|
+
* The requirements for OAuth credentials.
|
|
157
|
+
*/
|
|
158
|
+
oauth?: OAuthRequirementsAmino;
|
|
159
|
+
/**
|
|
160
|
+
* If true, the service accepts API keys without any other credential.
|
|
161
|
+
* This flag only applies to HTTP and gRPC requests.
|
|
162
|
+
*/
|
|
163
|
+
allow_without_credential?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Requirements for additional authentication providers.
|
|
166
|
+
*/
|
|
167
|
+
requirements?: AuthRequirementAmino[];
|
|
168
|
+
}
|
|
169
|
+
export interface AuthenticationRuleAminoMsg {
|
|
170
|
+
type: "/google.api.AuthenticationRule";
|
|
171
|
+
value: AuthenticationRuleAmino;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Authentication rules for the service.
|
|
175
|
+
*
|
|
176
|
+
* By default, if a method has any authentication requirements, every request
|
|
177
|
+
* must include a valid credential matching one of the requirements.
|
|
178
|
+
* It's an error to include more than one kind of credential in a single
|
|
179
|
+
* request.
|
|
180
|
+
*
|
|
181
|
+
* If a method doesn't have any auth requirements, request credentials will be
|
|
182
|
+
* ignored.
|
|
183
|
+
*/
|
|
184
|
+
export interface AuthenticationRuleSDKType {
|
|
185
|
+
selector: string;
|
|
186
|
+
oauth?: OAuthRequirementsSDKType;
|
|
187
|
+
allow_without_credential: boolean;
|
|
188
|
+
requirements: AuthRequirementSDKType[];
|
|
189
|
+
}
|
|
190
|
+
/** Specifies a location to extract JWT from an API request. */
|
|
191
|
+
export interface JwtLocation {
|
|
192
|
+
/** Specifies HTTP header name to extract JWT token. */
|
|
193
|
+
header?: string;
|
|
194
|
+
/** Specifies URL query parameter name to extract JWT token. */
|
|
195
|
+
query?: string;
|
|
196
|
+
/** Specifies cookie name to extract JWT token. */
|
|
197
|
+
cookie?: string;
|
|
198
|
+
/**
|
|
199
|
+
* The value prefix. The value format is "value_prefix{token}"
|
|
200
|
+
* Only applies to "in" header type. Must be empty for "in" query type.
|
|
201
|
+
* If not empty, the header value has to match (case sensitive) this prefix.
|
|
202
|
+
* If not matched, JWT will not be extracted. If matched, JWT will be
|
|
203
|
+
* extracted after the prefix is removed.
|
|
204
|
+
*
|
|
205
|
+
* For example, for "Authorization: Bearer {JWT}",
|
|
206
|
+
* value_prefix="Bearer " with a space at the end.
|
|
207
|
+
*/
|
|
208
|
+
valuePrefix: string;
|
|
209
|
+
}
|
|
210
|
+
export interface JwtLocationProtoMsg {
|
|
211
|
+
typeUrl: "/google.api.JwtLocation";
|
|
212
|
+
value: Uint8Array;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Specifies a location to extract JWT from an API request.
|
|
216
|
+
* @name JwtLocationAmino
|
|
217
|
+
* @package google.api
|
|
218
|
+
* @see proto type: google.api.JwtLocation
|
|
219
|
+
*/
|
|
220
|
+
export interface JwtLocationAmino {
|
|
221
|
+
/**
|
|
222
|
+
* Specifies HTTP header name to extract JWT token.
|
|
223
|
+
*/
|
|
224
|
+
header?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Specifies URL query parameter name to extract JWT token.
|
|
227
|
+
*/
|
|
228
|
+
query?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Specifies cookie name to extract JWT token.
|
|
231
|
+
*/
|
|
232
|
+
cookie?: string;
|
|
233
|
+
/**
|
|
234
|
+
* The value prefix. The value format is "value_prefix{token}"
|
|
235
|
+
* Only applies to "in" header type. Must be empty for "in" query type.
|
|
236
|
+
* If not empty, the header value has to match (case sensitive) this prefix.
|
|
237
|
+
* If not matched, JWT will not be extracted. If matched, JWT will be
|
|
238
|
+
* extracted after the prefix is removed.
|
|
239
|
+
*
|
|
240
|
+
* For example, for "Authorization: Bearer {JWT}",
|
|
241
|
+
* value_prefix="Bearer " with a space at the end.
|
|
242
|
+
*/
|
|
243
|
+
value_prefix?: string;
|
|
244
|
+
}
|
|
245
|
+
export interface JwtLocationAminoMsg {
|
|
246
|
+
type: "/google.api.JwtLocation";
|
|
247
|
+
value: JwtLocationAmino;
|
|
248
|
+
}
|
|
249
|
+
/** Specifies a location to extract JWT from an API request. */
|
|
250
|
+
export interface JwtLocationSDKType {
|
|
251
|
+
header?: string;
|
|
252
|
+
query?: string;
|
|
253
|
+
cookie?: string;
|
|
254
|
+
value_prefix: string;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Configuration for an authentication provider, including support for
|
|
258
|
+
* [JSON Web Token
|
|
259
|
+
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
260
|
+
*/
|
|
261
|
+
export interface AuthProvider {
|
|
262
|
+
/**
|
|
263
|
+
* The unique identifier of the auth provider. It will be referred to by
|
|
264
|
+
* `AuthRequirement.provider_id`.
|
|
265
|
+
*
|
|
266
|
+
* Example: "bookstore_auth".
|
|
267
|
+
*/
|
|
268
|
+
id: string;
|
|
269
|
+
/**
|
|
270
|
+
* Identifies the principal that issued the JWT. See
|
|
271
|
+
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
|
272
|
+
* Usually a URL or an email address.
|
|
273
|
+
*
|
|
274
|
+
* Example: https://securetoken.google.com
|
|
275
|
+
* Example: 1234567-compute@developer.gserviceaccount.com
|
|
276
|
+
*/
|
|
277
|
+
issuer: string;
|
|
278
|
+
/**
|
|
279
|
+
* URL of the provider's public key set to validate signature of the JWT. See
|
|
280
|
+
* [OpenID
|
|
281
|
+
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
|
282
|
+
* Optional if the key set document:
|
|
283
|
+
* - can be retrieved from
|
|
284
|
+
* [OpenID
|
|
285
|
+
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
|
286
|
+
* of the issuer.
|
|
287
|
+
* - can be inferred from the email domain of the issuer (e.g. a Google
|
|
288
|
+
* service account).
|
|
289
|
+
*
|
|
290
|
+
* Example: https://www.googleapis.com/oauth2/v1/certs
|
|
291
|
+
*/
|
|
292
|
+
jwksUri: string;
|
|
293
|
+
/**
|
|
294
|
+
* The list of JWT
|
|
295
|
+
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
|
296
|
+
* that are allowed to access. A JWT containing any of these audiences will
|
|
297
|
+
* be accepted. When this setting is absent, JWTs with audiences:
|
|
298
|
+
* - "https://[service.name]/[google.protobuf.Api.name]"
|
|
299
|
+
* - "https://[service.name]/"
|
|
300
|
+
* will be accepted.
|
|
301
|
+
* For example, if no audiences are in the setting, LibraryService API will
|
|
302
|
+
* accept JWTs with the following audiences:
|
|
303
|
+
* -
|
|
304
|
+
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
|
305
|
+
* - https://library-example.googleapis.com/
|
|
306
|
+
*
|
|
307
|
+
* Example:
|
|
308
|
+
*
|
|
309
|
+
* audiences: bookstore_android.apps.googleusercontent.com,
|
|
310
|
+
* bookstore_web.apps.googleusercontent.com
|
|
311
|
+
*/
|
|
312
|
+
audiences: string;
|
|
313
|
+
/**
|
|
314
|
+
* Redirect URL if JWT token is required but not present or is expired.
|
|
315
|
+
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
|
316
|
+
*/
|
|
317
|
+
authorizationUrl: string;
|
|
318
|
+
/**
|
|
319
|
+
* Defines the locations to extract the JWT. For now it is only used by the
|
|
320
|
+
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
|
321
|
+
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
|
322
|
+
*
|
|
323
|
+
* JWT locations can be one of HTTP headers, URL query parameters or
|
|
324
|
+
* cookies. The rule is that the first match wins.
|
|
325
|
+
*
|
|
326
|
+
* If not specified, default to use following 3 locations:
|
|
327
|
+
* 1) Authorization: Bearer
|
|
328
|
+
* 2) x-goog-iap-jwt-assertion
|
|
329
|
+
* 3) access_token query parameter
|
|
330
|
+
*
|
|
331
|
+
* Default locations can be specified as followings:
|
|
332
|
+
* jwt_locations:
|
|
333
|
+
* - header: Authorization
|
|
334
|
+
* value_prefix: "Bearer "
|
|
335
|
+
* - header: x-goog-iap-jwt-assertion
|
|
336
|
+
* - query: access_token
|
|
337
|
+
*/
|
|
338
|
+
jwtLocations: JwtLocation[];
|
|
339
|
+
}
|
|
340
|
+
export interface AuthProviderProtoMsg {
|
|
341
|
+
typeUrl: "/google.api.AuthProvider";
|
|
342
|
+
value: Uint8Array;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Configuration for an authentication provider, including support for
|
|
346
|
+
* [JSON Web Token
|
|
347
|
+
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
348
|
+
* @name AuthProviderAmino
|
|
349
|
+
* @package google.api
|
|
350
|
+
* @see proto type: google.api.AuthProvider
|
|
351
|
+
*/
|
|
352
|
+
export interface AuthProviderAmino {
|
|
353
|
+
/**
|
|
354
|
+
* The unique identifier of the auth provider. It will be referred to by
|
|
355
|
+
* `AuthRequirement.provider_id`.
|
|
356
|
+
*
|
|
357
|
+
* Example: "bookstore_auth".
|
|
358
|
+
*/
|
|
359
|
+
id?: string;
|
|
360
|
+
/**
|
|
361
|
+
* Identifies the principal that issued the JWT. See
|
|
362
|
+
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
|
363
|
+
* Usually a URL or an email address.
|
|
364
|
+
*
|
|
365
|
+
* Example: https://securetoken.google.com
|
|
366
|
+
* Example: 1234567-compute@developer.gserviceaccount.com
|
|
367
|
+
*/
|
|
368
|
+
issuer?: string;
|
|
369
|
+
/**
|
|
370
|
+
* URL of the provider's public key set to validate signature of the JWT. See
|
|
371
|
+
* [OpenID
|
|
372
|
+
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
|
373
|
+
* Optional if the key set document:
|
|
374
|
+
* - can be retrieved from
|
|
375
|
+
* [OpenID
|
|
376
|
+
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
|
377
|
+
* of the issuer.
|
|
378
|
+
* - can be inferred from the email domain of the issuer (e.g. a Google
|
|
379
|
+
* service account).
|
|
380
|
+
*
|
|
381
|
+
* Example: https://www.googleapis.com/oauth2/v1/certs
|
|
382
|
+
*/
|
|
383
|
+
jwks_uri?: string;
|
|
384
|
+
/**
|
|
385
|
+
* The list of JWT
|
|
386
|
+
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
|
387
|
+
* that are allowed to access. A JWT containing any of these audiences will
|
|
388
|
+
* be accepted. When this setting is absent, JWTs with audiences:
|
|
389
|
+
* - "https://[service.name]/[google.protobuf.Api.name]"
|
|
390
|
+
* - "https://[service.name]/"
|
|
391
|
+
* will be accepted.
|
|
392
|
+
* For example, if no audiences are in the setting, LibraryService API will
|
|
393
|
+
* accept JWTs with the following audiences:
|
|
394
|
+
* -
|
|
395
|
+
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
|
396
|
+
* - https://library-example.googleapis.com/
|
|
397
|
+
*
|
|
398
|
+
* Example:
|
|
399
|
+
*
|
|
400
|
+
* audiences: bookstore_android.apps.googleusercontent.com,
|
|
401
|
+
* bookstore_web.apps.googleusercontent.com
|
|
402
|
+
*/
|
|
403
|
+
audiences?: string;
|
|
404
|
+
/**
|
|
405
|
+
* Redirect URL if JWT token is required but not present or is expired.
|
|
406
|
+
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
|
407
|
+
*/
|
|
408
|
+
authorization_url?: string;
|
|
409
|
+
/**
|
|
410
|
+
* Defines the locations to extract the JWT. For now it is only used by the
|
|
411
|
+
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
|
412
|
+
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
|
413
|
+
*
|
|
414
|
+
* JWT locations can be one of HTTP headers, URL query parameters or
|
|
415
|
+
* cookies. The rule is that the first match wins.
|
|
416
|
+
*
|
|
417
|
+
* If not specified, default to use following 3 locations:
|
|
418
|
+
* 1) Authorization: Bearer
|
|
419
|
+
* 2) x-goog-iap-jwt-assertion
|
|
420
|
+
* 3) access_token query parameter
|
|
421
|
+
*
|
|
422
|
+
* Default locations can be specified as followings:
|
|
423
|
+
* jwt_locations:
|
|
424
|
+
* - header: Authorization
|
|
425
|
+
* value_prefix: "Bearer "
|
|
426
|
+
* - header: x-goog-iap-jwt-assertion
|
|
427
|
+
* - query: access_token
|
|
428
|
+
*/
|
|
429
|
+
jwt_locations?: JwtLocationAmino[];
|
|
430
|
+
}
|
|
431
|
+
export interface AuthProviderAminoMsg {
|
|
432
|
+
type: "/google.api.AuthProvider";
|
|
433
|
+
value: AuthProviderAmino;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Configuration for an authentication provider, including support for
|
|
437
|
+
* [JSON Web Token
|
|
438
|
+
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
439
|
+
*/
|
|
440
|
+
export interface AuthProviderSDKType {
|
|
441
|
+
id: string;
|
|
442
|
+
issuer: string;
|
|
443
|
+
jwks_uri: string;
|
|
444
|
+
audiences: string;
|
|
445
|
+
authorization_url: string;
|
|
446
|
+
jwt_locations: JwtLocationSDKType[];
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* OAuth scopes are a way to define data and permissions on data. For example,
|
|
450
|
+
* there are scopes defined for "Read-only access to Google Calendar" and
|
|
451
|
+
* "Access to Cloud Platform". Users can consent to a scope for an application,
|
|
452
|
+
* giving it permission to access that data on their behalf.
|
|
453
|
+
*
|
|
454
|
+
* OAuth scope specifications should be fairly coarse grained; a user will need
|
|
455
|
+
* to see and understand the text description of what your scope means.
|
|
456
|
+
*
|
|
457
|
+
* In most cases: use one or at most two OAuth scopes for an entire family of
|
|
458
|
+
* products. If your product has multiple APIs, you should probably be sharing
|
|
459
|
+
* the OAuth scope across all of those APIs.
|
|
460
|
+
*
|
|
461
|
+
* When you need finer grained OAuth consent screens: talk with your product
|
|
462
|
+
* management about how developers will use them in practice.
|
|
463
|
+
*
|
|
464
|
+
* Please note that even though each of the canonical scopes is enough for a
|
|
465
|
+
* request to be accepted and passed to the backend, a request can still fail
|
|
466
|
+
* due to the backend requiring additional scopes or permissions.
|
|
467
|
+
*/
|
|
468
|
+
export interface OAuthRequirements {
|
|
469
|
+
/**
|
|
470
|
+
* The list of publicly documented OAuth scopes that are allowed access. An
|
|
471
|
+
* OAuth token containing any of these scopes will be accepted.
|
|
472
|
+
*
|
|
473
|
+
* Example:
|
|
474
|
+
*
|
|
475
|
+
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
|
476
|
+
* https://www.googleapis.com/auth/calendar.read
|
|
477
|
+
*/
|
|
478
|
+
canonicalScopes: string;
|
|
479
|
+
}
|
|
480
|
+
export interface OAuthRequirementsProtoMsg {
|
|
481
|
+
typeUrl: "/google.api.OAuthRequirements";
|
|
482
|
+
value: Uint8Array;
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* OAuth scopes are a way to define data and permissions on data. For example,
|
|
486
|
+
* there are scopes defined for "Read-only access to Google Calendar" and
|
|
487
|
+
* "Access to Cloud Platform". Users can consent to a scope for an application,
|
|
488
|
+
* giving it permission to access that data on their behalf.
|
|
489
|
+
*
|
|
490
|
+
* OAuth scope specifications should be fairly coarse grained; a user will need
|
|
491
|
+
* to see and understand the text description of what your scope means.
|
|
492
|
+
*
|
|
493
|
+
* In most cases: use one or at most two OAuth scopes for an entire family of
|
|
494
|
+
* products. If your product has multiple APIs, you should probably be sharing
|
|
495
|
+
* the OAuth scope across all of those APIs.
|
|
496
|
+
*
|
|
497
|
+
* When you need finer grained OAuth consent screens: talk with your product
|
|
498
|
+
* management about how developers will use them in practice.
|
|
499
|
+
*
|
|
500
|
+
* Please note that even though each of the canonical scopes is enough for a
|
|
501
|
+
* request to be accepted and passed to the backend, a request can still fail
|
|
502
|
+
* due to the backend requiring additional scopes or permissions.
|
|
503
|
+
* @name OAuthRequirementsAmino
|
|
504
|
+
* @package google.api
|
|
505
|
+
* @see proto type: google.api.OAuthRequirements
|
|
506
|
+
*/
|
|
507
|
+
export interface OAuthRequirementsAmino {
|
|
508
|
+
/**
|
|
509
|
+
* The list of publicly documented OAuth scopes that are allowed access. An
|
|
510
|
+
* OAuth token containing any of these scopes will be accepted.
|
|
511
|
+
*
|
|
512
|
+
* Example:
|
|
513
|
+
*
|
|
514
|
+
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
|
515
|
+
* https://www.googleapis.com/auth/calendar.read
|
|
516
|
+
*/
|
|
517
|
+
canonical_scopes?: string;
|
|
518
|
+
}
|
|
519
|
+
export interface OAuthRequirementsAminoMsg {
|
|
520
|
+
type: "/google.api.OAuthRequirements";
|
|
521
|
+
value: OAuthRequirementsAmino;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* OAuth scopes are a way to define data and permissions on data. For example,
|
|
525
|
+
* there are scopes defined for "Read-only access to Google Calendar" and
|
|
526
|
+
* "Access to Cloud Platform". Users can consent to a scope for an application,
|
|
527
|
+
* giving it permission to access that data on their behalf.
|
|
528
|
+
*
|
|
529
|
+
* OAuth scope specifications should be fairly coarse grained; a user will need
|
|
530
|
+
* to see and understand the text description of what your scope means.
|
|
531
|
+
*
|
|
532
|
+
* In most cases: use one or at most two OAuth scopes for an entire family of
|
|
533
|
+
* products. If your product has multiple APIs, you should probably be sharing
|
|
534
|
+
* the OAuth scope across all of those APIs.
|
|
535
|
+
*
|
|
536
|
+
* When you need finer grained OAuth consent screens: talk with your product
|
|
537
|
+
* management about how developers will use them in practice.
|
|
538
|
+
*
|
|
539
|
+
* Please note that even though each of the canonical scopes is enough for a
|
|
540
|
+
* request to be accepted and passed to the backend, a request can still fail
|
|
541
|
+
* due to the backend requiring additional scopes or permissions.
|
|
542
|
+
*/
|
|
543
|
+
export interface OAuthRequirementsSDKType {
|
|
544
|
+
canonical_scopes: string;
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* User-defined authentication requirements, including support for
|
|
548
|
+
* [JSON Web Token
|
|
549
|
+
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
550
|
+
*/
|
|
551
|
+
export interface AuthRequirement {
|
|
552
|
+
/**
|
|
553
|
+
* [id][google.api.AuthProvider.id] from authentication provider.
|
|
554
|
+
*
|
|
555
|
+
* Example:
|
|
556
|
+
*
|
|
557
|
+
* provider_id: bookstore_auth
|
|
558
|
+
*/
|
|
559
|
+
providerId: string;
|
|
560
|
+
/**
|
|
561
|
+
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
|
562
|
+
* implemented and accepted in all the runtime components.
|
|
563
|
+
*
|
|
564
|
+
* The list of JWT
|
|
565
|
+
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
|
566
|
+
* that are allowed to access. A JWT containing any of these audiences will
|
|
567
|
+
* be accepted. When this setting is absent, only JWTs with audience
|
|
568
|
+
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
|
569
|
+
* will be accepted. For example, if no audiences are in the setting,
|
|
570
|
+
* LibraryService API will only accept JWTs with the following audience
|
|
571
|
+
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
|
572
|
+
*
|
|
573
|
+
* Example:
|
|
574
|
+
*
|
|
575
|
+
* audiences: bookstore_android.apps.googleusercontent.com,
|
|
576
|
+
* bookstore_web.apps.googleusercontent.com
|
|
577
|
+
*/
|
|
578
|
+
audiences: string;
|
|
579
|
+
}
|
|
580
|
+
export interface AuthRequirementProtoMsg {
|
|
581
|
+
typeUrl: "/google.api.AuthRequirement";
|
|
582
|
+
value: Uint8Array;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* User-defined authentication requirements, including support for
|
|
586
|
+
* [JSON Web Token
|
|
587
|
+
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
588
|
+
* @name AuthRequirementAmino
|
|
589
|
+
* @package google.api
|
|
590
|
+
* @see proto type: google.api.AuthRequirement
|
|
591
|
+
*/
|
|
592
|
+
export interface AuthRequirementAmino {
|
|
593
|
+
/**
|
|
594
|
+
* [id][google.api.AuthProvider.id] from authentication provider.
|
|
595
|
+
*
|
|
596
|
+
* Example:
|
|
597
|
+
*
|
|
598
|
+
* provider_id: bookstore_auth
|
|
599
|
+
*/
|
|
600
|
+
provider_id?: string;
|
|
601
|
+
/**
|
|
602
|
+
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
|
603
|
+
* implemented and accepted in all the runtime components.
|
|
604
|
+
*
|
|
605
|
+
* The list of JWT
|
|
606
|
+
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
|
607
|
+
* that are allowed to access. A JWT containing any of these audiences will
|
|
608
|
+
* be accepted. When this setting is absent, only JWTs with audience
|
|
609
|
+
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
|
610
|
+
* will be accepted. For example, if no audiences are in the setting,
|
|
611
|
+
* LibraryService API will only accept JWTs with the following audience
|
|
612
|
+
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
|
613
|
+
*
|
|
614
|
+
* Example:
|
|
615
|
+
*
|
|
616
|
+
* audiences: bookstore_android.apps.googleusercontent.com,
|
|
617
|
+
* bookstore_web.apps.googleusercontent.com
|
|
618
|
+
*/
|
|
619
|
+
audiences?: string;
|
|
620
|
+
}
|
|
621
|
+
export interface AuthRequirementAminoMsg {
|
|
622
|
+
type: "/google.api.AuthRequirement";
|
|
623
|
+
value: AuthRequirementAmino;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* User-defined authentication requirements, including support for
|
|
627
|
+
* [JSON Web Token
|
|
628
|
+
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
|
629
|
+
*/
|
|
630
|
+
export interface AuthRequirementSDKType {
|
|
631
|
+
provider_id: string;
|
|
632
|
+
audiences: string;
|
|
633
|
+
}
|
|
634
|
+
function createBaseAuthentication(): Authentication {
|
|
635
|
+
return {
|
|
636
|
+
rules: [],
|
|
637
|
+
providers: []
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
export const Authentication = {
|
|
641
|
+
typeUrl: "/google.api.Authentication",
|
|
642
|
+
encode(message: Authentication, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
643
|
+
for (const v of message.rules) {
|
|
644
|
+
AuthenticationRule.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
645
|
+
}
|
|
646
|
+
for (const v of message.providers) {
|
|
647
|
+
AuthProvider.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
648
|
+
}
|
|
649
|
+
return writer;
|
|
650
|
+
},
|
|
651
|
+
decode(input: BinaryReader | Uint8Array, length?: number): Authentication {
|
|
652
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
653
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
654
|
+
const message = createBaseAuthentication();
|
|
655
|
+
while (reader.pos < end) {
|
|
656
|
+
const tag = reader.uint32();
|
|
657
|
+
switch (tag >>> 3) {
|
|
658
|
+
case 3:
|
|
659
|
+
message.rules.push(AuthenticationRule.decode(reader, reader.uint32()));
|
|
660
|
+
break;
|
|
661
|
+
case 4:
|
|
662
|
+
message.providers.push(AuthProvider.decode(reader, reader.uint32()));
|
|
663
|
+
break;
|
|
664
|
+
default:
|
|
665
|
+
reader.skipType(tag & 7);
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
return message;
|
|
670
|
+
},
|
|
671
|
+
fromPartial(object: Partial<Authentication>): Authentication {
|
|
672
|
+
const message = createBaseAuthentication();
|
|
673
|
+
message.rules = object.rules?.map(e => AuthenticationRule.fromPartial(e)) || [];
|
|
674
|
+
message.providers = object.providers?.map(e => AuthProvider.fromPartial(e)) || [];
|
|
675
|
+
return message;
|
|
676
|
+
},
|
|
677
|
+
fromAmino(object: AuthenticationAmino): Authentication {
|
|
678
|
+
const message = createBaseAuthentication();
|
|
679
|
+
message.rules = object.rules?.map(e => AuthenticationRule.fromAmino(e)) || [];
|
|
680
|
+
message.providers = object.providers?.map(e => AuthProvider.fromAmino(e)) || [];
|
|
681
|
+
return message;
|
|
682
|
+
},
|
|
683
|
+
toAmino(message: Authentication): AuthenticationAmino {
|
|
684
|
+
const obj: any = {};
|
|
685
|
+
if (message.rules) {
|
|
686
|
+
obj.rules = message.rules.map(e => e ? AuthenticationRule.toAmino(e) : undefined);
|
|
687
|
+
} else {
|
|
688
|
+
obj.rules = message.rules;
|
|
689
|
+
}
|
|
690
|
+
if (message.providers) {
|
|
691
|
+
obj.providers = message.providers.map(e => e ? AuthProvider.toAmino(e) : undefined);
|
|
692
|
+
} else {
|
|
693
|
+
obj.providers = message.providers;
|
|
694
|
+
}
|
|
695
|
+
return obj;
|
|
696
|
+
},
|
|
697
|
+
fromAminoMsg(object: AuthenticationAminoMsg): Authentication {
|
|
698
|
+
return Authentication.fromAmino(object.value);
|
|
699
|
+
},
|
|
700
|
+
fromProtoMsg(message: AuthenticationProtoMsg): Authentication {
|
|
701
|
+
return Authentication.decode(message.value);
|
|
702
|
+
},
|
|
703
|
+
toProto(message: Authentication): Uint8Array {
|
|
704
|
+
return Authentication.encode(message).finish();
|
|
705
|
+
},
|
|
706
|
+
toProtoMsg(message: Authentication): AuthenticationProtoMsg {
|
|
707
|
+
return {
|
|
708
|
+
typeUrl: "/google.api.Authentication",
|
|
709
|
+
value: Authentication.encode(message).finish()
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
};
|
|
713
|
+
function createBaseAuthenticationRule(): AuthenticationRule {
|
|
714
|
+
return {
|
|
715
|
+
selector: "",
|
|
716
|
+
oauth: undefined,
|
|
717
|
+
allowWithoutCredential: false,
|
|
718
|
+
requirements: []
|
|
719
|
+
};
|
|
720
|
+
}
|
|
721
|
+
export const AuthenticationRule = {
|
|
722
|
+
typeUrl: "/google.api.AuthenticationRule",
|
|
723
|
+
encode(message: AuthenticationRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
724
|
+
if (message.selector !== "") {
|
|
725
|
+
writer.uint32(10).string(message.selector);
|
|
726
|
+
}
|
|
727
|
+
if (message.oauth !== undefined) {
|
|
728
|
+
OAuthRequirements.encode(message.oauth, writer.uint32(18).fork()).ldelim();
|
|
729
|
+
}
|
|
730
|
+
if (message.allowWithoutCredential === true) {
|
|
731
|
+
writer.uint32(40).bool(message.allowWithoutCredential);
|
|
732
|
+
}
|
|
733
|
+
for (const v of message.requirements) {
|
|
734
|
+
AuthRequirement.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
735
|
+
}
|
|
736
|
+
return writer;
|
|
737
|
+
},
|
|
738
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AuthenticationRule {
|
|
739
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
740
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
741
|
+
const message = createBaseAuthenticationRule();
|
|
742
|
+
while (reader.pos < end) {
|
|
743
|
+
const tag = reader.uint32();
|
|
744
|
+
switch (tag >>> 3) {
|
|
745
|
+
case 1:
|
|
746
|
+
message.selector = reader.string();
|
|
747
|
+
break;
|
|
748
|
+
case 2:
|
|
749
|
+
message.oauth = OAuthRequirements.decode(reader, reader.uint32());
|
|
750
|
+
break;
|
|
751
|
+
case 5:
|
|
752
|
+
message.allowWithoutCredential = reader.bool();
|
|
753
|
+
break;
|
|
754
|
+
case 7:
|
|
755
|
+
message.requirements.push(AuthRequirement.decode(reader, reader.uint32()));
|
|
756
|
+
break;
|
|
757
|
+
default:
|
|
758
|
+
reader.skipType(tag & 7);
|
|
759
|
+
break;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return message;
|
|
763
|
+
},
|
|
764
|
+
fromPartial(object: Partial<AuthenticationRule>): AuthenticationRule {
|
|
765
|
+
const message = createBaseAuthenticationRule();
|
|
766
|
+
message.selector = object.selector ?? "";
|
|
767
|
+
message.oauth = object.oauth !== undefined && object.oauth !== null ? OAuthRequirements.fromPartial(object.oauth) : undefined;
|
|
768
|
+
message.allowWithoutCredential = object.allowWithoutCredential ?? false;
|
|
769
|
+
message.requirements = object.requirements?.map(e => AuthRequirement.fromPartial(e)) || [];
|
|
770
|
+
return message;
|
|
771
|
+
},
|
|
772
|
+
fromAmino(object: AuthenticationRuleAmino): AuthenticationRule {
|
|
773
|
+
const message = createBaseAuthenticationRule();
|
|
774
|
+
if (object.selector !== undefined && object.selector !== null) {
|
|
775
|
+
message.selector = object.selector;
|
|
776
|
+
}
|
|
777
|
+
if (object.oauth !== undefined && object.oauth !== null) {
|
|
778
|
+
message.oauth = OAuthRequirements.fromAmino(object.oauth);
|
|
779
|
+
}
|
|
780
|
+
if (object.allow_without_credential !== undefined && object.allow_without_credential !== null) {
|
|
781
|
+
message.allowWithoutCredential = object.allow_without_credential;
|
|
782
|
+
}
|
|
783
|
+
message.requirements = object.requirements?.map(e => AuthRequirement.fromAmino(e)) || [];
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
toAmino(message: AuthenticationRule): AuthenticationRuleAmino {
|
|
787
|
+
const obj: any = {};
|
|
788
|
+
obj.selector = message.selector === "" ? undefined : message.selector;
|
|
789
|
+
obj.oauth = message.oauth ? OAuthRequirements.toAmino(message.oauth) : undefined;
|
|
790
|
+
obj.allow_without_credential = message.allowWithoutCredential === false ? undefined : message.allowWithoutCredential;
|
|
791
|
+
if (message.requirements) {
|
|
792
|
+
obj.requirements = message.requirements.map(e => e ? AuthRequirement.toAmino(e) : undefined);
|
|
793
|
+
} else {
|
|
794
|
+
obj.requirements = message.requirements;
|
|
795
|
+
}
|
|
796
|
+
return obj;
|
|
797
|
+
},
|
|
798
|
+
fromAminoMsg(object: AuthenticationRuleAminoMsg): AuthenticationRule {
|
|
799
|
+
return AuthenticationRule.fromAmino(object.value);
|
|
800
|
+
},
|
|
801
|
+
fromProtoMsg(message: AuthenticationRuleProtoMsg): AuthenticationRule {
|
|
802
|
+
return AuthenticationRule.decode(message.value);
|
|
803
|
+
},
|
|
804
|
+
toProto(message: AuthenticationRule): Uint8Array {
|
|
805
|
+
return AuthenticationRule.encode(message).finish();
|
|
806
|
+
},
|
|
807
|
+
toProtoMsg(message: AuthenticationRule): AuthenticationRuleProtoMsg {
|
|
808
|
+
return {
|
|
809
|
+
typeUrl: "/google.api.AuthenticationRule",
|
|
810
|
+
value: AuthenticationRule.encode(message).finish()
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
function createBaseJwtLocation(): JwtLocation {
|
|
815
|
+
return {
|
|
816
|
+
header: undefined,
|
|
817
|
+
query: undefined,
|
|
818
|
+
cookie: undefined,
|
|
819
|
+
valuePrefix: ""
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
export const JwtLocation = {
|
|
823
|
+
typeUrl: "/google.api.JwtLocation",
|
|
824
|
+
encode(message: JwtLocation, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
825
|
+
if (message.header !== undefined) {
|
|
826
|
+
writer.uint32(10).string(message.header);
|
|
827
|
+
}
|
|
828
|
+
if (message.query !== undefined) {
|
|
829
|
+
writer.uint32(18).string(message.query);
|
|
830
|
+
}
|
|
831
|
+
if (message.cookie !== undefined) {
|
|
832
|
+
writer.uint32(34).string(message.cookie);
|
|
833
|
+
}
|
|
834
|
+
if (message.valuePrefix !== "") {
|
|
835
|
+
writer.uint32(26).string(message.valuePrefix);
|
|
836
|
+
}
|
|
837
|
+
return writer;
|
|
838
|
+
},
|
|
839
|
+
decode(input: BinaryReader | Uint8Array, length?: number): JwtLocation {
|
|
840
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
841
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
842
|
+
const message = createBaseJwtLocation();
|
|
843
|
+
while (reader.pos < end) {
|
|
844
|
+
const tag = reader.uint32();
|
|
845
|
+
switch (tag >>> 3) {
|
|
846
|
+
case 1:
|
|
847
|
+
message.header = reader.string();
|
|
848
|
+
break;
|
|
849
|
+
case 2:
|
|
850
|
+
message.query = reader.string();
|
|
851
|
+
break;
|
|
852
|
+
case 4:
|
|
853
|
+
message.cookie = reader.string();
|
|
854
|
+
break;
|
|
855
|
+
case 3:
|
|
856
|
+
message.valuePrefix = reader.string();
|
|
857
|
+
break;
|
|
858
|
+
default:
|
|
859
|
+
reader.skipType(tag & 7);
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
return message;
|
|
864
|
+
},
|
|
865
|
+
fromPartial(object: Partial<JwtLocation>): JwtLocation {
|
|
866
|
+
const message = createBaseJwtLocation();
|
|
867
|
+
message.header = object.header ?? undefined;
|
|
868
|
+
message.query = object.query ?? undefined;
|
|
869
|
+
message.cookie = object.cookie ?? undefined;
|
|
870
|
+
message.valuePrefix = object.valuePrefix ?? "";
|
|
871
|
+
return message;
|
|
872
|
+
},
|
|
873
|
+
fromAmino(object: JwtLocationAmino): JwtLocation {
|
|
874
|
+
const message = createBaseJwtLocation();
|
|
875
|
+
if (object.header !== undefined && object.header !== null) {
|
|
876
|
+
message.header = object.header;
|
|
877
|
+
}
|
|
878
|
+
if (object.query !== undefined && object.query !== null) {
|
|
879
|
+
message.query = object.query;
|
|
880
|
+
}
|
|
881
|
+
if (object.cookie !== undefined && object.cookie !== null) {
|
|
882
|
+
message.cookie = object.cookie;
|
|
883
|
+
}
|
|
884
|
+
if (object.value_prefix !== undefined && object.value_prefix !== null) {
|
|
885
|
+
message.valuePrefix = object.value_prefix;
|
|
886
|
+
}
|
|
887
|
+
return message;
|
|
888
|
+
},
|
|
889
|
+
toAmino(message: JwtLocation): JwtLocationAmino {
|
|
890
|
+
const obj: any = {};
|
|
891
|
+
obj.header = message.header === null ? undefined : message.header;
|
|
892
|
+
obj.query = message.query === null ? undefined : message.query;
|
|
893
|
+
obj.cookie = message.cookie === null ? undefined : message.cookie;
|
|
894
|
+
obj.value_prefix = message.valuePrefix === "" ? undefined : message.valuePrefix;
|
|
895
|
+
return obj;
|
|
896
|
+
},
|
|
897
|
+
fromAminoMsg(object: JwtLocationAminoMsg): JwtLocation {
|
|
898
|
+
return JwtLocation.fromAmino(object.value);
|
|
899
|
+
},
|
|
900
|
+
fromProtoMsg(message: JwtLocationProtoMsg): JwtLocation {
|
|
901
|
+
return JwtLocation.decode(message.value);
|
|
902
|
+
},
|
|
903
|
+
toProto(message: JwtLocation): Uint8Array {
|
|
904
|
+
return JwtLocation.encode(message).finish();
|
|
905
|
+
},
|
|
906
|
+
toProtoMsg(message: JwtLocation): JwtLocationProtoMsg {
|
|
907
|
+
return {
|
|
908
|
+
typeUrl: "/google.api.JwtLocation",
|
|
909
|
+
value: JwtLocation.encode(message).finish()
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
function createBaseAuthProvider(): AuthProvider {
|
|
914
|
+
return {
|
|
915
|
+
id: "",
|
|
916
|
+
issuer: "",
|
|
917
|
+
jwksUri: "",
|
|
918
|
+
audiences: "",
|
|
919
|
+
authorizationUrl: "",
|
|
920
|
+
jwtLocations: []
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
export const AuthProvider = {
|
|
924
|
+
typeUrl: "/google.api.AuthProvider",
|
|
925
|
+
encode(message: AuthProvider, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
926
|
+
if (message.id !== "") {
|
|
927
|
+
writer.uint32(10).string(message.id);
|
|
928
|
+
}
|
|
929
|
+
if (message.issuer !== "") {
|
|
930
|
+
writer.uint32(18).string(message.issuer);
|
|
931
|
+
}
|
|
932
|
+
if (message.jwksUri !== "") {
|
|
933
|
+
writer.uint32(26).string(message.jwksUri);
|
|
934
|
+
}
|
|
935
|
+
if (message.audiences !== "") {
|
|
936
|
+
writer.uint32(34).string(message.audiences);
|
|
937
|
+
}
|
|
938
|
+
if (message.authorizationUrl !== "") {
|
|
939
|
+
writer.uint32(42).string(message.authorizationUrl);
|
|
940
|
+
}
|
|
941
|
+
for (const v of message.jwtLocations) {
|
|
942
|
+
JwtLocation.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
943
|
+
}
|
|
944
|
+
return writer;
|
|
945
|
+
},
|
|
946
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AuthProvider {
|
|
947
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
948
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
949
|
+
const message = createBaseAuthProvider();
|
|
950
|
+
while (reader.pos < end) {
|
|
951
|
+
const tag = reader.uint32();
|
|
952
|
+
switch (tag >>> 3) {
|
|
953
|
+
case 1:
|
|
954
|
+
message.id = reader.string();
|
|
955
|
+
break;
|
|
956
|
+
case 2:
|
|
957
|
+
message.issuer = reader.string();
|
|
958
|
+
break;
|
|
959
|
+
case 3:
|
|
960
|
+
message.jwksUri = reader.string();
|
|
961
|
+
break;
|
|
962
|
+
case 4:
|
|
963
|
+
message.audiences = reader.string();
|
|
964
|
+
break;
|
|
965
|
+
case 5:
|
|
966
|
+
message.authorizationUrl = reader.string();
|
|
967
|
+
break;
|
|
968
|
+
case 6:
|
|
969
|
+
message.jwtLocations.push(JwtLocation.decode(reader, reader.uint32()));
|
|
970
|
+
break;
|
|
971
|
+
default:
|
|
972
|
+
reader.skipType(tag & 7);
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
return message;
|
|
977
|
+
},
|
|
978
|
+
fromPartial(object: Partial<AuthProvider>): AuthProvider {
|
|
979
|
+
const message = createBaseAuthProvider();
|
|
980
|
+
message.id = object.id ?? "";
|
|
981
|
+
message.issuer = object.issuer ?? "";
|
|
982
|
+
message.jwksUri = object.jwksUri ?? "";
|
|
983
|
+
message.audiences = object.audiences ?? "";
|
|
984
|
+
message.authorizationUrl = object.authorizationUrl ?? "";
|
|
985
|
+
message.jwtLocations = object.jwtLocations?.map(e => JwtLocation.fromPartial(e)) || [];
|
|
986
|
+
return message;
|
|
987
|
+
},
|
|
988
|
+
fromAmino(object: AuthProviderAmino): AuthProvider {
|
|
989
|
+
const message = createBaseAuthProvider();
|
|
990
|
+
if (object.id !== undefined && object.id !== null) {
|
|
991
|
+
message.id = object.id;
|
|
992
|
+
}
|
|
993
|
+
if (object.issuer !== undefined && object.issuer !== null) {
|
|
994
|
+
message.issuer = object.issuer;
|
|
995
|
+
}
|
|
996
|
+
if (object.jwks_uri !== undefined && object.jwks_uri !== null) {
|
|
997
|
+
message.jwksUri = object.jwks_uri;
|
|
998
|
+
}
|
|
999
|
+
if (object.audiences !== undefined && object.audiences !== null) {
|
|
1000
|
+
message.audiences = object.audiences;
|
|
1001
|
+
}
|
|
1002
|
+
if (object.authorization_url !== undefined && object.authorization_url !== null) {
|
|
1003
|
+
message.authorizationUrl = object.authorization_url;
|
|
1004
|
+
}
|
|
1005
|
+
message.jwtLocations = object.jwt_locations?.map(e => JwtLocation.fromAmino(e)) || [];
|
|
1006
|
+
return message;
|
|
1007
|
+
},
|
|
1008
|
+
toAmino(message: AuthProvider): AuthProviderAmino {
|
|
1009
|
+
const obj: any = {};
|
|
1010
|
+
obj.id = message.id === "" ? undefined : message.id;
|
|
1011
|
+
obj.issuer = message.issuer === "" ? undefined : message.issuer;
|
|
1012
|
+
obj.jwks_uri = message.jwksUri === "" ? undefined : message.jwksUri;
|
|
1013
|
+
obj.audiences = message.audiences === "" ? undefined : message.audiences;
|
|
1014
|
+
obj.authorization_url = message.authorizationUrl === "" ? undefined : message.authorizationUrl;
|
|
1015
|
+
if (message.jwtLocations) {
|
|
1016
|
+
obj.jwt_locations = message.jwtLocations.map(e => e ? JwtLocation.toAmino(e) : undefined);
|
|
1017
|
+
} else {
|
|
1018
|
+
obj.jwt_locations = message.jwtLocations;
|
|
1019
|
+
}
|
|
1020
|
+
return obj;
|
|
1021
|
+
},
|
|
1022
|
+
fromAminoMsg(object: AuthProviderAminoMsg): AuthProvider {
|
|
1023
|
+
return AuthProvider.fromAmino(object.value);
|
|
1024
|
+
},
|
|
1025
|
+
fromProtoMsg(message: AuthProviderProtoMsg): AuthProvider {
|
|
1026
|
+
return AuthProvider.decode(message.value);
|
|
1027
|
+
},
|
|
1028
|
+
toProto(message: AuthProvider): Uint8Array {
|
|
1029
|
+
return AuthProvider.encode(message).finish();
|
|
1030
|
+
},
|
|
1031
|
+
toProtoMsg(message: AuthProvider): AuthProviderProtoMsg {
|
|
1032
|
+
return {
|
|
1033
|
+
typeUrl: "/google.api.AuthProvider",
|
|
1034
|
+
value: AuthProvider.encode(message).finish()
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
function createBaseOAuthRequirements(): OAuthRequirements {
|
|
1039
|
+
return {
|
|
1040
|
+
canonicalScopes: ""
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
export const OAuthRequirements = {
|
|
1044
|
+
typeUrl: "/google.api.OAuthRequirements",
|
|
1045
|
+
encode(message: OAuthRequirements, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1046
|
+
if (message.canonicalScopes !== "") {
|
|
1047
|
+
writer.uint32(10).string(message.canonicalScopes);
|
|
1048
|
+
}
|
|
1049
|
+
return writer;
|
|
1050
|
+
},
|
|
1051
|
+
decode(input: BinaryReader | Uint8Array, length?: number): OAuthRequirements {
|
|
1052
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1053
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1054
|
+
const message = createBaseOAuthRequirements();
|
|
1055
|
+
while (reader.pos < end) {
|
|
1056
|
+
const tag = reader.uint32();
|
|
1057
|
+
switch (tag >>> 3) {
|
|
1058
|
+
case 1:
|
|
1059
|
+
message.canonicalScopes = reader.string();
|
|
1060
|
+
break;
|
|
1061
|
+
default:
|
|
1062
|
+
reader.skipType(tag & 7);
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
return message;
|
|
1067
|
+
},
|
|
1068
|
+
fromPartial(object: Partial<OAuthRequirements>): OAuthRequirements {
|
|
1069
|
+
const message = createBaseOAuthRequirements();
|
|
1070
|
+
message.canonicalScopes = object.canonicalScopes ?? "";
|
|
1071
|
+
return message;
|
|
1072
|
+
},
|
|
1073
|
+
fromAmino(object: OAuthRequirementsAmino): OAuthRequirements {
|
|
1074
|
+
const message = createBaseOAuthRequirements();
|
|
1075
|
+
if (object.canonical_scopes !== undefined && object.canonical_scopes !== null) {
|
|
1076
|
+
message.canonicalScopes = object.canonical_scopes;
|
|
1077
|
+
}
|
|
1078
|
+
return message;
|
|
1079
|
+
},
|
|
1080
|
+
toAmino(message: OAuthRequirements): OAuthRequirementsAmino {
|
|
1081
|
+
const obj: any = {};
|
|
1082
|
+
obj.canonical_scopes = message.canonicalScopes === "" ? undefined : message.canonicalScopes;
|
|
1083
|
+
return obj;
|
|
1084
|
+
},
|
|
1085
|
+
fromAminoMsg(object: OAuthRequirementsAminoMsg): OAuthRequirements {
|
|
1086
|
+
return OAuthRequirements.fromAmino(object.value);
|
|
1087
|
+
},
|
|
1088
|
+
fromProtoMsg(message: OAuthRequirementsProtoMsg): OAuthRequirements {
|
|
1089
|
+
return OAuthRequirements.decode(message.value);
|
|
1090
|
+
},
|
|
1091
|
+
toProto(message: OAuthRequirements): Uint8Array {
|
|
1092
|
+
return OAuthRequirements.encode(message).finish();
|
|
1093
|
+
},
|
|
1094
|
+
toProtoMsg(message: OAuthRequirements): OAuthRequirementsProtoMsg {
|
|
1095
|
+
return {
|
|
1096
|
+
typeUrl: "/google.api.OAuthRequirements",
|
|
1097
|
+
value: OAuthRequirements.encode(message).finish()
|
|
1098
|
+
};
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
function createBaseAuthRequirement(): AuthRequirement {
|
|
1102
|
+
return {
|
|
1103
|
+
providerId: "",
|
|
1104
|
+
audiences: ""
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
export const AuthRequirement = {
|
|
1108
|
+
typeUrl: "/google.api.AuthRequirement",
|
|
1109
|
+
encode(message: AuthRequirement, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
|
|
1110
|
+
if (message.providerId !== "") {
|
|
1111
|
+
writer.uint32(10).string(message.providerId);
|
|
1112
|
+
}
|
|
1113
|
+
if (message.audiences !== "") {
|
|
1114
|
+
writer.uint32(18).string(message.audiences);
|
|
1115
|
+
}
|
|
1116
|
+
return writer;
|
|
1117
|
+
},
|
|
1118
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AuthRequirement {
|
|
1119
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1120
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1121
|
+
const message = createBaseAuthRequirement();
|
|
1122
|
+
while (reader.pos < end) {
|
|
1123
|
+
const tag = reader.uint32();
|
|
1124
|
+
switch (tag >>> 3) {
|
|
1125
|
+
case 1:
|
|
1126
|
+
message.providerId = reader.string();
|
|
1127
|
+
break;
|
|
1128
|
+
case 2:
|
|
1129
|
+
message.audiences = reader.string();
|
|
1130
|
+
break;
|
|
1131
|
+
default:
|
|
1132
|
+
reader.skipType(tag & 7);
|
|
1133
|
+
break;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
return message;
|
|
1137
|
+
},
|
|
1138
|
+
fromPartial(object: Partial<AuthRequirement>): AuthRequirement {
|
|
1139
|
+
const message = createBaseAuthRequirement();
|
|
1140
|
+
message.providerId = object.providerId ?? "";
|
|
1141
|
+
message.audiences = object.audiences ?? "";
|
|
1142
|
+
return message;
|
|
1143
|
+
},
|
|
1144
|
+
fromAmino(object: AuthRequirementAmino): AuthRequirement {
|
|
1145
|
+
const message = createBaseAuthRequirement();
|
|
1146
|
+
if (object.provider_id !== undefined && object.provider_id !== null) {
|
|
1147
|
+
message.providerId = object.provider_id;
|
|
1148
|
+
}
|
|
1149
|
+
if (object.audiences !== undefined && object.audiences !== null) {
|
|
1150
|
+
message.audiences = object.audiences;
|
|
1151
|
+
}
|
|
1152
|
+
return message;
|
|
1153
|
+
},
|
|
1154
|
+
toAmino(message: AuthRequirement): AuthRequirementAmino {
|
|
1155
|
+
const obj: any = {};
|
|
1156
|
+
obj.provider_id = message.providerId === "" ? undefined : message.providerId;
|
|
1157
|
+
obj.audiences = message.audiences === "" ? undefined : message.audiences;
|
|
1158
|
+
return obj;
|
|
1159
|
+
},
|
|
1160
|
+
fromAminoMsg(object: AuthRequirementAminoMsg): AuthRequirement {
|
|
1161
|
+
return AuthRequirement.fromAmino(object.value);
|
|
1162
|
+
},
|
|
1163
|
+
fromProtoMsg(message: AuthRequirementProtoMsg): AuthRequirement {
|
|
1164
|
+
return AuthRequirement.decode(message.value);
|
|
1165
|
+
},
|
|
1166
|
+
toProto(message: AuthRequirement): Uint8Array {
|
|
1167
|
+
return AuthRequirement.encode(message).finish();
|
|
1168
|
+
},
|
|
1169
|
+
toProtoMsg(message: AuthRequirement): AuthRequirementProtoMsg {
|
|
1170
|
+
return {
|
|
1171
|
+
typeUrl: "/google.api.AuthRequirement",
|
|
1172
|
+
value: AuthRequirement.encode(message).finish()
|
|
1173
|
+
};
|
|
1174
|
+
}
|
|
1175
|
+
};
|