@bze/bzejs 0.0.8 → 0.0.9

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 (352) hide show
  1. package/main/codegen/beezee/burner/burn_coins_proposal.js +4 -5
  2. package/main/codegen/beezee/burner/burned_coins.js +4 -5
  3. package/main/codegen/beezee/burner/events.js +5 -7
  4. package/main/codegen/beezee/burner/genesis.js +8 -5
  5. package/main/codegen/beezee/burner/params.js +8 -5
  6. package/main/codegen/beezee/burner/query.js +15 -11
  7. package/main/codegen/beezee/burner/query.lcd.js +6 -7
  8. package/main/codegen/beezee/burner/query.rpc.Query.js +6 -7
  9. package/main/codegen/beezee/burner/tx.amino.js +2 -3
  10. package/main/codegen/beezee/burner/tx.js +5 -7
  11. package/main/codegen/beezee/burner/tx.registry.js +4 -7
  12. package/main/codegen/beezee/burner/tx.rpc.msg.js +5 -5
  13. package/main/codegen/beezee/cointrunk/accepted_domain.js +4 -5
  14. package/main/codegen/beezee/cointrunk/accepted_domain_proposal.js +4 -5
  15. package/main/codegen/beezee/cointrunk/anon_articles_counter.js +4 -5
  16. package/main/codegen/beezee/cointrunk/article.js +4 -5
  17. package/main/codegen/beezee/cointrunk/events.js +9 -15
  18. package/main/codegen/beezee/cointrunk/genesis.js +8 -5
  19. package/main/codegen/beezee/cointrunk/params.js +9 -7
  20. package/main/codegen/beezee/cointrunk/publisher.js +4 -5
  21. package/main/codegen/beezee/cointrunk/publisher_proposal.js +4 -5
  22. package/main/codegen/beezee/cointrunk/query.js +23 -27
  23. package/main/codegen/beezee/cointrunk/query.lcd.js +14 -15
  24. package/main/codegen/beezee/cointrunk/query.rpc.Query.js +6 -7
  25. package/main/codegen/beezee/cointrunk/tx.amino.js +2 -3
  26. package/main/codegen/beezee/cointrunk/tx.js +7 -11
  27. package/main/codegen/beezee/cointrunk/tx.registry.js +4 -7
  28. package/main/codegen/beezee/cointrunk/tx.rpc.msg.js +5 -5
  29. package/main/codegen/bze/bundle.js +4 -5
  30. package/main/codegen/bze/client.js +9 -13
  31. package/main/codegen/bze/lcd.js +4 -5
  32. package/main/codegen/bze/rpc.query.js +4 -5
  33. package/main/codegen/bze/rpc.tx.js +4 -5
  34. package/main/codegen/cosmos/app/v1alpha1/config.js +29 -7
  35. package/main/codegen/cosmos/app/v1alpha1/module.js +24 -9
  36. package/main/codegen/cosmos/app/v1alpha1/query.js +13 -7
  37. package/main/codegen/cosmos/app/v1alpha1/query.rpc.Query.js +6 -7
  38. package/main/codegen/cosmos/auth/v1beta1/auth.js +26 -9
  39. package/main/codegen/cosmos/auth/v1beta1/genesis.js +8 -5
  40. package/main/codegen/cosmos/auth/v1beta1/query.js +89 -31
  41. package/main/codegen/cosmos/auth/v1beta1/query.lcd.js +16 -17
  42. package/main/codegen/cosmos/auth/v1beta1/query.rpc.Query.js +6 -7
  43. package/main/codegen/cosmos/authz/v1beta1/authz.js +41 -11
  44. package/main/codegen/cosmos/authz/v1beta1/event.js +13 -7
  45. package/main/codegen/cosmos/authz/v1beta1/genesis.js +8 -5
  46. package/main/codegen/cosmos/authz/v1beta1/query.js +33 -15
  47. package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +8 -7
  48. package/main/codegen/cosmos/authz/v1beta1/query.rpc.Query.js +6 -7
  49. package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +2 -3
  50. package/main/codegen/cosmos/authz/v1beta1/tx.js +53 -15
  51. package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +4 -7
  52. package/main/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +5 -5
  53. package/main/codegen/cosmos/bank/v1beta1/authz.js +18 -5
  54. package/main/codegen/cosmos/bank/v1beta1/bank.js +68 -17
  55. package/main/codegen/cosmos/bank/v1beta1/genesis.js +19 -7
  56. package/main/codegen/cosmos/bank/v1beta1/query.js +156 -41
  57. package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +20 -18
  58. package/main/codegen/cosmos/bank/v1beta1/query.rpc.Query.js +6 -7
  59. package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +2 -3
  60. package/main/codegen/cosmos/bank/v1beta1/tx.js +23 -11
  61. package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +4 -7
  62. package/main/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +5 -5
  63. package/main/codegen/cosmos/base/abci/v1beta1/abci.js +93 -23
  64. package/main/codegen/cosmos/base/kv/v1beta1/kv.js +13 -7
  65. package/main/codegen/cosmos/base/query/v1beta1/pagination.js +45 -7
  66. package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +35 -11
  67. package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +163 -55
  68. package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +48 -21
  69. package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +36 -9
  70. package/main/codegen/cosmos/base/store/v1beta1/listening.js +20 -5
  71. package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +78 -33
  72. package/main/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +14 -15
  73. package/main/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.js +6 -7
  74. package/main/codegen/cosmos/base/v1beta1/coin.js +43 -11
  75. package/main/codegen/cosmos/bundle.js +4 -5
  76. package/main/codegen/cosmos/capability/v1beta1/capability.js +36 -9
  77. package/main/codegen/cosmos/capability/v1beta1/genesis.js +13 -7
  78. package/main/codegen/cosmos/client.js +9 -13
  79. package/main/codegen/cosmos/crisis/v1beta1/genesis.js +8 -5
  80. package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +2 -3
  81. package/main/codegen/cosmos/crisis/v1beta1/tx.js +13 -7
  82. package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +4 -7
  83. package/main/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +5 -5
  84. package/main/codegen/cosmos/crypto/ed25519/keys.js +31 -7
  85. package/main/codegen/cosmos/crypto/hd/v1/hd.js +8 -5
  86. package/main/codegen/cosmos/crypto/keyring/v1/record.js +34 -13
  87. package/main/codegen/cosmos/crypto/multisig/keys.js +16 -5
  88. package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +31 -7
  89. package/main/codegen/cosmos/crypto/secp256k1/keys.js +25 -7
  90. package/main/codegen/cosmos/crypto/secp256r1/keys.js +13 -7
  91. package/main/codegen/cosmos/distribution/v1beta1/distribution.js +153 -27
  92. package/main/codegen/cosmos/distribution/v1beta1/genesis.js +63 -19
  93. package/main/codegen/cosmos/distribution/v1beta1/query.js +189 -39
  94. package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +20 -20
  95. package/main/codegen/cosmos/distribution/v1beta1/query.rpc.Query.js +6 -7
  96. package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +2 -3
  97. package/main/codegen/cosmos/distribution/v1beta1/tx.js +67 -19
  98. package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +4 -7
  99. package/main/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +5 -5
  100. package/main/codegen/cosmos/evidence/v1beta1/evidence.js +14 -5
  101. package/main/codegen/cosmos/evidence/v1beta1/genesis.js +8 -5
  102. package/main/codegen/cosmos/evidence/v1beta1/query.js +35 -11
  103. package/main/codegen/cosmos/evidence/v1beta1/query.lcd.js +6 -7
  104. package/main/codegen/cosmos/evidence/v1beta1/query.rpc.Query.js +6 -7
  105. package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +2 -3
  106. package/main/codegen/cosmos/evidence/v1beta1/tx.js +19 -7
  107. package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +4 -7
  108. package/main/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +5 -5
  109. package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +35 -11
  110. package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +8 -5
  111. package/main/codegen/cosmos/feegrant/v1beta1/query.js +33 -15
  112. package/main/codegen/cosmos/feegrant/v1beta1/query.lcd.js +8 -8
  113. package/main/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.js +6 -7
  114. package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +2 -3
  115. package/main/codegen/cosmos/feegrant/v1beta1/tx.js +29 -11
  116. package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +4 -7
  117. package/main/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +5 -5
  118. package/main/codegen/cosmos/genutil/v1beta1/genesis.js +8 -5
  119. package/main/codegen/cosmos/gov/v1/genesis.js +8 -5
  120. package/main/codegen/cosmos/gov/v1/gov.js +67 -37
  121. package/main/codegen/cosmos/gov/v1/query.js +89 -35
  122. package/main/codegen/cosmos/gov/v1/query.lcd.js +18 -19
  123. package/main/codegen/cosmos/gov/v1/query.rpc.Query.js +6 -7
  124. package/main/codegen/cosmos/gov/v1/tx.amino.js +2 -3
  125. package/main/codegen/cosmos/gov/v1/tx.js +65 -23
  126. package/main/codegen/cosmos/gov/v1/tx.registry.js +4 -7
  127. package/main/codegen/cosmos/gov/v1/tx.rpc.msg.js +5 -5
  128. package/main/codegen/cosmos/gov/v1beta1/genesis.js +8 -5
  129. package/main/codegen/cosmos/gov/v1beta1/gov.js +82 -39
  130. package/main/codegen/cosmos/gov/v1beta1/query.js +89 -35
  131. package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +18 -19
  132. package/main/codegen/cosmos/gov/v1beta1/query.rpc.Query.js +6 -7
  133. package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +2 -3
  134. package/main/codegen/cosmos/gov/v1beta1/tx.js +65 -19
  135. package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +4 -7
  136. package/main/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +5 -5
  137. package/main/codegen/cosmos/group/v1/events.js +48 -21
  138. package/main/codegen/cosmos/group/v1/genesis.js +8 -5
  139. package/main/codegen/cosmos/group/v1/query.js +133 -55
  140. package/main/codegen/cosmos/group/v1/query.lcd.js +28 -29
  141. package/main/codegen/cosmos/group/v1/query.rpc.Query.js +6 -7
  142. package/main/codegen/cosmos/group/v1/tx.amino.js +2 -3
  143. package/main/codegen/cosmos/group/v1/tx.js +148 -68
  144. package/main/codegen/cosmos/group/v1/tx.registry.js +4 -7
  145. package/main/codegen/cosmos/group/v1/tx.rpc.msg.js +5 -5
  146. package/main/codegen/cosmos/group/v1/types.js +97 -61
  147. package/main/codegen/cosmos/lcd.js +4 -5
  148. package/main/codegen/cosmos/mint/v1beta1/genesis.js +8 -5
  149. package/main/codegen/cosmos/mint/v1beta1/mint.js +13 -7
  150. package/main/codegen/cosmos/mint/v1beta1/query.js +51 -15
  151. package/main/codegen/cosmos/mint/v1beta1/query.lcd.js +8 -9
  152. package/main/codegen/cosmos/mint/v1beta1/query.rpc.Query.js +6 -7
  153. package/main/codegen/cosmos/nft/v1beta1/event.js +18 -9
  154. package/main/codegen/cosmos/nft/v1beta1/genesis.js +13 -7
  155. package/main/codegen/cosmos/nft/v1beta1/nft.js +13 -7
  156. package/main/codegen/cosmos/nft/v1beta1/query.js +73 -31
  157. package/main/codegen/cosmos/nft/v1beta1/query.lcd.js +16 -16
  158. package/main/codegen/cosmos/nft/v1beta1/query.rpc.Query.js +6 -7
  159. package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +2 -3
  160. package/main/codegen/cosmos/nft/v1beta1/tx.js +13 -7
  161. package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +4 -7
  162. package/main/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +5 -5
  163. package/main/codegen/cosmos/orm/v1/orm.js +23 -11
  164. package/main/codegen/cosmos/orm/v1alpha1/schema.js +18 -16
  165. package/main/codegen/cosmos/params/v1beta1/params.js +19 -7
  166. package/main/codegen/cosmos/params/v1beta1/query.js +46 -13
  167. package/main/codegen/cosmos/params/v1beta1/query.lcd.js +6 -7
  168. package/main/codegen/cosmos/params/v1beta1/query.rpc.Query.js +6 -7
  169. package/main/codegen/cosmos/rpc.query.js +4 -5
  170. package/main/codegen/cosmos/rpc.tx.js +4 -5
  171. package/main/codegen/cosmos/slashing/v1beta1/genesis.js +29 -11
  172. package/main/codegen/cosmos/slashing/v1beta1/query.js +57 -15
  173. package/main/codegen/cosmos/slashing/v1beta1/query.lcd.js +8 -9
  174. package/main/codegen/cosmos/slashing/v1beta1/query.rpc.Query.js +6 -7
  175. package/main/codegen/cosmos/slashing/v1beta1/slashing.js +19 -7
  176. package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +2 -3
  177. package/main/codegen/cosmos/slashing/v1beta1/tx.js +13 -7
  178. package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +4 -7
  179. package/main/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +5 -5
  180. package/main/codegen/cosmos/staking/v1beta1/authz.js +26 -20
  181. package/main/codegen/cosmos/staking/v1beta1/genesis.js +13 -7
  182. package/main/codegen/cosmos/staking/v1beta1/query.js +251 -59
  183. package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +30 -27
  184. package/main/codegen/cosmos/staking/v1beta1/query.rpc.Query.js +6 -7
  185. package/main/codegen/cosmos/staking/v1beta1/staking.js +203 -52
  186. package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +2 -3
  187. package/main/codegen/cosmos/staking/v1beta1/tx.js +71 -23
  188. package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +4 -7
  189. package/main/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +5 -5
  190. package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +48 -27
  191. package/main/codegen/cosmos/tx/v1beta1/service.js +122 -41
  192. package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +8 -8
  193. package/main/codegen/cosmos/tx/v1beta1/service.rpc.Service.js +6 -7
  194. package/main/codegen/cosmos/tx/v1beta1/tx.js +140 -29
  195. package/main/codegen/cosmos/upgrade/v1beta1/query.js +133 -23
  196. package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +12 -11
  197. package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.js +6 -7
  198. package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +2 -3
  199. package/main/codegen/cosmos/upgrade/v1beta1/tx.js +55 -11
  200. package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +4 -7
  201. package/main/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +5 -5
  202. package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +59 -11
  203. package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +2 -3
  204. package/main/codegen/cosmos/vesting/v1beta1/tx.js +57 -15
  205. package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +4 -7
  206. package/main/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +5 -5
  207. package/main/codegen/cosmos/vesting/v1beta1/vesting.js +71 -15
  208. package/main/codegen/cosmos_proto/bundle.js +5 -6
  209. package/main/codegen/cosmos_proto/cosmos.js +36 -15
  210. package/main/codegen/extern.js +3 -5
  211. package/main/codegen/gogoproto/bundle.js +5 -6
  212. package/main/codegen/google/api/http.js +566 -9
  213. package/main/codegen/google/bundle.js +4 -5
  214. package/main/codegen/google/protobuf/any.js +168 -5
  215. package/main/codegen/google/protobuf/descriptor.js +194 -110
  216. package/main/codegen/google/protobuf/duration.js +126 -5
  217. package/main/codegen/google/protobuf/empty.js +28 -5
  218. package/main/codegen/google/protobuf/timestamp.js +174 -5
  219. package/main/codegen/helpers.js +3 -4
  220. package/main/codegen/tendermint/abci/types.js +154 -123
  221. package/main/codegen/tendermint/bundle.js +4 -5
  222. package/main/codegen/tendermint/crypto/keys.js +8 -5
  223. package/main/codegen/tendermint/crypto/proof.js +24 -13
  224. package/main/codegen/tendermint/libs/bits/types.js +4 -5
  225. package/main/codegen/tendermint/p2p/types.js +8 -13
  226. package/main/codegen/tendermint/types/block.js +4 -5
  227. package/main/codegen/tendermint/types/evidence.js +15 -11
  228. package/main/codegen/tendermint/types/params.js +53 -15
  229. package/main/codegen/tendermint/types/types.js +66 -47
  230. package/main/codegen/tendermint/types/validator.js +6 -9
  231. package/main/codegen/tendermint/version/types.js +29 -7
  232. package/module/codegen/beezee/burner/genesis.js +5 -0
  233. package/module/codegen/beezee/burner/params.js +5 -0
  234. package/module/codegen/beezee/burner/query.js +9 -0
  235. package/module/codegen/beezee/cointrunk/genesis.js +2 -0
  236. package/module/codegen/beezee/cointrunk/params.js +2 -0
  237. package/module/codegen/beezee/cointrunk/query.js +9 -0
  238. package/module/codegen/bze/bundle.js +2 -2
  239. package/module/codegen/bze/client.js +2 -2
  240. package/module/codegen/cosmos/app/v1alpha1/config.js +25 -0
  241. package/module/codegen/cosmos/app/v1alpha1/module.js +19 -0
  242. package/module/codegen/cosmos/app/v1alpha1/query.js +9 -0
  243. package/module/codegen/cosmos/auth/v1beta1/auth.js +14 -0
  244. package/module/codegen/cosmos/auth/v1beta1/genesis.js +5 -0
  245. package/module/codegen/cosmos/auth/v1beta1/query.js +73 -0
  246. package/module/codegen/cosmos/authz/v1beta1/authz.js +29 -0
  247. package/module/codegen/cosmos/authz/v1beta1/event.js +9 -0
  248. package/module/codegen/cosmos/authz/v1beta1/genesis.js +5 -0
  249. package/module/codegen/cosmos/authz/v1beta1/query.js +25 -0
  250. package/module/codegen/cosmos/authz/v1beta1/tx.js +45 -0
  251. package/module/codegen/cosmos/bank/v1beta1/authz.js +15 -0
  252. package/module/codegen/cosmos/bank/v1beta1/bank.js +59 -0
  253. package/module/codegen/cosmos/bank/v1beta1/genesis.js +15 -0
  254. package/module/codegen/cosmos/bank/v1beta1/query.js +135 -0
  255. package/module/codegen/cosmos/bank/v1beta1/tx.js +17 -0
  256. package/module/codegen/cosmos/base/abci/v1beta1/abci.js +75 -0
  257. package/module/codegen/cosmos/base/kv/v1beta1/kv.js +9 -0
  258. package/module/codegen/cosmos/base/query/v1beta1/pagination.js +30 -0
  259. package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +29 -0
  260. package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +135 -0
  261. package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +34 -0
  262. package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +25 -0
  263. package/module/codegen/cosmos/base/store/v1beta1/listening.js +17 -0
  264. package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +58 -0
  265. package/module/codegen/cosmos/base/v1beta1/coin.js +37 -0
  266. package/module/codegen/cosmos/bundle.js +2 -2
  267. package/module/codegen/cosmos/capability/v1beta1/capability.js +25 -0
  268. package/module/codegen/cosmos/capability/v1beta1/genesis.js +6 -0
  269. package/module/codegen/cosmos/client.js +2 -2
  270. package/module/codegen/cosmos/crisis/v1beta1/genesis.js +5 -0
  271. package/module/codegen/cosmos/crisis/v1beta1/tx.js +9 -0
  272. package/module/codegen/cosmos/crypto/ed25519/keys.js +27 -0
  273. package/module/codegen/cosmos/crypto/hd/v1/hd.js +5 -0
  274. package/module/codegen/cosmos/crypto/keyring/v1/record.js +27 -0
  275. package/module/codegen/cosmos/crypto/multisig/keys.js +13 -0
  276. package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +27 -0
  277. package/module/codegen/cosmos/crypto/secp256k1/keys.js +21 -0
  278. package/module/codegen/cosmos/crypto/secp256r1/keys.js +9 -0
  279. package/module/codegen/cosmos/distribution/v1beta1/distribution.js +136 -0
  280. package/module/codegen/cosmos/distribution/v1beta1/genesis.js +46 -0
  281. package/module/codegen/cosmos/distribution/v1beta1/query.js +166 -0
  282. package/module/codegen/cosmos/distribution/v1beta1/tx.js +57 -0
  283. package/module/codegen/cosmos/evidence/v1beta1/evidence.js +5 -0
  284. package/module/codegen/cosmos/evidence/v1beta1/genesis.js +5 -0
  285. package/module/codegen/cosmos/evidence/v1beta1/query.js +29 -0
  286. package/module/codegen/cosmos/evidence/v1beta1/tx.js +15 -0
  287. package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +23 -0
  288. package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +5 -0
  289. package/module/codegen/cosmos/feegrant/v1beta1/query.js +25 -0
  290. package/module/codegen/cosmos/feegrant/v1beta1/tx.js +23 -0
  291. package/module/codegen/cosmos/genutil/v1beta1/genesis.js +5 -0
  292. package/module/codegen/cosmos/gov/v1/genesis.js +2 -0
  293. package/module/codegen/cosmos/gov/v1/gov.js +58 -14
  294. package/module/codegen/cosmos/gov/v1/query.js +68 -0
  295. package/module/codegen/cosmos/gov/v1/tx.js +47 -0
  296. package/module/codegen/cosmos/gov/v1beta1/genesis.js +2 -0
  297. package/module/codegen/cosmos/gov/v1beta1/gov.js +72 -14
  298. package/module/codegen/cosmos/gov/v1beta1/query.js +68 -0
  299. package/module/codegen/cosmos/gov/v1beta1/tx.js +49 -0
  300. package/module/codegen/cosmos/group/v1/events.js +34 -0
  301. package/module/codegen/cosmos/group/v1/genesis.js +2 -0
  302. package/module/codegen/cosmos/group/v1/query.js +102 -0
  303. package/module/codegen/cosmos/group/v1/tx.js +118 -7
  304. package/module/codegen/cosmos/group/v1/types.js +87 -28
  305. package/module/codegen/cosmos/mint/v1beta1/genesis.js +5 -0
  306. package/module/codegen/cosmos/mint/v1beta1/mint.js +6 -0
  307. package/module/codegen/cosmos/mint/v1beta1/query.js +43 -0
  308. package/module/codegen/cosmos/nft/v1beta1/event.js +13 -0
  309. package/module/codegen/cosmos/nft/v1beta1/genesis.js +9 -0
  310. package/module/codegen/cosmos/nft/v1beta1/nft.js +9 -0
  311. package/module/codegen/cosmos/nft/v1beta1/query.js +54 -0
  312. package/module/codegen/cosmos/nft/v1beta1/tx.js +9 -0
  313. package/module/codegen/cosmos/orm/v1/orm.js +17 -0
  314. package/module/codegen/cosmos/orm/v1alpha1/schema.js +14 -7
  315. package/module/codegen/cosmos/params/v1beta1/params.js +15 -0
  316. package/module/codegen/cosmos/params/v1beta1/query.js +39 -0
  317. package/module/codegen/cosmos/slashing/v1beta1/genesis.js +20 -0
  318. package/module/codegen/cosmos/slashing/v1beta1/query.js +49 -0
  319. package/module/codegen/cosmos/slashing/v1beta1/slashing.js +9 -0
  320. package/module/codegen/cosmos/slashing/v1beta1/tx.js +9 -0
  321. package/module/codegen/cosmos/staking/v1beta1/authz.js +22 -11
  322. package/module/codegen/cosmos/staking/v1beta1/genesis.js +6 -0
  323. package/module/codegen/cosmos/staking/v1beta1/query.js +218 -0
  324. package/module/codegen/cosmos/staking/v1beta1/staking.js +181 -7
  325. package/module/codegen/cosmos/staking/v1beta1/tx.js +56 -0
  326. package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +41 -12
  327. package/module/codegen/cosmos/tx/v1beta1/service.js +111 -14
  328. package/module/codegen/cosmos/tx/v1beta1/tx.js +122 -0
  329. package/module/codegen/cosmos/upgrade/v1beta1/query.js +115 -0
  330. package/module/codegen/cosmos/upgrade/v1beta1/tx.js +49 -0
  331. package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +50 -0
  332. package/module/codegen/cosmos/vesting/v1beta1/tx.js +43 -0
  333. package/module/codegen/cosmos/vesting/v1beta1/vesting.js +57 -0
  334. package/module/codegen/cosmos_proto/bundle.js +2 -2
  335. package/module/codegen/cosmos_proto/cosmos.js +31 -6
  336. package/module/codegen/gogoproto/bundle.js +2 -2
  337. package/module/codegen/google/api/http.js +561 -0
  338. package/module/codegen/google/bundle.js +2 -2
  339. package/module/codegen/google/protobuf/any.js +165 -0
  340. package/module/codegen/google/protobuf/descriptor.js +166 -41
  341. package/module/codegen/google/protobuf/duration.js +61 -0
  342. package/module/codegen/google/protobuf/empty.js +25 -0
  343. package/module/codegen/google/protobuf/timestamp.js +85 -0
  344. package/module/codegen/tendermint/abci/types.js +107 -24
  345. package/module/codegen/tendermint/bundle.js +2 -2
  346. package/module/codegen/tendermint/crypto/keys.js +5 -0
  347. package/module/codegen/tendermint/crypto/proof.js +17 -0
  348. package/module/codegen/tendermint/types/evidence.js +9 -0
  349. package/module/codegen/tendermint/types/params.js +39 -0
  350. package/module/codegen/tendermint/types/types.js +52 -14
  351. package/module/codegen/tendermint/version/types.js +18 -0
  352. package/package.json +7 -6
@@ -6,18 +6,578 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.HttpRule = exports.Http = exports.CustomHttpPattern = void 0;
8
8
  var _m0 = _interopRequireWildcard(require("protobufjs/minimal"));
9
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
10
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
11
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
13
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ /**
15
+ * Defines the HTTP configuration for an API service. It contains a list of
16
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
17
+ * to one or more HTTP REST API methods.
18
+ */
19
+
20
+ /**
21
+ * Defines the HTTP configuration for an API service. It contains a list of
22
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
23
+ * to one or more HTTP REST API methods.
24
+ */
25
+
26
+ /**
27
+ * # gRPC Transcoding
28
+ *
29
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
30
+ * more HTTP REST endpoints. It allows developers to build a single API service
31
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
32
+ * APIs](https://github.com/googleapis/googleapis),
33
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
34
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
35
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
36
+ * and use it for large scale production services.
37
+ *
38
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
39
+ * how different portions of the gRPC request message are mapped to the URL
40
+ * path, URL query parameters, and HTTP request body. It also controls how the
41
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
42
+ * typically specified as an `google.api.http` annotation on the gRPC method.
43
+ *
44
+ * Each mapping specifies a URL path template and an HTTP method. The path
45
+ * template may refer to one or more fields in the gRPC request message, as long
46
+ * as each field is a non-repeated field with a primitive (non-message) type.
47
+ * The path template controls how fields of the request message are mapped to
48
+ * the URL path.
49
+ *
50
+ * Example:
51
+ *
52
+ * service Messaging {
53
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
54
+ * option (google.api.http) = {
55
+ * get: "/v1/{name=messages/*}"
56
+ * };
57
+ * }
58
+ * }
59
+ * message GetMessageRequest {
60
+ * string name = 1; // Mapped to URL path.
61
+ * }
62
+ * message Message {
63
+ * string text = 1; // The resource content.
64
+ * }
65
+ *
66
+ * This enables an HTTP REST to gRPC mapping as below:
67
+ *
68
+ * HTTP | gRPC
69
+ * -----|-----
70
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
71
+ *
72
+ * Any fields in the request message which are not bound by the path template
73
+ * automatically become HTTP query parameters if there is no HTTP request body.
74
+ * For example:
75
+ *
76
+ * service Messaging {
77
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
78
+ * option (google.api.http) = {
79
+ * get:"/v1/messages/{message_id}"
80
+ * };
81
+ * }
82
+ * }
83
+ * message GetMessageRequest {
84
+ * message SubMessage {
85
+ * string subfield = 1;
86
+ * }
87
+ * string message_id = 1; // Mapped to URL path.
88
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
89
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
90
+ * }
91
+ *
92
+ * This enables a HTTP JSON to RPC mapping as below:
93
+ *
94
+ * HTTP | gRPC
95
+ * -----|-----
96
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
97
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
98
+ * "foo"))`
99
+ *
100
+ * Note that fields which are mapped to URL query parameters must have a
101
+ * primitive type or a repeated primitive type or a non-repeated message type.
102
+ * In the case of a repeated type, the parameter can be repeated in the URL
103
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
104
+ * message is mapped to a separate parameter, such as
105
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
106
+ *
107
+ * For HTTP methods that allow a request body, the `body` field
108
+ * specifies the mapping. Consider a REST update method on the
109
+ * message resource collection:
110
+ *
111
+ * service Messaging {
112
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
113
+ * option (google.api.http) = {
114
+ * patch: "/v1/messages/{message_id}"
115
+ * body: "message"
116
+ * };
117
+ * }
118
+ * }
119
+ * message UpdateMessageRequest {
120
+ * string message_id = 1; // mapped to the URL
121
+ * Message message = 2; // mapped to the body
122
+ * }
123
+ *
124
+ * The following HTTP JSON to RPC mapping is enabled, where the
125
+ * representation of the JSON in the request body is determined by
126
+ * protos JSON encoding:
127
+ *
128
+ * HTTP | gRPC
129
+ * -----|-----
130
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
131
+ * "123456" message { text: "Hi!" })`
132
+ *
133
+ * The special name `*` can be used in the body mapping to define that
134
+ * every field not bound by the path template should be mapped to the
135
+ * request body. This enables the following alternative definition of
136
+ * the update method:
137
+ *
138
+ * service Messaging {
139
+ * rpc UpdateMessage(Message) returns (Message) {
140
+ * option (google.api.http) = {
141
+ * patch: "/v1/messages/{message_id}"
142
+ * body: "*"
143
+ * };
144
+ * }
145
+ * }
146
+ * message Message {
147
+ * string message_id = 1;
148
+ * string text = 2;
149
+ * }
150
+ *
151
+ *
152
+ * The following HTTP JSON to RPC mapping is enabled:
153
+ *
154
+ * HTTP | gRPC
155
+ * -----|-----
156
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
157
+ * "123456" text: "Hi!")`
158
+ *
159
+ * Note that when using `*` in the body mapping, it is not possible to
160
+ * have HTTP parameters, as all fields not bound by the path end in
161
+ * the body. This makes this option more rarely used in practice when
162
+ * defining REST APIs. The common usage of `*` is in custom methods
163
+ * which don't use the URL at all for transferring data.
164
+ *
165
+ * It is possible to define multiple HTTP methods for one RPC by using
166
+ * the `additional_bindings` option. Example:
167
+ *
168
+ * service Messaging {
169
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
170
+ * option (google.api.http) = {
171
+ * get: "/v1/messages/{message_id}"
172
+ * additional_bindings {
173
+ * get: "/v1/users/{user_id}/messages/{message_id}"
174
+ * }
175
+ * };
176
+ * }
177
+ * }
178
+ * message GetMessageRequest {
179
+ * string message_id = 1;
180
+ * string user_id = 2;
181
+ * }
182
+ *
183
+ * This enables the following two alternative HTTP JSON to RPC mappings:
184
+ *
185
+ * HTTP | gRPC
186
+ * -----|-----
187
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
188
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
189
+ * "123456")`
190
+ *
191
+ * ## Rules for HTTP mapping
192
+ *
193
+ * 1. Leaf request fields (recursive expansion nested messages in the request
194
+ * message) are classified into three categories:
195
+ * - Fields referred by the path template. They are passed via the URL path.
196
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
197
+ * request body.
198
+ * - All other fields are passed via the URL query parameters, and the
199
+ * parameter name is the field path in the request message. A repeated
200
+ * field can be represented as multiple query parameters under the same
201
+ * name.
202
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
203
+ * are passed via URL path and HTTP request body.
204
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
205
+ * fields are passed via URL path and URL query parameters.
206
+ *
207
+ * ### Path template syntax
208
+ *
209
+ * Template = "/" Segments [ Verb ] ;
210
+ * Segments = Segment { "/" Segment } ;
211
+ * Segment = "*" | "**" | LITERAL | Variable ;
212
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
213
+ * FieldPath = IDENT { "." IDENT } ;
214
+ * Verb = ":" LITERAL ;
215
+ *
216
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
217
+ * zero or more URL path segments, which must be the last part of the URL path
218
+ * except the `Verb`.
219
+ *
220
+ * The syntax `Variable` matches part of the URL path as specified by its
221
+ * template. A variable template must not contain other variables. If a variable
222
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
223
+ * is equivalent to `{var=*}`.
224
+ *
225
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
226
+ * contains any reserved character, such characters should be percent-encoded
227
+ * before the matching.
228
+ *
229
+ * If a variable contains exactly one path segment, such as `"{var}"` or
230
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
231
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
232
+ * server side does the reverse decoding. Such variables show up in the
233
+ * [Discovery
234
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
235
+ * `{var}`.
236
+ *
237
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
238
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
239
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
240
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
241
+ * unchanged. Such variables show up in the
242
+ * [Discovery
243
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
244
+ * `{+var}`.
245
+ *
246
+ * ## Using gRPC API Service Configuration
247
+ *
248
+ * gRPC API Service Configuration (service config) is a configuration language
249
+ * for configuring a gRPC service to become a user-facing product. The
250
+ * service config is simply the YAML representation of the `google.api.Service`
251
+ * proto message.
252
+ *
253
+ * As an alternative to annotating your proto file, you can configure gRPC
254
+ * transcoding in your service config YAML files. You do this by specifying a
255
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
256
+ * effect as the proto annotation. This can be particularly useful if you
257
+ * have a proto that is reused in multiple services. Note that any transcoding
258
+ * specified in the service config will override any matching transcoding
259
+ * configuration in the proto.
260
+ *
261
+ * Example:
262
+ *
263
+ * http:
264
+ * rules:
265
+ * # Selects a gRPC method and applies HttpRule to it.
266
+ * - selector: example.v1.Messaging.GetMessage
267
+ * get: /v1/messages/{message_id}/{sub.subfield}
268
+ *
269
+ * ## Special notes
270
+ *
271
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
272
+ * proto to JSON conversion must follow the [proto3
273
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
274
+ *
275
+ * While the single segment variable follows the semantics of
276
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
277
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
278
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
279
+ * does not expand special characters like `?` and `#`, which would lead
280
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
281
+ * for multi segment variables.
282
+ *
283
+ * The path variables **must not** refer to any repeated or mapped field,
284
+ * because client libraries are not capable of handling such variable expansion.
285
+ *
286
+ * The path variables **must not** capture the leading "/" character. The reason
287
+ * is that the most common use case "{var}" does not capture the leading "/"
288
+ * character. For consistency, all path variables must share the same behavior.
289
+ *
290
+ * Repeated message fields must not be mapped to URL query parameters, because
291
+ * no client library can support such complicated mapping.
292
+ *
293
+ * If an API needs to use a JSON array for request or response body, it can map
294
+ * the request or response body to a repeated field. However, some gRPC
295
+ * Transcoding implementations may not support this feature.
296
+ */
297
+
298
+ /**
299
+ * # gRPC Transcoding
300
+ *
301
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
302
+ * more HTTP REST endpoints. It allows developers to build a single API service
303
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
304
+ * APIs](https://github.com/googleapis/googleapis),
305
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
306
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
307
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
308
+ * and use it for large scale production services.
309
+ *
310
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
311
+ * how different portions of the gRPC request message are mapped to the URL
312
+ * path, URL query parameters, and HTTP request body. It also controls how the
313
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
314
+ * typically specified as an `google.api.http` annotation on the gRPC method.
315
+ *
316
+ * Each mapping specifies a URL path template and an HTTP method. The path
317
+ * template may refer to one or more fields in the gRPC request message, as long
318
+ * as each field is a non-repeated field with a primitive (non-message) type.
319
+ * The path template controls how fields of the request message are mapped to
320
+ * the URL path.
321
+ *
322
+ * Example:
323
+ *
324
+ * service Messaging {
325
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
326
+ * option (google.api.http) = {
327
+ * get: "/v1/{name=messages/*}"
328
+ * };
329
+ * }
330
+ * }
331
+ * message GetMessageRequest {
332
+ * string name = 1; // Mapped to URL path.
333
+ * }
334
+ * message Message {
335
+ * string text = 1; // The resource content.
336
+ * }
337
+ *
338
+ * This enables an HTTP REST to gRPC mapping as below:
339
+ *
340
+ * HTTP | gRPC
341
+ * -----|-----
342
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
343
+ *
344
+ * Any fields in the request message which are not bound by the path template
345
+ * automatically become HTTP query parameters if there is no HTTP request body.
346
+ * For example:
347
+ *
348
+ * service Messaging {
349
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
350
+ * option (google.api.http) = {
351
+ * get:"/v1/messages/{message_id}"
352
+ * };
353
+ * }
354
+ * }
355
+ * message GetMessageRequest {
356
+ * message SubMessage {
357
+ * string subfield = 1;
358
+ * }
359
+ * string message_id = 1; // Mapped to URL path.
360
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
361
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
362
+ * }
363
+ *
364
+ * This enables a HTTP JSON to RPC mapping as below:
365
+ *
366
+ * HTTP | gRPC
367
+ * -----|-----
368
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
369
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
370
+ * "foo"))`
371
+ *
372
+ * Note that fields which are mapped to URL query parameters must have a
373
+ * primitive type or a repeated primitive type or a non-repeated message type.
374
+ * In the case of a repeated type, the parameter can be repeated in the URL
375
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
376
+ * message is mapped to a separate parameter, such as
377
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
378
+ *
379
+ * For HTTP methods that allow a request body, the `body` field
380
+ * specifies the mapping. Consider a REST update method on the
381
+ * message resource collection:
382
+ *
383
+ * service Messaging {
384
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
385
+ * option (google.api.http) = {
386
+ * patch: "/v1/messages/{message_id}"
387
+ * body: "message"
388
+ * };
389
+ * }
390
+ * }
391
+ * message UpdateMessageRequest {
392
+ * string message_id = 1; // mapped to the URL
393
+ * Message message = 2; // mapped to the body
394
+ * }
395
+ *
396
+ * The following HTTP JSON to RPC mapping is enabled, where the
397
+ * representation of the JSON in the request body is determined by
398
+ * protos JSON encoding:
399
+ *
400
+ * HTTP | gRPC
401
+ * -----|-----
402
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
403
+ * "123456" message { text: "Hi!" })`
404
+ *
405
+ * The special name `*` can be used in the body mapping to define that
406
+ * every field not bound by the path template should be mapped to the
407
+ * request body. This enables the following alternative definition of
408
+ * the update method:
409
+ *
410
+ * service Messaging {
411
+ * rpc UpdateMessage(Message) returns (Message) {
412
+ * option (google.api.http) = {
413
+ * patch: "/v1/messages/{message_id}"
414
+ * body: "*"
415
+ * };
416
+ * }
417
+ * }
418
+ * message Message {
419
+ * string message_id = 1;
420
+ * string text = 2;
421
+ * }
422
+ *
423
+ *
424
+ * The following HTTP JSON to RPC mapping is enabled:
425
+ *
426
+ * HTTP | gRPC
427
+ * -----|-----
428
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
429
+ * "123456" text: "Hi!")`
430
+ *
431
+ * Note that when using `*` in the body mapping, it is not possible to
432
+ * have HTTP parameters, as all fields not bound by the path end in
433
+ * the body. This makes this option more rarely used in practice when
434
+ * defining REST APIs. The common usage of `*` is in custom methods
435
+ * which don't use the URL at all for transferring data.
436
+ *
437
+ * It is possible to define multiple HTTP methods for one RPC by using
438
+ * the `additional_bindings` option. Example:
439
+ *
440
+ * service Messaging {
441
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
442
+ * option (google.api.http) = {
443
+ * get: "/v1/messages/{message_id}"
444
+ * additional_bindings {
445
+ * get: "/v1/users/{user_id}/messages/{message_id}"
446
+ * }
447
+ * };
448
+ * }
449
+ * }
450
+ * message GetMessageRequest {
451
+ * string message_id = 1;
452
+ * string user_id = 2;
453
+ * }
454
+ *
455
+ * This enables the following two alternative HTTP JSON to RPC mappings:
456
+ *
457
+ * HTTP | gRPC
458
+ * -----|-----
459
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
460
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
461
+ * "123456")`
462
+ *
463
+ * ## Rules for HTTP mapping
464
+ *
465
+ * 1. Leaf request fields (recursive expansion nested messages in the request
466
+ * message) are classified into three categories:
467
+ * - Fields referred by the path template. They are passed via the URL path.
468
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
469
+ * request body.
470
+ * - All other fields are passed via the URL query parameters, and the
471
+ * parameter name is the field path in the request message. A repeated
472
+ * field can be represented as multiple query parameters under the same
473
+ * name.
474
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
475
+ * are passed via URL path and HTTP request body.
476
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
477
+ * fields are passed via URL path and URL query parameters.
478
+ *
479
+ * ### Path template syntax
480
+ *
481
+ * Template = "/" Segments [ Verb ] ;
482
+ * Segments = Segment { "/" Segment } ;
483
+ * Segment = "*" | "**" | LITERAL | Variable ;
484
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
485
+ * FieldPath = IDENT { "." IDENT } ;
486
+ * Verb = ":" LITERAL ;
487
+ *
488
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
489
+ * zero or more URL path segments, which must be the last part of the URL path
490
+ * except the `Verb`.
491
+ *
492
+ * The syntax `Variable` matches part of the URL path as specified by its
493
+ * template. A variable template must not contain other variables. If a variable
494
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
495
+ * is equivalent to `{var=*}`.
496
+ *
497
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
498
+ * contains any reserved character, such characters should be percent-encoded
499
+ * before the matching.
500
+ *
501
+ * If a variable contains exactly one path segment, such as `"{var}"` or
502
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
503
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
504
+ * server side does the reverse decoding. Such variables show up in the
505
+ * [Discovery
506
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
507
+ * `{var}`.
508
+ *
509
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
510
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
511
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
512
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
513
+ * unchanged. Such variables show up in the
514
+ * [Discovery
515
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
516
+ * `{+var}`.
517
+ *
518
+ * ## Using gRPC API Service Configuration
519
+ *
520
+ * gRPC API Service Configuration (service config) is a configuration language
521
+ * for configuring a gRPC service to become a user-facing product. The
522
+ * service config is simply the YAML representation of the `google.api.Service`
523
+ * proto message.
524
+ *
525
+ * As an alternative to annotating your proto file, you can configure gRPC
526
+ * transcoding in your service config YAML files. You do this by specifying a
527
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
528
+ * effect as the proto annotation. This can be particularly useful if you
529
+ * have a proto that is reused in multiple services. Note that any transcoding
530
+ * specified in the service config will override any matching transcoding
531
+ * configuration in the proto.
532
+ *
533
+ * Example:
534
+ *
535
+ * http:
536
+ * rules:
537
+ * # Selects a gRPC method and applies HttpRule to it.
538
+ * - selector: example.v1.Messaging.GetMessage
539
+ * get: /v1/messages/{message_id}/{sub.subfield}
540
+ *
541
+ * ## Special notes
542
+ *
543
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
544
+ * proto to JSON conversion must follow the [proto3
545
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
546
+ *
547
+ * While the single segment variable follows the semantics of
548
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
549
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
550
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
551
+ * does not expand special characters like `?` and `#`, which would lead
552
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
553
+ * for multi segment variables.
554
+ *
555
+ * The path variables **must not** refer to any repeated or mapped field,
556
+ * because client libraries are not capable of handling such variable expansion.
557
+ *
558
+ * The path variables **must not** capture the leading "/" character. The reason
559
+ * is that the most common use case "{var}" does not capture the leading "/"
560
+ * character. For consistency, all path variables must share the same behavior.
561
+ *
562
+ * Repeated message fields must not be mapped to URL query parameters, because
563
+ * no client library can support such complicated mapping.
564
+ *
565
+ * If an API needs to use a JSON array for request or response body, it can map
566
+ * the request or response body to a repeated field. However, some gRPC
567
+ * Transcoding implementations may not support this feature.
568
+ */
569
+
570
+ /** A custom pattern is used for defining custom HTTP verb. */
571
+
572
+ /** A custom pattern is used for defining custom HTTP verb. */
573
+
14
574
  function createBaseHttp() {
15
575
  return {
16
576
  rules: [],
17
577
  fullyDecodeReservedExpansion: false
18
578
  };
19
579
  }
20
- var Http = {
580
+ var Http = exports.Http = {
21
581
  encode: function encode(message) {
22
582
  var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
23
583
  var _iterator = _createForOfIteratorHelper(message.rules),
@@ -67,7 +627,6 @@ var Http = {
67
627
  return message;
68
628
  }
69
629
  };
70
- exports.Http = Http;
71
630
  function createBaseHttpRule() {
72
631
  return {
73
632
  selector: "",
@@ -82,7 +641,7 @@ function createBaseHttpRule() {
82
641
  additionalBindings: []
83
642
  };
84
643
  }
85
- var HttpRule = {
644
+ var HttpRule = exports.HttpRule = {
86
645
  encode: function encode(message) {
87
646
  var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
88
647
  if (message.selector !== "") {
@@ -188,14 +747,13 @@ var HttpRule = {
188
747
  return message;
189
748
  }
190
749
  };
191
- exports.HttpRule = HttpRule;
192
750
  function createBaseCustomHttpPattern() {
193
751
  return {
194
752
  kind: "",
195
753
  path: ""
196
754
  };
197
755
  }
198
- var CustomHttpPattern = {
756
+ var CustomHttpPattern = exports.CustomHttpPattern = {
199
757
  encode: function encode(message) {
200
758
  var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
201
759
  if (message.kind !== "") {
@@ -233,5 +791,4 @@ var CustomHttpPattern = {
233
791
  message.path = (_object$path = object.path) !== null && _object$path !== void 0 ? _object$path : "";
234
792
  return message;
235
793
  }
236
- };
237
- exports.CustomHttpPattern = CustomHttpPattern;
794
+ };
@@ -14,12 +14,11 @@ var _115 = _interopRequireWildcard(require("./protobuf/descriptor"));
14
14
  var _116 = _interopRequireWildcard(require("./protobuf/duration"));
15
15
  var _117 = _interopRequireWildcard(require("./protobuf/empty"));
16
16
  var _118 = _interopRequireWildcard(require("./protobuf/timestamp"));
17
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21
21
  var google;
22
- exports.google = google;
23
22
  (function (_google) {
24
23
  var api = _google.api = _objectSpread(_objectSpread({}, _112), _113);
25
24
  var protobuf = _google.protobuf = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _114), _115), _116), _117), _118);