carbon-js-sdk 0.7.13 → 0.7.16
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/lib/CarbonSDK.d.ts +2 -5
- package/lib/CarbonSDK.js +11 -44
- package/lib/clients/CarbonQueryClient.d.ts +6 -2
- package/lib/clients/CarbonQueryClient.js +62 -58
- package/lib/clients/GasFee.d.ts +6 -6
- package/lib/clients/GasFee.js +10 -17
- package/lib/clients/InsightsQueryClient.d.ts +0 -10
- package/lib/clients/InsightsQueryClient.js +0 -34
- package/lib/clients/TokenClient.d.ts +0 -1
- package/lib/clients/TokenClient.js +19 -14
- package/lib/codec/Switcheo/carbon/book/book.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/book/book.js +18 -18
- package/lib/codec/Switcheo/carbon/book/event.d.ts +21 -2
- package/lib/codec/Switcheo/carbon/book/event.js +109 -27
- package/lib/codec/Switcheo/carbon/book/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/book/export.js +3 -1
- package/lib/codec/Switcheo/carbon/book/legacy.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/book/legacy.js +9 -9
- package/lib/codec/Switcheo/carbon/book/query.d.ts +15 -9
- package/lib/codec/Switcheo/carbon/book/query.js +45 -33
- package/lib/codec/Switcheo/carbon/broker/amm.d.ts +4 -6
- package/lib/codec/Switcheo/carbon/broker/amm.js +61 -75
- package/lib/codec/Switcheo/carbon/broker/candlestick.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/broker/candlestick.js +9 -9
- package/lib/codec/Switcheo/carbon/broker/event.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/broker/event.js +18 -18
- package/lib/codec/Switcheo/carbon/broker/query.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/broker/query.js +27 -27
- package/lib/codec/Switcheo/carbon/broker/tx.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/broker/tx.js +9 -9
- package/lib/codec/Switcheo/carbon/ccm/export.d.ts +3 -3
- package/lib/codec/Switcheo/carbon/ccm/export.js +8 -3
- package/lib/codec/Switcheo/carbon/ccm/genesis.d.ts +9 -3
- package/lib/codec/Switcheo/carbon/ccm/genesis.js +6 -6
- package/lib/codec/Switcheo/carbon/ccm/{ccm.d.ts → params.d.ts} +11 -0
- package/lib/codec/Switcheo/carbon/ccm/params.js +107 -0
- package/lib/codec/Switcheo/carbon/ccm/query.d.ts +32 -2
- package/lib/codec/Switcheo/carbon/ccm/query.js +88 -1
- package/lib/codec/Switcheo/carbon/ccm/tx.d.ts +42 -0
- package/lib/codec/Switcheo/carbon/ccm/tx.js +103 -1
- package/lib/codec/Switcheo/carbon/cdp/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/cdp/export.js +7 -4
- package/lib/codec/Switcheo/carbon/cdp/params.d.ts +35 -5
- package/lib/codec/Switcheo/carbon/cdp/params.js +196 -1
- package/lib/codec/Switcheo/carbon/cdp/tx.d.ts +43 -2
- package/lib/codec/Switcheo/carbon/cdp/tx.js +112 -10
- package/lib/codec/Switcheo/carbon/coin/group.d.ts +6 -3
- package/lib/codec/Switcheo/carbon/coin/token.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/coin/token.js +18 -18
- package/lib/codec/Switcheo/carbon/coin/tx.d.ts +3 -2
- package/lib/codec/Switcheo/carbon/erc20/erc20.d.ts +4 -1
- package/lib/codec/Switcheo/carbon/erc20/events.d.ts +8 -2
- package/lib/codec/Switcheo/carbon/erc20/export.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/erc20/export.js +4 -3
- package/lib/codec/Switcheo/carbon/erc20/genesis.d.ts +1 -17
- package/lib/codec/Switcheo/carbon/erc20/genesis.js +7 -65
- package/lib/codec/Switcheo/carbon/erc20/params.d.ts +41 -0
- package/lib/codec/Switcheo/carbon/erc20/params.js +133 -0
- package/lib/codec/Switcheo/carbon/erc20/query.d.ts +5 -2
- package/lib/codec/Switcheo/carbon/erc20/query.js +6 -6
- package/lib/codec/Switcheo/carbon/erc20/tx.d.ts +36 -17
- package/lib/codec/Switcheo/carbon/erc20/tx.js +8 -6
- package/lib/codec/Switcheo/carbon/evmcontract/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/evmcontract/export.js +2 -3
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.d.ts +10 -4
- package/lib/codec/Switcheo/carbon/evmcontract/genesis.js +54 -4
- package/lib/codec/Switcheo/carbon/evmcontract/params.d.ts +10 -0
- package/lib/codec/Switcheo/carbon/evmcontract/params.js +50 -1
- package/lib/codec/Switcheo/carbon/evmcontract/query.d.ts +98 -0
- package/lib/codec/Switcheo/carbon/evmcontract/query.js +374 -1
- package/lib/codec/Switcheo/carbon/evmcontract/tx.d.ts +77 -0
- package/lib/codec/Switcheo/carbon/evmcontract/tx.js +327 -1
- package/lib/codec/Switcheo/carbon/evmmerge/offchain.d.ts +4 -1
- package/lib/codec/Switcheo/carbon/evmmerge/query.d.ts +16 -4
- package/lib/codec/Switcheo/carbon/evmmerge/tx.d.ts +8 -2
- package/lib/codec/Switcheo/carbon/headersync/genesis.d.ts +8 -2
- package/lib/codec/Switcheo/carbon/inflation/inflation.d.ts +4 -1
- package/lib/codec/Switcheo/carbon/insurance/event.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/insurance/tx.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/insurance/tx.js +9 -9
- package/lib/codec/Switcheo/carbon/leverage/event.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/leverage/event.js +9 -9
- package/lib/codec/Switcheo/carbon/leverage/leverage.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/leverage/leverage.js +9 -9
- package/lib/codec/Switcheo/carbon/leverage/query.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/leverage/query.js +9 -9
- package/lib/codec/Switcheo/carbon/leverage/tx.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/leverage/tx.js +9 -9
- package/lib/codec/Switcheo/carbon/liquidation/event.d.ts +23 -0
- package/lib/codec/Switcheo/carbon/liquidation/event.js +154 -0
- package/lib/codec/Switcheo/carbon/liquidation/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/liquidation/export.js +3 -5
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/liquidation/outstanding_position.js +9 -9
- package/lib/codec/Switcheo/carbon/liquidation/query.d.ts +1 -26
- package/lib/codec/Switcheo/carbon/liquidation/query.js +10 -97
- package/lib/codec/Switcheo/carbon/liquiditypool/export.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/liquiditypool/export.js +11 -4
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/genesis.js +7 -6
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.d.ts +22 -13
- package/lib/codec/Switcheo/carbon/liquiditypool/liquiditypool.js +223 -85
- package/lib/codec/{perpsliquidity → Switcheo/carbon/liquiditypool}/params.d.ts +14 -11
- package/lib/codec/Switcheo/carbon/liquiditypool/params.js +149 -0
- package/lib/codec/Switcheo/carbon/liquiditypool/query.d.ts +24 -1
- package/lib/codec/Switcheo/carbon/liquiditypool/query.js +94 -6
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.d.ts +46 -4
- package/lib/codec/Switcheo/carbon/liquiditypool/tx.js +157 -58
- package/lib/codec/Switcheo/carbon/market/event.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/market/event.js +13 -11
- package/lib/codec/Switcheo/carbon/market/export.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/market/export.js +14 -4
- package/lib/codec/Switcheo/carbon/market/fee.d.ts +11 -5
- package/lib/codec/Switcheo/carbon/market/genesis.d.ts +3 -2
- package/lib/codec/Switcheo/carbon/market/genesis.js +18 -19
- package/lib/codec/Switcheo/carbon/market/market.d.ts +9 -46
- package/lib/codec/Switcheo/carbon/market/market.js +22 -415
- package/lib/codec/Switcheo/carbon/market/params.d.ts +83 -0
- package/lib/codec/Switcheo/carbon/market/params.js +791 -0
- package/lib/codec/Switcheo/carbon/market/query.d.ts +45 -7
- package/lib/codec/Switcheo/carbon/market/query.js +271 -45
- package/lib/codec/Switcheo/carbon/market/tx.d.ts +91 -4
- package/lib/codec/Switcheo/carbon/market/tx.js +356 -20
- package/lib/codec/Switcheo/carbon/marketstats/export.d.ts +1 -2
- package/lib/codec/Switcheo/carbon/marketstats/export.js +1 -5
- package/lib/codec/Switcheo/carbon/marketstats/genesis.d.ts +4 -7
- package/lib/codec/Switcheo/carbon/marketstats/genesis.js +4 -21
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/marketstats/marketstats.js +9 -9
- package/lib/codec/Switcheo/carbon/marketstats/query.d.ts +0 -26
- package/lib/codec/Switcheo/carbon/marketstats/query.js +1 -88
- package/lib/codec/Switcheo/carbon/misc/message.d.ts +2 -0
- package/lib/codec/Switcheo/carbon/misc/message.js +30 -1
- package/lib/codec/Switcheo/carbon/misc/trade.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/misc/trade.js +9 -9
- package/lib/codec/Switcheo/carbon/oracle/export.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/oracle/export.js +15 -2
- package/lib/codec/Switcheo/carbon/oracle/genesis.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/oracle/genesis.js +6 -5
- package/lib/codec/Switcheo/carbon/oracle/oracle.d.ts +0 -20
- package/lib/codec/Switcheo/carbon/oracle/oracle.js +1 -176
- package/lib/codec/Switcheo/carbon/oracle/params.d.ts +45 -0
- package/lib/codec/Switcheo/carbon/oracle/params.js +362 -0
- package/lib/codec/Switcheo/carbon/oracle/query.d.ts +25 -3
- package/lib/codec/Switcheo/carbon/oracle/query.js +126 -8
- package/lib/codec/Switcheo/carbon/oracle/tx.d.ts +114 -0
- package/lib/codec/Switcheo/carbon/oracle/tx.js +541 -1
- package/lib/codec/Switcheo/carbon/order/export.d.ts +5 -3
- package/lib/codec/Switcheo/carbon/order/export.js +14 -5
- package/lib/codec/Switcheo/carbon/order/genesis.d.ts +12 -11
- package/lib/codec/Switcheo/carbon/order/genesis.js +30 -29
- package/lib/codec/Switcheo/carbon/order/order.d.ts +16 -26
- package/lib/codec/Switcheo/carbon/order/order.js +39 -67
- package/lib/codec/Switcheo/carbon/order/params.d.ts +28 -0
- package/lib/codec/Switcheo/carbon/order/params.js +109 -0
- package/lib/codec/Switcheo/carbon/order/query.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/order/query.js +24 -23
- package/lib/codec/Switcheo/carbon/order/tx.d.ts +44 -2
- package/lib/codec/Switcheo/carbon/order/tx.js +121 -19
- package/lib/codec/Switcheo/carbon/perpspool/event.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/perpspool/event.js +9 -9
- package/lib/codec/Switcheo/carbon/perpspool/export.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/perpspool/export.js +5 -4
- package/lib/codec/Switcheo/carbon/perpspool/market.d.ts +20 -7
- package/lib/codec/Switcheo/carbon/perpspool/market.js +9 -9
- package/lib/codec/Switcheo/carbon/perpspool/params.d.ts +20 -1
- package/lib/codec/Switcheo/carbon/perpspool/params.js +175 -1
- package/lib/codec/Switcheo/carbon/perpspool/pool.d.ts +8 -2
- package/lib/codec/Switcheo/carbon/perpspool/tx.d.ts +39 -26
- package/lib/codec/Switcheo/carbon/perpspool/tx.js +50 -129
- package/lib/codec/Switcheo/carbon/position/evm_hooks.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/position/evm_hooks.js +9 -9
- package/lib/codec/Switcheo/carbon/position/export.d.ts +1 -0
- package/lib/codec/Switcheo/carbon/position/export.js +4 -1
- package/lib/codec/Switcheo/carbon/position/position.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/position/position.js +18 -18
- package/lib/codec/Switcheo/carbon/position/query.d.ts +2 -2
- package/lib/codec/Switcheo/carbon/position/query.js +18 -18
- package/lib/codec/Switcheo/carbon/position/tx.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/position/tx.js +9 -9
- package/lib/codec/Switcheo/carbon/pricing/event.d.ts +10 -0
- package/lib/codec/Switcheo/carbon/pricing/event.js +51 -1
- package/lib/codec/Switcheo/carbon/pricing/export.d.ts +4 -3
- package/lib/codec/Switcheo/carbon/pricing/export.js +11 -2
- package/lib/codec/Switcheo/carbon/pricing/genesis.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/pricing/genesis.js +6 -5
- package/lib/codec/Switcheo/carbon/pricing/params.d.ts +35 -0
- package/lib/codec/Switcheo/carbon/pricing/params.js +212 -0
- package/lib/codec/Switcheo/carbon/pricing/pricing.d.ts +1 -16
- package/lib/codec/Switcheo/carbon/pricing/pricing.js +10 -109
- package/lib/codec/Switcheo/carbon/pricing/proposal.d.ts +1 -1
- package/lib/codec/Switcheo/carbon/pricing/proposal.js +9 -9
- package/lib/codec/Switcheo/carbon/pricing/query.d.ts +3 -2
- package/lib/codec/Switcheo/carbon/pricing/query.js +15 -14
- package/lib/codec/Switcheo/carbon/pricing/tx.d.ts +89 -0
- package/lib/codec/Switcheo/carbon/pricing/tx.js +323 -1
- package/lib/codec/Switcheo/carbon/profile/query.d.ts +0 -1
- package/lib/codec/Switcheo/carbon/profile/query.js +1 -14
- package/lib/codec/Switcheo/carbon/subaccount/export.d.ts +3 -2
- package/lib/codec/Switcheo/carbon/subaccount/export.js +6 -2
- package/lib/codec/Switcheo/carbon/subaccount/genesis.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/subaccount/genesis.js +6 -5
- package/lib/codec/Switcheo/carbon/subaccount/params.d.ts +29 -0
- package/lib/codec/Switcheo/carbon/subaccount/params.js +119 -0
- package/lib/codec/Switcheo/carbon/subaccount/query.d.ts +2 -1
- package/lib/codec/Switcheo/carbon/subaccount/query.js +6 -5
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.d.ts +0 -11
- package/lib/codec/Switcheo/carbon/subaccount/subaccount.js +1 -54
- package/lib/codec/Switcheo/carbon/subaccount/tx.d.ts +42 -0
- package/lib/codec/Switcheo/carbon/subaccount/tx.js +103 -1
- package/lib/codec/adl/genesis.d.ts +3 -3
- package/lib/codec/admin/genesis.d.ts +3 -3
- package/lib/codec/admin/query.d.ts +6 -6
- package/lib/codec/admin/tx.d.ts +6 -6
- package/lib/codec/alliance/alliance/export.d.ts +1 -1
- package/lib/codec/alliance/alliance/export.js +6 -5
- package/lib/codec/alliance/alliance/gov.d.ts +2 -0
- package/lib/codec/alliance/alliance/gov.js +20 -0
- package/lib/codec/alliance/alliance/params.d.ts +1 -0
- package/lib/codec/alliance/alliance/params.js +14 -2
- package/lib/codec/alliance/alliance/query.d.ts +61 -73
- package/lib/codec/alliance/alliance/query.js +262 -250
- package/lib/codec/alliance/alliance/tx.d.ts +2 -0
- package/lib/codec/alliance/alliance/tx.js +20 -0
- package/lib/codec/alliance/alliance/unbonding.d.ts +2 -0
- package/lib/codec/alliance/alliance/unbonding.js +18 -2
- package/lib/codec/alliance/alliance.d.ts +5 -5
- package/lib/codec/alliance/delegations.d.ts +8 -8
- package/lib/codec/alliance/events.d.ts +6 -6
- package/lib/codec/alliance/genesis.d.ts +7 -7
- package/lib/codec/alliance/gov.d.ts +5 -5
- package/lib/codec/alliance/params.d.ts +4 -4
- package/lib/codec/alliance/query.d.ts +24 -24
- package/lib/codec/alliance/tx.d.ts +10 -10
- package/lib/codec/bank/event.d.ts +7 -7
- package/lib/codec/bank/genesis.d.ts +3 -3
- package/lib/codec/bank/query.d.ts +6 -6
- package/lib/codec/book/book.d.ts +19 -7
- package/lib/codec/book/book.js +80 -13
- package/lib/codec/book/event.d.ts +3 -3
- package/lib/codec/book/genesis.d.ts +3 -3
- package/lib/codec/book/legacy.d.ts +3 -3
- package/lib/codec/book/query.d.ts +56 -9
- package/lib/codec/book/query.js +224 -1
- package/lib/codec/broker/amm.d.ts +37 -9
- package/lib/codec/broker/amm.js +181 -6
- package/lib/codec/broker/candlestick.d.ts +3 -3
- package/lib/codec/broker/event.d.ts +16 -3
- package/lib/codec/broker/event.js +89 -1
- package/lib/codec/broker/genesis.d.ts +6 -5
- package/lib/codec/broker/genesis.js +26 -11
- package/lib/codec/broker/incoming_liquidations.d.ts +3 -3
- package/lib/codec/broker/pagination.d.ts +3 -3
- package/lib/codec/broker/query.d.ts +8 -8
- package/lib/codec/broker/tx.d.ts +5 -5
- package/lib/codec/btcx/denom_cross_chain_info.d.ts +3 -3
- package/lib/codec/btcx/denom_info.d.ts +3 -3
- package/lib/codec/btcx/genesis.d.ts +3 -3
- package/lib/codec/btcx/query.d.ts +6 -6
- package/lib/codec/btcx/tx.d.ts +8 -8
- package/lib/codec/carbon-models.d.ts +2 -1
- package/lib/codec/carbon-models.js +3 -2
- package/lib/codec/ccm/ccm.d.ts +3 -3
- package/lib/codec/ccm/genesis.d.ts +7 -7
- package/lib/codec/ccm/query.d.ts +4 -4
- package/lib/codec/ccm/tx.d.ts +8 -8
- package/lib/codec/cdp/asset_params.d.ts +5 -5
- package/lib/codec/cdp/cdp_liquidations.d.ts +3 -3
- package/lib/codec/cdp/debt_info.d.ts +3 -3
- package/lib/codec/cdp/e_mode_category.d.ts +3 -3
- package/lib/codec/cdp/event.d.ts +50 -43
- package/lib/codec/cdp/event.js +163 -81
- package/lib/codec/cdp/genesis.d.ts +10 -10
- package/lib/codec/cdp/params.d.ts +5 -7
- package/lib/codec/cdp/params.js +20 -30
- package/lib/codec/cdp/query.d.ts +73 -52
- package/lib/codec/cdp/query.js +104 -17
- package/lib/codec/cdp/rate_strategy_params.d.ts +3 -3
- package/lib/codec/cdp/reward_scheme.d.ts +6 -6
- package/lib/codec/cdp/stablecoin_debt_info.d.ts +3 -3
- package/lib/codec/cdp/stablecoin_interest_info.d.ts +3 -3
- package/lib/codec/cdp/tx.d.ts +123 -101
- package/lib/codec/cdp/tx.js +115 -31
- package/lib/codec/coin/bridge.d.ts +3 -3
- package/lib/codec/coin/event.d.ts +14 -14
- package/lib/codec/coin/genesis.d.ts +4 -4
- package/lib/codec/coin/group.d.ts +5 -5
- package/lib/codec/coin/proposal.d.ts +3 -3
- package/lib/codec/coin/query.d.ts +26 -26
- package/lib/codec/coin/token.d.ts +10 -9
- package/lib/codec/coin/token.js +19 -0
- package/lib/codec/coin/tx.d.ts +48 -48
- package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +3 -3
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.d.ts +18 -0
- package/lib/codec/cosmos/app/runtime/v1alpha1/module.js +50 -2
- package/lib/codec/cosmos/app/v1alpha1/config.d.ts +26 -0
- package/lib/codec/cosmos/app/v1alpha1/config.js +94 -4
- package/lib/codec/cosmos/app/v1alpha1/module.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/auth.d.ts +21 -0
- package/lib/codec/cosmos/auth/v1beta1/auth.js +92 -1
- package/lib/codec/cosmos/auth/v1beta1/export.d.ts +3 -2
- package/lib/codec/cosmos/auth/v1beta1/export.js +7 -1
- package/lib/codec/cosmos/auth/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/auth/v1beta1/query.d.ts +54 -2
- package/lib/codec/cosmos/auth/v1beta1/query.js +120 -2
- package/lib/codec/cosmos/authz/v1beta1/query.d.ts +1 -1
- package/lib/codec/cosmos/authz/v1beta1/tx.d.ts +18 -18
- package/lib/codec/cosmos/authz/v1beta1/tx.js +36 -36
- package/lib/codec/cosmos/autocli/v1/options.d.ts +2 -4
- package/lib/codec/cosmos/autocli/v1/options.js +4 -19
- package/lib/codec/cosmos/bank/module/v1/module.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/authz.d.ts +7 -0
- package/lib/codec/cosmos/bank/v1beta1/authz.js +18 -3
- package/lib/codec/cosmos/bank/v1beta1/bank.d.ts +9 -0
- package/lib/codec/cosmos/bank/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/bank/v1beta1/export.js +13 -1
- package/lib/codec/cosmos/bank/v1beta1/genesis.d.ts +9 -3
- package/lib/codec/cosmos/bank/v1beta1/genesis.js +17 -2
- package/lib/codec/cosmos/bank/v1beta1/query.d.ts +211 -6
- package/lib/codec/cosmos/bank/v1beta1/query.js +513 -3
- package/lib/codec/cosmos/bank/v1beta1/tx.d.ts +103 -1
- package/lib/codec/cosmos/bank/v1beta1/tx.js +215 -2
- package/lib/codec/cosmos/base/abci/v1beta1/abci.d.ts +23 -0
- package/lib/codec/cosmos/base/abci/v1beta1/abci.js +137 -1
- package/lib/codec/cosmos/base/kv/v1beta1/kv.d.ts +4 -4
- package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +36 -0
- package/lib/codec/cosmos/base/node/v1beta1/query.js +257 -3
- package/lib/codec/cosmos/base/snapshots/v1beta1/snapshot.d.ts +11 -11
- package/lib/codec/cosmos/base/store/v1beta1/commit_info.d.ts +5 -5
- package/lib/codec/cosmos/base/store/v1beta1/listening.d.ts +5 -5
- package/lib/codec/cosmos/base/tendermint/v1beta1/query.d.ts +16 -46
- package/lib/codec/cosmos/base/v1beta1/coin.d.ts +8 -2
- package/lib/codec/cosmos/capability/module/v1/module.d.ts +3 -3
- package/lib/codec/cosmos/capability/v1beta1/capability.d.ts +5 -5
- package/lib/codec/cosmos/capability/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/{Switcheo/carbon/marketstats/params.d.ts → cosmos/circuit/module/v1/module.d.ts} +11 -9
- package/lib/codec/{Switcheo/carbon/ccm/ccm.js → cosmos/circuit/module/v1/module.js} +16 -17
- package/lib/codec/cosmos/circuit/v1/query.d.ts +97 -0
- package/lib/codec/cosmos/circuit/v1/query.js +333 -0
- package/lib/codec/cosmos/circuit/v1/tx.d.ts +128 -0
- package/lib/codec/cosmos/circuit/v1/tx.js +371 -0
- package/lib/codec/cosmos/circuit/v1/types.d.ts +81 -0
- package/lib/codec/cosmos/circuit/v1/types.js +266 -0
- package/lib/codec/cosmos/consensus/v1/query.d.ts +1 -1
- package/lib/codec/cosmos/consensus/v1/tx.d.ts +5 -3
- package/lib/codec/cosmos/consensus/v1/tx.js +16 -0
- package/lib/codec/cosmos/crisis/v1beta1/tx.d.ts +46 -1
- package/lib/codec/cosmos/crisis/v1beta1/tx.js +103 -1
- package/lib/codec/cosmos/crypto/ed25519/keys.d.ts +1 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.d.ts +20 -1
- package/lib/codec/cosmos/distribution/v1beta1/distribution.js +16 -16
- package/lib/codec/cosmos/distribution/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/distribution/v1beta1/export.js +10 -1
- package/lib/codec/cosmos/distribution/v1beta1/genesis.d.ts +4 -4
- package/lib/codec/cosmos/distribution/v1beta1/query.d.ts +33 -2
- package/lib/codec/cosmos/distribution/v1beta1/query.js +134 -1
- package/lib/codec/cosmos/distribution/v1beta1/tx.d.ts +144 -3
- package/lib/codec/cosmos/distribution/v1beta1/tx.js +328 -1
- package/lib/codec/cosmos/evidence/v1beta1/evidence.d.ts +4 -0
- package/lib/codec/cosmos/evidence/v1beta1/query.d.ts +12 -1
- package/lib/codec/cosmos/evidence/v1beta1/query.js +14 -2
- package/lib/codec/cosmos/evidence/v1beta1/tx.d.ts +2 -0
- package/lib/codec/cosmos/feegrant/v1beta1/query.d.ts +2 -2
- package/lib/codec/cosmos/feegrant/v1beta1/tx.d.ts +37 -0
- package/lib/codec/cosmos/feegrant/v1beta1/tx.js +84 -1
- package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
- package/lib/codec/cosmos/gov/v1/export.js +53 -0
- package/lib/codec/cosmos/gov/v1/genesis.d.ts +34 -4
- package/lib/codec/cosmos/gov/v1/genesis.js +34 -2
- package/lib/codec/cosmos/gov/v1/gov.d.ts +154 -7
- package/lib/codec/cosmos/gov/v1/gov.js +352 -3
- package/lib/codec/cosmos/gov/v1/query.d.ts +55 -7
- package/lib/codec/cosmos/gov/v1/query.js +101 -1
- package/lib/codec/cosmos/gov/v1/tx.d.ts +126 -2
- package/lib/codec/cosmos/gov/v1/tx.js +317 -3
- package/lib/codec/cosmos/gov/v1beta1/genesis.d.ts +3 -3
- package/lib/codec/cosmos/gov/v1beta1/gov.d.ts +30 -5
- package/lib/codec/cosmos/gov/v1beta1/query.d.ts +5 -3
- package/lib/codec/cosmos/gov/v1beta1/tx.d.ts +14 -1
- package/lib/codec/cosmos/group/v1/events.d.ts +17 -1
- package/lib/codec/cosmos/group/v1/events.js +81 -1
- package/lib/codec/cosmos/group/v1/query.d.ts +5 -5
- package/lib/codec/cosmos/group/v1/tx.d.ts +25 -13
- package/lib/codec/cosmos/group/v1/tx.js +60 -34
- package/lib/codec/cosmos/group/v1/types.d.ts +34 -8
- package/lib/codec/cosmos/group/v1/types.js +27 -1
- package/lib/codec/cosmos/mint/v1beta1/export.d.ts +1 -0
- package/lib/codec/cosmos/mint/v1beta1/export.js +4 -1
- package/lib/codec/cosmos/mint/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/mint/v1beta1/mint.d.ts +1 -1
- package/lib/codec/cosmos/msg/textual/v1/textual.d.ts +1 -0
- package/lib/codec/cosmos/msg/textual/v1/textual.js +14 -0
- package/lib/codec/cosmos/nft/v1beta1/event.d.ts +10 -0
- package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +1 -0
- package/lib/codec/cosmos/nft/v1beta1/query.d.ts +20 -0
- package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +2 -2
- package/lib/codec/cosmos/orm/v1/orm.d.ts +5 -2
- package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +2 -22
- package/lib/codec/cosmos/orm/v1alpha1/schema.js +2 -32
- package/lib/codec/cosmos/slashing/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/export.js +3 -1
- package/lib/codec/cosmos/slashing/v1beta1/genesis.d.ts +1 -1
- package/lib/codec/cosmos/slashing/v1beta1/slashing.d.ts +9 -8
- package/lib/codec/cosmos/slashing/v1beta1/tx.d.ts +46 -0
- package/lib/codec/cosmos/slashing/v1beta1/tx.js +101 -1
- package/lib/codec/cosmos/staking/module/v1/module.d.ts +4 -0
- package/lib/codec/cosmos/staking/module/v1/module.js +35 -2
- package/lib/codec/cosmos/staking/v1beta1/authz.d.ts +2 -0
- package/lib/codec/cosmos/staking/v1beta1/authz.js +7 -0
- package/lib/codec/cosmos/staking/v1beta1/export.d.ts +2 -2
- package/lib/codec/cosmos/staking/v1beta1/export.js +8 -2
- package/lib/codec/cosmos/staking/v1beta1/genesis.d.ts +3 -2
- package/lib/codec/cosmos/staking/v1beta1/query.d.ts +36 -5
- package/lib/codec/cosmos/staking/v1beta1/staking.d.ts +44 -5
- package/lib/codec/cosmos/staking/v1beta1/staking.js +212 -2
- package/lib/codec/cosmos/staking/v1beta1/tx.d.ts +58 -1
- package/lib/codec/cosmos/staking/v1beta1/tx.js +116 -1
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.d.ts +31 -0
- package/lib/codec/cosmos/store/internal/kv/v1beta1/kv.js +154 -0
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.d.ts +119 -0
- package/lib/codec/cosmos/store/snapshots/v1/snapshot.js +540 -0
- package/lib/codec/cosmos/store/streaming/abci/grpc.d.ts +72 -0
- package/lib/codec/cosmos/store/streaming/abci/grpc.js +247 -0
- package/lib/codec/cosmos/store/v1beta1/commit_info.d.ts +54 -0
- package/lib/codec/cosmos/store/v1beta1/commit_info.js +273 -0
- package/lib/codec/cosmos/store/v1beta1/listening.d.ts +48 -0
- package/lib/codec/cosmos/store/v1beta1/listening.js +220 -0
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.d.ts +4 -3
- package/lib/codec/cosmos/tx/signing/v1beta1/signing.js +4 -3
- package/lib/codec/cosmos/tx/v1beta1/export.d.ts +1 -1
- package/lib/codec/cosmos/tx/v1beta1/export.js +9 -1
- package/lib/codec/cosmos/tx/v1beta1/service.d.ts +196 -11
- package/lib/codec/cosmos/tx/v1beta1/service.js +433 -10
- package/lib/codec/cosmos/tx/v1beta1/tx.d.ts +6 -5
- package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +3 -3
- package/lib/codec/cosmos/upgrade/v1beta1/upgrade.d.ts +6 -4
- package/lib/codec/cosmos-models.d.ts +1 -1
- package/lib/codec/cosmos-models.js +1 -1
- package/lib/codec/erc20/erc20.d.ts +3 -3
- package/lib/codec/erc20/events.d.ts +6 -6
- package/lib/codec/erc20/genesis.d.ts +4 -4
- package/lib/codec/erc20/query.d.ts +8 -8
- package/lib/codec/erc20/tx.d.ts +16 -16
- package/lib/codec/ethermint/evm/v1/export.d.ts +2 -1
- package/lib/codec/ethermint/evm/v1/export.js +8 -1
- package/lib/codec/ethermint/evm/v1/tx.d.ts +37 -1
- package/lib/codec/ethermint/evm/v1/tx.js +100 -1
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +2 -0
- package/lib/codec/ethermint/feemarket/v1/export.js +7 -1
- package/lib/codec/ethermint/feemarket/v1/feemarket.d.ts +10 -0
- package/lib/codec/ethermint/feemarket/v1/feemarket.js +28 -1
- package/lib/codec/evmbank/genesis.d.ts +4 -4
- package/lib/codec/evmbank/query.d.ts +4 -4
- package/lib/codec/evmcontract/genesis.d.ts +3 -3
- package/lib/codec/evmmerge/address.d.ts +3 -3
- package/lib/codec/evmmerge/event.d.ts +3 -3
- package/lib/codec/evmmerge/genesis.d.ts +5 -5
- package/lib/codec/evmmerge/offchain.d.ts +3 -3
- package/lib/codec/evmmerge/query.d.ts +6 -6
- package/lib/codec/evmmerge/tx.d.ts +4 -4
- package/lib/codec/fee/event.d.ts +3 -3
- package/lib/codec/fee/fee.d.ts +5 -5
- package/lib/codec/fee/genesis.d.ts +3 -3
- package/lib/codec/fee/proposal.d.ts +6 -6
- package/lib/codec/fee/query.d.ts +10 -10
- package/lib/codec/fee/tx.d.ts +10 -10
- package/lib/codec/google/protobuf/any.d.ts +5 -4
- package/lib/codec/google/protobuf/descriptor.d.ts +266 -11
- package/lib/codec/google/protobuf/descriptor.js +1060 -41
- package/lib/codec/google/protobuf/empty.d.ts +26 -0
- package/lib/codec/{Switcheo/carbon/marketstats/params.js → google/protobuf/empty.js} +7 -7
- package/lib/codec/google/protobuf/timestamp.d.ts +1 -1
- package/lib/codec/headersync/consensus_peers.d.ts +7 -7
- package/lib/codec/headersync/genesis.d.ts +7 -7
- package/lib/codec/headersync/query.d.ts +6 -6
- package/lib/codec/headersync/tx.d.ts +6 -6
- package/lib/codec/ibc/applications/fee/v1/query.d.ts +7 -1
- package/lib/codec/ibc/applications/fee/v1/query.js +54 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.d.ts +2 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/export.js +10 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.d.ts +26 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/query.js +113 -1
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +34 -0
- package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +117 -2
- package/lib/codec/ibc/applications/interchain_accounts/host/export.d.ts +1 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/export.js +4 -1
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.d.ts +50 -0
- package/lib/codec/ibc/applications/interchain_accounts/host/v1/tx.js +120 -0
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.d.ts +0 -1
- package/lib/codec/ibc/applications/interchain_accounts/v1/export.js +1 -6
- package/lib/codec/ibc/applications/transfer/v1/authz.d.ts +5 -0
- package/lib/codec/ibc/applications/transfer/v1/authz.js +18 -2
- package/lib/codec/ibc/applications/transfer/v1/export.d.ts +3 -2
- package/lib/codec/ibc/applications/transfer/v1/export.js +10 -1
- package/lib/codec/ibc/applications/transfer/v1/genesis.d.ts +6 -0
- package/lib/codec/ibc/applications/transfer/v1/genesis.js +18 -2
- package/lib/codec/ibc/applications/transfer/v1/query.d.ts +59 -4
- package/lib/codec/ibc/applications/transfer/v1/query.js +216 -7
- package/lib/codec/ibc/applications/transfer/v1/tx.d.ts +43 -4
- package/lib/codec/ibc/applications/transfer/v1/tx.js +135 -6
- package/lib/codec/ibc/applications/transfer/v2/packet.d.ts +2 -0
- package/lib/codec/ibc/applications/transfer/v2/packet.js +14 -1
- package/lib/codec/ibc/core/channel/v1/channel.d.ts +65 -1
- package/lib/codec/ibc/core/channel/v1/channel.js +241 -2
- package/lib/codec/ibc/core/channel/v1/export.d.ts +4 -3
- package/lib/codec/ibc/core/channel/v1/export.js +35 -2
- package/lib/codec/ibc/core/channel/v1/genesis.d.ts +2 -1
- package/lib/codec/ibc/core/channel/v1/genesis.js +16 -0
- package/lib/codec/ibc/core/channel/v1/query.d.ts +127 -2
- package/lib/codec/ibc/core/channel/v1/query.js +526 -1
- package/lib/codec/ibc/core/channel/v1/tx.d.ts +306 -13
- package/lib/codec/ibc/core/channel/v1/tx.js +1785 -89
- package/lib/codec/ibc/core/channel/v1/upgrade.d.ts +62 -0
- package/lib/codec/ibc/core/channel/v1/upgrade.js +238 -0
- package/lib/codec/ibc/core/client/v1/client.d.ts +50 -38
- package/lib/codec/ibc/core/client/v1/client.js +117 -117
- package/lib/codec/ibc/core/client/v1/export.d.ts +3 -3
- package/lib/codec/ibc/core/client/v1/export.js +11 -3
- package/lib/codec/ibc/core/client/v1/genesis.d.ts +6 -1
- package/lib/codec/ibc/core/client/v1/query.d.ts +38 -1
- package/lib/codec/ibc/core/client/v1/query.js +137 -1
- package/lib/codec/ibc/core/client/v1/tx.d.ts +108 -3
- package/lib/codec/ibc/core/client/v1/tx.js +348 -12
- package/lib/codec/ibc/core/commitment/v1/commitment.d.ts +1 -1
- package/lib/codec/ibc/core/commitment/v1/commitment.js +1 -1
- package/lib/codec/ibc/core/connection/v1/export.d.ts +2 -2
- package/lib/codec/ibc/core/connection/v1/export.js +5 -1
- package/lib/codec/ibc/core/connection/v1/query.d.ts +26 -1
- package/lib/codec/ibc/core/connection/v1/query.js +87 -1
- package/lib/codec/ibc/core/connection/v1/tx.d.ts +42 -3
- package/lib/codec/ibc/core/connection/v1/tx.js +138 -3
- package/lib/codec/ibc/lightclients/localhost/v1/localhost.d.ts +3 -3
- package/lib/codec/ibc/lightclients/solomachine/v1/solomachine.d.ts +18 -18
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.d.ts +12 -5
- package/lib/codec/ibc/lightclients/tendermint/v1/tendermint.js +1 -1
- package/lib/codec/{perpsliquidity → ibc/lightclients/wasm/v1}/genesis.d.ts +14 -18
- package/lib/codec/ibc/lightclients/wasm/v1/genesis.js +140 -0
- package/lib/codec/ibc/lightclients/wasm/v1/query.d.ts +74 -0
- package/lib/codec/ibc/lightclients/wasm/v1/query.js +272 -0
- package/lib/codec/ibc/lightclients/wasm/v1/tx.d.ts +105 -0
- package/lib/codec/ibc/lightclients/wasm/v1/tx.js +384 -0
- package/lib/codec/ibc/lightclients/wasm/v1/wasm.d.ts +70 -0
- package/lib/codec/ibc/lightclients/wasm/v1/wasm.js +267 -0
- package/lib/codec/ibc-models.d.ts +3 -2
- package/lib/codec/ibc-models.js +4 -3
- package/lib/codec/index.d.ts +157 -24
- package/lib/codec/index.js +6887 -2429
- package/lib/codec/inflation/genesis.d.ts +3 -3
- package/lib/codec/inflation/inflation.d.ts +9 -5
- package/lib/codec/inflation/inflation.js +80 -25
- package/lib/codec/inflation/query.d.ts +4 -4
- package/lib/codec/insurance/event.d.ts +3 -3
- package/lib/codec/insurance/fund.d.ts +4 -4
- package/lib/codec/insurance/genesis.d.ts +3 -3
- package/lib/codec/insurance/query.d.ts +4 -4
- package/lib/codec/insurance/tx.d.ts +4 -4
- package/lib/codec/leverage/event.d.ts +3 -3
- package/lib/codec/leverage/genesis.d.ts +3 -3
- package/lib/codec/leverage/leverage.d.ts +4 -4
- package/lib/codec/leverage/query.d.ts +6 -6
- package/lib/codec/leverage/tx.d.ts +4 -4
- package/lib/codec/liquidation/genesis.d.ts +4 -4
- package/lib/codec/liquidation/liquidation.d.ts +3 -3
- package/lib/codec/liquidation/outstanding_position.d.ts +4 -4
- package/lib/codec/liquidation/query.d.ts +6 -6
- package/lib/codec/liquidation/quote_changes.d.ts +3 -3
- package/lib/codec/liquiditypool/event.d.ts +52 -13
- package/lib/codec/liquiditypool/event.js +294 -1
- package/lib/codec/liquiditypool/genesis.d.ts +7 -8
- package/lib/codec/liquiditypool/genesis.js +34 -49
- package/lib/codec/liquiditypool/liquiditypool.d.ts +12 -12
- package/lib/codec/liquiditypool/proposal.d.ts +11 -11
- package/lib/codec/liquiditypool/query.d.ts +33 -82
- package/lib/codec/liquiditypool/query.js +18 -265
- package/lib/codec/liquiditypool/reward.d.ts +37 -37
- package/lib/codec/liquiditypool/reward.js +97 -111
- package/lib/codec/liquiditypool/tx.d.ts +39 -39
- package/lib/codec/lockproxy/event.d.ts +4 -4
- package/lib/codec/lockproxy/genesis.d.ts +6 -6
- package/lib/codec/lockproxy/lockproxy.d.ts +3 -3
- package/lib/codec/lockproxy/query.d.ts +6 -6
- package/lib/codec/lockproxy/tx.d.ts +12 -12
- package/lib/codec/market/event.d.ts +3 -3
- package/lib/codec/market/fee.d.ts +7 -7
- package/lib/codec/market/genesis.d.ts +3 -3
- package/lib/codec/market/market.d.ts +7 -7
- package/lib/codec/market/proposal.d.ts +5 -5
- package/lib/codec/market/query.d.ts +20 -20
- package/lib/codec/market/tx.d.ts +21 -21
- package/lib/codec/marketstats/genesis.d.ts +3 -3
- package/lib/codec/marketstats/marketstats.d.ts +3 -3
- package/lib/codec/marketstats/params.d.ts +3 -3
- package/lib/codec/marketstats/query.d.ts +6 -6
- package/lib/codec/misc/block.d.ts +3 -3
- package/lib/codec/misc/message.d.ts +3 -3
- package/lib/codec/misc/message_type.d.ts +3 -3
- package/lib/codec/misc/query.d.ts +16 -16
- package/lib/codec/misc/trade.d.ts +3 -3
- package/lib/codec/misc/transaction.d.ts +4 -4
- package/lib/codec/oracle/event.d.ts +4 -4
- package/lib/codec/oracle/genesis.d.ts +3 -3
- package/lib/codec/oracle/oracle.d.ts +8 -8
- package/lib/codec/oracle/proposal.d.ts +3 -3
- package/lib/codec/oracle/query.d.ts +61 -58
- package/lib/codec/oracle/query.js +37 -31
- package/lib/codec/oracle/slashing.d.ts +4 -4
- package/lib/codec/oracle/tx.d.ts +14 -14
- package/lib/codec/oraclesvc/query.d.ts +20 -0
- package/lib/codec/oraclesvc/query.js +29 -0
- package/lib/codec/order/event.d.ts +3 -3
- package/lib/codec/order/genesis.d.ts +6 -6
- package/lib/codec/order/order.d.ts +9 -9
- package/lib/codec/order/query.d.ts +12 -12
- package/lib/codec/order/tx.d.ts +12 -12
- package/lib/codec/perpspool/event.d.ts +9 -9
- package/lib/codec/perpspool/genesis.d.ts +6 -6
- package/lib/codec/perpspool/market.d.ts +8 -8
- package/lib/codec/perpspool/params.d.ts +3 -3
- package/lib/codec/perpspool/pool.d.ts +8 -8
- package/lib/codec/perpspool/query.d.ts +20 -20
- package/lib/codec/perpspool/tx.d.ts +18 -18
- package/lib/codec/position/event.d.ts +3 -3
- package/lib/codec/position/genesis.d.ts +3 -3
- package/lib/codec/position/position.d.ts +8 -6
- package/lib/codec/position/position.js +34 -0
- package/lib/codec/position/query.d.ts +8 -8
- package/lib/codec/position/tx.d.ts +4 -4
- package/lib/codec/pricing/event.d.ts +8 -8
- package/lib/codec/pricing/genesis.d.ts +3 -3
- package/lib/codec/pricing/legacy.d.ts +3 -3
- package/lib/codec/pricing/pricing.d.ts +5 -5
- package/lib/codec/pricing/proposal.d.ts +4 -4
- package/lib/codec/pricing/query.d.ts +16 -16
- package/lib/codec/pricing/tx.d.ts +12 -12
- package/lib/codec/profile/event.d.ts +3 -3
- package/lib/codec/profile/genesis.d.ts +3 -3
- package/lib/codec/profile/profile.d.ts +3 -3
- package/lib/codec/profile/query.d.ts +8 -8
- package/lib/codec/profile/tx.d.ts +4 -4
- package/lib/codec/proofs.d.ts +16 -15
- package/lib/codec/proofs.js +6 -0
- package/lib/codec/sequence/genesis.d.ts +4 -4
- package/lib/codec/sequence/query.d.ts +6 -6
- package/lib/codec/sequence/tx.d.ts +4 -4
- package/lib/codec/subaccount/export.d.ts +1 -1
- package/lib/codec/subaccount/export.js +1 -3
- package/lib/codec/subaccount/genesis.d.ts +8 -4
- package/lib/codec/subaccount/genesis.js +48 -2
- package/lib/codec/subaccount/legacy.d.ts +3 -3
- package/lib/codec/subaccount/query.d.ts +118 -29
- package/lib/codec/subaccount/query.js +503 -47
- package/lib/codec/subaccount/subaccount.d.ts +33 -7
- package/lib/codec/subaccount/subaccount.js +234 -31
- package/lib/codec/subaccount/tx.d.ts +15 -9
- package/lib/codec/subaccount/tx.js +101 -16
- package/lib/codec/tendermint/abci/types.d.ts +297 -186
- package/lib/codec/tendermint/abci/types.js +1968 -1310
- package/lib/codec/tendermint/oracle/types.d.ts +90 -0
- package/lib/codec/tendermint/oracle/types.js +629 -0
- package/lib/codec/tendermint/types/params.d.ts +24 -8
- package/lib/codec/tendermint/types/params.js +80 -34
- package/lib/codec/tendermint/types/types.d.ts +52 -12
- package/lib/codec/tendermint/types/types.js +250 -49
- package/lib/codec/tendermint/types/validator.d.ts +14 -0
- package/lib/codec/tendermint/types/validator.js +50 -1
- package/lib/constant/grant.d.ts +1 -0
- package/lib/constant/grant.js +4 -0
- package/lib/constant/ibc.d.ts +0 -3
- package/lib/constant/ibc.js +1 -4
- package/lib/constant/node.js +0 -3
- package/lib/insights/common.d.ts +0 -3
- package/lib/insights/common.js +0 -3
- package/lib/insights/competition.d.ts +0 -15
- package/lib/insights/funding.d.ts +4 -7
- package/lib/insights/node.d.ts +0 -1
- package/lib/insights/pool.d.ts +0 -20
- package/lib/insights/position.d.ts +1 -3
- package/lib/modules/admin.d.ts +1 -1
- package/lib/modules/admin.js +1 -1
- package/lib/modules/cdp.js +13 -13
- package/lib/modules/evm.d.ts +1 -0
- package/lib/modules/evm.js +45 -3
- package/lib/modules/evmmerge.d.ts +1 -1
- package/lib/modules/evmmerge.js +2 -2
- package/lib/modules/feemarket.d.ts +1 -1
- package/lib/modules/feemarket.js +2 -2
- package/lib/modules/gov.js +2 -2
- package/lib/modules/grant.d.ts +33 -0
- package/lib/modules/grant.js +196 -0
- package/lib/modules/index.d.ts +1 -0
- package/lib/modules/index.js +1 -0
- package/lib/modules/leverage.js +2 -2
- package/lib/modules/market.js +3 -3
- package/lib/modules/order.d.ts +2 -9
- package/lib/modules/order.js +47 -55
- package/lib/modules/perpspool.js +0 -1
- package/lib/modules/position.js +2 -2
- package/lib/modules/subaccount.d.ts +1 -7
- package/lib/modules/subaccount.js +1 -7
- package/lib/provider/amino/types/evm.js +7 -1
- package/lib/provider/amino/types/gov.js +0 -5
- package/lib/provider/amino/types/grant.d.ts +13 -0
- package/lib/provider/amino/types/grant.js +202 -0
- package/lib/provider/keplr/KeplrStore.js +1 -1
- package/lib/util/alliance.d.ts +2 -0
- package/lib/util/alliance.js +27 -0
- package/lib/util/grant.d.ts +10 -0
- package/lib/util/grant.js +30 -0
- package/lib/util/tx.d.ts +146 -11
- package/lib/wallet/CarbonWallet.d.ts +13 -3
- package/lib/wallet/CarbonWallet.js +59 -31
- package/lib/websocket/connector.js +7 -11
- package/package.json +2 -4
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.d.ts +0 -17
- package/lib/codec/Switcheo/carbon/liquidation/liquidation.js +0 -46
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -76
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -424
- package/lib/codec/perpsliquidity/event.d.ts +0 -115
- package/lib/codec/perpsliquidity/event.js +0 -657
- package/lib/codec/perpsliquidity/genesis.js +0 -163
- package/lib/codec/perpsliquidity/market.d.ts +0 -84
- package/lib/codec/perpsliquidity/market.js +0 -431
- package/lib/codec/perpsliquidity/params.js +0 -129
- package/lib/codec/perpsliquidity/pool.d.ts +0 -119
- package/lib/codec/perpsliquidity/pool.js +0 -774
- package/lib/codec/perpsliquidity/query.d.ts +0 -246
- package/lib/codec/perpsliquidity/query.js +0 -1125
- package/lib/codec/perpsliquidity/tx.d.ts +0 -203
- package/lib/codec/perpsliquidity/tx.js +0 -973
- package/lib/modules/perpsliquidity.d.ts +0 -49
- package/lib/modules/perpsliquidity.js +0 -118
- package/lib/provider/amino/types/perpsliquidity.d.ts +0 -4
- package/lib/provider/amino/types/perpsliquidity.js +0 -73
|
@@ -3,12 +3,137 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = void 0;
|
|
6
|
+
exports.GeneratedCodeInfo_Annotation_Semantic = exports.featureSet_JsonFormatToJSON = exports.featureSet_JsonFormatFromJSON = exports.FeatureSet_JsonFormat = exports.featureSet_MessageEncodingToJSON = exports.featureSet_MessageEncodingFromJSON = exports.FeatureSet_MessageEncoding = exports.featureSet_Utf8ValidationToJSON = exports.featureSet_Utf8ValidationFromJSON = exports.FeatureSet_Utf8Validation = exports.featureSet_RepeatedFieldEncodingToJSON = exports.featureSet_RepeatedFieldEncodingFromJSON = exports.FeatureSet_RepeatedFieldEncoding = exports.featureSet_EnumTypeToJSON = exports.featureSet_EnumTypeFromJSON = exports.FeatureSet_EnumType = exports.featureSet_FieldPresenceToJSON = exports.featureSet_FieldPresenceFromJSON = exports.FeatureSet_FieldPresence = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_OptionTargetTypeToJSON = exports.fieldOptions_OptionTargetTypeFromJSON = exports.FieldOptions_OptionTargetType = exports.fieldOptions_OptionRetentionToJSON = exports.fieldOptions_OptionRetentionFromJSON = exports.FieldOptions_OptionRetention = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_Type = exports.extensionRangeOptions_VerificationStateToJSON = exports.extensionRangeOptions_VerificationStateFromJSON = exports.ExtensionRangeOptions_VerificationState = exports.editionToJSON = exports.editionFromJSON = exports.Edition = exports.protobufPackage = void 0;
|
|
7
|
+
exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FeatureSetDefaults = exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions_Declaration = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.generatedCodeInfo_Annotation_SemanticToJSON = exports.generatedCodeInfo_Annotation_SemanticFromJSON = void 0;
|
|
8
8
|
/* eslint-disable */
|
|
9
9
|
const long_1 = __importDefault(require("long"));
|
|
10
10
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
11
11
|
exports.protobufPackage = "google.protobuf";
|
|
12
|
+
/** The full set of known editions. */
|
|
13
|
+
var Edition;
|
|
14
|
+
(function (Edition) {
|
|
15
|
+
/** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
|
|
16
|
+
Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
|
|
17
|
+
/**
|
|
18
|
+
* EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
|
|
19
|
+
* distinct editions. These can't be used to specify the edition of proto
|
|
20
|
+
* files, but feature definitions must supply proto2/proto3 defaults for
|
|
21
|
+
* backwards compatibility.
|
|
22
|
+
*/
|
|
23
|
+
Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
|
|
24
|
+
Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
|
|
25
|
+
/**
|
|
26
|
+
* EDITION_2023 - Editions that have been released. The specific values are arbitrary and
|
|
27
|
+
* should not be depended on, but they will always be time-ordered for easy
|
|
28
|
+
* comparison.
|
|
29
|
+
*/
|
|
30
|
+
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
|
|
31
|
+
/**
|
|
32
|
+
* EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
|
|
33
|
+
* used or relyed on outside of tests.
|
|
34
|
+
*/
|
|
35
|
+
Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
|
|
36
|
+
Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
|
|
37
|
+
Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
|
|
38
|
+
Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
|
|
39
|
+
Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
|
|
40
|
+
Edition[Edition["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
41
|
+
})(Edition = exports.Edition || (exports.Edition = {}));
|
|
42
|
+
function editionFromJSON(object) {
|
|
43
|
+
switch (object) {
|
|
44
|
+
case 0:
|
|
45
|
+
case "EDITION_UNKNOWN":
|
|
46
|
+
return Edition.EDITION_UNKNOWN;
|
|
47
|
+
case 998:
|
|
48
|
+
case "EDITION_PROTO2":
|
|
49
|
+
return Edition.EDITION_PROTO2;
|
|
50
|
+
case 999:
|
|
51
|
+
case "EDITION_PROTO3":
|
|
52
|
+
return Edition.EDITION_PROTO3;
|
|
53
|
+
case 1000:
|
|
54
|
+
case "EDITION_2023":
|
|
55
|
+
return Edition.EDITION_2023;
|
|
56
|
+
case 1:
|
|
57
|
+
case "EDITION_1_TEST_ONLY":
|
|
58
|
+
return Edition.EDITION_1_TEST_ONLY;
|
|
59
|
+
case 2:
|
|
60
|
+
case "EDITION_2_TEST_ONLY":
|
|
61
|
+
return Edition.EDITION_2_TEST_ONLY;
|
|
62
|
+
case 99997:
|
|
63
|
+
case "EDITION_99997_TEST_ONLY":
|
|
64
|
+
return Edition.EDITION_99997_TEST_ONLY;
|
|
65
|
+
case 99998:
|
|
66
|
+
case "EDITION_99998_TEST_ONLY":
|
|
67
|
+
return Edition.EDITION_99998_TEST_ONLY;
|
|
68
|
+
case 99999:
|
|
69
|
+
case "EDITION_99999_TEST_ONLY":
|
|
70
|
+
return Edition.EDITION_99999_TEST_ONLY;
|
|
71
|
+
case -1:
|
|
72
|
+
case "UNRECOGNIZED":
|
|
73
|
+
default:
|
|
74
|
+
return Edition.UNRECOGNIZED;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.editionFromJSON = editionFromJSON;
|
|
78
|
+
function editionToJSON(object) {
|
|
79
|
+
switch (object) {
|
|
80
|
+
case Edition.EDITION_UNKNOWN:
|
|
81
|
+
return "EDITION_UNKNOWN";
|
|
82
|
+
case Edition.EDITION_PROTO2:
|
|
83
|
+
return "EDITION_PROTO2";
|
|
84
|
+
case Edition.EDITION_PROTO3:
|
|
85
|
+
return "EDITION_PROTO3";
|
|
86
|
+
case Edition.EDITION_2023:
|
|
87
|
+
return "EDITION_2023";
|
|
88
|
+
case Edition.EDITION_1_TEST_ONLY:
|
|
89
|
+
return "EDITION_1_TEST_ONLY";
|
|
90
|
+
case Edition.EDITION_2_TEST_ONLY:
|
|
91
|
+
return "EDITION_2_TEST_ONLY";
|
|
92
|
+
case Edition.EDITION_99997_TEST_ONLY:
|
|
93
|
+
return "EDITION_99997_TEST_ONLY";
|
|
94
|
+
case Edition.EDITION_99998_TEST_ONLY:
|
|
95
|
+
return "EDITION_99998_TEST_ONLY";
|
|
96
|
+
case Edition.EDITION_99999_TEST_ONLY:
|
|
97
|
+
return "EDITION_99999_TEST_ONLY";
|
|
98
|
+
default:
|
|
99
|
+
return "UNKNOWN";
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.editionToJSON = editionToJSON;
|
|
103
|
+
/** The verification state of the extension range. */
|
|
104
|
+
var ExtensionRangeOptions_VerificationState;
|
|
105
|
+
(function (ExtensionRangeOptions_VerificationState) {
|
|
106
|
+
/** DECLARATION - All the extensions of the range must be declared. */
|
|
107
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION";
|
|
108
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
|
|
109
|
+
ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
110
|
+
})(ExtensionRangeOptions_VerificationState = exports.ExtensionRangeOptions_VerificationState || (exports.ExtensionRangeOptions_VerificationState = {}));
|
|
111
|
+
function extensionRangeOptions_VerificationStateFromJSON(object) {
|
|
112
|
+
switch (object) {
|
|
113
|
+
case 0:
|
|
114
|
+
case "DECLARATION":
|
|
115
|
+
return ExtensionRangeOptions_VerificationState.DECLARATION;
|
|
116
|
+
case 1:
|
|
117
|
+
case "UNVERIFIED":
|
|
118
|
+
return ExtensionRangeOptions_VerificationState.UNVERIFIED;
|
|
119
|
+
case -1:
|
|
120
|
+
case "UNRECOGNIZED":
|
|
121
|
+
default:
|
|
122
|
+
return ExtensionRangeOptions_VerificationState.UNRECOGNIZED;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.extensionRangeOptions_VerificationStateFromJSON = extensionRangeOptions_VerificationStateFromJSON;
|
|
126
|
+
function extensionRangeOptions_VerificationStateToJSON(object) {
|
|
127
|
+
switch (object) {
|
|
128
|
+
case ExtensionRangeOptions_VerificationState.DECLARATION:
|
|
129
|
+
return "DECLARATION";
|
|
130
|
+
case ExtensionRangeOptions_VerificationState.UNVERIFIED:
|
|
131
|
+
return "UNVERIFIED";
|
|
132
|
+
default:
|
|
133
|
+
return "UNKNOWN";
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.extensionRangeOptions_VerificationStateToJSON = extensionRangeOptions_VerificationStateToJSON;
|
|
12
137
|
var FieldDescriptorProto_Type;
|
|
13
138
|
(function (FieldDescriptorProto_Type) {
|
|
14
139
|
/**
|
|
@@ -34,9 +159,10 @@ var FieldDescriptorProto_Type;
|
|
|
34
159
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING";
|
|
35
160
|
/**
|
|
36
161
|
* TYPE_GROUP - Tag-delimited aggregate.
|
|
37
|
-
* Group type is deprecated and not supported
|
|
162
|
+
* Group type is deprecated and not supported after google.protobuf. However, Proto3
|
|
38
163
|
* implementations should still be able to parse the group wire format and
|
|
39
|
-
* treat group fields as unknown fields.
|
|
164
|
+
* treat group fields as unknown fields. In Editions, the group wire format
|
|
165
|
+
* can be enabled via the `message_encoding` feature.
|
|
40
166
|
*/
|
|
41
167
|
FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
|
|
42
168
|
/** TYPE_MESSAGE - Length-delimited aggregate. */
|
|
@@ -163,8 +289,13 @@ var FieldDescriptorProto_Label;
|
|
|
163
289
|
(function (FieldDescriptorProto_Label) {
|
|
164
290
|
/** LABEL_OPTIONAL - 0 is reserved for errors */
|
|
165
291
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
|
|
166
|
-
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
|
167
292
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
|
|
293
|
+
/**
|
|
294
|
+
* LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
|
|
295
|
+
* it's explicitly prohibited. In Editions, the `field_presence` feature
|
|
296
|
+
* can be used to get this behavior.
|
|
297
|
+
*/
|
|
298
|
+
FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
|
|
168
299
|
FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
169
300
|
})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {}));
|
|
170
301
|
function fieldDescriptorProto_LabelFromJSON(object) {
|
|
@@ -172,12 +303,12 @@ function fieldDescriptorProto_LabelFromJSON(object) {
|
|
|
172
303
|
case 1:
|
|
173
304
|
case "LABEL_OPTIONAL":
|
|
174
305
|
return FieldDescriptorProto_Label.LABEL_OPTIONAL;
|
|
175
|
-
case 2:
|
|
176
|
-
case "LABEL_REQUIRED":
|
|
177
|
-
return FieldDescriptorProto_Label.LABEL_REQUIRED;
|
|
178
306
|
case 3:
|
|
179
307
|
case "LABEL_REPEATED":
|
|
180
308
|
return FieldDescriptorProto_Label.LABEL_REPEATED;
|
|
309
|
+
case 2:
|
|
310
|
+
case "LABEL_REQUIRED":
|
|
311
|
+
return FieldDescriptorProto_Label.LABEL_REQUIRED;
|
|
181
312
|
case -1:
|
|
182
313
|
case "UNRECOGNIZED":
|
|
183
314
|
default:
|
|
@@ -189,10 +320,10 @@ function fieldDescriptorProto_LabelToJSON(object) {
|
|
|
189
320
|
switch (object) {
|
|
190
321
|
case FieldDescriptorProto_Label.LABEL_OPTIONAL:
|
|
191
322
|
return "LABEL_OPTIONAL";
|
|
192
|
-
case FieldDescriptorProto_Label.LABEL_REQUIRED:
|
|
193
|
-
return "LABEL_REQUIRED";
|
|
194
323
|
case FieldDescriptorProto_Label.LABEL_REPEATED:
|
|
195
324
|
return "LABEL_REPEATED";
|
|
325
|
+
case FieldDescriptorProto_Label.LABEL_REQUIRED:
|
|
326
|
+
return "LABEL_REQUIRED";
|
|
196
327
|
default:
|
|
197
328
|
return "UNKNOWN";
|
|
198
329
|
}
|
|
@@ -244,6 +375,14 @@ var FieldOptions_CType;
|
|
|
244
375
|
(function (FieldOptions_CType) {
|
|
245
376
|
/** STRING - Default mode. */
|
|
246
377
|
FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
|
|
378
|
+
/**
|
|
379
|
+
* CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
|
|
380
|
+
* "bytes". It indicates that in C++, the data should be stored in a Cord
|
|
381
|
+
* instead of a string. For very large strings, this may reduce memory
|
|
382
|
+
* fragmentation. It may also allow better performance when parsing from a
|
|
383
|
+
* Cord, or when parsing with aliasing enabled, as the parsed Cord may then
|
|
384
|
+
* alias the original buffer.
|
|
385
|
+
*/
|
|
247
386
|
FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
|
|
248
387
|
FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
|
|
249
388
|
FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
@@ -494,6 +633,240 @@ function methodOptions_IdempotencyLevelToJSON(object) {
|
|
|
494
633
|
}
|
|
495
634
|
}
|
|
496
635
|
exports.methodOptions_IdempotencyLevelToJSON = methodOptions_IdempotencyLevelToJSON;
|
|
636
|
+
var FeatureSet_FieldPresence;
|
|
637
|
+
(function (FeatureSet_FieldPresence) {
|
|
638
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN";
|
|
639
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT";
|
|
640
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT";
|
|
641
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
|
|
642
|
+
FeatureSet_FieldPresence[FeatureSet_FieldPresence["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
643
|
+
})(FeatureSet_FieldPresence = exports.FeatureSet_FieldPresence || (exports.FeatureSet_FieldPresence = {}));
|
|
644
|
+
function featureSet_FieldPresenceFromJSON(object) {
|
|
645
|
+
switch (object) {
|
|
646
|
+
case 0:
|
|
647
|
+
case "FIELD_PRESENCE_UNKNOWN":
|
|
648
|
+
return FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN;
|
|
649
|
+
case 1:
|
|
650
|
+
case "EXPLICIT":
|
|
651
|
+
return FeatureSet_FieldPresence.EXPLICIT;
|
|
652
|
+
case 2:
|
|
653
|
+
case "IMPLICIT":
|
|
654
|
+
return FeatureSet_FieldPresence.IMPLICIT;
|
|
655
|
+
case 3:
|
|
656
|
+
case "LEGACY_REQUIRED":
|
|
657
|
+
return FeatureSet_FieldPresence.LEGACY_REQUIRED;
|
|
658
|
+
case -1:
|
|
659
|
+
case "UNRECOGNIZED":
|
|
660
|
+
default:
|
|
661
|
+
return FeatureSet_FieldPresence.UNRECOGNIZED;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
exports.featureSet_FieldPresenceFromJSON = featureSet_FieldPresenceFromJSON;
|
|
665
|
+
function featureSet_FieldPresenceToJSON(object) {
|
|
666
|
+
switch (object) {
|
|
667
|
+
case FeatureSet_FieldPresence.FIELD_PRESENCE_UNKNOWN:
|
|
668
|
+
return "FIELD_PRESENCE_UNKNOWN";
|
|
669
|
+
case FeatureSet_FieldPresence.EXPLICIT:
|
|
670
|
+
return "EXPLICIT";
|
|
671
|
+
case FeatureSet_FieldPresence.IMPLICIT:
|
|
672
|
+
return "IMPLICIT";
|
|
673
|
+
case FeatureSet_FieldPresence.LEGACY_REQUIRED:
|
|
674
|
+
return "LEGACY_REQUIRED";
|
|
675
|
+
default:
|
|
676
|
+
return "UNKNOWN";
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
exports.featureSet_FieldPresenceToJSON = featureSet_FieldPresenceToJSON;
|
|
680
|
+
var FeatureSet_EnumType;
|
|
681
|
+
(function (FeatureSet_EnumType) {
|
|
682
|
+
FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN";
|
|
683
|
+
FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN";
|
|
684
|
+
FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED";
|
|
685
|
+
FeatureSet_EnumType[FeatureSet_EnumType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
686
|
+
})(FeatureSet_EnumType = exports.FeatureSet_EnumType || (exports.FeatureSet_EnumType = {}));
|
|
687
|
+
function featureSet_EnumTypeFromJSON(object) {
|
|
688
|
+
switch (object) {
|
|
689
|
+
case 0:
|
|
690
|
+
case "ENUM_TYPE_UNKNOWN":
|
|
691
|
+
return FeatureSet_EnumType.ENUM_TYPE_UNKNOWN;
|
|
692
|
+
case 1:
|
|
693
|
+
case "OPEN":
|
|
694
|
+
return FeatureSet_EnumType.OPEN;
|
|
695
|
+
case 2:
|
|
696
|
+
case "CLOSED":
|
|
697
|
+
return FeatureSet_EnumType.CLOSED;
|
|
698
|
+
case -1:
|
|
699
|
+
case "UNRECOGNIZED":
|
|
700
|
+
default:
|
|
701
|
+
return FeatureSet_EnumType.UNRECOGNIZED;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
exports.featureSet_EnumTypeFromJSON = featureSet_EnumTypeFromJSON;
|
|
705
|
+
function featureSet_EnumTypeToJSON(object) {
|
|
706
|
+
switch (object) {
|
|
707
|
+
case FeatureSet_EnumType.ENUM_TYPE_UNKNOWN:
|
|
708
|
+
return "ENUM_TYPE_UNKNOWN";
|
|
709
|
+
case FeatureSet_EnumType.OPEN:
|
|
710
|
+
return "OPEN";
|
|
711
|
+
case FeatureSet_EnumType.CLOSED:
|
|
712
|
+
return "CLOSED";
|
|
713
|
+
default:
|
|
714
|
+
return "UNKNOWN";
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
exports.featureSet_EnumTypeToJSON = featureSet_EnumTypeToJSON;
|
|
718
|
+
var FeatureSet_RepeatedFieldEncoding;
|
|
719
|
+
(function (FeatureSet_RepeatedFieldEncoding) {
|
|
720
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN";
|
|
721
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED";
|
|
722
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED";
|
|
723
|
+
FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
724
|
+
})(FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_RepeatedFieldEncoding || (exports.FeatureSet_RepeatedFieldEncoding = {}));
|
|
725
|
+
function featureSet_RepeatedFieldEncodingFromJSON(object) {
|
|
726
|
+
switch (object) {
|
|
727
|
+
case 0:
|
|
728
|
+
case "REPEATED_FIELD_ENCODING_UNKNOWN":
|
|
729
|
+
return FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN;
|
|
730
|
+
case 1:
|
|
731
|
+
case "PACKED":
|
|
732
|
+
return FeatureSet_RepeatedFieldEncoding.PACKED;
|
|
733
|
+
case 2:
|
|
734
|
+
case "EXPANDED":
|
|
735
|
+
return FeatureSet_RepeatedFieldEncoding.EXPANDED;
|
|
736
|
+
case -1:
|
|
737
|
+
case "UNRECOGNIZED":
|
|
738
|
+
default:
|
|
739
|
+
return FeatureSet_RepeatedFieldEncoding.UNRECOGNIZED;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
exports.featureSet_RepeatedFieldEncodingFromJSON = featureSet_RepeatedFieldEncodingFromJSON;
|
|
743
|
+
function featureSet_RepeatedFieldEncodingToJSON(object) {
|
|
744
|
+
switch (object) {
|
|
745
|
+
case FeatureSet_RepeatedFieldEncoding.REPEATED_FIELD_ENCODING_UNKNOWN:
|
|
746
|
+
return "REPEATED_FIELD_ENCODING_UNKNOWN";
|
|
747
|
+
case FeatureSet_RepeatedFieldEncoding.PACKED:
|
|
748
|
+
return "PACKED";
|
|
749
|
+
case FeatureSet_RepeatedFieldEncoding.EXPANDED:
|
|
750
|
+
return "EXPANDED";
|
|
751
|
+
default:
|
|
752
|
+
return "UNKNOWN";
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
exports.featureSet_RepeatedFieldEncodingToJSON = featureSet_RepeatedFieldEncodingToJSON;
|
|
756
|
+
var FeatureSet_Utf8Validation;
|
|
757
|
+
(function (FeatureSet_Utf8Validation) {
|
|
758
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
|
759
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 1] = "NONE";
|
|
760
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
|
761
|
+
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
762
|
+
})(FeatureSet_Utf8Validation = exports.FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = {}));
|
|
763
|
+
function featureSet_Utf8ValidationFromJSON(object) {
|
|
764
|
+
switch (object) {
|
|
765
|
+
case 0:
|
|
766
|
+
case "UTF8_VALIDATION_UNKNOWN":
|
|
767
|
+
return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
|
|
768
|
+
case 1:
|
|
769
|
+
case "NONE":
|
|
770
|
+
return FeatureSet_Utf8Validation.NONE;
|
|
771
|
+
case 2:
|
|
772
|
+
case "VERIFY":
|
|
773
|
+
return FeatureSet_Utf8Validation.VERIFY;
|
|
774
|
+
case -1:
|
|
775
|
+
case "UNRECOGNIZED":
|
|
776
|
+
default:
|
|
777
|
+
return FeatureSet_Utf8Validation.UNRECOGNIZED;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
exports.featureSet_Utf8ValidationFromJSON = featureSet_Utf8ValidationFromJSON;
|
|
781
|
+
function featureSet_Utf8ValidationToJSON(object) {
|
|
782
|
+
switch (object) {
|
|
783
|
+
case FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN:
|
|
784
|
+
return "UTF8_VALIDATION_UNKNOWN";
|
|
785
|
+
case FeatureSet_Utf8Validation.NONE:
|
|
786
|
+
return "NONE";
|
|
787
|
+
case FeatureSet_Utf8Validation.VERIFY:
|
|
788
|
+
return "VERIFY";
|
|
789
|
+
default:
|
|
790
|
+
return "UNKNOWN";
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
exports.featureSet_Utf8ValidationToJSON = featureSet_Utf8ValidationToJSON;
|
|
794
|
+
var FeatureSet_MessageEncoding;
|
|
795
|
+
(function (FeatureSet_MessageEncoding) {
|
|
796
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN";
|
|
797
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED";
|
|
798
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED";
|
|
799
|
+
FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
800
|
+
})(FeatureSet_MessageEncoding = exports.FeatureSet_MessageEncoding || (exports.FeatureSet_MessageEncoding = {}));
|
|
801
|
+
function featureSet_MessageEncodingFromJSON(object) {
|
|
802
|
+
switch (object) {
|
|
803
|
+
case 0:
|
|
804
|
+
case "MESSAGE_ENCODING_UNKNOWN":
|
|
805
|
+
return FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN;
|
|
806
|
+
case 1:
|
|
807
|
+
case "LENGTH_PREFIXED":
|
|
808
|
+
return FeatureSet_MessageEncoding.LENGTH_PREFIXED;
|
|
809
|
+
case 2:
|
|
810
|
+
case "DELIMITED":
|
|
811
|
+
return FeatureSet_MessageEncoding.DELIMITED;
|
|
812
|
+
case -1:
|
|
813
|
+
case "UNRECOGNIZED":
|
|
814
|
+
default:
|
|
815
|
+
return FeatureSet_MessageEncoding.UNRECOGNIZED;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
exports.featureSet_MessageEncodingFromJSON = featureSet_MessageEncodingFromJSON;
|
|
819
|
+
function featureSet_MessageEncodingToJSON(object) {
|
|
820
|
+
switch (object) {
|
|
821
|
+
case FeatureSet_MessageEncoding.MESSAGE_ENCODING_UNKNOWN:
|
|
822
|
+
return "MESSAGE_ENCODING_UNKNOWN";
|
|
823
|
+
case FeatureSet_MessageEncoding.LENGTH_PREFIXED:
|
|
824
|
+
return "LENGTH_PREFIXED";
|
|
825
|
+
case FeatureSet_MessageEncoding.DELIMITED:
|
|
826
|
+
return "DELIMITED";
|
|
827
|
+
default:
|
|
828
|
+
return "UNKNOWN";
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
exports.featureSet_MessageEncodingToJSON = featureSet_MessageEncodingToJSON;
|
|
832
|
+
var FeatureSet_JsonFormat;
|
|
833
|
+
(function (FeatureSet_JsonFormat) {
|
|
834
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN";
|
|
835
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW";
|
|
836
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
|
|
837
|
+
FeatureSet_JsonFormat[FeatureSet_JsonFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
838
|
+
})(FeatureSet_JsonFormat = exports.FeatureSet_JsonFormat || (exports.FeatureSet_JsonFormat = {}));
|
|
839
|
+
function featureSet_JsonFormatFromJSON(object) {
|
|
840
|
+
switch (object) {
|
|
841
|
+
case 0:
|
|
842
|
+
case "JSON_FORMAT_UNKNOWN":
|
|
843
|
+
return FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN;
|
|
844
|
+
case 1:
|
|
845
|
+
case "ALLOW":
|
|
846
|
+
return FeatureSet_JsonFormat.ALLOW;
|
|
847
|
+
case 2:
|
|
848
|
+
case "LEGACY_BEST_EFFORT":
|
|
849
|
+
return FeatureSet_JsonFormat.LEGACY_BEST_EFFORT;
|
|
850
|
+
case -1:
|
|
851
|
+
case "UNRECOGNIZED":
|
|
852
|
+
default:
|
|
853
|
+
return FeatureSet_JsonFormat.UNRECOGNIZED;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
exports.featureSet_JsonFormatFromJSON = featureSet_JsonFormatFromJSON;
|
|
857
|
+
function featureSet_JsonFormatToJSON(object) {
|
|
858
|
+
switch (object) {
|
|
859
|
+
case FeatureSet_JsonFormat.JSON_FORMAT_UNKNOWN:
|
|
860
|
+
return "JSON_FORMAT_UNKNOWN";
|
|
861
|
+
case FeatureSet_JsonFormat.ALLOW:
|
|
862
|
+
return "ALLOW";
|
|
863
|
+
case FeatureSet_JsonFormat.LEGACY_BEST_EFFORT:
|
|
864
|
+
return "LEGACY_BEST_EFFORT";
|
|
865
|
+
default:
|
|
866
|
+
return "UNKNOWN";
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
exports.featureSet_JsonFormatToJSON = featureSet_JsonFormatToJSON;
|
|
497
870
|
/**
|
|
498
871
|
* Represents the identified object's effect on the element in the original
|
|
499
872
|
* .proto file.
|
|
@@ -595,7 +968,7 @@ const baseFileDescriptorProto = {
|
|
|
595
968
|
publicDependency: 0,
|
|
596
969
|
weakDependency: 0,
|
|
597
970
|
syntax: "",
|
|
598
|
-
edition:
|
|
971
|
+
edition: 0,
|
|
599
972
|
};
|
|
600
973
|
exports.FileDescriptorProto = {
|
|
601
974
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -639,8 +1012,8 @@ exports.FileDescriptorProto = {
|
|
|
639
1012
|
if (message.syntax !== "") {
|
|
640
1013
|
writer.uint32(98).string(message.syntax);
|
|
641
1014
|
}
|
|
642
|
-
if (message.edition !==
|
|
643
|
-
writer.uint32(
|
|
1015
|
+
if (message.edition !== 0) {
|
|
1016
|
+
writer.uint32(112).int32(message.edition);
|
|
644
1017
|
}
|
|
645
1018
|
return writer;
|
|
646
1019
|
},
|
|
@@ -710,8 +1083,8 @@ exports.FileDescriptorProto = {
|
|
|
710
1083
|
case 12:
|
|
711
1084
|
message.syntax = reader.string();
|
|
712
1085
|
break;
|
|
713
|
-
case
|
|
714
|
-
message.edition = reader.
|
|
1086
|
+
case 14:
|
|
1087
|
+
message.edition = reader.int32();
|
|
715
1088
|
break;
|
|
716
1089
|
default:
|
|
717
1090
|
reader.skipType(tag & 7);
|
|
@@ -752,8 +1125,8 @@ exports.FileDescriptorProto = {
|
|
|
752
1125
|
: "";
|
|
753
1126
|
message.edition =
|
|
754
1127
|
object.edition !== undefined && object.edition !== null
|
|
755
|
-
?
|
|
756
|
-
:
|
|
1128
|
+
? editionFromJSON(object.edition)
|
|
1129
|
+
: 0;
|
|
757
1130
|
return message;
|
|
758
1131
|
},
|
|
759
1132
|
toJSON(message) {
|
|
@@ -811,7 +1184,8 @@ exports.FileDescriptorProto = {
|
|
|
811
1184
|
? exports.SourceCodeInfo.toJSON(message.sourceCodeInfo)
|
|
812
1185
|
: undefined);
|
|
813
1186
|
message.syntax !== undefined && (obj.syntax = message.syntax);
|
|
814
|
-
message.edition !== undefined &&
|
|
1187
|
+
message.edition !== undefined &&
|
|
1188
|
+
(obj.edition = editionToJSON(message.edition));
|
|
815
1189
|
return obj;
|
|
816
1190
|
},
|
|
817
1191
|
fromPartial(object) {
|
|
@@ -835,7 +1209,7 @@ exports.FileDescriptorProto = {
|
|
|
835
1209
|
? exports.SourceCodeInfo.fromPartial(object.sourceCodeInfo)
|
|
836
1210
|
: undefined;
|
|
837
1211
|
message.syntax = (_k = object.syntax) !== null && _k !== void 0 ? _k : "";
|
|
838
|
-
message.edition = (_l = object.edition) !== null && _l !== void 0 ? _l :
|
|
1212
|
+
message.edition = (_l = object.edition) !== null && _l !== void 0 ? _l : 0;
|
|
839
1213
|
return message;
|
|
840
1214
|
},
|
|
841
1215
|
};
|
|
@@ -1151,12 +1525,21 @@ exports.DescriptorProto_ReservedRange = {
|
|
|
1151
1525
|
return message;
|
|
1152
1526
|
},
|
|
1153
1527
|
};
|
|
1154
|
-
const baseExtensionRangeOptions = {};
|
|
1528
|
+
const baseExtensionRangeOptions = { verification: 0 };
|
|
1155
1529
|
exports.ExtensionRangeOptions = {
|
|
1156
1530
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1157
1531
|
for (const v of message.uninterpretedOption) {
|
|
1158
1532
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1159
1533
|
}
|
|
1534
|
+
for (const v of message.declaration) {
|
|
1535
|
+
exports.ExtensionRangeOptions_Declaration.encode(v, writer.uint32(18).fork()).ldelim();
|
|
1536
|
+
}
|
|
1537
|
+
if (message.features !== undefined) {
|
|
1538
|
+
exports.FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
|
|
1539
|
+
}
|
|
1540
|
+
if (message.verification !== 0) {
|
|
1541
|
+
writer.uint32(24).int32(message.verification);
|
|
1542
|
+
}
|
|
1160
1543
|
return writer;
|
|
1161
1544
|
},
|
|
1162
1545
|
decode(input, length) {
|
|
@@ -1164,12 +1547,22 @@ exports.ExtensionRangeOptions = {
|
|
|
1164
1547
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1165
1548
|
const message = Object.assign({}, baseExtensionRangeOptions);
|
|
1166
1549
|
message.uninterpretedOption = [];
|
|
1550
|
+
message.declaration = [];
|
|
1167
1551
|
while (reader.pos < end) {
|
|
1168
1552
|
const tag = reader.uint32();
|
|
1169
1553
|
switch (tag >>> 3) {
|
|
1170
1554
|
case 999:
|
|
1171
1555
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
1172
1556
|
break;
|
|
1557
|
+
case 2:
|
|
1558
|
+
message.declaration.push(exports.ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
|
|
1559
|
+
break;
|
|
1560
|
+
case 50:
|
|
1561
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
1562
|
+
break;
|
|
1563
|
+
case 3:
|
|
1564
|
+
message.verification = reader.int32();
|
|
1565
|
+
break;
|
|
1173
1566
|
default:
|
|
1174
1567
|
reader.skipType(tag & 7);
|
|
1175
1568
|
break;
|
|
@@ -1178,9 +1571,18 @@ exports.ExtensionRangeOptions = {
|
|
|
1178
1571
|
return message;
|
|
1179
1572
|
},
|
|
1180
1573
|
fromJSON(object) {
|
|
1181
|
-
var _a;
|
|
1574
|
+
var _a, _b;
|
|
1182
1575
|
const message = Object.assign({}, baseExtensionRangeOptions);
|
|
1183
1576
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
1577
|
+
message.declaration = ((_b = object.declaration) !== null && _b !== void 0 ? _b : []).map((e) => exports.ExtensionRangeOptions_Declaration.fromJSON(e));
|
|
1578
|
+
message.features =
|
|
1579
|
+
object.features !== undefined && object.features !== null
|
|
1580
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
1581
|
+
: undefined;
|
|
1582
|
+
message.verification =
|
|
1583
|
+
object.verification !== undefined && object.verification !== null
|
|
1584
|
+
? extensionRangeOptions_VerificationStateFromJSON(object.verification)
|
|
1585
|
+
: 0;
|
|
1184
1586
|
return message;
|
|
1185
1587
|
},
|
|
1186
1588
|
toJSON(message) {
|
|
@@ -1191,12 +1593,129 @@ exports.ExtensionRangeOptions = {
|
|
|
1191
1593
|
else {
|
|
1192
1594
|
obj.uninterpretedOption = [];
|
|
1193
1595
|
}
|
|
1596
|
+
if (message.declaration) {
|
|
1597
|
+
obj.declaration = message.declaration.map((e) => e ? exports.ExtensionRangeOptions_Declaration.toJSON(e) : undefined);
|
|
1598
|
+
}
|
|
1599
|
+
else {
|
|
1600
|
+
obj.declaration = [];
|
|
1601
|
+
}
|
|
1602
|
+
message.features !== undefined &&
|
|
1603
|
+
(obj.features = message.features
|
|
1604
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
1605
|
+
: undefined);
|
|
1606
|
+
message.verification !== undefined &&
|
|
1607
|
+
(obj.verification = extensionRangeOptions_VerificationStateToJSON(message.verification));
|
|
1194
1608
|
return obj;
|
|
1195
1609
|
},
|
|
1196
1610
|
fromPartial(object) {
|
|
1197
|
-
var _a;
|
|
1611
|
+
var _a, _b, _c;
|
|
1198
1612
|
const message = Object.assign({}, baseExtensionRangeOptions);
|
|
1199
1613
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
1614
|
+
message.declaration = ((_b = object.declaration) !== null && _b !== void 0 ? _b : []).map((e) => exports.ExtensionRangeOptions_Declaration.fromPartial(e));
|
|
1615
|
+
message.features =
|
|
1616
|
+
object.features !== undefined && object.features !== null
|
|
1617
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
1618
|
+
: undefined;
|
|
1619
|
+
message.verification = (_c = object.verification) !== null && _c !== void 0 ? _c : 0;
|
|
1620
|
+
return message;
|
|
1621
|
+
},
|
|
1622
|
+
};
|
|
1623
|
+
const baseExtensionRangeOptions_Declaration = {
|
|
1624
|
+
number: 0,
|
|
1625
|
+
fullName: "",
|
|
1626
|
+
type: "",
|
|
1627
|
+
reserved: false,
|
|
1628
|
+
repeated: false,
|
|
1629
|
+
};
|
|
1630
|
+
exports.ExtensionRangeOptions_Declaration = {
|
|
1631
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1632
|
+
if (message.number !== 0) {
|
|
1633
|
+
writer.uint32(8).int32(message.number);
|
|
1634
|
+
}
|
|
1635
|
+
if (message.fullName !== "") {
|
|
1636
|
+
writer.uint32(18).string(message.fullName);
|
|
1637
|
+
}
|
|
1638
|
+
if (message.type !== "") {
|
|
1639
|
+
writer.uint32(26).string(message.type);
|
|
1640
|
+
}
|
|
1641
|
+
if (message.reserved === true) {
|
|
1642
|
+
writer.uint32(40).bool(message.reserved);
|
|
1643
|
+
}
|
|
1644
|
+
if (message.repeated === true) {
|
|
1645
|
+
writer.uint32(48).bool(message.repeated);
|
|
1646
|
+
}
|
|
1647
|
+
return writer;
|
|
1648
|
+
},
|
|
1649
|
+
decode(input, length) {
|
|
1650
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1651
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1652
|
+
const message = Object.assign({}, baseExtensionRangeOptions_Declaration);
|
|
1653
|
+
while (reader.pos < end) {
|
|
1654
|
+
const tag = reader.uint32();
|
|
1655
|
+
switch (tag >>> 3) {
|
|
1656
|
+
case 1:
|
|
1657
|
+
message.number = reader.int32();
|
|
1658
|
+
break;
|
|
1659
|
+
case 2:
|
|
1660
|
+
message.fullName = reader.string();
|
|
1661
|
+
break;
|
|
1662
|
+
case 3:
|
|
1663
|
+
message.type = reader.string();
|
|
1664
|
+
break;
|
|
1665
|
+
case 5:
|
|
1666
|
+
message.reserved = reader.bool();
|
|
1667
|
+
break;
|
|
1668
|
+
case 6:
|
|
1669
|
+
message.repeated = reader.bool();
|
|
1670
|
+
break;
|
|
1671
|
+
default:
|
|
1672
|
+
reader.skipType(tag & 7);
|
|
1673
|
+
break;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
return message;
|
|
1677
|
+
},
|
|
1678
|
+
fromJSON(object) {
|
|
1679
|
+
const message = Object.assign({}, baseExtensionRangeOptions_Declaration);
|
|
1680
|
+
message.number =
|
|
1681
|
+
object.number !== undefined && object.number !== null
|
|
1682
|
+
? Number(object.number)
|
|
1683
|
+
: 0;
|
|
1684
|
+
message.fullName =
|
|
1685
|
+
object.fullName !== undefined && object.fullName !== null
|
|
1686
|
+
? String(object.fullName)
|
|
1687
|
+
: "";
|
|
1688
|
+
message.type =
|
|
1689
|
+
object.type !== undefined && object.type !== null
|
|
1690
|
+
? String(object.type)
|
|
1691
|
+
: "";
|
|
1692
|
+
message.reserved =
|
|
1693
|
+
object.reserved !== undefined && object.reserved !== null
|
|
1694
|
+
? Boolean(object.reserved)
|
|
1695
|
+
: false;
|
|
1696
|
+
message.repeated =
|
|
1697
|
+
object.repeated !== undefined && object.repeated !== null
|
|
1698
|
+
? Boolean(object.repeated)
|
|
1699
|
+
: false;
|
|
1700
|
+
return message;
|
|
1701
|
+
},
|
|
1702
|
+
toJSON(message) {
|
|
1703
|
+
const obj = {};
|
|
1704
|
+
message.number !== undefined && (obj.number = message.number);
|
|
1705
|
+
message.fullName !== undefined && (obj.fullName = message.fullName);
|
|
1706
|
+
message.type !== undefined && (obj.type = message.type);
|
|
1707
|
+
message.reserved !== undefined && (obj.reserved = message.reserved);
|
|
1708
|
+
message.repeated !== undefined && (obj.repeated = message.repeated);
|
|
1709
|
+
return obj;
|
|
1710
|
+
},
|
|
1711
|
+
fromPartial(object) {
|
|
1712
|
+
var _a, _b, _c, _d, _e;
|
|
1713
|
+
const message = Object.assign({}, baseExtensionRangeOptions_Declaration);
|
|
1714
|
+
message.number = (_a = object.number) !== null && _a !== void 0 ? _a : 0;
|
|
1715
|
+
message.fullName = (_b = object.fullName) !== null && _b !== void 0 ? _b : "";
|
|
1716
|
+
message.type = (_c = object.type) !== null && _c !== void 0 ? _c : "";
|
|
1717
|
+
message.reserved = (_d = object.reserved) !== null && _d !== void 0 ? _d : false;
|
|
1718
|
+
message.repeated = (_e = object.repeated) !== null && _e !== void 0 ? _e : false;
|
|
1200
1719
|
return message;
|
|
1201
1720
|
},
|
|
1202
1721
|
};
|
|
@@ -1970,6 +2489,9 @@ exports.FileOptions = {
|
|
|
1970
2489
|
if (message.rubyPackage !== "") {
|
|
1971
2490
|
writer.uint32(362).string(message.rubyPackage);
|
|
1972
2491
|
}
|
|
2492
|
+
if (message.features !== undefined) {
|
|
2493
|
+
exports.FeatureSet.encode(message.features, writer.uint32(402).fork()).ldelim();
|
|
2494
|
+
}
|
|
1973
2495
|
for (const v of message.uninterpretedOption) {
|
|
1974
2496
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
1975
2497
|
}
|
|
@@ -2043,6 +2565,9 @@ exports.FileOptions = {
|
|
|
2043
2565
|
case 45:
|
|
2044
2566
|
message.rubyPackage = reader.string();
|
|
2045
2567
|
break;
|
|
2568
|
+
case 50:
|
|
2569
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
2570
|
+
break;
|
|
2046
2571
|
case 999:
|
|
2047
2572
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2048
2573
|
break;
|
|
@@ -2145,6 +2670,10 @@ exports.FileOptions = {
|
|
|
2145
2670
|
object.rubyPackage !== undefined && object.rubyPackage !== null
|
|
2146
2671
|
? String(object.rubyPackage)
|
|
2147
2672
|
: "";
|
|
2673
|
+
message.features =
|
|
2674
|
+
object.features !== undefined && object.features !== null
|
|
2675
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
2676
|
+
: undefined;
|
|
2148
2677
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2149
2678
|
return message;
|
|
2150
2679
|
},
|
|
@@ -2188,6 +2717,10 @@ exports.FileOptions = {
|
|
|
2188
2717
|
(obj.phpMetadataNamespace = message.phpMetadataNamespace);
|
|
2189
2718
|
message.rubyPackage !== undefined &&
|
|
2190
2719
|
(obj.rubyPackage = message.rubyPackage);
|
|
2720
|
+
message.features !== undefined &&
|
|
2721
|
+
(obj.features = message.features
|
|
2722
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
2723
|
+
: undefined);
|
|
2191
2724
|
if (message.uninterpretedOption) {
|
|
2192
2725
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2193
2726
|
}
|
|
@@ -2220,6 +2753,10 @@ exports.FileOptions = {
|
|
|
2220
2753
|
message.phpNamespace = (_t = object.phpNamespace) !== null && _t !== void 0 ? _t : "";
|
|
2221
2754
|
message.phpMetadataNamespace = (_u = object.phpMetadataNamespace) !== null && _u !== void 0 ? _u : "";
|
|
2222
2755
|
message.rubyPackage = (_v = object.rubyPackage) !== null && _v !== void 0 ? _v : "";
|
|
2756
|
+
message.features =
|
|
2757
|
+
object.features !== undefined && object.features !== null
|
|
2758
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
2759
|
+
: undefined;
|
|
2223
2760
|
message.uninterpretedOption = ((_w = object.uninterpretedOption) !== null && _w !== void 0 ? _w : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2224
2761
|
return message;
|
|
2225
2762
|
},
|
|
@@ -2248,6 +2785,9 @@ exports.MessageOptions = {
|
|
|
2248
2785
|
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
2249
2786
|
writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
2250
2787
|
}
|
|
2788
|
+
if (message.features !== undefined) {
|
|
2789
|
+
exports.FeatureSet.encode(message.features, writer.uint32(98).fork()).ldelim();
|
|
2790
|
+
}
|
|
2251
2791
|
for (const v of message.uninterpretedOption) {
|
|
2252
2792
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2253
2793
|
}
|
|
@@ -2276,6 +2816,9 @@ exports.MessageOptions = {
|
|
|
2276
2816
|
case 11:
|
|
2277
2817
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2278
2818
|
break;
|
|
2819
|
+
case 12:
|
|
2820
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
2821
|
+
break;
|
|
2279
2822
|
case 999:
|
|
2280
2823
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2281
2824
|
break;
|
|
@@ -2312,6 +2855,10 @@ exports.MessageOptions = {
|
|
|
2312
2855
|
object.deprecatedLegacyJsonFieldConflicts !== null
|
|
2313
2856
|
? Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
2314
2857
|
: false;
|
|
2858
|
+
message.features =
|
|
2859
|
+
object.features !== undefined && object.features !== null
|
|
2860
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
2861
|
+
: undefined;
|
|
2315
2862
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2316
2863
|
return message;
|
|
2317
2864
|
},
|
|
@@ -2326,6 +2873,10 @@ exports.MessageOptions = {
|
|
|
2326
2873
|
message.deprecatedLegacyJsonFieldConflicts !== undefined &&
|
|
2327
2874
|
(obj.deprecatedLegacyJsonFieldConflicts =
|
|
2328
2875
|
message.deprecatedLegacyJsonFieldConflicts);
|
|
2876
|
+
message.features !== undefined &&
|
|
2877
|
+
(obj.features = message.features
|
|
2878
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
2879
|
+
: undefined);
|
|
2329
2880
|
if (message.uninterpretedOption) {
|
|
2330
2881
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2331
2882
|
}
|
|
@@ -2344,6 +2895,10 @@ exports.MessageOptions = {
|
|
|
2344
2895
|
message.mapEntry = (_d = object.mapEntry) !== null && _d !== void 0 ? _d : false;
|
|
2345
2896
|
message.deprecatedLegacyJsonFieldConflicts =
|
|
2346
2897
|
(_e = object.deprecatedLegacyJsonFieldConflicts) !== null && _e !== void 0 ? _e : false;
|
|
2898
|
+
message.features =
|
|
2899
|
+
object.features !== undefined && object.features !== null
|
|
2900
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
2901
|
+
: undefined;
|
|
2347
2902
|
message.uninterpretedOption = ((_f = object.uninterpretedOption) !== null && _f !== void 0 ? _f : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2348
2903
|
return message;
|
|
2349
2904
|
},
|
|
@@ -2358,7 +2913,7 @@ const baseFieldOptions = {
|
|
|
2358
2913
|
weak: false,
|
|
2359
2914
|
debugRedact: false,
|
|
2360
2915
|
retention: 0,
|
|
2361
|
-
|
|
2916
|
+
targets: 0,
|
|
2362
2917
|
};
|
|
2363
2918
|
exports.FieldOptions = {
|
|
2364
2919
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -2389,8 +2944,16 @@ exports.FieldOptions = {
|
|
|
2389
2944
|
if (message.retention !== 0) {
|
|
2390
2945
|
writer.uint32(136).int32(message.retention);
|
|
2391
2946
|
}
|
|
2392
|
-
|
|
2393
|
-
|
|
2947
|
+
writer.uint32(154).fork();
|
|
2948
|
+
for (const v of message.targets) {
|
|
2949
|
+
writer.int32(v);
|
|
2950
|
+
}
|
|
2951
|
+
writer.ldelim();
|
|
2952
|
+
for (const v of message.editionDefaults) {
|
|
2953
|
+
exports.FieldOptions_EditionDefault.encode(v, writer.uint32(162).fork()).ldelim();
|
|
2954
|
+
}
|
|
2955
|
+
if (message.features !== undefined) {
|
|
2956
|
+
exports.FeatureSet.encode(message.features, writer.uint32(170).fork()).ldelim();
|
|
2394
2957
|
}
|
|
2395
2958
|
for (const v of message.uninterpretedOption) {
|
|
2396
2959
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
@@ -2401,6 +2964,8 @@ exports.FieldOptions = {
|
|
|
2401
2964
|
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2402
2965
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2403
2966
|
const message = Object.assign({}, baseFieldOptions);
|
|
2967
|
+
message.targets = [];
|
|
2968
|
+
message.editionDefaults = [];
|
|
2404
2969
|
message.uninterpretedOption = [];
|
|
2405
2970
|
while (reader.pos < end) {
|
|
2406
2971
|
const tag = reader.uint32();
|
|
@@ -2432,8 +2997,22 @@ exports.FieldOptions = {
|
|
|
2432
2997
|
case 17:
|
|
2433
2998
|
message.retention = reader.int32();
|
|
2434
2999
|
break;
|
|
2435
|
-
case
|
|
2436
|
-
|
|
3000
|
+
case 19:
|
|
3001
|
+
if ((tag & 7) === 2) {
|
|
3002
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3003
|
+
while (reader.pos < end2) {
|
|
3004
|
+
message.targets.push(reader.int32());
|
|
3005
|
+
}
|
|
3006
|
+
}
|
|
3007
|
+
else {
|
|
3008
|
+
message.targets.push(reader.int32());
|
|
3009
|
+
}
|
|
3010
|
+
break;
|
|
3011
|
+
case 20:
|
|
3012
|
+
message.editionDefaults.push(exports.FieldOptions_EditionDefault.decode(reader, reader.uint32()));
|
|
3013
|
+
break;
|
|
3014
|
+
case 21:
|
|
3015
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
2437
3016
|
break;
|
|
2438
3017
|
case 999:
|
|
2439
3018
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
@@ -2446,7 +3025,7 @@ exports.FieldOptions = {
|
|
|
2446
3025
|
return message;
|
|
2447
3026
|
},
|
|
2448
3027
|
fromJSON(object) {
|
|
2449
|
-
var _a;
|
|
3028
|
+
var _a, _b, _c;
|
|
2450
3029
|
const message = Object.assign({}, baseFieldOptions);
|
|
2451
3030
|
message.ctype =
|
|
2452
3031
|
object.ctype !== undefined && object.ctype !== null
|
|
@@ -2484,11 +3063,13 @@ exports.FieldOptions = {
|
|
|
2484
3063
|
object.retention !== undefined && object.retention !== null
|
|
2485
3064
|
? fieldOptions_OptionRetentionFromJSON(object.retention)
|
|
2486
3065
|
: 0;
|
|
2487
|
-
message.
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
3066
|
+
message.targets = ((_a = object.targets) !== null && _a !== void 0 ? _a : []).map((e) => fieldOptions_OptionTargetTypeFromJSON(e));
|
|
3067
|
+
message.editionDefaults = ((_b = object.editionDefaults) !== null && _b !== void 0 ? _b : []).map((e) => exports.FieldOptions_EditionDefault.fromJSON(e));
|
|
3068
|
+
message.features =
|
|
3069
|
+
object.features !== undefined && object.features !== null
|
|
3070
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
3071
|
+
: undefined;
|
|
3072
|
+
message.uninterpretedOption = ((_c = object.uninterpretedOption) !== null && _c !== void 0 ? _c : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2492
3073
|
return message;
|
|
2493
3074
|
},
|
|
2494
3075
|
toJSON(message) {
|
|
@@ -2507,8 +3088,22 @@ exports.FieldOptions = {
|
|
|
2507
3088
|
(obj.debugRedact = message.debugRedact);
|
|
2508
3089
|
message.retention !== undefined &&
|
|
2509
3090
|
(obj.retention = fieldOptions_OptionRetentionToJSON(message.retention));
|
|
2510
|
-
message.
|
|
2511
|
-
|
|
3091
|
+
if (message.targets) {
|
|
3092
|
+
obj.targets = message.targets.map((e) => fieldOptions_OptionTargetTypeToJSON(e));
|
|
3093
|
+
}
|
|
3094
|
+
else {
|
|
3095
|
+
obj.targets = [];
|
|
3096
|
+
}
|
|
3097
|
+
if (message.editionDefaults) {
|
|
3098
|
+
obj.editionDefaults = message.editionDefaults.map((e) => e ? exports.FieldOptions_EditionDefault.toJSON(e) : undefined);
|
|
3099
|
+
}
|
|
3100
|
+
else {
|
|
3101
|
+
obj.editionDefaults = [];
|
|
3102
|
+
}
|
|
3103
|
+
message.features !== undefined &&
|
|
3104
|
+
(obj.features = message.features
|
|
3105
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
3106
|
+
: undefined);
|
|
2512
3107
|
if (message.uninterpretedOption) {
|
|
2513
3108
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2514
3109
|
}
|
|
@@ -2518,7 +3113,7 @@ exports.FieldOptions = {
|
|
|
2518
3113
|
return obj;
|
|
2519
3114
|
},
|
|
2520
3115
|
fromPartial(object) {
|
|
2521
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3116
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2522
3117
|
const message = Object.assign({}, baseFieldOptions);
|
|
2523
3118
|
message.ctype = (_a = object.ctype) !== null && _a !== void 0 ? _a : 0;
|
|
2524
3119
|
message.packed = (_b = object.packed) !== null && _b !== void 0 ? _b : false;
|
|
@@ -2529,14 +3124,80 @@ exports.FieldOptions = {
|
|
|
2529
3124
|
message.weak = (_g = object.weak) !== null && _g !== void 0 ? _g : false;
|
|
2530
3125
|
message.debugRedact = (_h = object.debugRedact) !== null && _h !== void 0 ? _h : false;
|
|
2531
3126
|
message.retention = (_j = object.retention) !== null && _j !== void 0 ? _j : 0;
|
|
2532
|
-
message.
|
|
2533
|
-
message.
|
|
3127
|
+
message.targets = ((_k = object.targets) !== null && _k !== void 0 ? _k : []).map((e) => e);
|
|
3128
|
+
message.editionDefaults = ((_l = object.editionDefaults) !== null && _l !== void 0 ? _l : []).map((e) => exports.FieldOptions_EditionDefault.fromPartial(e));
|
|
3129
|
+
message.features =
|
|
3130
|
+
object.features !== undefined && object.features !== null
|
|
3131
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
3132
|
+
: undefined;
|
|
3133
|
+
message.uninterpretedOption = ((_m = object.uninterpretedOption) !== null && _m !== void 0 ? _m : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
3134
|
+
return message;
|
|
3135
|
+
},
|
|
3136
|
+
};
|
|
3137
|
+
const baseFieldOptions_EditionDefault = { edition: 0, value: "" };
|
|
3138
|
+
exports.FieldOptions_EditionDefault = {
|
|
3139
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3140
|
+
if (message.edition !== 0) {
|
|
3141
|
+
writer.uint32(24).int32(message.edition);
|
|
3142
|
+
}
|
|
3143
|
+
if (message.value !== "") {
|
|
3144
|
+
writer.uint32(18).string(message.value);
|
|
3145
|
+
}
|
|
3146
|
+
return writer;
|
|
3147
|
+
},
|
|
3148
|
+
decode(input, length) {
|
|
3149
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
3150
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3151
|
+
const message = Object.assign({}, baseFieldOptions_EditionDefault);
|
|
3152
|
+
while (reader.pos < end) {
|
|
3153
|
+
const tag = reader.uint32();
|
|
3154
|
+
switch (tag >>> 3) {
|
|
3155
|
+
case 3:
|
|
3156
|
+
message.edition = reader.int32();
|
|
3157
|
+
break;
|
|
3158
|
+
case 2:
|
|
3159
|
+
message.value = reader.string();
|
|
3160
|
+
break;
|
|
3161
|
+
default:
|
|
3162
|
+
reader.skipType(tag & 7);
|
|
3163
|
+
break;
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
return message;
|
|
3167
|
+
},
|
|
3168
|
+
fromJSON(object) {
|
|
3169
|
+
const message = Object.assign({}, baseFieldOptions_EditionDefault);
|
|
3170
|
+
message.edition =
|
|
3171
|
+
object.edition !== undefined && object.edition !== null
|
|
3172
|
+
? editionFromJSON(object.edition)
|
|
3173
|
+
: 0;
|
|
3174
|
+
message.value =
|
|
3175
|
+
object.value !== undefined && object.value !== null
|
|
3176
|
+
? String(object.value)
|
|
3177
|
+
: "";
|
|
3178
|
+
return message;
|
|
3179
|
+
},
|
|
3180
|
+
toJSON(message) {
|
|
3181
|
+
const obj = {};
|
|
3182
|
+
message.edition !== undefined &&
|
|
3183
|
+
(obj.edition = editionToJSON(message.edition));
|
|
3184
|
+
message.value !== undefined && (obj.value = message.value);
|
|
3185
|
+
return obj;
|
|
3186
|
+
},
|
|
3187
|
+
fromPartial(object) {
|
|
3188
|
+
var _a, _b;
|
|
3189
|
+
const message = Object.assign({}, baseFieldOptions_EditionDefault);
|
|
3190
|
+
message.edition = (_a = object.edition) !== null && _a !== void 0 ? _a : 0;
|
|
3191
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
2534
3192
|
return message;
|
|
2535
3193
|
},
|
|
2536
3194
|
};
|
|
2537
3195
|
const baseOneofOptions = {};
|
|
2538
3196
|
exports.OneofOptions = {
|
|
2539
3197
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3198
|
+
if (message.features !== undefined) {
|
|
3199
|
+
exports.FeatureSet.encode(message.features, writer.uint32(10).fork()).ldelim();
|
|
3200
|
+
}
|
|
2540
3201
|
for (const v of message.uninterpretedOption) {
|
|
2541
3202
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2542
3203
|
}
|
|
@@ -2550,6 +3211,9 @@ exports.OneofOptions = {
|
|
|
2550
3211
|
while (reader.pos < end) {
|
|
2551
3212
|
const tag = reader.uint32();
|
|
2552
3213
|
switch (tag >>> 3) {
|
|
3214
|
+
case 1:
|
|
3215
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
3216
|
+
break;
|
|
2553
3217
|
case 999:
|
|
2554
3218
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2555
3219
|
break;
|
|
@@ -2563,11 +3227,19 @@ exports.OneofOptions = {
|
|
|
2563
3227
|
fromJSON(object) {
|
|
2564
3228
|
var _a;
|
|
2565
3229
|
const message = Object.assign({}, baseOneofOptions);
|
|
3230
|
+
message.features =
|
|
3231
|
+
object.features !== undefined && object.features !== null
|
|
3232
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
3233
|
+
: undefined;
|
|
2566
3234
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2567
3235
|
return message;
|
|
2568
3236
|
},
|
|
2569
3237
|
toJSON(message) {
|
|
2570
3238
|
const obj = {};
|
|
3239
|
+
message.features !== undefined &&
|
|
3240
|
+
(obj.features = message.features
|
|
3241
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
3242
|
+
: undefined);
|
|
2571
3243
|
if (message.uninterpretedOption) {
|
|
2572
3244
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2573
3245
|
}
|
|
@@ -2579,6 +3251,10 @@ exports.OneofOptions = {
|
|
|
2579
3251
|
fromPartial(object) {
|
|
2580
3252
|
var _a;
|
|
2581
3253
|
const message = Object.assign({}, baseOneofOptions);
|
|
3254
|
+
message.features =
|
|
3255
|
+
object.features !== undefined && object.features !== null
|
|
3256
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
3257
|
+
: undefined;
|
|
2582
3258
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2583
3259
|
return message;
|
|
2584
3260
|
},
|
|
@@ -2599,6 +3275,9 @@ exports.EnumOptions = {
|
|
|
2599
3275
|
if (message.deprecatedLegacyJsonFieldConflicts === true) {
|
|
2600
3276
|
writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
2601
3277
|
}
|
|
3278
|
+
if (message.features !== undefined) {
|
|
3279
|
+
exports.FeatureSet.encode(message.features, writer.uint32(58).fork()).ldelim();
|
|
3280
|
+
}
|
|
2602
3281
|
for (const v of message.uninterpretedOption) {
|
|
2603
3282
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2604
3283
|
}
|
|
@@ -2621,6 +3300,9 @@ exports.EnumOptions = {
|
|
|
2621
3300
|
case 6:
|
|
2622
3301
|
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
2623
3302
|
break;
|
|
3303
|
+
case 7:
|
|
3304
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
3305
|
+
break;
|
|
2624
3306
|
case 999:
|
|
2625
3307
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2626
3308
|
break;
|
|
@@ -2647,6 +3329,10 @@ exports.EnumOptions = {
|
|
|
2647
3329
|
object.deprecatedLegacyJsonFieldConflicts !== null
|
|
2648
3330
|
? Boolean(object.deprecatedLegacyJsonFieldConflicts)
|
|
2649
3331
|
: false;
|
|
3332
|
+
message.features =
|
|
3333
|
+
object.features !== undefined && object.features !== null
|
|
3334
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
3335
|
+
: undefined;
|
|
2650
3336
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2651
3337
|
return message;
|
|
2652
3338
|
},
|
|
@@ -2657,6 +3343,10 @@ exports.EnumOptions = {
|
|
|
2657
3343
|
message.deprecatedLegacyJsonFieldConflicts !== undefined &&
|
|
2658
3344
|
(obj.deprecatedLegacyJsonFieldConflicts =
|
|
2659
3345
|
message.deprecatedLegacyJsonFieldConflicts);
|
|
3346
|
+
message.features !== undefined &&
|
|
3347
|
+
(obj.features = message.features
|
|
3348
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
3349
|
+
: undefined);
|
|
2660
3350
|
if (message.uninterpretedOption) {
|
|
2661
3351
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2662
3352
|
}
|
|
@@ -2672,16 +3362,26 @@ exports.EnumOptions = {
|
|
|
2672
3362
|
message.deprecated = (_b = object.deprecated) !== null && _b !== void 0 ? _b : false;
|
|
2673
3363
|
message.deprecatedLegacyJsonFieldConflicts =
|
|
2674
3364
|
(_c = object.deprecatedLegacyJsonFieldConflicts) !== null && _c !== void 0 ? _c : false;
|
|
3365
|
+
message.features =
|
|
3366
|
+
object.features !== undefined && object.features !== null
|
|
3367
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
3368
|
+
: undefined;
|
|
2675
3369
|
message.uninterpretedOption = ((_d = object.uninterpretedOption) !== null && _d !== void 0 ? _d : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2676
3370
|
return message;
|
|
2677
3371
|
},
|
|
2678
3372
|
};
|
|
2679
|
-
const baseEnumValueOptions = { deprecated: false };
|
|
3373
|
+
const baseEnumValueOptions = { deprecated: false, debugRedact: false };
|
|
2680
3374
|
exports.EnumValueOptions = {
|
|
2681
3375
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2682
3376
|
if (message.deprecated === true) {
|
|
2683
3377
|
writer.uint32(8).bool(message.deprecated);
|
|
2684
3378
|
}
|
|
3379
|
+
if (message.features !== undefined) {
|
|
3380
|
+
exports.FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
|
|
3381
|
+
}
|
|
3382
|
+
if (message.debugRedact === true) {
|
|
3383
|
+
writer.uint32(24).bool(message.debugRedact);
|
|
3384
|
+
}
|
|
2685
3385
|
for (const v of message.uninterpretedOption) {
|
|
2686
3386
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2687
3387
|
}
|
|
@@ -2698,6 +3398,12 @@ exports.EnumValueOptions = {
|
|
|
2698
3398
|
case 1:
|
|
2699
3399
|
message.deprecated = reader.bool();
|
|
2700
3400
|
break;
|
|
3401
|
+
case 2:
|
|
3402
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
3403
|
+
break;
|
|
3404
|
+
case 3:
|
|
3405
|
+
message.debugRedact = reader.bool();
|
|
3406
|
+
break;
|
|
2701
3407
|
case 999:
|
|
2702
3408
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2703
3409
|
break;
|
|
@@ -2715,12 +3421,26 @@ exports.EnumValueOptions = {
|
|
|
2715
3421
|
object.deprecated !== undefined && object.deprecated !== null
|
|
2716
3422
|
? Boolean(object.deprecated)
|
|
2717
3423
|
: false;
|
|
3424
|
+
message.features =
|
|
3425
|
+
object.features !== undefined && object.features !== null
|
|
3426
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
3427
|
+
: undefined;
|
|
3428
|
+
message.debugRedact =
|
|
3429
|
+
object.debugRedact !== undefined && object.debugRedact !== null
|
|
3430
|
+
? Boolean(object.debugRedact)
|
|
3431
|
+
: false;
|
|
2718
3432
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2719
3433
|
return message;
|
|
2720
3434
|
},
|
|
2721
3435
|
toJSON(message) {
|
|
2722
3436
|
const obj = {};
|
|
2723
3437
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
3438
|
+
message.features !== undefined &&
|
|
3439
|
+
(obj.features = message.features
|
|
3440
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
3441
|
+
: undefined);
|
|
3442
|
+
message.debugRedact !== undefined &&
|
|
3443
|
+
(obj.debugRedact = message.debugRedact);
|
|
2724
3444
|
if (message.uninterpretedOption) {
|
|
2725
3445
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2726
3446
|
}
|
|
@@ -2730,16 +3450,24 @@ exports.EnumValueOptions = {
|
|
|
2730
3450
|
return obj;
|
|
2731
3451
|
},
|
|
2732
3452
|
fromPartial(object) {
|
|
2733
|
-
var _a, _b;
|
|
3453
|
+
var _a, _b, _c;
|
|
2734
3454
|
const message = Object.assign({}, baseEnumValueOptions);
|
|
2735
3455
|
message.deprecated = (_a = object.deprecated) !== null && _a !== void 0 ? _a : false;
|
|
2736
|
-
message.
|
|
3456
|
+
message.features =
|
|
3457
|
+
object.features !== undefined && object.features !== null
|
|
3458
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
3459
|
+
: undefined;
|
|
3460
|
+
message.debugRedact = (_b = object.debugRedact) !== null && _b !== void 0 ? _b : false;
|
|
3461
|
+
message.uninterpretedOption = ((_c = object.uninterpretedOption) !== null && _c !== void 0 ? _c : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2737
3462
|
return message;
|
|
2738
3463
|
},
|
|
2739
3464
|
};
|
|
2740
3465
|
const baseServiceOptions = { deprecated: false };
|
|
2741
3466
|
exports.ServiceOptions = {
|
|
2742
3467
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3468
|
+
if (message.features !== undefined) {
|
|
3469
|
+
exports.FeatureSet.encode(message.features, writer.uint32(274).fork()).ldelim();
|
|
3470
|
+
}
|
|
2743
3471
|
if (message.deprecated === true) {
|
|
2744
3472
|
writer.uint32(264).bool(message.deprecated);
|
|
2745
3473
|
}
|
|
@@ -2756,6 +3484,9 @@ exports.ServiceOptions = {
|
|
|
2756
3484
|
while (reader.pos < end) {
|
|
2757
3485
|
const tag = reader.uint32();
|
|
2758
3486
|
switch (tag >>> 3) {
|
|
3487
|
+
case 34:
|
|
3488
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
3489
|
+
break;
|
|
2759
3490
|
case 33:
|
|
2760
3491
|
message.deprecated = reader.bool();
|
|
2761
3492
|
break;
|
|
@@ -2772,6 +3503,10 @@ exports.ServiceOptions = {
|
|
|
2772
3503
|
fromJSON(object) {
|
|
2773
3504
|
var _a;
|
|
2774
3505
|
const message = Object.assign({}, baseServiceOptions);
|
|
3506
|
+
message.features =
|
|
3507
|
+
object.features !== undefined && object.features !== null
|
|
3508
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
3509
|
+
: undefined;
|
|
2775
3510
|
message.deprecated =
|
|
2776
3511
|
object.deprecated !== undefined && object.deprecated !== null
|
|
2777
3512
|
? Boolean(object.deprecated)
|
|
@@ -2781,6 +3516,10 @@ exports.ServiceOptions = {
|
|
|
2781
3516
|
},
|
|
2782
3517
|
toJSON(message) {
|
|
2783
3518
|
const obj = {};
|
|
3519
|
+
message.features !== undefined &&
|
|
3520
|
+
(obj.features = message.features
|
|
3521
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
3522
|
+
: undefined);
|
|
2784
3523
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
2785
3524
|
if (message.uninterpretedOption) {
|
|
2786
3525
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
@@ -2793,6 +3532,10 @@ exports.ServiceOptions = {
|
|
|
2793
3532
|
fromPartial(object) {
|
|
2794
3533
|
var _a, _b;
|
|
2795
3534
|
const message = Object.assign({}, baseServiceOptions);
|
|
3535
|
+
message.features =
|
|
3536
|
+
object.features !== undefined && object.features !== null
|
|
3537
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
3538
|
+
: undefined;
|
|
2796
3539
|
message.deprecated = (_a = object.deprecated) !== null && _a !== void 0 ? _a : false;
|
|
2797
3540
|
message.uninterpretedOption = ((_b = object.uninterpretedOption) !== null && _b !== void 0 ? _b : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2798
3541
|
return message;
|
|
@@ -2807,6 +3550,9 @@ exports.MethodOptions = {
|
|
|
2807
3550
|
if (message.idempotencyLevel !== 0) {
|
|
2808
3551
|
writer.uint32(272).int32(message.idempotencyLevel);
|
|
2809
3552
|
}
|
|
3553
|
+
if (message.features !== undefined) {
|
|
3554
|
+
exports.FeatureSet.encode(message.features, writer.uint32(282).fork()).ldelim();
|
|
3555
|
+
}
|
|
2810
3556
|
for (const v of message.uninterpretedOption) {
|
|
2811
3557
|
exports.UninterpretedOption.encode(v, writer.uint32(7994).fork()).ldelim();
|
|
2812
3558
|
}
|
|
@@ -2826,6 +3572,9 @@ exports.MethodOptions = {
|
|
|
2826
3572
|
case 34:
|
|
2827
3573
|
message.idempotencyLevel = reader.int32();
|
|
2828
3574
|
break;
|
|
3575
|
+
case 35:
|
|
3576
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
3577
|
+
break;
|
|
2829
3578
|
case 999:
|
|
2830
3579
|
message.uninterpretedOption.push(exports.UninterpretedOption.decode(reader, reader.uint32()));
|
|
2831
3580
|
break;
|
|
@@ -2847,6 +3596,10 @@ exports.MethodOptions = {
|
|
|
2847
3596
|
object.idempotencyLevel !== undefined && object.idempotencyLevel !== null
|
|
2848
3597
|
? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel)
|
|
2849
3598
|
: 0;
|
|
3599
|
+
message.features =
|
|
3600
|
+
object.features !== undefined && object.features !== null
|
|
3601
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
3602
|
+
: undefined;
|
|
2850
3603
|
message.uninterpretedOption = ((_a = object.uninterpretedOption) !== null && _a !== void 0 ? _a : []).map((e) => exports.UninterpretedOption.fromJSON(e));
|
|
2851
3604
|
return message;
|
|
2852
3605
|
},
|
|
@@ -2855,6 +3608,10 @@ exports.MethodOptions = {
|
|
|
2855
3608
|
message.deprecated !== undefined && (obj.deprecated = message.deprecated);
|
|
2856
3609
|
message.idempotencyLevel !== undefined &&
|
|
2857
3610
|
(obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel));
|
|
3611
|
+
message.features !== undefined &&
|
|
3612
|
+
(obj.features = message.features
|
|
3613
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
3614
|
+
: undefined);
|
|
2858
3615
|
if (message.uninterpretedOption) {
|
|
2859
3616
|
obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined);
|
|
2860
3617
|
}
|
|
@@ -2868,6 +3625,10 @@ exports.MethodOptions = {
|
|
|
2868
3625
|
const message = Object.assign({}, baseMethodOptions);
|
|
2869
3626
|
message.deprecated = (_a = object.deprecated) !== null && _a !== void 0 ? _a : false;
|
|
2870
3627
|
message.idempotencyLevel = (_b = object.idempotencyLevel) !== null && _b !== void 0 ? _b : 0;
|
|
3628
|
+
message.features =
|
|
3629
|
+
object.features !== undefined && object.features !== null
|
|
3630
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
3631
|
+
: undefined;
|
|
2871
3632
|
message.uninterpretedOption = ((_c = object.uninterpretedOption) !== null && _c !== void 0 ? _c : []).map((e) => exports.UninterpretedOption.fromPartial(e));
|
|
2872
3633
|
return message;
|
|
2873
3634
|
},
|
|
@@ -3075,6 +3836,264 @@ exports.UninterpretedOption_NamePart = {
|
|
|
3075
3836
|
return message;
|
|
3076
3837
|
},
|
|
3077
3838
|
};
|
|
3839
|
+
const baseFeatureSet = {
|
|
3840
|
+
fieldPresence: 0,
|
|
3841
|
+
enumType: 0,
|
|
3842
|
+
repeatedFieldEncoding: 0,
|
|
3843
|
+
utf8Validation: 0,
|
|
3844
|
+
messageEncoding: 0,
|
|
3845
|
+
jsonFormat: 0,
|
|
3846
|
+
};
|
|
3847
|
+
exports.FeatureSet = {
|
|
3848
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3849
|
+
if (message.fieldPresence !== 0) {
|
|
3850
|
+
writer.uint32(8).int32(message.fieldPresence);
|
|
3851
|
+
}
|
|
3852
|
+
if (message.enumType !== 0) {
|
|
3853
|
+
writer.uint32(16).int32(message.enumType);
|
|
3854
|
+
}
|
|
3855
|
+
if (message.repeatedFieldEncoding !== 0) {
|
|
3856
|
+
writer.uint32(24).int32(message.repeatedFieldEncoding);
|
|
3857
|
+
}
|
|
3858
|
+
if (message.utf8Validation !== 0) {
|
|
3859
|
+
writer.uint32(32).int32(message.utf8Validation);
|
|
3860
|
+
}
|
|
3861
|
+
if (message.messageEncoding !== 0) {
|
|
3862
|
+
writer.uint32(40).int32(message.messageEncoding);
|
|
3863
|
+
}
|
|
3864
|
+
if (message.jsonFormat !== 0) {
|
|
3865
|
+
writer.uint32(48).int32(message.jsonFormat);
|
|
3866
|
+
}
|
|
3867
|
+
return writer;
|
|
3868
|
+
},
|
|
3869
|
+
decode(input, length) {
|
|
3870
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
3871
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3872
|
+
const message = Object.assign({}, baseFeatureSet);
|
|
3873
|
+
while (reader.pos < end) {
|
|
3874
|
+
const tag = reader.uint32();
|
|
3875
|
+
switch (tag >>> 3) {
|
|
3876
|
+
case 1:
|
|
3877
|
+
message.fieldPresence = reader.int32();
|
|
3878
|
+
break;
|
|
3879
|
+
case 2:
|
|
3880
|
+
message.enumType = reader.int32();
|
|
3881
|
+
break;
|
|
3882
|
+
case 3:
|
|
3883
|
+
message.repeatedFieldEncoding = reader.int32();
|
|
3884
|
+
break;
|
|
3885
|
+
case 4:
|
|
3886
|
+
message.utf8Validation = reader.int32();
|
|
3887
|
+
break;
|
|
3888
|
+
case 5:
|
|
3889
|
+
message.messageEncoding = reader.int32();
|
|
3890
|
+
break;
|
|
3891
|
+
case 6:
|
|
3892
|
+
message.jsonFormat = reader.int32();
|
|
3893
|
+
break;
|
|
3894
|
+
default:
|
|
3895
|
+
reader.skipType(tag & 7);
|
|
3896
|
+
break;
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
return message;
|
|
3900
|
+
},
|
|
3901
|
+
fromJSON(object) {
|
|
3902
|
+
const message = Object.assign({}, baseFeatureSet);
|
|
3903
|
+
message.fieldPresence =
|
|
3904
|
+
object.fieldPresence !== undefined && object.fieldPresence !== null
|
|
3905
|
+
? featureSet_FieldPresenceFromJSON(object.fieldPresence)
|
|
3906
|
+
: 0;
|
|
3907
|
+
message.enumType =
|
|
3908
|
+
object.enumType !== undefined && object.enumType !== null
|
|
3909
|
+
? featureSet_EnumTypeFromJSON(object.enumType)
|
|
3910
|
+
: 0;
|
|
3911
|
+
message.repeatedFieldEncoding =
|
|
3912
|
+
object.repeatedFieldEncoding !== undefined &&
|
|
3913
|
+
object.repeatedFieldEncoding !== null
|
|
3914
|
+
? featureSet_RepeatedFieldEncodingFromJSON(object.repeatedFieldEncoding)
|
|
3915
|
+
: 0;
|
|
3916
|
+
message.utf8Validation =
|
|
3917
|
+
object.utf8Validation !== undefined && object.utf8Validation !== null
|
|
3918
|
+
? featureSet_Utf8ValidationFromJSON(object.utf8Validation)
|
|
3919
|
+
: 0;
|
|
3920
|
+
message.messageEncoding =
|
|
3921
|
+
object.messageEncoding !== undefined && object.messageEncoding !== null
|
|
3922
|
+
? featureSet_MessageEncodingFromJSON(object.messageEncoding)
|
|
3923
|
+
: 0;
|
|
3924
|
+
message.jsonFormat =
|
|
3925
|
+
object.jsonFormat !== undefined && object.jsonFormat !== null
|
|
3926
|
+
? featureSet_JsonFormatFromJSON(object.jsonFormat)
|
|
3927
|
+
: 0;
|
|
3928
|
+
return message;
|
|
3929
|
+
},
|
|
3930
|
+
toJSON(message) {
|
|
3931
|
+
const obj = {};
|
|
3932
|
+
message.fieldPresence !== undefined &&
|
|
3933
|
+
(obj.fieldPresence = featureSet_FieldPresenceToJSON(message.fieldPresence));
|
|
3934
|
+
message.enumType !== undefined &&
|
|
3935
|
+
(obj.enumType = featureSet_EnumTypeToJSON(message.enumType));
|
|
3936
|
+
message.repeatedFieldEncoding !== undefined &&
|
|
3937
|
+
(obj.repeatedFieldEncoding = featureSet_RepeatedFieldEncodingToJSON(message.repeatedFieldEncoding));
|
|
3938
|
+
message.utf8Validation !== undefined &&
|
|
3939
|
+
(obj.utf8Validation = featureSet_Utf8ValidationToJSON(message.utf8Validation));
|
|
3940
|
+
message.messageEncoding !== undefined &&
|
|
3941
|
+
(obj.messageEncoding = featureSet_MessageEncodingToJSON(message.messageEncoding));
|
|
3942
|
+
message.jsonFormat !== undefined &&
|
|
3943
|
+
(obj.jsonFormat = featureSet_JsonFormatToJSON(message.jsonFormat));
|
|
3944
|
+
return obj;
|
|
3945
|
+
},
|
|
3946
|
+
fromPartial(object) {
|
|
3947
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3948
|
+
const message = Object.assign({}, baseFeatureSet);
|
|
3949
|
+
message.fieldPresence = (_a = object.fieldPresence) !== null && _a !== void 0 ? _a : 0;
|
|
3950
|
+
message.enumType = (_b = object.enumType) !== null && _b !== void 0 ? _b : 0;
|
|
3951
|
+
message.repeatedFieldEncoding = (_c = object.repeatedFieldEncoding) !== null && _c !== void 0 ? _c : 0;
|
|
3952
|
+
message.utf8Validation = (_d = object.utf8Validation) !== null && _d !== void 0 ? _d : 0;
|
|
3953
|
+
message.messageEncoding = (_e = object.messageEncoding) !== null && _e !== void 0 ? _e : 0;
|
|
3954
|
+
message.jsonFormat = (_f = object.jsonFormat) !== null && _f !== void 0 ? _f : 0;
|
|
3955
|
+
return message;
|
|
3956
|
+
},
|
|
3957
|
+
};
|
|
3958
|
+
const baseFeatureSetDefaults = { minimumEdition: 0, maximumEdition: 0 };
|
|
3959
|
+
exports.FeatureSetDefaults = {
|
|
3960
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3961
|
+
for (const v of message.defaults) {
|
|
3962
|
+
exports.FeatureSetDefaults_FeatureSetEditionDefault.encode(v, writer.uint32(10).fork()).ldelim();
|
|
3963
|
+
}
|
|
3964
|
+
if (message.minimumEdition !== 0) {
|
|
3965
|
+
writer.uint32(32).int32(message.minimumEdition);
|
|
3966
|
+
}
|
|
3967
|
+
if (message.maximumEdition !== 0) {
|
|
3968
|
+
writer.uint32(40).int32(message.maximumEdition);
|
|
3969
|
+
}
|
|
3970
|
+
return writer;
|
|
3971
|
+
},
|
|
3972
|
+
decode(input, length) {
|
|
3973
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
3974
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3975
|
+
const message = Object.assign({}, baseFeatureSetDefaults);
|
|
3976
|
+
message.defaults = [];
|
|
3977
|
+
while (reader.pos < end) {
|
|
3978
|
+
const tag = reader.uint32();
|
|
3979
|
+
switch (tag >>> 3) {
|
|
3980
|
+
case 1:
|
|
3981
|
+
message.defaults.push(exports.FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
|
|
3982
|
+
break;
|
|
3983
|
+
case 4:
|
|
3984
|
+
message.minimumEdition = reader.int32();
|
|
3985
|
+
break;
|
|
3986
|
+
case 5:
|
|
3987
|
+
message.maximumEdition = reader.int32();
|
|
3988
|
+
break;
|
|
3989
|
+
default:
|
|
3990
|
+
reader.skipType(tag & 7);
|
|
3991
|
+
break;
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
return message;
|
|
3995
|
+
},
|
|
3996
|
+
fromJSON(object) {
|
|
3997
|
+
var _a;
|
|
3998
|
+
const message = Object.assign({}, baseFeatureSetDefaults);
|
|
3999
|
+
message.defaults = ((_a = object.defaults) !== null && _a !== void 0 ? _a : []).map((e) => exports.FeatureSetDefaults_FeatureSetEditionDefault.fromJSON(e));
|
|
4000
|
+
message.minimumEdition =
|
|
4001
|
+
object.minimumEdition !== undefined && object.minimumEdition !== null
|
|
4002
|
+
? editionFromJSON(object.minimumEdition)
|
|
4003
|
+
: 0;
|
|
4004
|
+
message.maximumEdition =
|
|
4005
|
+
object.maximumEdition !== undefined && object.maximumEdition !== null
|
|
4006
|
+
? editionFromJSON(object.maximumEdition)
|
|
4007
|
+
: 0;
|
|
4008
|
+
return message;
|
|
4009
|
+
},
|
|
4010
|
+
toJSON(message) {
|
|
4011
|
+
const obj = {};
|
|
4012
|
+
if (message.defaults) {
|
|
4013
|
+
obj.defaults = message.defaults.map((e) => e ? exports.FeatureSetDefaults_FeatureSetEditionDefault.toJSON(e) : undefined);
|
|
4014
|
+
}
|
|
4015
|
+
else {
|
|
4016
|
+
obj.defaults = [];
|
|
4017
|
+
}
|
|
4018
|
+
message.minimumEdition !== undefined &&
|
|
4019
|
+
(obj.minimumEdition = editionToJSON(message.minimumEdition));
|
|
4020
|
+
message.maximumEdition !== undefined &&
|
|
4021
|
+
(obj.maximumEdition = editionToJSON(message.maximumEdition));
|
|
4022
|
+
return obj;
|
|
4023
|
+
},
|
|
4024
|
+
fromPartial(object) {
|
|
4025
|
+
var _a, _b, _c;
|
|
4026
|
+
const message = Object.assign({}, baseFeatureSetDefaults);
|
|
4027
|
+
message.defaults = ((_a = object.defaults) !== null && _a !== void 0 ? _a : []).map((e) => exports.FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e));
|
|
4028
|
+
message.minimumEdition = (_b = object.minimumEdition) !== null && _b !== void 0 ? _b : 0;
|
|
4029
|
+
message.maximumEdition = (_c = object.maximumEdition) !== null && _c !== void 0 ? _c : 0;
|
|
4030
|
+
return message;
|
|
4031
|
+
},
|
|
4032
|
+
};
|
|
4033
|
+
const baseFeatureSetDefaults_FeatureSetEditionDefault = { edition: 0 };
|
|
4034
|
+
exports.FeatureSetDefaults_FeatureSetEditionDefault = {
|
|
4035
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
4036
|
+
if (message.edition !== 0) {
|
|
4037
|
+
writer.uint32(24).int32(message.edition);
|
|
4038
|
+
}
|
|
4039
|
+
if (message.features !== undefined) {
|
|
4040
|
+
exports.FeatureSet.encode(message.features, writer.uint32(18).fork()).ldelim();
|
|
4041
|
+
}
|
|
4042
|
+
return writer;
|
|
4043
|
+
},
|
|
4044
|
+
decode(input, length) {
|
|
4045
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
4046
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
4047
|
+
const message = Object.assign({}, baseFeatureSetDefaults_FeatureSetEditionDefault);
|
|
4048
|
+
while (reader.pos < end) {
|
|
4049
|
+
const tag = reader.uint32();
|
|
4050
|
+
switch (tag >>> 3) {
|
|
4051
|
+
case 3:
|
|
4052
|
+
message.edition = reader.int32();
|
|
4053
|
+
break;
|
|
4054
|
+
case 2:
|
|
4055
|
+
message.features = exports.FeatureSet.decode(reader, reader.uint32());
|
|
4056
|
+
break;
|
|
4057
|
+
default:
|
|
4058
|
+
reader.skipType(tag & 7);
|
|
4059
|
+
break;
|
|
4060
|
+
}
|
|
4061
|
+
}
|
|
4062
|
+
return message;
|
|
4063
|
+
},
|
|
4064
|
+
fromJSON(object) {
|
|
4065
|
+
const message = Object.assign({}, baseFeatureSetDefaults_FeatureSetEditionDefault);
|
|
4066
|
+
message.edition =
|
|
4067
|
+
object.edition !== undefined && object.edition !== null
|
|
4068
|
+
? editionFromJSON(object.edition)
|
|
4069
|
+
: 0;
|
|
4070
|
+
message.features =
|
|
4071
|
+
object.features !== undefined && object.features !== null
|
|
4072
|
+
? exports.FeatureSet.fromJSON(object.features)
|
|
4073
|
+
: undefined;
|
|
4074
|
+
return message;
|
|
4075
|
+
},
|
|
4076
|
+
toJSON(message) {
|
|
4077
|
+
const obj = {};
|
|
4078
|
+
message.edition !== undefined &&
|
|
4079
|
+
(obj.edition = editionToJSON(message.edition));
|
|
4080
|
+
message.features !== undefined &&
|
|
4081
|
+
(obj.features = message.features
|
|
4082
|
+
? exports.FeatureSet.toJSON(message.features)
|
|
4083
|
+
: undefined);
|
|
4084
|
+
return obj;
|
|
4085
|
+
},
|
|
4086
|
+
fromPartial(object) {
|
|
4087
|
+
var _a;
|
|
4088
|
+
const message = Object.assign({}, baseFeatureSetDefaults_FeatureSetEditionDefault);
|
|
4089
|
+
message.edition = (_a = object.edition) !== null && _a !== void 0 ? _a : 0;
|
|
4090
|
+
message.features =
|
|
4091
|
+
object.features !== undefined && object.features !== null
|
|
4092
|
+
? exports.FeatureSet.fromPartial(object.features)
|
|
4093
|
+
: undefined;
|
|
4094
|
+
return message;
|
|
4095
|
+
},
|
|
4096
|
+
};
|
|
3078
4097
|
const baseSourceCodeInfo = {};
|
|
3079
4098
|
exports.SourceCodeInfo = {
|
|
3080
4099
|
encode(message, writer = minimal_1.default.Writer.create()) {
|