@xpla/xpla-react 1.7.0-beta.0

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.
Files changed (346) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +47 -0
  3. package/src/amino/amino.ts +1 -0
  4. package/src/binary.ts +534 -0
  5. package/src/cosmos/app/runtime/v1alpha1/module.ts +423 -0
  6. package/src/cosmos/app/runtime/v2/module.ts +589 -0
  7. package/src/cosmos/app/v1alpha1/config.ts +422 -0
  8. package/src/cosmos/app/v1alpha1/module.ts +461 -0
  9. package/src/cosmos/app/v1alpha1/query.rpc.func.ts +14 -0
  10. package/src/cosmos/app/v1alpha1/query.ts +177 -0
  11. package/src/cosmos/auth/module/v1/module.ts +253 -0
  12. package/src/cosmos/auth/v1beta1/accounts.ts +226 -0
  13. package/src/cosmos/auth/v1beta1/auth.ts +550 -0
  14. package/src/cosmos/auth/v1beta1/genesis.ts +119 -0
  15. package/src/cosmos/auth/v1beta1/query.rpc.func.ts +113 -0
  16. package/src/cosmos/auth/v1beta1/query.ts +2034 -0
  17. package/src/cosmos/auth/v1beta1/tx.registry.ts +29 -0
  18. package/src/cosmos/auth/v1beta1/tx.rpc.func.ts +13 -0
  19. package/src/cosmos/auth/v1beta1/tx.ts +219 -0
  20. package/src/cosmos/authz/module/v1/module.ts +80 -0
  21. package/src/cosmos/authz/v1beta1/authz.ts +481 -0
  22. package/src/cosmos/authz/v1beta1/event.ts +259 -0
  23. package/src/cosmos/authz/v1beta1/genesis.ts +100 -0
  24. package/src/cosmos/authz/v1beta1/query.rpc.func.ts +36 -0
  25. package/src/cosmos/authz/v1beta1/query.ts +707 -0
  26. package/src/cosmos/authz/v1beta1/tx.registry.ts +65 -0
  27. package/src/cosmos/authz/v1beta1/tx.rpc.func.ts +31 -0
  28. package/src/cosmos/authz/v1beta1/tx.ts +647 -0
  29. package/src/cosmos/autocli/v1/options.ts +1145 -0
  30. package/src/cosmos/autocli/v1/query.rpc.func.ts +14 -0
  31. package/src/cosmos/autocli/v1/query.ts +288 -0
  32. package/src/cosmos/bank/module/v1/module.ts +153 -0
  33. package/src/cosmos/bank/v1beta1/authz.ts +138 -0
  34. package/src/cosmos/bank/v1beta1/bank.ts +974 -0
  35. package/src/cosmos/bank/v1beta1/genesis.ts +307 -0
  36. package/src/cosmos/bank/v1beta1/query.rpc.func.ts +146 -0
  37. package/src/cosmos/bank/v1beta1/query.ts +3027 -0
  38. package/src/cosmos/bank/v1beta1/tx.registry.ts +83 -0
  39. package/src/cosmos/bank/v1beta1/tx.rpc.func.ts +40 -0
  40. package/src/cosmos/bank/v1beta1/tx.ts +861 -0
  41. package/src/cosmos/base/abci/v1beta1/abci.ts +1698 -0
  42. package/src/cosmos/base/grpc/v2/service.rpc.func.ts +25 -0
  43. package/src/cosmos/base/grpc/v2/service.ts +473 -0
  44. package/src/cosmos/base/node/v1beta1/query.rpc.func.ts +25 -0
  45. package/src/cosmos/base/node/v1beta1/query.ts +454 -0
  46. package/src/cosmos/base/query/v1beta1/pagination.ts +361 -0
  47. package/src/cosmos/base/reflection/v1beta1/reflection.rpc.func.ts +25 -0
  48. package/src/cosmos/base/reflection/v1beta1/reflection.ts +382 -0
  49. package/src/cosmos/base/reflection/v2alpha1/reflection.rpc.func.ts +69 -0
  50. package/src/cosmos/base/reflection/v2alpha1/reflection.ts +2727 -0
  51. package/src/cosmos/base/tendermint/v1beta1/query.rpc.func.ts +80 -0
  52. package/src/cosmos/base/tendermint/v1beta1/query.ts +2302 -0
  53. package/src/cosmos/base/tendermint/v1beta1/types.ts +455 -0
  54. package/src/cosmos/base/v1beta1/coin.ts +439 -0
  55. package/src/cosmos/circuit/module/v1/module.ts +99 -0
  56. package/src/cosmos/circuit/v1/query.rpc.func.ts +36 -0
  57. package/src/cosmos/circuit/v1/query.ts +574 -0
  58. package/src/cosmos/circuit/v1/tx.registry.ts +65 -0
  59. package/src/cosmos/circuit/v1/tx.rpc.func.ts +31 -0
  60. package/src/cosmos/circuit/v1/tx.ts +676 -0
  61. package/src/cosmos/circuit/v1/types.ts +413 -0
  62. package/src/cosmos/consensus/module/v1/module.ts +99 -0
  63. package/src/cosmos/consensus/v1/query.rpc.func.ts +14 -0
  64. package/src/cosmos/consensus/v1/query.ts +185 -0
  65. package/src/cosmos/consensus/v1/tx.registry.ts +29 -0
  66. package/src/cosmos/consensus/v1/tx.rpc.func.ts +13 -0
  67. package/src/cosmos/consensus/v1/tx.ts +255 -0
  68. package/src/cosmos/crisis/module/v1/module.ts +115 -0
  69. package/src/cosmos/crisis/v1beta1/genesis.ts +106 -0
  70. package/src/cosmos/crisis/v1beta1/tx.registry.ts +47 -0
  71. package/src/cosmos/crisis/v1beta1/tx.rpc.func.ts +22 -0
  72. package/src/cosmos/crisis/v1beta1/tx.ts +416 -0
  73. package/src/cosmos/crypto/ed25519/keys.ts +209 -0
  74. package/src/cosmos/crypto/hd/v1/hd.ts +169 -0
  75. package/src/cosmos/crypto/keyring/v1/record.ts +529 -0
  76. package/src/cosmos/crypto/multisig/keys.ts +122 -0
  77. package/src/cosmos/crypto/multisig/v1beta1/multisig.ts +225 -0
  78. package/src/cosmos/crypto/secp256k1/keys.ts +203 -0
  79. package/src/cosmos/crypto/secp256r1/keys.ts +201 -0
  80. package/src/cosmos/distribution/module/v1/module.ts +113 -0
  81. package/src/cosmos/distribution/v1beta1/distribution.ts +1494 -0
  82. package/src/cosmos/distribution/v1beta1/genesis.ts +1129 -0
  83. package/src/cosmos/distribution/v1beta1/query.rpc.func.ts +113 -0
  84. package/src/cosmos/distribution/v1beta1/query.ts +2126 -0
  85. package/src/cosmos/distribution/v1beta1/tx.registry.ts +137 -0
  86. package/src/cosmos/distribution/v1beta1/tx.rpc.func.ts +67 -0
  87. package/src/cosmos/distribution/v1beta1/tx.ts +1478 -0
  88. package/src/cosmos/evidence/module/v1/module.ts +80 -0
  89. package/src/cosmos/evidence/v1beta1/evidence.ts +154 -0
  90. package/src/cosmos/evidence/v1beta1/genesis.ts +102 -0
  91. package/src/cosmos/evidence/v1beta1/query.rpc.func.ts +25 -0
  92. package/src/cosmos/evidence/v1beta1/query.ts +451 -0
  93. package/src/cosmos/evidence/v1beta1/tx.registry.ts +29 -0
  94. package/src/cosmos/evidence/v1beta1/tx.rpc.func.ts +13 -0
  95. package/src/cosmos/evidence/v1beta1/tx.ts +221 -0
  96. package/src/cosmos/feegrant/module/v1/module.ts +80 -0
  97. package/src/cosmos/feegrant/v1beta1/feegrant.ts +573 -0
  98. package/src/cosmos/feegrant/v1beta1/genesis.ts +100 -0
  99. package/src/cosmos/feegrant/v1beta1/query.rpc.func.ts +36 -0
  100. package/src/cosmos/feegrant/v1beta1/query.ts +677 -0
  101. package/src/cosmos/feegrant/v1beta1/tx.registry.ts +65 -0
  102. package/src/cosmos/feegrant/v1beta1/tx.rpc.func.ts +31 -0
  103. package/src/cosmos/feegrant/v1beta1/tx.ts +597 -0
  104. package/src/cosmos/genutil/module/v1/module.ts +80 -0
  105. package/src/cosmos/genutil/v1beta1/genesis.ts +101 -0
  106. package/src/cosmos/gov/module/v1/module.ts +121 -0
  107. package/src/cosmos/gov/v1/genesis.ts +280 -0
  108. package/src/cosmos/gov/v1/gov.ts +1843 -0
  109. package/src/cosmos/gov/v1/query.rpc.func.ts +102 -0
  110. package/src/cosmos/gov/v1/query.ts +1970 -0
  111. package/src/cosmos/gov/v1/tx.registry.ts +137 -0
  112. package/src/cosmos/gov/v1/tx.rpc.func.ts +67 -0
  113. package/src/cosmos/gov/v1/tx.ts +1657 -0
  114. package/src/cosmos/gov/v1beta1/genesis.ts +202 -0
  115. package/src/cosmos/gov/v1beta1/gov.ts +1425 -0
  116. package/src/cosmos/gov/v1beta1/query.rpc.func.ts +91 -0
  117. package/src/cosmos/gov/v1beta1/query.ts +1749 -0
  118. package/src/cosmos/gov/v1beta1/tx.registry.ts +83 -0
  119. package/src/cosmos/gov/v1beta1/tx.rpc.func.ts +40 -0
  120. package/src/cosmos/gov/v1beta1/tx.ts +881 -0
  121. package/src/cosmos/group/module/v1/module.ts +128 -0
  122. package/src/cosmos/group/v1/events.ts +1044 -0
  123. package/src/cosmos/group/v1/genesis.ts +240 -0
  124. package/src/cosmos/group/v1/query.rpc.func.ts +157 -0
  125. package/src/cosmos/group/v1/query.ts +3015 -0
  126. package/src/cosmos/group/v1/tx.registry.ts +263 -0
  127. package/src/cosmos/group/v1/tx.rpc.func.ts +130 -0
  128. package/src/cosmos/group/v1/tx.ts +3207 -0
  129. package/src/cosmos/group/v1/types.ts +2081 -0
  130. package/src/cosmos/ics23/v1/proofs.ts +2060 -0
  131. package/src/cosmos/mint/module/v1/module.ts +113 -0
  132. package/src/cosmos/mint/v1beta1/genesis.ts +116 -0
  133. package/src/cosmos/mint/v1beta1/mint.ts +291 -0
  134. package/src/cosmos/mint/v1beta1/query.rpc.func.ts +36 -0
  135. package/src/cosmos/mint/v1beta1/query.ts +541 -0
  136. package/src/cosmos/mint/v1beta1/tx.registry.ts +29 -0
  137. package/src/cosmos/mint/v1beta1/tx.rpc.func.ts +13 -0
  138. package/src/cosmos/mint/v1beta1/tx.ts +219 -0
  139. package/src/cosmos/msg/textual/v1/textual.ts +1 -0
  140. package/src/cosmos/msg/v1/msg.ts +1 -0
  141. package/src/cosmos/nft/module/v1/module.ts +80 -0
  142. package/src/cosmos/nft/v1beta1/event.ts +403 -0
  143. package/src/cosmos/nft/v1beta1/genesis.ts +234 -0
  144. package/src/cosmos/nft/v1beta1/nft.ts +356 -0
  145. package/src/cosmos/nft/v1beta1/query.rpc.func.ts +80 -0
  146. package/src/cosmos/nft/v1beta1/query.ts +1465 -0
  147. package/src/cosmos/nft/v1beta1/tx.registry.ts +29 -0
  148. package/src/cosmos/nft/v1beta1/tx.rpc.func.ts +13 -0
  149. package/src/cosmos/nft/v1beta1/tx.ts +224 -0
  150. package/src/cosmos/orm/module/v1alpha1/module.ts +88 -0
  151. package/src/cosmos/orm/query/v1alpha1/query.rpc.func.ts +25 -0
  152. package/src/cosmos/orm/query/v1alpha1/query.ts +993 -0
  153. package/src/cosmos/orm/v1/orm.ts +589 -0
  154. package/src/cosmos/orm/v1alpha1/schema.ts +325 -0
  155. package/src/cosmos/params/module/v1/module.ts +80 -0
  156. package/src/cosmos/params/v1beta1/params.ts +255 -0
  157. package/src/cosmos/params/v1beta1/query.rpc.func.ts +25 -0
  158. package/src/cosmos/params/v1beta1/query.ts +525 -0
  159. package/src/cosmos/query/v1/query.ts +1 -0
  160. package/src/cosmos/reflection/v1/reflection.rpc.func.ts +14 -0
  161. package/src/cosmos/reflection/v1/reflection.ts +179 -0
  162. package/src/cosmos/slashing/module/v1/module.ts +99 -0
  163. package/src/cosmos/slashing/v1beta1/genesis.ts +492 -0
  164. package/src/cosmos/slashing/v1beta1/query.rpc.func.ts +36 -0
  165. package/src/cosmos/slashing/v1beta1/query.ts +598 -0
  166. package/src/cosmos/slashing/v1beta1/slashing.ts +357 -0
  167. package/src/cosmos/slashing/v1beta1/tx.registry.ts +47 -0
  168. package/src/cosmos/slashing/v1beta1/tx.rpc.func.ts +22 -0
  169. package/src/cosmos/slashing/v1beta1/tx.ts +390 -0
  170. package/src/cosmos/staking/module/v1/module.ts +157 -0
  171. package/src/cosmos/staking/v1beta1/authz.ts +323 -0
  172. package/src/cosmos/staking/v1beta1/genesis.ts +346 -0
  173. package/src/cosmos/staking/v1beta1/query.rpc.func.ts +157 -0
  174. package/src/cosmos/staking/v1beta1/query.ts +3073 -0
  175. package/src/cosmos/staking/v1beta1/staking.ts +3005 -0
  176. package/src/cosmos/staking/v1beta1/tx.registry.ts +137 -0
  177. package/src/cosmos/staking/v1beta1/tx.rpc.func.ts +67 -0
  178. package/src/cosmos/staking/v1beta1/tx.ts +1638 -0
  179. package/src/cosmos/store/internal/kv/v1beta1/kv.ts +207 -0
  180. package/src/cosmos/store/snapshots/v1/snapshot.ts +863 -0
  181. package/src/cosmos/store/snapshots/v2/snapshot.ts +823 -0
  182. package/src/cosmos/store/streaming/abci/grpc.ts +393 -0
  183. package/src/cosmos/store/v1beta1/commit_info.ts +362 -0
  184. package/src/cosmos/store/v1beta1/listening.ts +286 -0
  185. package/src/cosmos/streaming/v1/grpc.ts +985 -0
  186. package/src/cosmos/tx/config/v1/config.ts +127 -0
  187. package/src/cosmos/tx/signing/v1beta1/signing.ts +688 -0
  188. package/src/cosmos/tx/v1beta1/service.rpc.func.ts +102 -0
  189. package/src/cosmos/tx/v1beta1/service.ts +2294 -0
  190. package/src/cosmos/tx/v1beta1/tx.ts +2029 -0
  191. package/src/cosmos/upgrade/module/v1/module.ts +99 -0
  192. package/src/cosmos/upgrade/v1beta1/query.rpc.func.ts +58 -0
  193. package/src/cosmos/upgrade/v1beta1/query.ts +1016 -0
  194. package/src/cosmos/upgrade/v1beta1/tx.registry.ts +47 -0
  195. package/src/cosmos/upgrade/v1beta1/tx.rpc.func.ts +22 -0
  196. package/src/cosmos/upgrade/v1beta1/tx.ts +398 -0
  197. package/src/cosmos/upgrade/v1beta1/upgrade.ts +591 -0
  198. package/src/cosmos/validate/module/v1/module.ts +80 -0
  199. package/src/cosmos/vesting/module/v1/module.ts +80 -0
  200. package/src/cosmos/vesting/v1beta1/tx.registry.ts +65 -0
  201. package/src/cosmos/vesting/v1beta1/tx.rpc.func.ts +31 -0
  202. package/src/cosmos/vesting/v1beta1/tx.ts +698 -0
  203. package/src/cosmos/vesting/v1beta1/vesting.ts +735 -0
  204. package/src/cosmos_proto/cosmos.ts +341 -0
  205. package/src/cosmwasm/wasm/v1/authz.ts +1231 -0
  206. package/src/cosmwasm/wasm/v1/genesis.ts +532 -0
  207. package/src/cosmwasm/wasm/v1/ibc.ts +355 -0
  208. package/src/cosmwasm/wasm/v1/proposal_legacy.ts +2432 -0
  209. package/src/cosmwasm/wasm/v1/query.rpc.func.ts +124 -0
  210. package/src/cosmwasm/wasm/v1/query.ts +2560 -0
  211. package/src/cosmwasm/wasm/v1/tx.registry.ts +317 -0
  212. package/src/cosmwasm/wasm/v1/tx.rpc.func.ts +157 -0
  213. package/src/cosmwasm/wasm/v1/tx.ts +4191 -0
  214. package/src/cosmwasm/wasm/v1/types.ts +1120 -0
  215. package/src/ethermint/crypto/v1/ethsecp256k1/keys.ts +193 -0
  216. package/src/ethermint/evm/v1/events.ts +485 -0
  217. package/src/ethermint/evm/v1/evm.ts +1590 -0
  218. package/src/ethermint/evm/v1/genesis.ts +240 -0
  219. package/src/ethermint/evm/v1/query.rpc.func.ts +136 -0
  220. package/src/ethermint/evm/v1/query.ts +2535 -0
  221. package/src/ethermint/evm/v1/tx.registry.ts +47 -0
  222. package/src/ethermint/evm/v1/tx.rpc.func.ts +22 -0
  223. package/src/ethermint/evm/v1/tx.ts +1333 -0
  224. package/src/ethermint/feemarket/v1/events.ts +195 -0
  225. package/src/ethermint/feemarket/v1/feemarket.ts +213 -0
  226. package/src/ethermint/feemarket/v1/genesis.ts +114 -0
  227. package/src/ethermint/feemarket/v1/query.rpc.func.ts +36 -0
  228. package/src/ethermint/feemarket/v1/query.ts +487 -0
  229. package/src/ethermint/feemarket/v1/tx.registry.ts +29 -0
  230. package/src/ethermint/feemarket/v1/tx.rpc.func.ts +13 -0
  231. package/src/ethermint/feemarket/v1/tx.ts +197 -0
  232. package/src/ethermint/types/v1/account.ts +114 -0
  233. package/src/ethermint/types/v1/dynamic_fee.ts +91 -0
  234. package/src/ethermint/types/v1/indexer.ts +205 -0
  235. package/src/ethermint/types/v1/web3.ts +147 -0
  236. package/src/extern.ts +38 -0
  237. package/src/gogoproto/gogo.ts +1 -0
  238. package/src/google/api/annotations.ts +1 -0
  239. package/src/google/api/http.ts +1069 -0
  240. package/src/google/protobuf/any.ts +331 -0
  241. package/src/google/protobuf/descriptor.ts +7177 -0
  242. package/src/google/protobuf/duration.ts +225 -0
  243. package/src/google/protobuf/timestamp.ts +281 -0
  244. package/src/helper-func-types.ts +191 -0
  245. package/src/helpers.ts +259 -0
  246. package/src/ibc/applications/fee/v1/ack.ts +131 -0
  247. package/src/ibc/applications/fee/v1/fee.ts +481 -0
  248. package/src/ibc/applications/fee/v1/genesis.ts +661 -0
  249. package/src/ibc/applications/fee/v1/metadata.ts +121 -0
  250. package/src/ibc/applications/fee/v1/query.rpc.func.ts +113 -0
  251. package/src/ibc/applications/fee/v1/query.ts +2134 -0
  252. package/src/ibc/applications/fee/v1/tx.registry.ts +83 -0
  253. package/src/ibc/applications/fee/v1/tx.rpc.func.ts +40 -0
  254. package/src/ibc/applications/fee/v1/tx.ts +889 -0
  255. package/src/ibc/applications/interchain_accounts/controller/v1/controller.ts +105 -0
  256. package/src/ibc/applications/interchain_accounts/controller/v1/query.rpc.func.ts +25 -0
  257. package/src/ibc/applications/interchain_accounts/controller/v1/query.ts +379 -0
  258. package/src/ibc/applications/interchain_accounts/controller/v1/tx.registry.ts +65 -0
  259. package/src/ibc/applications/interchain_accounts/controller/v1/tx.rpc.func.ts +31 -0
  260. package/src/ibc/applications/interchain_accounts/controller/v1/tx.ts +685 -0
  261. package/src/ibc/applications/interchain_accounts/genesis/v1/genesis.ts +661 -0
  262. package/src/ibc/applications/interchain_accounts/host/v1/host.ts +253 -0
  263. package/src/ibc/applications/interchain_accounts/host/v1/query.rpc.func.ts +14 -0
  264. package/src/ibc/applications/interchain_accounts/host/v1/query.ts +177 -0
  265. package/src/ibc/applications/interchain_accounts/host/v1/tx.registry.ts +47 -0
  266. package/src/ibc/applications/interchain_accounts/host/v1/tx.rpc.func.ts +22 -0
  267. package/src/ibc/applications/interchain_accounts/host/v1/tx.ts +429 -0
  268. package/src/ibc/applications/interchain_accounts/v1/account.ts +112 -0
  269. package/src/ibc/applications/interchain_accounts/v1/metadata.ts +191 -0
  270. package/src/ibc/applications/interchain_accounts/v1/packet.ts +259 -0
  271. package/src/ibc/applications/transfer/v1/authz.ts +280 -0
  272. package/src/ibc/applications/transfer/v1/genesis.ts +153 -0
  273. package/src/ibc/applications/transfer/v1/query.rpc.func.ts +69 -0
  274. package/src/ibc/applications/transfer/v1/query.ts +1205 -0
  275. package/src/ibc/applications/transfer/v1/transfer.ts +261 -0
  276. package/src/ibc/applications/transfer/v1/tx.registry.ts +47 -0
  277. package/src/ibc/applications/transfer/v1/tx.rpc.func.ts +22 -0
  278. package/src/ibc/applications/transfer/v1/tx.ts +532 -0
  279. package/src/ibc/applications/transfer/v2/packet.ts +171 -0
  280. package/src/ibc/core/channel/v1/channel.ts +1510 -0
  281. package/src/ibc/core/channel/v1/genesis.ts +354 -0
  282. package/src/ibc/core/channel/v1/query.rpc.func.ts +190 -0
  283. package/src/ibc/core/channel/v1/query.ts +4354 -0
  284. package/src/ibc/core/channel/v1/tx.registry.ts +353 -0
  285. package/src/ibc/core/channel/v1/tx.rpc.func.ts +175 -0
  286. package/src/ibc/core/channel/v1/tx.ts +4866 -0
  287. package/src/ibc/core/channel/v1/upgrade.ts +388 -0
  288. package/src/ibc/core/client/v1/client.ts +927 -0
  289. package/src/ibc/core/client/v1/genesis.ts +426 -0
  290. package/src/ibc/core/client/v1/query.rpc.func.ts +113 -0
  291. package/src/ibc/core/client/v1/query.ts +2280 -0
  292. package/src/ibc/core/client/v1/tx.registry.ts +137 -0
  293. package/src/ibc/core/client/v1/tx.rpc.func.ts +67 -0
  294. package/src/ibc/core/client/v1/tx.ts +1543 -0
  295. package/src/ibc/core/commitment/v1/commitment.ts +418 -0
  296. package/src/ibc/core/connection/v1/connection.ts +1010 -0
  297. package/src/ibc/core/connection/v1/genesis.ts +146 -0
  298. package/src/ibc/core/connection/v1/query.rpc.func.ts +69 -0
  299. package/src/ibc/core/connection/v1/query.ts +1408 -0
  300. package/src/ibc/core/connection/v1/tx.registry.ts +101 -0
  301. package/src/ibc/core/connection/v1/tx.rpc.func.ts +49 -0
  302. package/src/ibc/core/connection/v1/tx.ts +1365 -0
  303. package/src/ibc/core/types/v1/genesis.ts +137 -0
  304. package/src/ibc/lightclients/localhost/v2/localhost.ts +100 -0
  305. package/src/ibc/lightclients/solomachine/v2/solomachine.ts +2103 -0
  306. package/src/ibc/lightclients/solomachine/v3/solomachine.ts +1070 -0
  307. package/src/ibc/lightclients/tendermint/v1/tendermint.ts +838 -0
  308. package/src/ibc/lightclients/wasm/v1/genesis.ts +197 -0
  309. package/src/ibc/lightclients/wasm/v1/query.rpc.func.ts +25 -0
  310. package/src/ibc/lightclients/wasm/v1/query.ts +404 -0
  311. package/src/ibc/lightclients/wasm/v1/tx.registry.ts +65 -0
  312. package/src/ibc/lightclients/wasm/v1/tx.rpc.func.ts +31 -0
  313. package/src/ibc/lightclients/wasm/v1/tx.ts +621 -0
  314. package/src/ibc/lightclients/wasm/v1/wasm.ts +438 -0
  315. package/src/react-query.ts +185 -0
  316. package/src/registry.ts +218 -0
  317. package/src/tendermint/abci/types.ts +6283 -0
  318. package/src/tendermint/crypto/keys.ts +103 -0
  319. package/src/tendermint/crypto/proof.ts +555 -0
  320. package/src/tendermint/p2p/types.ts +507 -0
  321. package/src/tendermint/types/block.ts +131 -0
  322. package/src/tendermint/types/evidence.ts +476 -0
  323. package/src/tendermint/types/params.ts +814 -0
  324. package/src/tendermint/types/types.ts +2157 -0
  325. package/src/tendermint/types/validator.ts +389 -0
  326. package/src/tendermint/version/types.ts +219 -0
  327. package/src/types.ts +155 -0
  328. package/src/utf8.ts +148 -0
  329. package/src/varint.ts +488 -0
  330. package/src/xpla/reward/v1beta1/genesis.ts +92 -0
  331. package/src/xpla/reward/v1beta1/query.rpc.func.ts +25 -0
  332. package/src/xpla/reward/v1beta1/query.ts +333 -0
  333. package/src/xpla/reward/v1beta1/reward.ts +153 -0
  334. package/src/xpla/reward/v1beta1/tx.registry.ts +47 -0
  335. package/src/xpla/reward/v1beta1/tx.rpc.func.ts +22 -0
  336. package/src/xpla/reward/v1beta1/tx.ts +391 -0
  337. package/src/xpla/volunteer/v1beta1/genesis.ts +92 -0
  338. package/src/xpla/volunteer/v1beta1/proposal.ts +649 -0
  339. package/src/xpla/volunteer/v1beta1/query.rpc.func.ts +14 -0
  340. package/src/xpla/volunteer/v1beta1/query.ts +160 -0
  341. package/src/xpla/volunteer/v1beta1/tx.registry.ts +47 -0
  342. package/src/xpla/volunteer/v1beta1/tx.rpc.func.ts +22 -0
  343. package/src/xpla/volunteer/v1beta1/tx.ts +448 -0
  344. package/src/xpla/volunteer/v1beta1/volunteervalidator.ts +107 -0
  345. package/tsconfig.esm.json +10 -0
  346. package/tsconfig.json +10 -0
@@ -0,0 +1,1069 @@
1
+ import { BinaryReader, BinaryWriter } from "../../binary";
2
+ import { DeepPartial } from "../../helpers";
3
+ import { GlobalDecoderRegistry } from "../../registry";
4
+ /**
5
+ * Defines the HTTP configuration for an API service. It contains a list of
6
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
7
+ * to one or more HTTP REST API methods.
8
+ */
9
+ export interface Http {
10
+ /**
11
+ * A list of HTTP configuration rules that apply to individual API methods.
12
+ *
13
+ * **NOTE:** All service configuration rules follow "last one wins" order.
14
+ */
15
+ rules: HttpRule[];
16
+ /**
17
+ * When set to true, URL path parameters will be fully URI-decoded except in
18
+ * cases of single segment matches in reserved expansion, where "%2F" will be
19
+ * left encoded.
20
+ *
21
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
22
+ * segment matches.
23
+ */
24
+ fullyDecodeReservedExpansion: boolean;
25
+ }
26
+ export interface HttpProtoMsg {
27
+ typeUrl: "/google.api.Http";
28
+ value: Uint8Array;
29
+ }
30
+ /**
31
+ * Defines the HTTP configuration for an API service. It contains a list of
32
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
33
+ * to one or more HTTP REST API methods.
34
+ */
35
+ export interface HttpAmino {
36
+ /**
37
+ * A list of HTTP configuration rules that apply to individual API methods.
38
+ *
39
+ * **NOTE:** All service configuration rules follow "last one wins" order.
40
+ */
41
+ rules: HttpRuleAmino[];
42
+ /**
43
+ * When set to true, URL path parameters will be fully URI-decoded except in
44
+ * cases of single segment matches in reserved expansion, where "%2F" will be
45
+ * left encoded.
46
+ *
47
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
48
+ * segment matches.
49
+ */
50
+ fully_decode_reserved_expansion: boolean;
51
+ }
52
+ export interface HttpAminoMsg {
53
+ type: "/google.api.Http";
54
+ value: HttpAmino;
55
+ }
56
+ /**
57
+ * gRPC Transcoding
58
+ *
59
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
60
+ * more HTTP REST endpoints. It allows developers to build a single API service
61
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
62
+ * APIs](https://github.com/googleapis/googleapis),
63
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
64
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
65
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
66
+ * and use it for large scale production services.
67
+ *
68
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
69
+ * how different portions of the gRPC request message are mapped to the URL
70
+ * path, URL query parameters, and HTTP request body. It also controls how the
71
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
72
+ * typically specified as an `google.api.http` annotation on the gRPC method.
73
+ *
74
+ * Each mapping specifies a URL path template and an HTTP method. The path
75
+ * template may refer to one or more fields in the gRPC request message, as long
76
+ * as each field is a non-repeated field with a primitive (non-message) type.
77
+ * The path template controls how fields of the request message are mapped to
78
+ * the URL path.
79
+ *
80
+ * Example:
81
+ *
82
+ * service Messaging {
83
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
84
+ * option (google.api.http) = {
85
+ * get: "/v1/{name=messages/*}"
86
+ * };
87
+ * }
88
+ * }
89
+ * message GetMessageRequest {
90
+ * string name = 1; // Mapped to URL path.
91
+ * }
92
+ * message Message {
93
+ * string text = 1; // The resource content.
94
+ * }
95
+ *
96
+ * This enables an HTTP REST to gRPC mapping as below:
97
+ *
98
+ * - HTTP: `GET /v1/messages/123456`
99
+ * - gRPC: `GetMessage(name: "messages/123456")`
100
+ *
101
+ * Any fields in the request message which are not bound by the path template
102
+ * automatically become HTTP query parameters if there is no HTTP request body.
103
+ * For example:
104
+ *
105
+ * service Messaging {
106
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
107
+ * option (google.api.http) = {
108
+ * get:"/v1/messages/{message_id}"
109
+ * };
110
+ * }
111
+ * }
112
+ * message GetMessageRequest {
113
+ * message SubMessage {
114
+ * string subfield = 1;
115
+ * }
116
+ * string message_id = 1; // Mapped to URL path.
117
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
118
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
119
+ * }
120
+ *
121
+ * This enables a HTTP JSON to RPC mapping as below:
122
+ *
123
+ * - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
124
+ * - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
125
+ * SubMessage(subfield: "foo"))`
126
+ *
127
+ * Note that fields which are mapped to URL query parameters must have a
128
+ * primitive type or a repeated primitive type or a non-repeated message type.
129
+ * In the case of a repeated type, the parameter can be repeated in the URL
130
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
131
+ * message is mapped to a separate parameter, such as
132
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
133
+ *
134
+ * For HTTP methods that allow a request body, the `body` field
135
+ * specifies the mapping. Consider a REST update method on the
136
+ * message resource collection:
137
+ *
138
+ * service Messaging {
139
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
140
+ * option (google.api.http) = {
141
+ * patch: "/v1/messages/{message_id}"
142
+ * body: "message"
143
+ * };
144
+ * }
145
+ * }
146
+ * message UpdateMessageRequest {
147
+ * string message_id = 1; // mapped to the URL
148
+ * Message message = 2; // mapped to the body
149
+ * }
150
+ *
151
+ * The following HTTP JSON to RPC mapping is enabled, where the
152
+ * representation of the JSON in the request body is determined by
153
+ * protos JSON encoding:
154
+ *
155
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
156
+ * - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
157
+ *
158
+ * The special name `*` can be used in the body mapping to define that
159
+ * every field not bound by the path template should be mapped to the
160
+ * request body. This enables the following alternative definition of
161
+ * the update method:
162
+ *
163
+ * service Messaging {
164
+ * rpc UpdateMessage(Message) returns (Message) {
165
+ * option (google.api.http) = {
166
+ * patch: "/v1/messages/{message_id}"
167
+ * body: "*"
168
+ * };
169
+ * }
170
+ * }
171
+ * message Message {
172
+ * string message_id = 1;
173
+ * string text = 2;
174
+ * }
175
+ *
176
+ *
177
+ * The following HTTP JSON to RPC mapping is enabled:
178
+ *
179
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
180
+ * - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
181
+ *
182
+ * Note that when using `*` in the body mapping, it is not possible to
183
+ * have HTTP parameters, as all fields not bound by the path end in
184
+ * the body. This makes this option more rarely used in practice when
185
+ * defining REST APIs. The common usage of `*` is in custom methods
186
+ * which don't use the URL at all for transferring data.
187
+ *
188
+ * It is possible to define multiple HTTP methods for one RPC by using
189
+ * the `additional_bindings` option. Example:
190
+ *
191
+ * service Messaging {
192
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
193
+ * option (google.api.http) = {
194
+ * get: "/v1/messages/{message_id}"
195
+ * additional_bindings {
196
+ * get: "/v1/users/{user_id}/messages/{message_id}"
197
+ * }
198
+ * };
199
+ * }
200
+ * }
201
+ * message GetMessageRequest {
202
+ * string message_id = 1;
203
+ * string user_id = 2;
204
+ * }
205
+ *
206
+ * This enables the following two alternative HTTP JSON to RPC mappings:
207
+ *
208
+ * - HTTP: `GET /v1/messages/123456`
209
+ * - gRPC: `GetMessage(message_id: "123456")`
210
+ *
211
+ * - HTTP: `GET /v1/users/me/messages/123456`
212
+ * - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
213
+ *
214
+ * Rules for HTTP mapping
215
+ *
216
+ * 1. Leaf request fields (recursive expansion nested messages in the request
217
+ * message) are classified into three categories:
218
+ * - Fields referred by the path template. They are passed via the URL path.
219
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
220
+ * are passed via the HTTP
221
+ * request body.
222
+ * - All other fields are passed via the URL query parameters, and the
223
+ * parameter name is the field path in the request message. A repeated
224
+ * field can be represented as multiple query parameters under the same
225
+ * name.
226
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
227
+ * query parameter, all fields
228
+ * are passed via URL path and HTTP request body.
229
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
230
+ * request body, all
231
+ * fields are passed via URL path and URL query parameters.
232
+ *
233
+ * Path template syntax
234
+ *
235
+ * Template = "/" Segments [ Verb ] ;
236
+ * Segments = Segment { "/" Segment } ;
237
+ * Segment = "*" | "**" | LITERAL | Variable ;
238
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
239
+ * FieldPath = IDENT { "." IDENT } ;
240
+ * Verb = ":" LITERAL ;
241
+ *
242
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
243
+ * zero or more URL path segments, which must be the last part of the URL path
244
+ * except the `Verb`.
245
+ *
246
+ * The syntax `Variable` matches part of the URL path as specified by its
247
+ * template. A variable template must not contain other variables. If a variable
248
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
249
+ * is equivalent to `{var=*}`.
250
+ *
251
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
252
+ * contains any reserved character, such characters should be percent-encoded
253
+ * before the matching.
254
+ *
255
+ * If a variable contains exactly one path segment, such as `"{var}"` or
256
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
257
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
258
+ * server side does the reverse decoding. Such variables show up in the
259
+ * [Discovery
260
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
261
+ * `{var}`.
262
+ *
263
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
264
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
265
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
266
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
267
+ * unchanged. Such variables show up in the
268
+ * [Discovery
269
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
270
+ * `{+var}`.
271
+ *
272
+ * Using gRPC API Service Configuration
273
+ *
274
+ * gRPC API Service Configuration (service config) is a configuration language
275
+ * for configuring a gRPC service to become a user-facing product. The
276
+ * service config is simply the YAML representation of the `google.api.Service`
277
+ * proto message.
278
+ *
279
+ * As an alternative to annotating your proto file, you can configure gRPC
280
+ * transcoding in your service config YAML files. You do this by specifying a
281
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
282
+ * effect as the proto annotation. This can be particularly useful if you
283
+ * have a proto that is reused in multiple services. Note that any transcoding
284
+ * specified in the service config will override any matching transcoding
285
+ * configuration in the proto.
286
+ *
287
+ * The following example selects a gRPC method and applies an `HttpRule` to it:
288
+ *
289
+ * http:
290
+ * rules:
291
+ * - selector: example.v1.Messaging.GetMessage
292
+ * get: /v1/messages/{message_id}/{sub.subfield}
293
+ *
294
+ * Special notes
295
+ *
296
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
297
+ * proto to JSON conversion must follow the [proto3
298
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
299
+ *
300
+ * While the single segment variable follows the semantics of
301
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
302
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
303
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
304
+ * does not expand special characters like `?` and `#`, which would lead
305
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
306
+ * for multi segment variables.
307
+ *
308
+ * The path variables **must not** refer to any repeated or mapped field,
309
+ * because client libraries are not capable of handling such variable expansion.
310
+ *
311
+ * The path variables **must not** capture the leading "/" character. The reason
312
+ * is that the most common use case "{var}" does not capture the leading "/"
313
+ * character. For consistency, all path variables must share the same behavior.
314
+ *
315
+ * Repeated message fields must not be mapped to URL query parameters, because
316
+ * no client library can support such complicated mapping.
317
+ *
318
+ * If an API needs to use a JSON array for request or response body, it can map
319
+ * the request or response body to a repeated field. However, some gRPC
320
+ * Transcoding implementations may not support this feature.
321
+ */
322
+ export interface HttpRule {
323
+ /**
324
+ * Selects a method to which this rule applies.
325
+ *
326
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
327
+ * details.
328
+ */
329
+ selector: string;
330
+ /**
331
+ * Maps to HTTP GET. Used for listing and getting information about
332
+ * resources.
333
+ */
334
+ get?: string;
335
+ /** Maps to HTTP PUT. Used for replacing a resource. */
336
+ put?: string;
337
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
338
+ post?: string;
339
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
340
+ delete?: string;
341
+ /** Maps to HTTP PATCH. Used for updating a resource. */
342
+ patch?: string;
343
+ /**
344
+ * The custom pattern is used for specifying an HTTP method that is not
345
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
346
+ * HTTP method unspecified for this rule. The wild-card rule is useful
347
+ * for services that provide content to Web (HTML) clients.
348
+ */
349
+ custom?: CustomHttpPattern;
350
+ /**
351
+ * The name of the request field whose value is mapped to the HTTP request
352
+ * body, or `*` for mapping all request fields not captured by the path
353
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
354
+ *
355
+ * NOTE: the referred field must be present at the top-level of the request
356
+ * message type.
357
+ */
358
+ body: string;
359
+ /**
360
+ * Optional. The name of the response field whose value is mapped to the HTTP
361
+ * response body. When omitted, the entire response message will be used
362
+ * as the HTTP response body.
363
+ *
364
+ * NOTE: The referred field must be present at the top-level of the response
365
+ * message type.
366
+ */
367
+ responseBody: string;
368
+ /**
369
+ * Additional HTTP bindings for the selector. Nested bindings must
370
+ * not contain an `additional_bindings` field themselves (that is,
371
+ * the nesting may only be one level deep).
372
+ */
373
+ additionalBindings: HttpRule[];
374
+ }
375
+ export interface HttpRuleProtoMsg {
376
+ typeUrl: "/google.api.HttpRule";
377
+ value: Uint8Array;
378
+ }
379
+ /**
380
+ * gRPC Transcoding
381
+ *
382
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
383
+ * more HTTP REST endpoints. It allows developers to build a single API service
384
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
385
+ * APIs](https://github.com/googleapis/googleapis),
386
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
387
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
388
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
389
+ * and use it for large scale production services.
390
+ *
391
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
392
+ * how different portions of the gRPC request message are mapped to the URL
393
+ * path, URL query parameters, and HTTP request body. It also controls how the
394
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
395
+ * typically specified as an `google.api.http` annotation on the gRPC method.
396
+ *
397
+ * Each mapping specifies a URL path template and an HTTP method. The path
398
+ * template may refer to one or more fields in the gRPC request message, as long
399
+ * as each field is a non-repeated field with a primitive (non-message) type.
400
+ * The path template controls how fields of the request message are mapped to
401
+ * the URL path.
402
+ *
403
+ * Example:
404
+ *
405
+ * service Messaging {
406
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
407
+ * option (google.api.http) = {
408
+ * get: "/v1/{name=messages/*}"
409
+ * };
410
+ * }
411
+ * }
412
+ * message GetMessageRequest {
413
+ * string name = 1; // Mapped to URL path.
414
+ * }
415
+ * message Message {
416
+ * string text = 1; // The resource content.
417
+ * }
418
+ *
419
+ * This enables an HTTP REST to gRPC mapping as below:
420
+ *
421
+ * - HTTP: `GET /v1/messages/123456`
422
+ * - gRPC: `GetMessage(name: "messages/123456")`
423
+ *
424
+ * Any fields in the request message which are not bound by the path template
425
+ * automatically become HTTP query parameters if there is no HTTP request body.
426
+ * For example:
427
+ *
428
+ * service Messaging {
429
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
430
+ * option (google.api.http) = {
431
+ * get:"/v1/messages/{message_id}"
432
+ * };
433
+ * }
434
+ * }
435
+ * message GetMessageRequest {
436
+ * message SubMessage {
437
+ * string subfield = 1;
438
+ * }
439
+ * string message_id = 1; // Mapped to URL path.
440
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
441
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
442
+ * }
443
+ *
444
+ * This enables a HTTP JSON to RPC mapping as below:
445
+ *
446
+ * - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
447
+ * - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
448
+ * SubMessage(subfield: "foo"))`
449
+ *
450
+ * Note that fields which are mapped to URL query parameters must have a
451
+ * primitive type or a repeated primitive type or a non-repeated message type.
452
+ * In the case of a repeated type, the parameter can be repeated in the URL
453
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
454
+ * message is mapped to a separate parameter, such as
455
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
456
+ *
457
+ * For HTTP methods that allow a request body, the `body` field
458
+ * specifies the mapping. Consider a REST update method on the
459
+ * message resource collection:
460
+ *
461
+ * service Messaging {
462
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
463
+ * option (google.api.http) = {
464
+ * patch: "/v1/messages/{message_id}"
465
+ * body: "message"
466
+ * };
467
+ * }
468
+ * }
469
+ * message UpdateMessageRequest {
470
+ * string message_id = 1; // mapped to the URL
471
+ * Message message = 2; // mapped to the body
472
+ * }
473
+ *
474
+ * The following HTTP JSON to RPC mapping is enabled, where the
475
+ * representation of the JSON in the request body is determined by
476
+ * protos JSON encoding:
477
+ *
478
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
479
+ * - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
480
+ *
481
+ * The special name `*` can be used in the body mapping to define that
482
+ * every field not bound by the path template should be mapped to the
483
+ * request body. This enables the following alternative definition of
484
+ * the update method:
485
+ *
486
+ * service Messaging {
487
+ * rpc UpdateMessage(Message) returns (Message) {
488
+ * option (google.api.http) = {
489
+ * patch: "/v1/messages/{message_id}"
490
+ * body: "*"
491
+ * };
492
+ * }
493
+ * }
494
+ * message Message {
495
+ * string message_id = 1;
496
+ * string text = 2;
497
+ * }
498
+ *
499
+ *
500
+ * The following HTTP JSON to RPC mapping is enabled:
501
+ *
502
+ * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
503
+ * - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
504
+ *
505
+ * Note that when using `*` in the body mapping, it is not possible to
506
+ * have HTTP parameters, as all fields not bound by the path end in
507
+ * the body. This makes this option more rarely used in practice when
508
+ * defining REST APIs. The common usage of `*` is in custom methods
509
+ * which don't use the URL at all for transferring data.
510
+ *
511
+ * It is possible to define multiple HTTP methods for one RPC by using
512
+ * the `additional_bindings` option. Example:
513
+ *
514
+ * service Messaging {
515
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
516
+ * option (google.api.http) = {
517
+ * get: "/v1/messages/{message_id}"
518
+ * additional_bindings {
519
+ * get: "/v1/users/{user_id}/messages/{message_id}"
520
+ * }
521
+ * };
522
+ * }
523
+ * }
524
+ * message GetMessageRequest {
525
+ * string message_id = 1;
526
+ * string user_id = 2;
527
+ * }
528
+ *
529
+ * This enables the following two alternative HTTP JSON to RPC mappings:
530
+ *
531
+ * - HTTP: `GET /v1/messages/123456`
532
+ * - gRPC: `GetMessage(message_id: "123456")`
533
+ *
534
+ * - HTTP: `GET /v1/users/me/messages/123456`
535
+ * - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
536
+ *
537
+ * Rules for HTTP mapping
538
+ *
539
+ * 1. Leaf request fields (recursive expansion nested messages in the request
540
+ * message) are classified into three categories:
541
+ * - Fields referred by the path template. They are passed via the URL path.
542
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
543
+ * are passed via the HTTP
544
+ * request body.
545
+ * - All other fields are passed via the URL query parameters, and the
546
+ * parameter name is the field path in the request message. A repeated
547
+ * field can be represented as multiple query parameters under the same
548
+ * name.
549
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
550
+ * query parameter, all fields
551
+ * are passed via URL path and HTTP request body.
552
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
553
+ * request body, all
554
+ * fields are passed via URL path and URL query parameters.
555
+ *
556
+ * Path template syntax
557
+ *
558
+ * Template = "/" Segments [ Verb ] ;
559
+ * Segments = Segment { "/" Segment } ;
560
+ * Segment = "*" | "**" | LITERAL | Variable ;
561
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
562
+ * FieldPath = IDENT { "." IDENT } ;
563
+ * Verb = ":" LITERAL ;
564
+ *
565
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
566
+ * zero or more URL path segments, which must be the last part of the URL path
567
+ * except the `Verb`.
568
+ *
569
+ * The syntax `Variable` matches part of the URL path as specified by its
570
+ * template. A variable template must not contain other variables. If a variable
571
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
572
+ * is equivalent to `{var=*}`.
573
+ *
574
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
575
+ * contains any reserved character, such characters should be percent-encoded
576
+ * before the matching.
577
+ *
578
+ * If a variable contains exactly one path segment, such as `"{var}"` or
579
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
580
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
581
+ * server side does the reverse decoding. Such variables show up in the
582
+ * [Discovery
583
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
584
+ * `{var}`.
585
+ *
586
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
587
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
588
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
589
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
590
+ * unchanged. Such variables show up in the
591
+ * [Discovery
592
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
593
+ * `{+var}`.
594
+ *
595
+ * Using gRPC API Service Configuration
596
+ *
597
+ * gRPC API Service Configuration (service config) is a configuration language
598
+ * for configuring a gRPC service to become a user-facing product. The
599
+ * service config is simply the YAML representation of the `google.api.Service`
600
+ * proto message.
601
+ *
602
+ * As an alternative to annotating your proto file, you can configure gRPC
603
+ * transcoding in your service config YAML files. You do this by specifying a
604
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
605
+ * effect as the proto annotation. This can be particularly useful if you
606
+ * have a proto that is reused in multiple services. Note that any transcoding
607
+ * specified in the service config will override any matching transcoding
608
+ * configuration in the proto.
609
+ *
610
+ * The following example selects a gRPC method and applies an `HttpRule` to it:
611
+ *
612
+ * http:
613
+ * rules:
614
+ * - selector: example.v1.Messaging.GetMessage
615
+ * get: /v1/messages/{message_id}/{sub.subfield}
616
+ *
617
+ * Special notes
618
+ *
619
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
620
+ * proto to JSON conversion must follow the [proto3
621
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
622
+ *
623
+ * While the single segment variable follows the semantics of
624
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
625
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
626
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
627
+ * does not expand special characters like `?` and `#`, which would lead
628
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
629
+ * for multi segment variables.
630
+ *
631
+ * The path variables **must not** refer to any repeated or mapped field,
632
+ * because client libraries are not capable of handling such variable expansion.
633
+ *
634
+ * The path variables **must not** capture the leading "/" character. The reason
635
+ * is that the most common use case "{var}" does not capture the leading "/"
636
+ * character. For consistency, all path variables must share the same behavior.
637
+ *
638
+ * Repeated message fields must not be mapped to URL query parameters, because
639
+ * no client library can support such complicated mapping.
640
+ *
641
+ * If an API needs to use a JSON array for request or response body, it can map
642
+ * the request or response body to a repeated field. However, some gRPC
643
+ * Transcoding implementations may not support this feature.
644
+ */
645
+ export interface HttpRuleAmino {
646
+ /**
647
+ * Selects a method to which this rule applies.
648
+ *
649
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
650
+ * details.
651
+ */
652
+ selector: string;
653
+ /**
654
+ * Maps to HTTP GET. Used for listing and getting information about
655
+ * resources.
656
+ */
657
+ get?: string;
658
+ /** Maps to HTTP PUT. Used for replacing a resource. */
659
+ put?: string;
660
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
661
+ post?: string;
662
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
663
+ delete?: string;
664
+ /** Maps to HTTP PATCH. Used for updating a resource. */
665
+ patch?: string;
666
+ /**
667
+ * The custom pattern is used for specifying an HTTP method that is not
668
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
669
+ * HTTP method unspecified for this rule. The wild-card rule is useful
670
+ * for services that provide content to Web (HTML) clients.
671
+ */
672
+ custom?: CustomHttpPatternAmino;
673
+ /**
674
+ * The name of the request field whose value is mapped to the HTTP request
675
+ * body, or `*` for mapping all request fields not captured by the path
676
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
677
+ *
678
+ * NOTE: the referred field must be present at the top-level of the request
679
+ * message type.
680
+ */
681
+ body: string;
682
+ /**
683
+ * Optional. The name of the response field whose value is mapped to the HTTP
684
+ * response body. When omitted, the entire response message will be used
685
+ * as the HTTP response body.
686
+ *
687
+ * NOTE: The referred field must be present at the top-level of the response
688
+ * message type.
689
+ */
690
+ response_body: string;
691
+ /**
692
+ * Additional HTTP bindings for the selector. Nested bindings must
693
+ * not contain an `additional_bindings` field themselves (that is,
694
+ * the nesting may only be one level deep).
695
+ */
696
+ additional_bindings: HttpRuleAmino[];
697
+ }
698
+ export interface HttpRuleAminoMsg {
699
+ type: "/google.api.HttpRule";
700
+ value: HttpRuleAmino;
701
+ }
702
+ /** A custom pattern is used for defining custom HTTP verb. */
703
+ export interface CustomHttpPattern {
704
+ /** The name of this custom HTTP verb. */
705
+ kind: string;
706
+ /** The path matched by this custom verb. */
707
+ path: string;
708
+ }
709
+ export interface CustomHttpPatternProtoMsg {
710
+ typeUrl: "/google.api.CustomHttpPattern";
711
+ value: Uint8Array;
712
+ }
713
+ /** A custom pattern is used for defining custom HTTP verb. */
714
+ export interface CustomHttpPatternAmino {
715
+ /** The name of this custom HTTP verb. */
716
+ kind: string;
717
+ /** The path matched by this custom verb. */
718
+ path: string;
719
+ }
720
+ export interface CustomHttpPatternAminoMsg {
721
+ type: "/google.api.CustomHttpPattern";
722
+ value: CustomHttpPatternAmino;
723
+ }
724
+ function createBaseHttp(): Http {
725
+ return {
726
+ rules: [],
727
+ fullyDecodeReservedExpansion: false
728
+ };
729
+ }
730
+ export const Http = {
731
+ typeUrl: "/google.api.Http",
732
+ is(o: any): o is Http {
733
+ return o && (o.$typeUrl === Http.typeUrl || Array.isArray(o.rules) && (!o.rules.length || HttpRule.is(o.rules[0])) && typeof o.fullyDecodeReservedExpansion === "boolean");
734
+ },
735
+ isAmino(o: any): o is HttpAmino {
736
+ return o && (o.$typeUrl === Http.typeUrl || Array.isArray(o.rules) && (!o.rules.length || HttpRule.isAmino(o.rules[0])) && typeof o.fully_decode_reserved_expansion === "boolean");
737
+ },
738
+ encode(message: Http, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
739
+ for (const v of message.rules) {
740
+ HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();
741
+ }
742
+ if (message.fullyDecodeReservedExpansion === true) {
743
+ writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
744
+ }
745
+ return writer;
746
+ },
747
+ decode(input: BinaryReader | Uint8Array, length?: number): Http {
748
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
749
+ let end = length === undefined ? reader.len : reader.pos + length;
750
+ const message = createBaseHttp();
751
+ while (reader.pos < end) {
752
+ const tag = reader.uint32();
753
+ switch (tag >>> 3) {
754
+ case 1:
755
+ message.rules.push(HttpRule.decode(reader, reader.uint32()));
756
+ break;
757
+ case 2:
758
+ message.fullyDecodeReservedExpansion = reader.bool();
759
+ break;
760
+ default:
761
+ reader.skipType(tag & 7);
762
+ break;
763
+ }
764
+ }
765
+ return message;
766
+ },
767
+ fromPartial(object: DeepPartial<Http>): Http {
768
+ const message = createBaseHttp();
769
+ message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || [];
770
+ message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
771
+ return message;
772
+ },
773
+ fromAmino(object: HttpAmino): Http {
774
+ const message = createBaseHttp();
775
+ message.rules = object.rules?.map(e => HttpRule.fromAmino(e)) || [];
776
+ if (object.fully_decode_reserved_expansion !== undefined && object.fully_decode_reserved_expansion !== null) {
777
+ message.fullyDecodeReservedExpansion = object.fully_decode_reserved_expansion;
778
+ }
779
+ return message;
780
+ },
781
+ toAmino(message: Http): HttpAmino {
782
+ const obj: any = {};
783
+ if (message.rules) {
784
+ obj.rules = message.rules.map(e => e ? HttpRule.toAmino(e) : undefined);
785
+ } else {
786
+ obj.rules = message.rules;
787
+ }
788
+ obj.fully_decode_reserved_expansion = message.fullyDecodeReservedExpansion === false ? undefined : message.fullyDecodeReservedExpansion;
789
+ return obj;
790
+ },
791
+ fromAminoMsg(object: HttpAminoMsg): Http {
792
+ return Http.fromAmino(object.value);
793
+ },
794
+ fromProtoMsg(message: HttpProtoMsg): Http {
795
+ return Http.decode(message.value);
796
+ },
797
+ toProto(message: Http): Uint8Array {
798
+ return Http.encode(message).finish();
799
+ },
800
+ toProtoMsg(message: Http): HttpProtoMsg {
801
+ return {
802
+ typeUrl: "/google.api.Http",
803
+ value: Http.encode(message).finish()
804
+ };
805
+ }
806
+ };
807
+ GlobalDecoderRegistry.register(Http.typeUrl, Http);
808
+ function createBaseHttpRule(): HttpRule {
809
+ return {
810
+ selector: "",
811
+ get: undefined,
812
+ put: undefined,
813
+ post: undefined,
814
+ delete: undefined,
815
+ patch: undefined,
816
+ custom: undefined,
817
+ body: "",
818
+ responseBody: "",
819
+ additionalBindings: []
820
+ };
821
+ }
822
+ export const HttpRule = {
823
+ typeUrl: "/google.api.HttpRule",
824
+ is(o: any): o is HttpRule {
825
+ return o && (o.$typeUrl === HttpRule.typeUrl || typeof o.selector === "string" && typeof o.body === "string" && typeof o.responseBody === "string" && Array.isArray(o.additionalBindings) && (!o.additionalBindings.length || HttpRule.is(o.additionalBindings[0])));
826
+ },
827
+ isAmino(o: any): o is HttpRuleAmino {
828
+ return o && (o.$typeUrl === HttpRule.typeUrl || typeof o.selector === "string" && typeof o.body === "string" && typeof o.response_body === "string" && Array.isArray(o.additional_bindings) && (!o.additional_bindings.length || HttpRule.isAmino(o.additional_bindings[0])));
829
+ },
830
+ encode(message: HttpRule, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
831
+ if (message.selector !== "") {
832
+ writer.uint32(10).string(message.selector);
833
+ }
834
+ if (message.get !== undefined) {
835
+ writer.uint32(18).string(message.get);
836
+ }
837
+ if (message.put !== undefined) {
838
+ writer.uint32(26).string(message.put);
839
+ }
840
+ if (message.post !== undefined) {
841
+ writer.uint32(34).string(message.post);
842
+ }
843
+ if (message.delete !== undefined) {
844
+ writer.uint32(42).string(message.delete);
845
+ }
846
+ if (message.patch !== undefined) {
847
+ writer.uint32(50).string(message.patch);
848
+ }
849
+ if (message.custom !== undefined) {
850
+ CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim();
851
+ }
852
+ if (message.body !== "") {
853
+ writer.uint32(58).string(message.body);
854
+ }
855
+ if (message.responseBody !== "") {
856
+ writer.uint32(98).string(message.responseBody);
857
+ }
858
+ for (const v of message.additionalBindings) {
859
+ HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();
860
+ }
861
+ return writer;
862
+ },
863
+ decode(input: BinaryReader | Uint8Array, length?: number): HttpRule {
864
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
865
+ let end = length === undefined ? reader.len : reader.pos + length;
866
+ const message = createBaseHttpRule();
867
+ while (reader.pos < end) {
868
+ const tag = reader.uint32();
869
+ switch (tag >>> 3) {
870
+ case 1:
871
+ message.selector = reader.string();
872
+ break;
873
+ case 2:
874
+ message.get = reader.string();
875
+ break;
876
+ case 3:
877
+ message.put = reader.string();
878
+ break;
879
+ case 4:
880
+ message.post = reader.string();
881
+ break;
882
+ case 5:
883
+ message.delete = reader.string();
884
+ break;
885
+ case 6:
886
+ message.patch = reader.string();
887
+ break;
888
+ case 8:
889
+ message.custom = CustomHttpPattern.decode(reader, reader.uint32());
890
+ break;
891
+ case 7:
892
+ message.body = reader.string();
893
+ break;
894
+ case 12:
895
+ message.responseBody = reader.string();
896
+ break;
897
+ case 11:
898
+ message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
899
+ break;
900
+ default:
901
+ reader.skipType(tag & 7);
902
+ break;
903
+ }
904
+ }
905
+ return message;
906
+ },
907
+ fromPartial(object: DeepPartial<HttpRule>): HttpRule {
908
+ const message = createBaseHttpRule();
909
+ message.selector = object.selector ?? "";
910
+ message.get = object.get ?? undefined;
911
+ message.put = object.put ?? undefined;
912
+ message.post = object.post ?? undefined;
913
+ message.delete = object.delete ?? undefined;
914
+ message.patch = object.patch ?? undefined;
915
+ message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined;
916
+ message.body = object.body ?? "";
917
+ message.responseBody = object.responseBody ?? "";
918
+ message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || [];
919
+ return message;
920
+ },
921
+ fromAmino(object: HttpRuleAmino): HttpRule {
922
+ const message = createBaseHttpRule();
923
+ if (object.selector !== undefined && object.selector !== null) {
924
+ message.selector = object.selector;
925
+ }
926
+ if (object.get !== undefined && object.get !== null) {
927
+ message.get = object.get;
928
+ }
929
+ if (object.put !== undefined && object.put !== null) {
930
+ message.put = object.put;
931
+ }
932
+ if (object.post !== undefined && object.post !== null) {
933
+ message.post = object.post;
934
+ }
935
+ if (object.delete !== undefined && object.delete !== null) {
936
+ message.delete = object.delete;
937
+ }
938
+ if (object.patch !== undefined && object.patch !== null) {
939
+ message.patch = object.patch;
940
+ }
941
+ if (object.custom !== undefined && object.custom !== null) {
942
+ message.custom = CustomHttpPattern.fromAmino(object.custom);
943
+ }
944
+ if (object.body !== undefined && object.body !== null) {
945
+ message.body = object.body;
946
+ }
947
+ if (object.response_body !== undefined && object.response_body !== null) {
948
+ message.responseBody = object.response_body;
949
+ }
950
+ message.additionalBindings = object.additional_bindings?.map(e => HttpRule.fromAmino(e)) || [];
951
+ return message;
952
+ },
953
+ toAmino(message: HttpRule): HttpRuleAmino {
954
+ const obj: any = {};
955
+ obj.selector = message.selector === "" ? undefined : message.selector;
956
+ obj.get = message.get === null ? undefined : message.get;
957
+ obj.put = message.put === null ? undefined : message.put;
958
+ obj.post = message.post === null ? undefined : message.post;
959
+ obj.delete = message.delete === null ? undefined : message.delete;
960
+ obj.patch = message.patch === null ? undefined : message.patch;
961
+ obj.custom = message.custom ? CustomHttpPattern.toAmino(message.custom) : undefined;
962
+ obj.body = message.body === "" ? undefined : message.body;
963
+ obj.response_body = message.responseBody === "" ? undefined : message.responseBody;
964
+ if (message.additionalBindings) {
965
+ obj.additional_bindings = message.additionalBindings.map(e => e ? HttpRule.toAmino(e) : undefined);
966
+ } else {
967
+ obj.additional_bindings = message.additionalBindings;
968
+ }
969
+ return obj;
970
+ },
971
+ fromAminoMsg(object: HttpRuleAminoMsg): HttpRule {
972
+ return HttpRule.fromAmino(object.value);
973
+ },
974
+ fromProtoMsg(message: HttpRuleProtoMsg): HttpRule {
975
+ return HttpRule.decode(message.value);
976
+ },
977
+ toProto(message: HttpRule): Uint8Array {
978
+ return HttpRule.encode(message).finish();
979
+ },
980
+ toProtoMsg(message: HttpRule): HttpRuleProtoMsg {
981
+ return {
982
+ typeUrl: "/google.api.HttpRule",
983
+ value: HttpRule.encode(message).finish()
984
+ };
985
+ }
986
+ };
987
+ GlobalDecoderRegistry.register(HttpRule.typeUrl, HttpRule);
988
+ function createBaseCustomHttpPattern(): CustomHttpPattern {
989
+ return {
990
+ kind: "",
991
+ path: ""
992
+ };
993
+ }
994
+ export const CustomHttpPattern = {
995
+ typeUrl: "/google.api.CustomHttpPattern",
996
+ is(o: any): o is CustomHttpPattern {
997
+ return o && (o.$typeUrl === CustomHttpPattern.typeUrl || typeof o.kind === "string" && typeof o.path === "string");
998
+ },
999
+ isAmino(o: any): o is CustomHttpPatternAmino {
1000
+ return o && (o.$typeUrl === CustomHttpPattern.typeUrl || typeof o.kind === "string" && typeof o.path === "string");
1001
+ },
1002
+ encode(message: CustomHttpPattern, writer: BinaryWriter = BinaryWriter.create()): BinaryWriter {
1003
+ if (message.kind !== "") {
1004
+ writer.uint32(10).string(message.kind);
1005
+ }
1006
+ if (message.path !== "") {
1007
+ writer.uint32(18).string(message.path);
1008
+ }
1009
+ return writer;
1010
+ },
1011
+ decode(input: BinaryReader | Uint8Array, length?: number): CustomHttpPattern {
1012
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1013
+ let end = length === undefined ? reader.len : reader.pos + length;
1014
+ const message = createBaseCustomHttpPattern();
1015
+ while (reader.pos < end) {
1016
+ const tag = reader.uint32();
1017
+ switch (tag >>> 3) {
1018
+ case 1:
1019
+ message.kind = reader.string();
1020
+ break;
1021
+ case 2:
1022
+ message.path = reader.string();
1023
+ break;
1024
+ default:
1025
+ reader.skipType(tag & 7);
1026
+ break;
1027
+ }
1028
+ }
1029
+ return message;
1030
+ },
1031
+ fromPartial(object: DeepPartial<CustomHttpPattern>): CustomHttpPattern {
1032
+ const message = createBaseCustomHttpPattern();
1033
+ message.kind = object.kind ?? "";
1034
+ message.path = object.path ?? "";
1035
+ return message;
1036
+ },
1037
+ fromAmino(object: CustomHttpPatternAmino): CustomHttpPattern {
1038
+ const message = createBaseCustomHttpPattern();
1039
+ if (object.kind !== undefined && object.kind !== null) {
1040
+ message.kind = object.kind;
1041
+ }
1042
+ if (object.path !== undefined && object.path !== null) {
1043
+ message.path = object.path;
1044
+ }
1045
+ return message;
1046
+ },
1047
+ toAmino(message: CustomHttpPattern): CustomHttpPatternAmino {
1048
+ const obj: any = {};
1049
+ obj.kind = message.kind === "" ? undefined : message.kind;
1050
+ obj.path = message.path === "" ? undefined : message.path;
1051
+ return obj;
1052
+ },
1053
+ fromAminoMsg(object: CustomHttpPatternAminoMsg): CustomHttpPattern {
1054
+ return CustomHttpPattern.fromAmino(object.value);
1055
+ },
1056
+ fromProtoMsg(message: CustomHttpPatternProtoMsg): CustomHttpPattern {
1057
+ return CustomHttpPattern.decode(message.value);
1058
+ },
1059
+ toProto(message: CustomHttpPattern): Uint8Array {
1060
+ return CustomHttpPattern.encode(message).finish();
1061
+ },
1062
+ toProtoMsg(message: CustomHttpPattern): CustomHttpPatternProtoMsg {
1063
+ return {
1064
+ typeUrl: "/google.api.CustomHttpPattern",
1065
+ value: CustomHttpPattern.encode(message).finish()
1066
+ };
1067
+ }
1068
+ };
1069
+ GlobalDecoderRegistry.register(CustomHttpPattern.typeUrl, CustomHttpPattern);