injectivejs 0.1.0 → 0.3.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 (358) hide show
  1. package/README.md +71 -10
  2. package/package.json +1 -1
  3. package/types/codegen/AtomicOrder.client.d.ts +26 -0
  4. package/types/codegen/AtomicOrder.types.d.ts +30 -0
  5. package/types/codegen/Registry.client.d.ts +70 -0
  6. package/types/codegen/Registry.types.d.ts +68 -0
  7. package/types/codegen/confio/proofs.d.ts +495 -0
  8. package/types/codegen/contracts.d.ts +16 -0
  9. package/types/codegen/cosmos/app/v1alpha1/config.d.ts +81 -0
  10. package/types/codegen/cosmos/app/v1alpha1/module.d.ts +181 -0
  11. package/types/codegen/cosmos/app/v1alpha1/query.d.ts +29 -0
  12. package/types/codegen/cosmos/app/v1alpha1/query.rpc.query.d.ts +15 -0
  13. package/types/codegen/cosmos/auth/v1beta1/auth.d.ts +68 -0
  14. package/types/codegen/cosmos/auth/v1beta1/genesis.d.ts +23 -0
  15. package/types/codegen/cosmos/auth/v1beta1/query.d.ts +211 -0
  16. package/types/codegen/cosmos/auth/v1beta1/query.lcd.d.ts +15 -0
  17. package/types/codegen/cosmos/auth/v1beta1/query.rpc.query.d.ts +33 -0
  18. package/types/codegen/cosmos/authz/v1beta1/authz.d.ts +95 -0
  19. package/types/codegen/cosmos/authz/v1beta1/event.d.ts +48 -0
  20. package/types/codegen/cosmos/authz/v1beta1/genesis.d.ts +16 -0
  21. package/types/codegen/cosmos/authz/v1beta1/query.d.ts +118 -0
  22. package/types/codegen/cosmos/authz/v1beta1/query.lcd.d.ts +11 -0
  23. package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +21 -0
  24. package/types/codegen/cosmos/authz/v1beta1/tx.amino.d.ts +54 -0
  25. package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +118 -0
  26. package/types/codegen/cosmos/authz/v1beta1/tx.registry.d.ts +48 -0
  27. package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +15 -0
  28. package/types/codegen/cosmos/bank/v1beta1/authz.d.ts +26 -0
  29. package/types/codegen/cosmos/bank/v1beta1/bank.d.ts +222 -0
  30. package/types/codegen/cosmos/bank/v1beta1/genesis.d.ts +62 -0
  31. package/types/codegen/cosmos/bank/v1beta1/query.d.ts +396 -0
  32. package/types/codegen/cosmos/bank/v1beta1/query.lcd.d.ts +17 -0
  33. package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +39 -0
  34. package/types/codegen/cosmos/bank/v1beta1/tx.amino.d.ts +44 -0
  35. package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +58 -0
  36. package/types/codegen/cosmos/bank/v1beta1/tx.registry.d.ts +36 -0
  37. package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +13 -0
  38. package/types/codegen/cosmos/base/abci/v1beta1/abci.d.ts +354 -0
  39. package/types/codegen/cosmos/base/kv/v1beta1/kv.d.ts +30 -0
  40. package/types/codegen/cosmos/base/query/v1beta1/pagination.d.ts +138 -0
  41. package/types/codegen/cosmos/base/reflection/v1beta1/reflection.d.ts +68 -0
  42. package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +514 -0
  43. package/types/codegen/cosmos/base/snapshots/v1beta1/snapshot.d.ts +153 -0
  44. package/types/codegen/cosmos/base/store/v1beta1/commit_info.d.ts +65 -0
  45. package/types/codegen/cosmos/base/store/v1beta1/listening.d.ts +37 -0
  46. package/types/codegen/cosmos/base/tendermint/v1beta1/query.d.ts +252 -0
  47. package/types/codegen/cosmos/base/tendermint/v1beta1/query.lcd.d.ts +14 -0
  48. package/types/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.d.ts +30 -0
  49. package/types/codegen/cosmos/base/v1beta1/coin.d.ts +78 -0
  50. package/types/codegen/cosmos/bundle.d.ts +10676 -0
  51. package/types/codegen/cosmos/capability/v1beta1/capability.d.ts +61 -0
  52. package/types/codegen/cosmos/capability/v1beta1/genesis.d.ts +47 -0
  53. package/types/codegen/cosmos/client.d.ts +951 -0
  54. package/types/codegen/cosmos/crisis/v1beta1/genesis.d.ts +24 -0
  55. package/types/codegen/cosmos/crisis/v1beta1/tx.amino.d.ts +17 -0
  56. package/types/codegen/cosmos/crisis/v1beta1/tx.d.ts +30 -0
  57. package/types/codegen/cosmos/crisis/v1beta1/tx.registry.d.ts +24 -0
  58. package/types/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.d.ts +11 -0
  59. package/types/codegen/cosmos/crypto/ed25519/keys.d.ts +46 -0
  60. package/types/codegen/cosmos/crypto/hd/v1/hd.d.ts +39 -0
  61. package/types/codegen/cosmos/crypto/keyring/v1/record.d.ts +95 -0
  62. package/types/codegen/cosmos/crypto/multisig/keys.d.ts +26 -0
  63. package/types/codegen/cosmos/crypto/multisig/v1beta1/multisig.d.ts +48 -0
  64. package/types/codegen/cosmos/crypto/secp256k1/keys.d.ts +40 -0
  65. package/types/codegen/cosmos/crypto/secp256r1/keys.d.ts +38 -0
  66. package/types/codegen/cosmos/distribution/v1beta1/distribution.d.ts +281 -0
  67. package/types/codegen/cosmos/distribution/v1beta1/genesis.d.ts +224 -0
  68. package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +385 -0
  69. package/types/codegen/cosmos/distribution/v1beta1/query.lcd.d.ts +17 -0
  70. package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +39 -0
  71. package/types/codegen/cosmos/distribution/v1beta1/tx.amino.d.ts +54 -0
  72. package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +133 -0
  73. package/types/codegen/cosmos/distribution/v1beta1/tx.registry.d.ts +60 -0
  74. package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +17 -0
  75. package/types/codegen/cosmos/evidence/v1beta1/evidence.d.ts +27 -0
  76. package/types/codegen/cosmos/evidence/v1beta1/genesis.d.ts +18 -0
  77. package/types/codegen/cosmos/evidence/v1beta1/query.d.ts +80 -0
  78. package/types/codegen/cosmos/evidence/v1beta1/query.lcd.d.ts +10 -0
  79. package/types/codegen/cosmos/evidence/v1beta1/query.rpc.query.d.ts +18 -0
  80. package/types/codegen/cosmos/evidence/v1beta1/tx.amino.d.ts +19 -0
  81. package/types/codegen/cosmos/evidence/v1beta1/tx.d.ts +39 -0
  82. package/types/codegen/cosmos/evidence/v1beta1/tx.registry.d.ts +24 -0
  83. package/types/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.d.ts +11 -0
  84. package/types/codegen/cosmos/feegrant/v1beta1/feegrant.d.ts +137 -0
  85. package/types/codegen/cosmos/feegrant/v1beta1/genesis.d.ts +16 -0
  86. package/types/codegen/cosmos/feegrant/v1beta1/query.d.ts +110 -0
  87. package/types/codegen/cosmos/feegrant/v1beta1/query.lcd.d.ts +11 -0
  88. package/types/codegen/cosmos/feegrant/v1beta1/query.rpc.query.d.ts +21 -0
  89. package/types/codegen/cosmos/feegrant/v1beta1/tx.amino.d.ts +32 -0
  90. package/types/codegen/cosmos/feegrant/v1beta1/tx.d.ts +73 -0
  91. package/types/codegen/cosmos/feegrant/v1beta1/tx.registry.d.ts +36 -0
  92. package/types/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.d.ts +13 -0
  93. package/types/codegen/cosmos/genutil/v1beta1/genesis.d.ts +17 -0
  94. package/types/codegen/cosmos/gov/v1/genesis.d.ts +42 -0
  95. package/types/codegen/cosmos/gov/v1/gov.d.ts +301 -0
  96. package/types/codegen/cosmos/gov/v1/query.d.ts +298 -0
  97. package/types/codegen/cosmos/gov/v1/query.lcd.d.ts +16 -0
  98. package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +36 -0
  99. package/types/codegen/cosmos/gov/v1/tx.amino.d.ts +86 -0
  100. package/types/codegen/cosmos/gov/v1/tx.d.ts +169 -0
  101. package/types/codegen/cosmos/gov/v1/tx.registry.d.ts +72 -0
  102. package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +19 -0
  103. package/types/codegen/cosmos/gov/v1beta1/genesis.d.ts +42 -0
  104. package/types/codegen/cosmos/gov/v1beta1/gov.d.ts +338 -0
  105. package/types/codegen/cosmos/gov/v1beta1/query.d.ts +298 -0
  106. package/types/codegen/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
  107. package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +36 -0
  108. package/types/codegen/cosmos/gov/v1beta1/tx.amino.d.ts +68 -0
  109. package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +141 -0
  110. package/types/codegen/cosmos/gov/v1beta1/tx.registry.d.ts +60 -0
  111. package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +17 -0
  112. package/types/codegen/cosmos/group/v1/events.d.ts +146 -0
  113. package/types/codegen/cosmos/group/v1/genesis.d.ts +64 -0
  114. package/types/codegen/cosmos/group/v1/query.d.ts +462 -0
  115. package/types/codegen/cosmos/group/v1/query.lcd.d.ts +21 -0
  116. package/types/codegen/cosmos/group/v1/query.rpc.query.d.ts +51 -0
  117. package/types/codegen/cosmos/group/v1/tx.amino.d.ts +227 -0
  118. package/types/codegen/cosmos/group/v1/tx.d.ts +580 -0
  119. package/types/codegen/cosmos/group/v1/tx.registry.d.ts +180 -0
  120. package/types/codegen/cosmos/group/v1/tx.rpc.msg.d.ts +37 -0
  121. package/types/codegen/cosmos/group/v1/types.d.ts +537 -0
  122. package/types/codegen/cosmos/lcd.d.ts +57 -0
  123. package/types/codegen/cosmos/mint/v1beta1/genesis.d.ts +22 -0
  124. package/types/codegen/cosmos/mint/v1beta1/mint.d.ts +56 -0
  125. package/types/codegen/cosmos/mint/v1beta1/query.d.ts +99 -0
  126. package/types/codegen/cosmos/mint/v1beta1/query.lcd.d.ts +11 -0
  127. package/types/codegen/cosmos/mint/v1beta1/query.rpc.query.d.ts +21 -0
  128. package/types/codegen/cosmos/msg/v1/msg.d.ts +1 -0
  129. package/types/codegen/cosmos/nft/v1beta1/event.d.ts +55 -0
  130. package/types/codegen/cosmos/nft/v1beta1/genesis.d.ts +39 -0
  131. package/types/codegen/cosmos/nft/v1beta1/nft.d.ts +73 -0
  132. package/types/codegen/cosmos/nft/v1beta1/query.d.ts +202 -0
  133. package/types/codegen/cosmos/nft/v1beta1/query.lcd.d.ts +15 -0
  134. package/types/codegen/cosmos/nft/v1beta1/query.rpc.query.d.ts +33 -0
  135. package/types/codegen/cosmos/nft/v1beta1/tx.amino.d.ts +18 -0
  136. package/types/codegen/cosmos/nft/v1beta1/tx.d.ts +40 -0
  137. package/types/codegen/cosmos/nft/v1beta1/tx.registry.d.ts +24 -0
  138. package/types/codegen/cosmos/nft/v1beta1/tx.rpc.msg.d.ts +11 -0
  139. package/types/codegen/cosmos/orm/v1/orm.d.ts +196 -0
  140. package/types/codegen/cosmos/orm/v1alpha1/schema.d.ts +158 -0
  141. package/types/codegen/cosmos/params/v1beta1/params.d.ts +42 -0
  142. package/types/codegen/cosmos/params/v1beta1/query.d.ts +94 -0
  143. package/types/codegen/cosmos/params/v1beta1/query.lcd.d.ts +10 -0
  144. package/types/codegen/cosmos/params/v1beta1/query.rpc.query.d.ts +18 -0
  145. package/types/codegen/cosmos/rpc.query.d.ts +186 -0
  146. package/types/codegen/cosmos/rpc.tx.d.ts +47 -0
  147. package/types/codegen/cosmos/slashing/v1beta1/genesis.d.ts +101 -0
  148. package/types/codegen/cosmos/slashing/v1beta1/query.d.ts +112 -0
  149. package/types/codegen/cosmos/slashing/v1beta1/query.lcd.d.ts +11 -0
  150. package/types/codegen/cosmos/slashing/v1beta1/query.rpc.query.d.ts +21 -0
  151. package/types/codegen/cosmos/slashing/v1beta1/slashing.d.ts +83 -0
  152. package/types/codegen/cosmos/slashing/v1beta1/tx.amino.d.ts +15 -0
  153. package/types/codegen/cosmos/slashing/v1beta1/tx.d.ts +26 -0
  154. package/types/codegen/cosmos/slashing/v1beta1/tx.registry.d.ts +24 -0
  155. package/types/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.d.ts +11 -0
  156. package/types/codegen/cosmos/staking/v1beta1/authz.d.ts +97 -0
  157. package/types/codegen/cosmos/staking/v1beta1/genesis.d.ts +75 -0
  158. package/types/codegen/cosmos/staking/v1beta1/query.d.ts +592 -0
  159. package/types/codegen/cosmos/staking/v1beta1/query.lcd.d.ts +22 -0
  160. package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +54 -0
  161. package/types/codegen/cosmos/staking/v1beta1/staking.d.ts +568 -0
  162. package/types/codegen/cosmos/staking/v1beta1/tx.amino.d.ts +106 -0
  163. package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +191 -0
  164. package/types/codegen/cosmos/staking/v1beta1/tx.registry.d.ts +72 -0
  165. package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +19 -0
  166. package/types/codegen/cosmos/tx/signing/v1beta1/signing.d.ts +203 -0
  167. package/types/codegen/cosmos/tx/v1beta1/service.d.ts +339 -0
  168. package/types/codegen/cosmos/tx/v1beta1/service.lcd.d.ts +11 -0
  169. package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +27 -0
  170. package/types/codegen/cosmos/tx/v1beta1/tx.d.ts +603 -0
  171. package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +233 -0
  172. package/types/codegen/cosmos/upgrade/v1beta1/query.lcd.d.ts +13 -0
  173. package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +27 -0
  174. package/types/codegen/cosmos/upgrade/v1beta1/tx.amino.d.ts +39 -0
  175. package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +91 -0
  176. package/types/codegen/cosmos/upgrade/v1beta1/tx.registry.d.ts +36 -0
  177. package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +13 -0
  178. package/types/codegen/cosmos/upgrade/v1beta1/upgrade.d.ts +165 -0
  179. package/types/codegen/cosmos/vesting/v1beta1/tx.amino.d.ts +58 -0
  180. package/types/codegen/cosmos/vesting/v1beta1/tx.d.ts +118 -0
  181. package/types/codegen/cosmos/vesting/v1beta1/tx.registry.d.ts +48 -0
  182. package/types/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.d.ts +15 -0
  183. package/types/codegen/cosmos/vesting/v1beta1/vesting.d.ts +136 -0
  184. package/types/codegen/cosmos_proto/bundle.d.ts +24 -0
  185. package/types/codegen/cosmos_proto/cosmos.d.ts +124 -0
  186. package/types/codegen/cosmwasm/bundle.d.ts +1248 -0
  187. package/types/codegen/cosmwasm/client.d.ts +120 -0
  188. package/types/codegen/cosmwasm/lcd.d.ts +62 -0
  189. package/types/codegen/cosmwasm/rpc.query.d.ts +201 -0
  190. package/types/codegen/cosmwasm/rpc.tx.d.ts +52 -0
  191. package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +101 -0
  192. package/types/codegen/cosmwasm/wasm/v1/ibc.d.ts +60 -0
  193. package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +297 -0
  194. package/types/codegen/cosmwasm/wasm/v1/query.d.ts +411 -0
  195. package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +17 -0
  196. package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +39 -0
  197. package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +95 -0
  198. package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +262 -0
  199. package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +84 -0
  200. package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +21 -0
  201. package/types/codegen/cosmwasm/wasm/v1/types.d.ts +247 -0
  202. package/types/codegen/gogoproto/bundle.d.ts +1 -0
  203. package/types/codegen/gogoproto/gogo.d.ts +1 -0
  204. package/types/codegen/google/api/annotations.d.ts +1 -0
  205. package/types/codegen/google/api/http.d.ts +721 -0
  206. package/types/codegen/google/bundle.d.ts +1597 -0
  207. package/types/codegen/google/protobuf/any.d.ts +237 -0
  208. package/types/codegen/google/protobuf/descriptor.d.ts +1725 -0
  209. package/types/codegen/google/protobuf/duration.d.ts +161 -0
  210. package/types/codegen/google/protobuf/empty.d.ts +33 -0
  211. package/types/codegen/google/protobuf/field_mask.d.ts +417 -0
  212. package/types/codegen/google/protobuf/struct.d.ts +148 -0
  213. package/types/codegen/google/protobuf/timestamp.d.ts +205 -0
  214. package/types/codegen/google/protobuf/wrappers.d.ts +209 -0
  215. package/types/codegen/ibc/applications/transfer/v1/genesis.d.ts +20 -0
  216. package/types/codegen/ibc/applications/transfer/v1/query.d.ts +118 -0
  217. package/types/codegen/ibc/applications/transfer/v1/query.lcd.d.ts +11 -0
  218. package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +21 -0
  219. package/types/codegen/ibc/applications/transfer/v1/transfer.d.ts +74 -0
  220. package/types/codegen/ibc/applications/transfer/v1/tx.amino.d.ts +25 -0
  221. package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +74 -0
  222. package/types/codegen/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  223. package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +11 -0
  224. package/types/codegen/ibc/applications/transfer/v2/packet.d.ts +37 -0
  225. package/types/codegen/ibc/bundle.d.ts +4077 -0
  226. package/types/codegen/ibc/client.d.ts +559 -0
  227. package/types/codegen/ibc/core/channel/v1/channel.d.ts +313 -0
  228. package/types/codegen/ibc/core/channel/v1/genesis.d.ts +55 -0
  229. package/types/codegen/ibc/core/channel/v1/query.d.ts +726 -0
  230. package/types/codegen/ibc/core/channel/v1/query.lcd.d.ts +21 -0
  231. package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +51 -0
  232. package/types/codegen/ibc/core/channel/v1/tx.amino.d.ts +209 -0
  233. package/types/codegen/ibc/core/channel/v1/tx.d.ts +380 -0
  234. package/types/codegen/ibc/core/channel/v1/tx.registry.d.ts +132 -0
  235. package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +29 -0
  236. package/types/codegen/ibc/core/client/v1/client.d.ts +219 -0
  237. package/types/codegen/ibc/core/client/v1/genesis.d.ts +82 -0
  238. package/types/codegen/ibc/core/client/v1/query.d.ts +377 -0
  239. package/types/codegen/ibc/core/client/v1/query.lcd.d.ts +16 -0
  240. package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +36 -0
  241. package/types/codegen/ibc/core/client/v1/tx.amino.d.ts +77 -0
  242. package/types/codegen/ibc/core/client/v1/tx.d.ts +187 -0
  243. package/types/codegen/ibc/core/client/v1/tx.registry.d.ts +60 -0
  244. package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +17 -0
  245. package/types/codegen/ibc/core/commitment/v1/commitment.d.ts +89 -0
  246. package/types/codegen/ibc/core/connection/v1/connection.d.ts +260 -0
  247. package/types/codegen/ibc/core/connection/v1/genesis.d.ts +24 -0
  248. package/types/codegen/ibc/core/connection/v1/query.d.ts +264 -0
  249. package/types/codegen/ibc/core/connection/v1/query.lcd.d.ts +13 -0
  250. package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +27 -0
  251. package/types/codegen/ibc/core/connection/v1/tx.amino.d.ts +103 -0
  252. package/types/codegen/ibc/core/connection/v1/tx.d.ts +225 -0
  253. package/types/codegen/ibc/core/connection/v1/tx.registry.d.ts +60 -0
  254. package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +17 -0
  255. package/types/codegen/ibc/core/port/v1/query.d.ts +53 -0
  256. package/types/codegen/ibc/core/port/v1/query.rpc.query.d.ts +15 -0
  257. package/types/codegen/ibc/core/types/v1/genesis.d.ts +31 -0
  258. package/types/codegen/ibc/lcd.d.ts +75 -0
  259. package/types/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +28 -0
  260. package/types/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +433 -0
  261. package/types/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +433 -0
  262. package/types/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +215 -0
  263. package/types/codegen/ibc/rpc.query.d.ts +242 -0
  264. package/types/codegen/ibc/rpc.tx.d.ts +65 -0
  265. package/types/codegen/ics23/bundle.d.ts +545 -0
  266. package/types/codegen/index.d.ts +19 -0
  267. package/types/codegen/injective/auction/v1beta1/auction.d.ts +96 -0
  268. package/types/codegen/injective/auction/v1beta1/genesis.d.ts +30 -0
  269. package/types/codegen/injective/auction/v1beta1/query.d.ts +95 -0
  270. package/types/codegen/injective/auction/v1beta1/query.lcd.d.ts +11 -0
  271. package/types/codegen/injective/auction/v1beta1/query.rpc.query.d.ts +21 -0
  272. package/types/codegen/injective/auction/v1beta1/tx.amino.d.ts +20 -0
  273. package/types/codegen/injective/auction/v1beta1/tx.d.ts +33 -0
  274. package/types/codegen/injective/auction/v1beta1/tx.registry.d.ts +24 -0
  275. package/types/codegen/injective/auction/v1beta1/tx.rpc.msg.d.ts +11 -0
  276. package/types/codegen/injective/bundle.d.ts +10808 -0
  277. package/types/codegen/injective/client.d.ts +1370 -0
  278. package/types/codegen/injective/crypto/v1beta1/ethsecp256k1/keys.d.ts +50 -0
  279. package/types/codegen/injective/exchange/v1beta1/authz.d.ts +153 -0
  280. package/types/codegen/injective/exchange/v1beta1/events.d.ts +390 -0
  281. package/types/codegen/injective/exchange/v1beta1/exchange.d.ts +1082 -0
  282. package/types/codegen/injective/exchange/v1beta1/genesis.d.ts +322 -0
  283. package/types/codegen/injective/exchange/v1beta1/query.d.ts +1595 -0
  284. package/types/codegen/injective/exchange/v1beta1/query.lcd.d.ts +54 -0
  285. package/types/codegen/injective/exchange/v1beta1/query.rpc.query.d.ts +150 -0
  286. package/types/codegen/injective/exchange/v1beta1/tx.amino.d.ts +590 -0
  287. package/types/codegen/injective/exchange/v1beta1/tx.d.ts +1697 -0
  288. package/types/codegen/injective/exchange/v1beta1/tx.registry.d.ts +348 -0
  289. package/types/codegen/injective/exchange/v1beta1/tx.rpc.msg.d.ts +65 -0
  290. package/types/codegen/injective/insurance/v1beta1/genesis.d.ts +46 -0
  291. package/types/codegen/injective/insurance/v1beta1/insurance.d.ts +176 -0
  292. package/types/codegen/injective/insurance/v1beta1/query.d.ts +161 -0
  293. package/types/codegen/injective/insurance/v1beta1/query.lcd.d.ts +14 -0
  294. package/types/codegen/injective/insurance/v1beta1/query.rpc.query.d.ts +30 -0
  295. package/types/codegen/injective/insurance/v1beta1/tx.amino.d.ts +57 -0
  296. package/types/codegen/injective/insurance/v1beta1/tx.d.ts +120 -0
  297. package/types/codegen/injective/insurance/v1beta1/tx.registry.d.ts +48 -0
  298. package/types/codegen/injective/insurance/v1beta1/tx.rpc.msg.d.ts +15 -0
  299. package/types/codegen/injective/lcd.d.ts +80 -0
  300. package/types/codegen/injective/ocr/v1beta1/genesis.d.ts +144 -0
  301. package/types/codegen/injective/ocr/v1beta1/ocr.d.ts +488 -0
  302. package/types/codegen/injective/ocr/v1beta1/query.d.ts +165 -0
  303. package/types/codegen/injective/ocr/v1beta1/query.lcd.d.ts +15 -0
  304. package/types/codegen/injective/ocr/v1beta1/query.rpc.query.d.ts +33 -0
  305. package/types/codegen/injective/ocr/v1beta1/tx.amino.d.ts +149 -0
  306. package/types/codegen/injective/ocr/v1beta1/tx.d.ts +250 -0
  307. package/types/codegen/injective/ocr/v1beta1/tx.registry.d.ts +108 -0
  308. package/types/codegen/injective/ocr/v1beta1/tx.rpc.msg.d.ts +25 -0
  309. package/types/codegen/injective/oracle/v1beta1/events.d.ts +147 -0
  310. package/types/codegen/injective/oracle/v1beta1/genesis.d.ts +57 -0
  311. package/types/codegen/injective/oracle/v1beta1/oracle.d.ts +412 -0
  312. package/types/codegen/injective/oracle/v1beta1/proposal.d.ts +152 -0
  313. package/types/codegen/injective/oracle/v1beta1/query.d.ts +327 -0
  314. package/types/codegen/injective/oracle/v1beta1/query.lcd.d.ts +20 -0
  315. package/types/codegen/injective/oracle/v1beta1/query.rpc.query.d.ts +48 -0
  316. package/types/codegen/injective/oracle/v1beta1/tx.amino.d.ts +73 -0
  317. package/types/codegen/injective/oracle/v1beta1/tx.d.ts +140 -0
  318. package/types/codegen/injective/oracle/v1beta1/tx.registry.d.ts +72 -0
  319. package/types/codegen/injective/oracle/v1beta1/tx.rpc.msg.d.ts +19 -0
  320. package/types/codegen/injective/peggy/v1/attestation.d.ts +107 -0
  321. package/types/codegen/injective/peggy/v1/batch.d.ts +45 -0
  322. package/types/codegen/injective/peggy/v1/ethereum_signer.d.ts +16 -0
  323. package/types/codegen/injective/peggy/v1/events.d.ts +290 -0
  324. package/types/codegen/injective/peggy/v1/genesis.d.ts +99 -0
  325. package/types/codegen/injective/peggy/v1/msgs.amino.d.ts +177 -0
  326. package/types/codegen/injective/peggy/v1/msgs.d.ts +499 -0
  327. package/types/codegen/injective/peggy/v1/msgs.registry.d.ts +144 -0
  328. package/types/codegen/injective/peggy/v1/msgs.rpc.msg.d.ts +31 -0
  329. package/types/codegen/injective/peggy/v1/pool.d.ts +30 -0
  330. package/types/codegen/injective/peggy/v1/proposal.d.ts +32 -0
  331. package/types/codegen/injective/peggy/v1/query.d.ts +457 -0
  332. package/types/codegen/injective/peggy/v1/query.lcd.d.ts +28 -0
  333. package/types/codegen/injective/peggy/v1/query.rpc.query.d.ts +72 -0
  334. package/types/codegen/injective/peggy/v1/types.d.ts +111 -0
  335. package/types/codegen/injective/rpc.query.d.ts +312 -0
  336. package/types/codegen/injective/rpc.tx.d.ts +67 -0
  337. package/types/codegen/injective/types/v1beta1/account.d.ts +24 -0
  338. package/types/codegen/injective/types/v1beta1/tx_ext.d.ts +41 -0
  339. package/types/codegen/injective/types/v1beta1/tx_response.d.ts +30 -0
  340. package/types/codegen/injective/wasmx/v1/genesis.d.ts +18 -0
  341. package/types/codegen/injective/wasmx/v1/query.d.ts +52 -0
  342. package/types/codegen/injective/wasmx/v1/query.lcd.d.ts +10 -0
  343. package/types/codegen/injective/wasmx/v1/query.rpc.query.d.ts +18 -0
  344. package/types/codegen/injective/wasmx/v1/tx.d.ts +1 -0
  345. package/types/codegen/injective/wasmx/v1/wasmx.d.ts +84 -0
  346. package/types/codegen/tendermint/abci/types.d.ts +902 -0
  347. package/types/codegen/tendermint/bundle.d.ts +2065 -0
  348. package/types/codegen/tendermint/crypto/keys.d.ts +17 -0
  349. package/types/codegen/tendermint/crypto/proof.d.ts +89 -0
  350. package/types/codegen/tendermint/libs/bits/types.d.ts +15 -0
  351. package/types/codegen/tendermint/p2p/types.d.ts +87 -0
  352. package/types/codegen/tendermint/types/block.d.ts +21 -0
  353. package/types/codegen/tendermint/types/evidence.d.ts +70 -0
  354. package/types/codegen/tendermint/types/params.d.ts +181 -0
  355. package/types/codegen/tendermint/types/types.d.ts +326 -0
  356. package/types/codegen/tendermint/types/validator.d.ts +48 -0
  357. package/types/codegen/tendermint/version/types.d.ts +48 -0
  358. package/types/index.d.ts +1 -0
@@ -0,0 +1,721 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { DeepPartial } from "@osmonauts/helpers";
3
+ /**
4
+ * Defines the HTTP configuration for an API service. It contains a list of
5
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
6
+ * to one or more HTTP REST API methods.
7
+ */
8
+ export interface Http {
9
+ /**
10
+ * A list of HTTP configuration rules that apply to individual API methods.
11
+ *
12
+ * **NOTE:** All service configuration rules follow "last one wins" order.
13
+ */
14
+ rules: HttpRule[];
15
+ /**
16
+ * When set to true, URL path parameters will be fully URI-decoded except in
17
+ * cases of single segment matches in reserved expansion, where "%2F" will be
18
+ * left encoded.
19
+ *
20
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
21
+ * segment matches.
22
+ */
23
+ fullyDecodeReservedExpansion: boolean;
24
+ }
25
+ /**
26
+ * Defines the HTTP configuration for an API service. It contains a list of
27
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
28
+ * to one or more HTTP REST API methods.
29
+ */
30
+ export interface HttpSDKType {
31
+ /**
32
+ * A list of HTTP configuration rules that apply to individual API methods.
33
+ *
34
+ * **NOTE:** All service configuration rules follow "last one wins" order.
35
+ */
36
+ rules: HttpRuleSDKType[];
37
+ /**
38
+ * When set to true, URL path parameters will be fully URI-decoded except in
39
+ * cases of single segment matches in reserved expansion, where "%2F" will be
40
+ * left encoded.
41
+ *
42
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
43
+ * segment matches.
44
+ */
45
+ fully_decode_reserved_expansion: boolean;
46
+ }
47
+ /**
48
+ * # gRPC Transcoding
49
+ *
50
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
51
+ * more HTTP REST endpoints. It allows developers to build a single API service
52
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
53
+ * APIs](https://github.com/googleapis/googleapis),
54
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
55
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
56
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
57
+ * and use it for large scale production services.
58
+ *
59
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
60
+ * how different portions of the gRPC request message are mapped to the URL
61
+ * path, URL query parameters, and HTTP request body. It also controls how the
62
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
63
+ * typically specified as an `google.api.http` annotation on the gRPC method.
64
+ *
65
+ * Each mapping specifies a URL path template and an HTTP method. The path
66
+ * template may refer to one or more fields in the gRPC request message, as long
67
+ * as each field is a non-repeated field with a primitive (non-message) type.
68
+ * The path template controls how fields of the request message are mapped to
69
+ * the URL path.
70
+ *
71
+ * Example:
72
+ *
73
+ * service Messaging {
74
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
75
+ * option (google.api.http) = {
76
+ * get: "/v1/{name=messages/*}"
77
+ * };
78
+ * }
79
+ * }
80
+ * message GetMessageRequest {
81
+ * string name = 1; // Mapped to URL path.
82
+ * }
83
+ * message Message {
84
+ * string text = 1; // The resource content.
85
+ * }
86
+ *
87
+ * This enables an HTTP REST to gRPC mapping as below:
88
+ *
89
+ * HTTP | gRPC
90
+ * -----|-----
91
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
92
+ *
93
+ * Any fields in the request message which are not bound by the path template
94
+ * automatically become HTTP query parameters if there is no HTTP request body.
95
+ * For example:
96
+ *
97
+ * service Messaging {
98
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
99
+ * option (google.api.http) = {
100
+ * get:"/v1/messages/{message_id}"
101
+ * };
102
+ * }
103
+ * }
104
+ * message GetMessageRequest {
105
+ * message SubMessage {
106
+ * string subfield = 1;
107
+ * }
108
+ * string message_id = 1; // Mapped to URL path.
109
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
110
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
111
+ * }
112
+ *
113
+ * This enables a HTTP JSON to RPC mapping as below:
114
+ *
115
+ * HTTP | gRPC
116
+ * -----|-----
117
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
118
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
119
+ * "foo"))`
120
+ *
121
+ * Note that fields which are mapped to URL query parameters must have a
122
+ * primitive type or a repeated primitive type or a non-repeated message type.
123
+ * In the case of a repeated type, the parameter can be repeated in the URL
124
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
125
+ * message is mapped to a separate parameter, such as
126
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
127
+ *
128
+ * For HTTP methods that allow a request body, the `body` field
129
+ * specifies the mapping. Consider a REST update method on the
130
+ * message resource collection:
131
+ *
132
+ * service Messaging {
133
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
134
+ * option (google.api.http) = {
135
+ * patch: "/v1/messages/{message_id}"
136
+ * body: "message"
137
+ * };
138
+ * }
139
+ * }
140
+ * message UpdateMessageRequest {
141
+ * string message_id = 1; // mapped to the URL
142
+ * Message message = 2; // mapped to the body
143
+ * }
144
+ *
145
+ * The following HTTP JSON to RPC mapping is enabled, where the
146
+ * representation of the JSON in the request body is determined by
147
+ * protos JSON encoding:
148
+ *
149
+ * HTTP | gRPC
150
+ * -----|-----
151
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
152
+ * "123456" message { text: "Hi!" })`
153
+ *
154
+ * The special name `*` can be used in the body mapping to define that
155
+ * every field not bound by the path template should be mapped to the
156
+ * request body. This enables the following alternative definition of
157
+ * the update method:
158
+ *
159
+ * service Messaging {
160
+ * rpc UpdateMessage(Message) returns (Message) {
161
+ * option (google.api.http) = {
162
+ * patch: "/v1/messages/{message_id}"
163
+ * body: "*"
164
+ * };
165
+ * }
166
+ * }
167
+ * message Message {
168
+ * string message_id = 1;
169
+ * string text = 2;
170
+ * }
171
+ *
172
+ *
173
+ * The following HTTP JSON to RPC mapping is enabled:
174
+ *
175
+ * HTTP | gRPC
176
+ * -----|-----
177
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
178
+ * "123456" text: "Hi!")`
179
+ *
180
+ * Note that when using `*` in the body mapping, it is not possible to
181
+ * have HTTP parameters, as all fields not bound by the path end in
182
+ * the body. This makes this option more rarely used in practice when
183
+ * defining REST APIs. The common usage of `*` is in custom methods
184
+ * which don't use the URL at all for transferring data.
185
+ *
186
+ * It is possible to define multiple HTTP methods for one RPC by using
187
+ * the `additional_bindings` option. Example:
188
+ *
189
+ * service Messaging {
190
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
191
+ * option (google.api.http) = {
192
+ * get: "/v1/messages/{message_id}"
193
+ * additional_bindings {
194
+ * get: "/v1/users/{user_id}/messages/{message_id}"
195
+ * }
196
+ * };
197
+ * }
198
+ * }
199
+ * message GetMessageRequest {
200
+ * string message_id = 1;
201
+ * string user_id = 2;
202
+ * }
203
+ *
204
+ * This enables the following two alternative HTTP JSON to RPC mappings:
205
+ *
206
+ * HTTP | gRPC
207
+ * -----|-----
208
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
209
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
210
+ * "123456")`
211
+ *
212
+ * ## Rules for HTTP mapping
213
+ *
214
+ * 1. Leaf request fields (recursive expansion nested messages in the request
215
+ * message) are classified into three categories:
216
+ * - Fields referred by the path template. They are passed via the URL path.
217
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
218
+ * request body.
219
+ * - All other fields are passed via the URL query parameters, and the
220
+ * parameter name is the field path in the request message. A repeated
221
+ * field can be represented as multiple query parameters under the same
222
+ * name.
223
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
224
+ * are passed via URL path and HTTP request body.
225
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
226
+ * fields are passed via URL path and URL query parameters.
227
+ *
228
+ * ### Path template syntax
229
+ *
230
+ * Template = "/" Segments [ Verb ] ;
231
+ * Segments = Segment { "/" Segment } ;
232
+ * Segment = "*" | "**" | LITERAL | Variable ;
233
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
234
+ * FieldPath = IDENT { "." IDENT } ;
235
+ * Verb = ":" LITERAL ;
236
+ *
237
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
238
+ * zero or more URL path segments, which must be the last part of the URL path
239
+ * except the `Verb`.
240
+ *
241
+ * The syntax `Variable` matches part of the URL path as specified by its
242
+ * template. A variable template must not contain other variables. If a variable
243
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
244
+ * is equivalent to `{var=*}`.
245
+ *
246
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
247
+ * contains any reserved character, such characters should be percent-encoded
248
+ * before the matching.
249
+ *
250
+ * If a variable contains exactly one path segment, such as `"{var}"` or
251
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
252
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
253
+ * server side does the reverse decoding. Such variables show up in the
254
+ * [Discovery
255
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
256
+ * `{var}`.
257
+ *
258
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
259
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
260
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
261
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
262
+ * unchanged. Such variables show up in the
263
+ * [Discovery
264
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
265
+ * `{+var}`.
266
+ *
267
+ * ## Using gRPC API Service Configuration
268
+ *
269
+ * gRPC API Service Configuration (service config) is a configuration language
270
+ * for configuring a gRPC service to become a user-facing product. The
271
+ * service config is simply the YAML representation of the `google.api.Service`
272
+ * proto message.
273
+ *
274
+ * As an alternative to annotating your proto file, you can configure gRPC
275
+ * transcoding in your service config YAML files. You do this by specifying a
276
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
277
+ * effect as the proto annotation. This can be particularly useful if you
278
+ * have a proto that is reused in multiple services. Note that any transcoding
279
+ * specified in the service config will override any matching transcoding
280
+ * configuration in the proto.
281
+ *
282
+ * Example:
283
+ *
284
+ * http:
285
+ * rules:
286
+ * # Selects a gRPC method and applies HttpRule to it.
287
+ * - selector: example.v1.Messaging.GetMessage
288
+ * get: /v1/messages/{message_id}/{sub.subfield}
289
+ *
290
+ * ## Special notes
291
+ *
292
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
293
+ * proto to JSON conversion must follow the [proto3
294
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
295
+ *
296
+ * While the single segment variable follows the semantics of
297
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
298
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
299
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
300
+ * does not expand special characters like `?` and `#`, which would lead
301
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
302
+ * for multi segment variables.
303
+ *
304
+ * The path variables **must not** refer to any repeated or mapped field,
305
+ * because client libraries are not capable of handling such variable expansion.
306
+ *
307
+ * The path variables **must not** capture the leading "/" character. The reason
308
+ * is that the most common use case "{var}" does not capture the leading "/"
309
+ * character. For consistency, all path variables must share the same behavior.
310
+ *
311
+ * Repeated message fields must not be mapped to URL query parameters, because
312
+ * no client library can support such complicated mapping.
313
+ *
314
+ * If an API needs to use a JSON array for request or response body, it can map
315
+ * the request or response body to a repeated field. However, some gRPC
316
+ * Transcoding implementations may not support this feature.
317
+ */
318
+ export interface HttpRule {
319
+ /**
320
+ * Selects a method to which this rule applies.
321
+ *
322
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
323
+ */
324
+ selector: string;
325
+ /**
326
+ * Maps to HTTP GET. Used for listing and getting information about
327
+ * resources.
328
+ */
329
+ get?: string;
330
+ /** Maps to HTTP PUT. Used for replacing a resource. */
331
+ put?: string;
332
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
333
+ post?: string;
334
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
335
+ delete?: string;
336
+ /** Maps to HTTP PATCH. Used for updating a resource. */
337
+ patch?: string;
338
+ /**
339
+ * The custom pattern is used for specifying an HTTP method that is not
340
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
341
+ * HTTP method unspecified for this rule. The wild-card rule is useful
342
+ * for services that provide content to Web (HTML) clients.
343
+ */
344
+ custom?: CustomHttpPattern;
345
+ /**
346
+ * The name of the request field whose value is mapped to the HTTP request
347
+ * body, or `*` for mapping all request fields not captured by the path
348
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
349
+ *
350
+ * NOTE: the referred field must be present at the top-level of the request
351
+ * message type.
352
+ */
353
+ body: string;
354
+ /**
355
+ * Optional. The name of the response field whose value is mapped to the HTTP
356
+ * response body. When omitted, the entire response message will be used
357
+ * as the HTTP response body.
358
+ *
359
+ * NOTE: The referred field must be present at the top-level of the response
360
+ * message type.
361
+ */
362
+ responseBody: string;
363
+ /**
364
+ * Additional HTTP bindings for the selector. Nested bindings must
365
+ * not contain an `additional_bindings` field themselves (that is,
366
+ * the nesting may only be one level deep).
367
+ */
368
+ additionalBindings: HttpRule[];
369
+ }
370
+ /**
371
+ * # gRPC Transcoding
372
+ *
373
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
374
+ * more HTTP REST endpoints. It allows developers to build a single API service
375
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
376
+ * APIs](https://github.com/googleapis/googleapis),
377
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
378
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
379
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
380
+ * and use it for large scale production services.
381
+ *
382
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
383
+ * how different portions of the gRPC request message are mapped to the URL
384
+ * path, URL query parameters, and HTTP request body. It also controls how the
385
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
386
+ * typically specified as an `google.api.http` annotation on the gRPC method.
387
+ *
388
+ * Each mapping specifies a URL path template and an HTTP method. The path
389
+ * template may refer to one or more fields in the gRPC request message, as long
390
+ * as each field is a non-repeated field with a primitive (non-message) type.
391
+ * The path template controls how fields of the request message are mapped to
392
+ * the URL path.
393
+ *
394
+ * Example:
395
+ *
396
+ * service Messaging {
397
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
398
+ * option (google.api.http) = {
399
+ * get: "/v1/{name=messages/*}"
400
+ * };
401
+ * }
402
+ * }
403
+ * message GetMessageRequest {
404
+ * string name = 1; // Mapped to URL path.
405
+ * }
406
+ * message Message {
407
+ * string text = 1; // The resource content.
408
+ * }
409
+ *
410
+ * This enables an HTTP REST to gRPC mapping as below:
411
+ *
412
+ * HTTP | gRPC
413
+ * -----|-----
414
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
415
+ *
416
+ * Any fields in the request message which are not bound by the path template
417
+ * automatically become HTTP query parameters if there is no HTTP request body.
418
+ * For example:
419
+ *
420
+ * service Messaging {
421
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
422
+ * option (google.api.http) = {
423
+ * get:"/v1/messages/{message_id}"
424
+ * };
425
+ * }
426
+ * }
427
+ * message GetMessageRequest {
428
+ * message SubMessage {
429
+ * string subfield = 1;
430
+ * }
431
+ * string message_id = 1; // Mapped to URL path.
432
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
433
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
434
+ * }
435
+ *
436
+ * This enables a HTTP JSON to RPC mapping as below:
437
+ *
438
+ * HTTP | gRPC
439
+ * -----|-----
440
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
441
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
442
+ * "foo"))`
443
+ *
444
+ * Note that fields which are mapped to URL query parameters must have a
445
+ * primitive type or a repeated primitive type or a non-repeated message type.
446
+ * In the case of a repeated type, the parameter can be repeated in the URL
447
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
448
+ * message is mapped to a separate parameter, such as
449
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
450
+ *
451
+ * For HTTP methods that allow a request body, the `body` field
452
+ * specifies the mapping. Consider a REST update method on the
453
+ * message resource collection:
454
+ *
455
+ * service Messaging {
456
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
457
+ * option (google.api.http) = {
458
+ * patch: "/v1/messages/{message_id}"
459
+ * body: "message"
460
+ * };
461
+ * }
462
+ * }
463
+ * message UpdateMessageRequest {
464
+ * string message_id = 1; // mapped to the URL
465
+ * Message message = 2; // mapped to the body
466
+ * }
467
+ *
468
+ * The following HTTP JSON to RPC mapping is enabled, where the
469
+ * representation of the JSON in the request body is determined by
470
+ * protos JSON encoding:
471
+ *
472
+ * HTTP | gRPC
473
+ * -----|-----
474
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
475
+ * "123456" message { text: "Hi!" })`
476
+ *
477
+ * The special name `*` can be used in the body mapping to define that
478
+ * every field not bound by the path template should be mapped to the
479
+ * request body. This enables the following alternative definition of
480
+ * the update method:
481
+ *
482
+ * service Messaging {
483
+ * rpc UpdateMessage(Message) returns (Message) {
484
+ * option (google.api.http) = {
485
+ * patch: "/v1/messages/{message_id}"
486
+ * body: "*"
487
+ * };
488
+ * }
489
+ * }
490
+ * message Message {
491
+ * string message_id = 1;
492
+ * string text = 2;
493
+ * }
494
+ *
495
+ *
496
+ * The following HTTP JSON to RPC mapping is enabled:
497
+ *
498
+ * HTTP | gRPC
499
+ * -----|-----
500
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
501
+ * "123456" text: "Hi!")`
502
+ *
503
+ * Note that when using `*` in the body mapping, it is not possible to
504
+ * have HTTP parameters, as all fields not bound by the path end in
505
+ * the body. This makes this option more rarely used in practice when
506
+ * defining REST APIs. The common usage of `*` is in custom methods
507
+ * which don't use the URL at all for transferring data.
508
+ *
509
+ * It is possible to define multiple HTTP methods for one RPC by using
510
+ * the `additional_bindings` option. Example:
511
+ *
512
+ * service Messaging {
513
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
514
+ * option (google.api.http) = {
515
+ * get: "/v1/messages/{message_id}"
516
+ * additional_bindings {
517
+ * get: "/v1/users/{user_id}/messages/{message_id}"
518
+ * }
519
+ * };
520
+ * }
521
+ * }
522
+ * message GetMessageRequest {
523
+ * string message_id = 1;
524
+ * string user_id = 2;
525
+ * }
526
+ *
527
+ * This enables the following two alternative HTTP JSON to RPC mappings:
528
+ *
529
+ * HTTP | gRPC
530
+ * -----|-----
531
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
532
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
533
+ * "123456")`
534
+ *
535
+ * ## Rules for HTTP mapping
536
+ *
537
+ * 1. Leaf request fields (recursive expansion nested messages in the request
538
+ * message) are classified into three categories:
539
+ * - Fields referred by the path template. They are passed via the URL path.
540
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They are passed via the HTTP
541
+ * request body.
542
+ * - All other fields are passed via the URL query parameters, and the
543
+ * parameter name is the field path in the request message. A repeated
544
+ * field can be represented as multiple query parameters under the same
545
+ * name.
546
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL query parameter, all fields
547
+ * are passed via URL path and HTTP request body.
548
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP request body, all
549
+ * fields are passed via URL path and URL query parameters.
550
+ *
551
+ * ### Path template syntax
552
+ *
553
+ * Template = "/" Segments [ Verb ] ;
554
+ * Segments = Segment { "/" Segment } ;
555
+ * Segment = "*" | "**" | LITERAL | Variable ;
556
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
557
+ * FieldPath = IDENT { "." IDENT } ;
558
+ * Verb = ":" LITERAL ;
559
+ *
560
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
561
+ * zero or more URL path segments, which must be the last part of the URL path
562
+ * except the `Verb`.
563
+ *
564
+ * The syntax `Variable` matches part of the URL path as specified by its
565
+ * template. A variable template must not contain other variables. If a variable
566
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
567
+ * is equivalent to `{var=*}`.
568
+ *
569
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
570
+ * contains any reserved character, such characters should be percent-encoded
571
+ * before the matching.
572
+ *
573
+ * If a variable contains exactly one path segment, such as `"{var}"` or
574
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
575
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
576
+ * server side does the reverse decoding. Such variables show up in the
577
+ * [Discovery
578
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
579
+ * `{var}`.
580
+ *
581
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
582
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
583
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
584
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
585
+ * unchanged. Such variables show up in the
586
+ * [Discovery
587
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
588
+ * `{+var}`.
589
+ *
590
+ * ## Using gRPC API Service Configuration
591
+ *
592
+ * gRPC API Service Configuration (service config) is a configuration language
593
+ * for configuring a gRPC service to become a user-facing product. The
594
+ * service config is simply the YAML representation of the `google.api.Service`
595
+ * proto message.
596
+ *
597
+ * As an alternative to annotating your proto file, you can configure gRPC
598
+ * transcoding in your service config YAML files. You do this by specifying a
599
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
600
+ * effect as the proto annotation. This can be particularly useful if you
601
+ * have a proto that is reused in multiple services. Note that any transcoding
602
+ * specified in the service config will override any matching transcoding
603
+ * configuration in the proto.
604
+ *
605
+ * Example:
606
+ *
607
+ * http:
608
+ * rules:
609
+ * # Selects a gRPC method and applies HttpRule to it.
610
+ * - selector: example.v1.Messaging.GetMessage
611
+ * get: /v1/messages/{message_id}/{sub.subfield}
612
+ *
613
+ * ## Special notes
614
+ *
615
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
616
+ * proto to JSON conversion must follow the [proto3
617
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
618
+ *
619
+ * While the single segment variable follows the semantics of
620
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
621
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
622
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
623
+ * does not expand special characters like `?` and `#`, which would lead
624
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
625
+ * for multi segment variables.
626
+ *
627
+ * The path variables **must not** refer to any repeated or mapped field,
628
+ * because client libraries are not capable of handling such variable expansion.
629
+ *
630
+ * The path variables **must not** capture the leading "/" character. The reason
631
+ * is that the most common use case "{var}" does not capture the leading "/"
632
+ * character. For consistency, all path variables must share the same behavior.
633
+ *
634
+ * Repeated message fields must not be mapped to URL query parameters, because
635
+ * no client library can support such complicated mapping.
636
+ *
637
+ * If an API needs to use a JSON array for request or response body, it can map
638
+ * the request or response body to a repeated field. However, some gRPC
639
+ * Transcoding implementations may not support this feature.
640
+ */
641
+ export interface HttpRuleSDKType {
642
+ /**
643
+ * Selects a method to which this rule applies.
644
+ *
645
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
646
+ */
647
+ selector: string;
648
+ /**
649
+ * Maps to HTTP GET. Used for listing and getting information about
650
+ * resources.
651
+ */
652
+ get?: string;
653
+ /** Maps to HTTP PUT. Used for replacing a resource. */
654
+ put?: string;
655
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
656
+ post?: string;
657
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
658
+ delete?: string;
659
+ /** Maps to HTTP PATCH. Used for updating a resource. */
660
+ patch?: string;
661
+ /**
662
+ * The custom pattern is used for specifying an HTTP method that is not
663
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
664
+ * HTTP method unspecified for this rule. The wild-card rule is useful
665
+ * for services that provide content to Web (HTML) clients.
666
+ */
667
+ custom?: CustomHttpPatternSDKType;
668
+ /**
669
+ * The name of the request field whose value is mapped to the HTTP request
670
+ * body, or `*` for mapping all request fields not captured by the path
671
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
672
+ *
673
+ * NOTE: the referred field must be present at the top-level of the request
674
+ * message type.
675
+ */
676
+ body: string;
677
+ /**
678
+ * Optional. The name of the response field whose value is mapped to the HTTP
679
+ * response body. When omitted, the entire response message will be used
680
+ * as the HTTP response body.
681
+ *
682
+ * NOTE: The referred field must be present at the top-level of the response
683
+ * message type.
684
+ */
685
+ response_body: string;
686
+ /**
687
+ * Additional HTTP bindings for the selector. Nested bindings must
688
+ * not contain an `additional_bindings` field themselves (that is,
689
+ * the nesting may only be one level deep).
690
+ */
691
+ additional_bindings: HttpRuleSDKType[];
692
+ }
693
+ /** A custom pattern is used for defining custom HTTP verb. */
694
+ export interface CustomHttpPattern {
695
+ /** The name of this custom HTTP verb. */
696
+ kind: string;
697
+ /** The path matched by this custom verb. */
698
+ path: string;
699
+ }
700
+ /** A custom pattern is used for defining custom HTTP verb. */
701
+ export interface CustomHttpPatternSDKType {
702
+ /** The name of this custom HTTP verb. */
703
+ kind: string;
704
+ /** The path matched by this custom verb. */
705
+ path: string;
706
+ }
707
+ export declare const Http: {
708
+ encode(message: Http, writer?: _m0.Writer): _m0.Writer;
709
+ decode(input: _m0.Reader | Uint8Array, length?: number): Http;
710
+ fromPartial(object: DeepPartial<Http>): Http;
711
+ };
712
+ export declare const HttpRule: {
713
+ encode(message: HttpRule, writer?: _m0.Writer): _m0.Writer;
714
+ decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule;
715
+ fromPartial(object: DeepPartial<HttpRule>): HttpRule;
716
+ };
717
+ export declare const CustomHttpPattern: {
718
+ encode(message: CustomHttpPattern, writer?: _m0.Writer): _m0.Writer;
719
+ decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern;
720
+ fromPartial(object: DeepPartial<CustomHttpPattern>): CustomHttpPattern;
721
+ };