@iconlake/client 0.0.1

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 (497) hide show
  1. package/client.ts +170 -0
  2. package/cosmos.auth.v1beta1/index.ts +6 -0
  3. package/cosmos.auth.v1beta1/module.ts +102 -0
  4. package/cosmos.auth.v1beta1/registry.ts +7 -0
  5. package/cosmos.auth.v1beta1/rest.ts +641 -0
  6. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  7. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +95 -0
  8. package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +1212 -0
  9. package/cosmos.auth.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  10. package/cosmos.auth.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  11. package/cosmos.auth.v1beta1/types/gogoproto/gogo.ts +2 -0
  12. package/cosmos.auth.v1beta1/types/google/api/annotations.ts +2 -0
  13. package/cosmos.auth.v1beta1/types/google/api/http.ts +589 -0
  14. package/cosmos.auth.v1beta1/types/google/protobuf/any.ts +240 -0
  15. package/cosmos.auth.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  16. package/cosmos.auth.v1beta1/types.ts +11 -0
  17. package/cosmos.authz.v1beta1/index.ts +6 -0
  18. package/cosmos.authz.v1beta1/module.ts +207 -0
  19. package/cosmos.authz.v1beta1/registry.ts +13 -0
  20. package/cosmos.authz.v1beta1/rest.ts +604 -0
  21. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/authz.ts +325 -0
  22. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/event.ts +175 -0
  23. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/genesis.ts +78 -0
  24. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/query.ts +516 -0
  25. package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +493 -0
  26. package/cosmos.authz.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  27. package/cosmos.authz.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  28. package/cosmos.authz.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  29. package/cosmos.authz.v1beta1/types/gogoproto/gogo.ts +2 -0
  30. package/cosmos.authz.v1beta1/types/google/api/annotations.ts +2 -0
  31. package/cosmos.authz.v1beta1/types/google/api/http.ts +589 -0
  32. package/cosmos.authz.v1beta1/types/google/protobuf/any.ts +240 -0
  33. package/cosmos.authz.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  34. package/cosmos.authz.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  35. package/cosmos.authz.v1beta1/types.ts +17 -0
  36. package/cosmos.bank.v1beta1/index.ts +6 -0
  37. package/cosmos.bank.v1beta1/module.ts +182 -0
  38. package/cosmos.bank.v1beta1/registry.ts +11 -0
  39. package/cosmos.bank.v1beta1/rest.ts +656 -0
  40. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +77 -0
  41. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +604 -0
  42. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +203 -0
  43. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +1366 -0
  44. package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +289 -0
  45. package/cosmos.bank.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  46. package/cosmos.bank.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  47. package/cosmos.bank.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  48. package/cosmos.bank.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  49. package/cosmos.bank.v1beta1/types/gogoproto/gogo.ts +2 -0
  50. package/cosmos.bank.v1beta1/types/google/api/annotations.ts +2 -0
  51. package/cosmos.bank.v1beta1/types/google/api/http.ts +589 -0
  52. package/cosmos.bank.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  53. package/cosmos.bank.v1beta1/types.ts +25 -0
  54. package/cosmos.base.node.v1beta1/index.ts +6 -0
  55. package/cosmos.base.node.v1beta1/module.ts +96 -0
  56. package/cosmos.base.node.v1beta1/registry.ts +7 -0
  57. package/cosmos.base.node.v1beta1/rest.ts +170 -0
  58. package/cosmos.base.node.v1beta1/types/cosmos/base/node/v1beta1/query.ts +137 -0
  59. package/cosmos.base.node.v1beta1/types/google/api/annotations.ts +2 -0
  60. package/cosmos.base.node.v1beta1/types/google/api/http.ts +589 -0
  61. package/cosmos.base.node.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  62. package/cosmos.base.node.v1beta1/types.ts +5 -0
  63. package/cosmos.base.tendermint.v1beta1/index.ts +6 -0
  64. package/cosmos.base.tendermint.v1beta1/module.ts +110 -0
  65. package/cosmos.base.tendermint.v1beta1/registry.ts +7 -0
  66. package/cosmos.base.tendermint.v1beta1/rest.ts +1147 -0
  67. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  68. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +1646 -0
  69. package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/types.ts +442 -0
  70. package/cosmos.base.tendermint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  71. package/cosmos.base.tendermint.v1beta1/types/gogoproto/gogo.ts +2 -0
  72. package/cosmos.base.tendermint.v1beta1/types/google/api/annotations.ts +2 -0
  73. package/cosmos.base.tendermint.v1beta1/types/google/api/http.ts +589 -0
  74. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/any.ts +240 -0
  75. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  76. package/cosmos.base.tendermint.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  77. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  78. package/cosmos.base.tendermint.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  79. package/cosmos.base.tendermint.v1beta1/types/tendermint/p2p/types.ts +423 -0
  80. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/block.ts +112 -0
  81. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/evidence.ts +412 -0
  82. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/types.ts +1452 -0
  83. package/cosmos.base.tendermint.v1beta1/types/tendermint/types/validator.ts +308 -0
  84. package/cosmos.base.tendermint.v1beta1/types/tendermint/version/types.ts +184 -0
  85. package/cosmos.base.tendermint.v1beta1/types.ts +19 -0
  86. package/cosmos.crisis.v1beta1/index.ts +6 -0
  87. package/cosmos.crisis.v1beta1/module.ts +129 -0
  88. package/cosmos.crisis.v1beta1/registry.ts +9 -0
  89. package/cosmos.crisis.v1beta1/rest.ts +152 -0
  90. package/cosmos.crisis.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  91. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/genesis.ts +79 -0
  92. package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +159 -0
  93. package/cosmos.crisis.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  94. package/cosmos.crisis.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  95. package/cosmos.crisis.v1beta1/types/gogoproto/gogo.ts +2 -0
  96. package/cosmos.crisis.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  97. package/cosmos.crisis.v1beta1/types.ts +5 -0
  98. package/cosmos.distribution.v1beta1/index.ts +6 -0
  99. package/cosmos.distribution.v1beta1/module.ts +266 -0
  100. package/cosmos.distribution.v1beta1/registry.ts +15 -0
  101. package/cosmos.distribution.v1beta1/rest.ts +557 -0
  102. package/cosmos.distribution.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  103. package/cosmos.distribution.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  104. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +945 -0
  105. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +849 -0
  106. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1289 -0
  107. package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +550 -0
  108. package/cosmos.distribution.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  109. package/cosmos.distribution.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  110. package/cosmos.distribution.v1beta1/types/gogoproto/gogo.ts +2 -0
  111. package/cosmos.distribution.v1beta1/types/google/api/annotations.ts +2 -0
  112. package/cosmos.distribution.v1beta1/types/google/api/http.ts +589 -0
  113. package/cosmos.distribution.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  114. package/cosmos.distribution.v1beta1/types.ts +43 -0
  115. package/cosmos.evidence.v1beta1/index.ts +6 -0
  116. package/cosmos.evidence.v1beta1/module.ts +131 -0
  117. package/cosmos.evidence.v1beta1/registry.ts +9 -0
  118. package/cosmos.evidence.v1beta1/rest.ts +402 -0
  119. package/cosmos.evidence.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  120. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +161 -0
  121. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/genesis.ts +73 -0
  122. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +343 -0
  123. package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +213 -0
  124. package/cosmos.evidence.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  125. package/cosmos.evidence.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  126. package/cosmos.evidence.v1beta1/types/gogoproto/gogo.ts +2 -0
  127. package/cosmos.evidence.v1beta1/types/google/api/annotations.ts +2 -0
  128. package/cosmos.evidence.v1beta1/types/google/api/http.ts +589 -0
  129. package/cosmos.evidence.v1beta1/types/google/protobuf/any.ts +240 -0
  130. package/cosmos.evidence.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  131. package/cosmos.evidence.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  132. package/cosmos.evidence.v1beta1/types.ts +7 -0
  133. package/cosmos.feegrant.v1beta1/index.ts +6 -0
  134. package/cosmos.feegrant.v1beta1/module.ts +170 -0
  135. package/cosmos.feegrant.v1beta1/registry.ts +11 -0
  136. package/cosmos.feegrant.v1beta1/rest.ts +452 -0
  137. package/cosmos.feegrant.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  138. package/cosmos.feegrant.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  139. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/feegrant.ts +409 -0
  140. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/genesis.ts +76 -0
  141. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/query.ts +484 -0
  142. package/cosmos.feegrant.v1beta1/types/cosmos/feegrant/v1beta1/tx.ts +294 -0
  143. package/cosmos.feegrant.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  144. package/cosmos.feegrant.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  145. package/cosmos.feegrant.v1beta1/types/gogoproto/gogo.ts +2 -0
  146. package/cosmos.feegrant.v1beta1/types/google/api/annotations.ts +2 -0
  147. package/cosmos.feegrant.v1beta1/types/google/api/http.ts +589 -0
  148. package/cosmos.feegrant.v1beta1/types/google/protobuf/any.ts +240 -0
  149. package/cosmos.feegrant.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  150. package/cosmos.feegrant.v1beta1/types/google/protobuf/duration.ts +187 -0
  151. package/cosmos.feegrant.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  152. package/cosmos.feegrant.v1beta1/types.ts +13 -0
  153. package/cosmos.gov.v1/index.ts +6 -0
  154. package/cosmos.gov.v1/module.ts +244 -0
  155. package/cosmos.gov.v1/registry.ts +15 -0
  156. package/cosmos.gov.v1/rest.ts +798 -0
  157. package/cosmos.gov.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  158. package/cosmos.gov.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  159. package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +208 -0
  160. package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +925 -0
  161. package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +1202 -0
  162. package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +763 -0
  163. package/cosmos.gov.v1/types/cosmos/msg/v1/msg.ts +2 -0
  164. package/cosmos.gov.v1/types/cosmos_proto/cosmos.ts +247 -0
  165. package/cosmos.gov.v1/types/gogoproto/gogo.ts +2 -0
  166. package/cosmos.gov.v1/types/google/api/annotations.ts +2 -0
  167. package/cosmos.gov.v1/types/google/api/http.ts +589 -0
  168. package/cosmos.gov.v1/types/google/protobuf/any.ts +240 -0
  169. package/cosmos.gov.v1/types/google/protobuf/descriptor.ts +3753 -0
  170. package/cosmos.gov.v1/types/google/protobuf/duration.ts +187 -0
  171. package/cosmos.gov.v1/types/google/protobuf/timestamp.ts +216 -0
  172. package/cosmos.gov.v1/types.ts +21 -0
  173. package/cosmos.gov.v1beta1/index.ts +6 -0
  174. package/cosmos.gov.v1beta1/module.ts +246 -0
  175. package/cosmos.gov.v1beta1/registry.ts +15 -0
  176. package/cosmos.gov.v1beta1/rest.ts +864 -0
  177. package/cosmos.gov.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  178. package/cosmos.gov.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  179. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +206 -0
  180. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +1015 -0
  181. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +1200 -0
  182. package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +612 -0
  183. package/cosmos.gov.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  184. package/cosmos.gov.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  185. package/cosmos.gov.v1beta1/types/gogoproto/gogo.ts +2 -0
  186. package/cosmos.gov.v1beta1/types/google/api/annotations.ts +2 -0
  187. package/cosmos.gov.v1beta1/types/google/api/http.ts +589 -0
  188. package/cosmos.gov.v1beta1/types/google/protobuf/any.ts +240 -0
  189. package/cosmos.gov.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  190. package/cosmos.gov.v1beta1/types/google/protobuf/duration.ts +187 -0
  191. package/cosmos.gov.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  192. package/cosmos.gov.v1beta1/types.ts +23 -0
  193. package/cosmos.group.v1/index.ts +6 -0
  194. package/cosmos.group.v1/module.ts +598 -0
  195. package/cosmos.group.v1/registry.ts +35 -0
  196. package/cosmos.group.v1/rest.ts +1162 -0
  197. package/cosmos.group.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  198. package/cosmos.group.v1/types/cosmos/group/v1/events.ts +568 -0
  199. package/cosmos.group.v1/types/cosmos/group/v1/genesis.ts +228 -0
  200. package/cosmos.group.v1/types/cosmos/group/v1/query.ts +1897 -0
  201. package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +2113 -0
  202. package/cosmos.group.v1/types/cosmos/group/v1/types.ts +1422 -0
  203. package/cosmos.group.v1/types/cosmos/msg/v1/msg.ts +2 -0
  204. package/cosmos.group.v1/types/cosmos_proto/cosmos.ts +247 -0
  205. package/cosmos.group.v1/types/gogoproto/gogo.ts +2 -0
  206. package/cosmos.group.v1/types/google/api/annotations.ts +2 -0
  207. package/cosmos.group.v1/types/google/api/http.ts +589 -0
  208. package/cosmos.group.v1/types/google/protobuf/any.ts +240 -0
  209. package/cosmos.group.v1/types/google/protobuf/descriptor.ts +3753 -0
  210. package/cosmos.group.v1/types/google/protobuf/duration.ts +187 -0
  211. package/cosmos.group.v1/types/google/protobuf/timestamp.ts +216 -0
  212. package/cosmos.group.v1/types.ts +45 -0
  213. package/cosmos.mint.v1beta1/index.ts +6 -0
  214. package/cosmos.mint.v1beta1/module.ts +100 -0
  215. package/cosmos.mint.v1beta1/registry.ts +7 -0
  216. package/cosmos.mint.v1beta1/rest.ts +253 -0
  217. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +92 -0
  218. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +234 -0
  219. package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/query.ts +412 -0
  220. package/cosmos.mint.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  221. package/cosmos.mint.v1beta1/types/gogoproto/gogo.ts +2 -0
  222. package/cosmos.mint.v1beta1/types/google/api/annotations.ts +2 -0
  223. package/cosmos.mint.v1beta1/types/google/api/http.ts +589 -0
  224. package/cosmos.mint.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  225. package/cosmos.mint.v1beta1/types.ts +9 -0
  226. package/cosmos.nft.v1beta1/index.ts +6 -0
  227. package/cosmos.nft.v1beta1/module.ts +108 -0
  228. package/cosmos.nft.v1beta1/registry.ts +7 -0
  229. package/cosmos.nft.v1beta1/rest.ts +685 -0
  230. package/cosmos.nft.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  231. package/cosmos.nft.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  232. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +251 -0
  233. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +163 -0
  234. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/nft.ts +240 -0
  235. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +964 -0
  236. package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/tx.ts +173 -0
  237. package/cosmos.nft.v1beta1/types/google/api/annotations.ts +2 -0
  238. package/cosmos.nft.v1beta1/types/google/api/http.ts +589 -0
  239. package/cosmos.nft.v1beta1/types/google/protobuf/any.ts +240 -0
  240. package/cosmos.nft.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  241. package/cosmos.nft.v1beta1/types.ts +17 -0
  242. package/cosmos.params.v1beta1/index.ts +6 -0
  243. package/cosmos.params.v1beta1/module.ts +102 -0
  244. package/cosmos.params.v1beta1/registry.ts +7 -0
  245. package/cosmos.params.v1beta1/rest.ts +220 -0
  246. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/params.ts +174 -0
  247. package/cosmos.params.v1beta1/types/cosmos/params/v1beta1/query.ts +364 -0
  248. package/cosmos.params.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  249. package/cosmos.params.v1beta1/types/gogoproto/gogo.ts +2 -0
  250. package/cosmos.params.v1beta1/types/google/api/annotations.ts +2 -0
  251. package/cosmos.params.v1beta1/types/google/api/http.ts +589 -0
  252. package/cosmos.params.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  253. package/cosmos.params.v1beta1/types.ts +11 -0
  254. package/cosmos.slashing.v1beta1/index.ts +6 -0
  255. package/cosmos.slashing.v1beta1/module.ts +139 -0
  256. package/cosmos.slashing.v1beta1/registry.ts +9 -0
  257. package/cosmos.slashing.v1beta1/rest.ts +368 -0
  258. package/cosmos.slashing.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  259. package/cosmos.slashing.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  260. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +364 -0
  261. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/query.ts +411 -0
  262. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/slashing.ts +352 -0
  263. package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +141 -0
  264. package/cosmos.slashing.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  265. package/cosmos.slashing.v1beta1/types/gogoproto/gogo.ts +2 -0
  266. package/cosmos.slashing.v1beta1/types/google/api/annotations.ts +2 -0
  267. package/cosmos.slashing.v1beta1/types/google/api/http.ts +589 -0
  268. package/cosmos.slashing.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  269. package/cosmos.slashing.v1beta1/types/google/protobuf/duration.ts +187 -0
  270. package/cosmos.slashing.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  271. package/cosmos.slashing.v1beta1/types.ts +15 -0
  272. package/cosmos.staking.v1beta1/index.ts +6 -0
  273. package/cosmos.staking.v1beta1/module.ts +340 -0
  274. package/cosmos.staking.v1beta1/registry.ts +19 -0
  275. package/cosmos.staking.v1beta1/rest.ts +1239 -0
  276. package/cosmos.staking.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  277. package/cosmos.staking.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  278. package/cosmos.staking.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  279. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/authz.ts +245 -0
  280. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +322 -0
  281. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +2109 -0
  282. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +1829 -0
  283. package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1005 -0
  284. package/cosmos.staking.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  285. package/cosmos.staking.v1beta1/types/gogoproto/gogo.ts +2 -0
  286. package/cosmos.staking.v1beta1/types/google/api/annotations.ts +2 -0
  287. package/cosmos.staking.v1beta1/types/google/api/http.ts +589 -0
  288. package/cosmos.staking.v1beta1/types/google/protobuf/any.ts +240 -0
  289. package/cosmos.staking.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  290. package/cosmos.staking.v1beta1/types/google/protobuf/duration.ts +187 -0
  291. package/cosmos.staking.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  292. package/cosmos.staking.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  293. package/cosmos.staking.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  294. package/cosmos.staking.v1beta1/types/tendermint/types/types.ts +1452 -0
  295. package/cosmos.staking.v1beta1/types/tendermint/types/validator.ts +308 -0
  296. package/cosmos.staking.v1beta1/types/tendermint/version/types.ts +184 -0
  297. package/cosmos.staking.v1beta1/types.ts +51 -0
  298. package/cosmos.tx.v1beta1/index.ts +6 -0
  299. package/cosmos.tx.v1beta1/module.ts +122 -0
  300. package/cosmos.tx.v1beta1/registry.ts +7 -0
  301. package/cosmos.tx.v1beta1/rest.ts +1372 -0
  302. package/cosmos.tx.v1beta1/types/cosmos/base/abci/v1beta1/abci.ts +1040 -0
  303. package/cosmos.tx.v1beta1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  304. package/cosmos.tx.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  305. package/cosmos.tx.v1beta1/types/cosmos/crypto/multisig/v1beta1/multisig.ts +195 -0
  306. package/cosmos.tx.v1beta1/types/cosmos/tx/signing/v1beta1/signing.ts +556 -0
  307. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +1057 -0
  308. package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/tx.ts +1355 -0
  309. package/cosmos.tx.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  310. package/cosmos.tx.v1beta1/types/gogoproto/gogo.ts +2 -0
  311. package/cosmos.tx.v1beta1/types/google/api/annotations.ts +2 -0
  312. package/cosmos.tx.v1beta1/types/google/api/http.ts +589 -0
  313. package/cosmos.tx.v1beta1/types/google/protobuf/any.ts +240 -0
  314. package/cosmos.tx.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  315. package/cosmos.tx.v1beta1/types/google/protobuf/duration.ts +187 -0
  316. package/cosmos.tx.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  317. package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +4154 -0
  318. package/cosmos.tx.v1beta1/types/tendermint/crypto/keys.ts +129 -0
  319. package/cosmos.tx.v1beta1/types/tendermint/crypto/proof.ts +439 -0
  320. package/cosmos.tx.v1beta1/types/tendermint/types/block.ts +112 -0
  321. package/cosmos.tx.v1beta1/types/tendermint/types/evidence.ts +412 -0
  322. package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +514 -0
  323. package/cosmos.tx.v1beta1/types/tendermint/types/types.ts +1452 -0
  324. package/cosmos.tx.v1beta1/types/tendermint/types/validator.ts +308 -0
  325. package/cosmos.tx.v1beta1/types/tendermint/version/types.ts +184 -0
  326. package/cosmos.tx.v1beta1/types.ts +31 -0
  327. package/cosmos.upgrade.v1beta1/index.ts +6 -0
  328. package/cosmos.upgrade.v1beta1/module.ts +170 -0
  329. package/cosmos.upgrade.v1beta1/registry.ts +11 -0
  330. package/cosmos.upgrade.v1beta1/rest.ts +468 -0
  331. package/cosmos.upgrade.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  332. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/query.ts +728 -0
  333. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +284 -0
  334. package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  335. package/cosmos.upgrade.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  336. package/cosmos.upgrade.v1beta1/types/gogoproto/gogo.ts +2 -0
  337. package/cosmos.upgrade.v1beta1/types/google/api/annotations.ts +2 -0
  338. package/cosmos.upgrade.v1beta1/types/google/api/http.ts +589 -0
  339. package/cosmos.upgrade.v1beta1/types/google/protobuf/any.ts +240 -0
  340. package/cosmos.upgrade.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  341. package/cosmos.upgrade.v1beta1/types/google/protobuf/timestamp.ts +216 -0
  342. package/cosmos.upgrade.v1beta1/types.ts +13 -0
  343. package/cosmos.vesting.v1beta1/index.ts +6 -0
  344. package/cosmos.vesting.v1beta1/module.ts +207 -0
  345. package/cosmos.vesting.v1beta1/registry.ts +13 -0
  346. package/cosmos.vesting.v1beta1/rest.ts +297 -0
  347. package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +324 -0
  348. package/cosmos.vesting.v1beta1/types/cosmos/base/v1beta1/coin.ts +261 -0
  349. package/cosmos.vesting.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
  350. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/tx.ts +540 -0
  351. package/cosmos.vesting.v1beta1/types/cosmos/vesting/v1beta1/vesting.ts +529 -0
  352. package/cosmos.vesting.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
  353. package/cosmos.vesting.v1beta1/types/gogoproto/gogo.ts +2 -0
  354. package/cosmos.vesting.v1beta1/types/google/protobuf/any.ts +240 -0
  355. package/cosmos.vesting.v1beta1/types/google/protobuf/descriptor.ts +3753 -0
  356. package/cosmos.vesting.v1beta1/types.ts +17 -0
  357. package/env.ts +7 -0
  358. package/helpers.ts +32 -0
  359. package/ibc.applications.interchain_accounts.controller.v1/index.ts +6 -0
  360. package/ibc.applications.interchain_accounts.controller.v1/module.ts +98 -0
  361. package/ibc.applications.interchain_accounts.controller.v1/registry.ts +7 -0
  362. package/ibc.applications.interchain_accounts.controller.v1/rest.ts +346 -0
  363. package/ibc.applications.interchain_accounts.controller.v1/types/gogoproto/gogo.ts +2 -0
  364. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/annotations.ts +2 -0
  365. package/ibc.applications.interchain_accounts.controller.v1/types/google/api/http.ts +589 -0
  366. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/any.ts +240 -0
  367. package/ibc.applications.interchain_accounts.controller.v1/types/google/protobuf/descriptor.ts +3753 -0
  368. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/controller.ts +75 -0
  369. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/query.ts +274 -0
  370. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +361 -0
  371. package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/v1/packet.ts +234 -0
  372. package/ibc.applications.interchain_accounts.controller.v1/types.ts +7 -0
  373. package/ibc.applications.interchain_accounts.host.v1/index.ts +6 -0
  374. package/ibc.applications.interchain_accounts.host.v1/module.ts +98 -0
  375. package/ibc.applications.interchain_accounts.host.v1/registry.ts +7 -0
  376. package/ibc.applications.interchain_accounts.host.v1/rest.ts +183 -0
  377. package/ibc.applications.interchain_accounts.host.v1/types/gogoproto/gogo.ts +2 -0
  378. package/ibc.applications.interchain_accounts.host.v1/types/google/api/annotations.ts +2 -0
  379. package/ibc.applications.interchain_accounts.host.v1/types/google/api/http.ts +589 -0
  380. package/ibc.applications.interchain_accounts.host.v1/types/google/protobuf/descriptor.ts +3753 -0
  381. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/host.ts +92 -0
  382. package/ibc.applications.interchain_accounts.host.v1/types/ibc/applications/interchain_accounts/host/v1/query.ts +141 -0
  383. package/ibc.applications.interchain_accounts.host.v1/types.ts +7 -0
  384. package/ibc.applications.transfer.v1/index.ts +6 -0
  385. package/ibc.applications.transfer.v1/module.ts +133 -0
  386. package/ibc.applications.transfer.v1/registry.ts +9 -0
  387. package/ibc.applications.transfer.v1/rest.ts +544 -0
  388. package/ibc.applications.transfer.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  389. package/ibc.applications.transfer.v1/types/cosmos/base/v1beta1/coin.ts +261 -0
  390. package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  391. package/ibc.applications.transfer.v1/types/cosmos_proto/cosmos.ts +247 -0
  392. package/ibc.applications.transfer.v1/types/gogoproto/gogo.ts +2 -0
  393. package/ibc.applications.transfer.v1/types/google/api/annotations.ts +2 -0
  394. package/ibc.applications.transfer.v1/types/google/api/http.ts +589 -0
  395. package/ibc.applications.transfer.v1/types/google/protobuf/any.ts +240 -0
  396. package/ibc.applications.transfer.v1/types/google/protobuf/descriptor.ts +3753 -0
  397. package/ibc.applications.transfer.v1/types/google/protobuf/timestamp.ts +216 -0
  398. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +100 -0
  399. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +659 -0
  400. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/transfer.ts +168 -0
  401. package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/tx.ts +287 -0
  402. package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +608 -0
  403. package/ibc.applications.transfer.v1/types.ts +9 -0
  404. package/ibc.core.channel.v1/index.ts +6 -0
  405. package/ibc.core.channel.v1/module.ts +112 -0
  406. package/ibc.core.channel.v1/registry.ts +7 -0
  407. package/ibc.core.channel.v1/rest.ts +1375 -0
  408. package/ibc.core.channel.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  409. package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  410. package/ibc.core.channel.v1/types/cosmos_proto/cosmos.ts +247 -0
  411. package/ibc.core.channel.v1/types/gogoproto/gogo.ts +2 -0
  412. package/ibc.core.channel.v1/types/google/api/annotations.ts +2 -0
  413. package/ibc.core.channel.v1/types/google/api/http.ts +589 -0
  414. package/ibc.core.channel.v1/types/google/protobuf/any.ts +240 -0
  415. package/ibc.core.channel.v1/types/google/protobuf/descriptor.ts +3753 -0
  416. package/ibc.core.channel.v1/types/google/protobuf/timestamp.ts +216 -0
  417. package/ibc.core.channel.v1/types/ibc/core/channel/v1/channel.ts +905 -0
  418. package/ibc.core.channel.v1/types/ibc/core/channel/v1/genesis.ts +301 -0
  419. package/ibc.core.channel.v1/types/ibc/core/channel/v1/query.ts +2472 -0
  420. package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +1784 -0
  421. package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +608 -0
  422. package/ibc.core.channel.v1/types.ts +21 -0
  423. package/ibc.core.client.v1/index.ts +6 -0
  424. package/ibc.core.client.v1/module.ts +114 -0
  425. package/ibc.core.client.v1/registry.ts +7 -0
  426. package/ibc.core.client.v1/rest.ts +1084 -0
  427. package/ibc.core.client.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  428. package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  429. package/ibc.core.client.v1/types/cosmos_proto/cosmos.ts +247 -0
  430. package/ibc.core.client.v1/types/gogoproto/gogo.ts +2 -0
  431. package/ibc.core.client.v1/types/google/api/annotations.ts +2 -0
  432. package/ibc.core.client.v1/types/google/api/http.ts +589 -0
  433. package/ibc.core.client.v1/types/google/protobuf/any.ts +240 -0
  434. package/ibc.core.client.v1/types/google/protobuf/descriptor.ts +3753 -0
  435. package/ibc.core.client.v1/types/google/protobuf/timestamp.ts +216 -0
  436. package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +608 -0
  437. package/ibc.core.client.v1/types/ibc/core/client/v1/genesis.ts +357 -0
  438. package/ibc.core.client.v1/types/ibc/core/client/v1/query.ts +1390 -0
  439. package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +691 -0
  440. package/ibc.core.client.v1/types.ts +23 -0
  441. package/ibc.core.connection.v1/index.ts +6 -0
  442. package/ibc.core.connection.v1/module.ts +110 -0
  443. package/ibc.core.connection.v1/registry.ts +7 -0
  444. package/ibc.core.connection.v1/rest.ts +889 -0
  445. package/ibc.core.connection.v1/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  446. package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +429 -0
  447. package/ibc.core.connection.v1/types/cosmos_proto/cosmos.ts +247 -0
  448. package/ibc.core.connection.v1/types/gogoproto/gogo.ts +2 -0
  449. package/ibc.core.connection.v1/types/google/api/annotations.ts +2 -0
  450. package/ibc.core.connection.v1/types/google/api/http.ts +589 -0
  451. package/ibc.core.connection.v1/types/google/protobuf/any.ts +240 -0
  452. package/ibc.core.connection.v1/types/google/protobuf/descriptor.ts +3753 -0
  453. package/ibc.core.connection.v1/types/google/protobuf/timestamp.ts +216 -0
  454. package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +608 -0
  455. package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +299 -0
  456. package/ibc.core.connection.v1/types/ibc/core/connection/v1/connection.ts +698 -0
  457. package/ibc.core.connection.v1/types/ibc/core/connection/v1/genesis.ts +152 -0
  458. package/ibc.core.connection.v1/types/ibc/core/connection/v1/query.ts +1041 -0
  459. package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +908 -0
  460. package/ibc.core.connection.v1/types/proofs.ts +1408 -0
  461. package/ibc.core.connection.v1/types.ts +19 -0
  462. package/iconlake.icon/index.ts +6 -0
  463. package/iconlake.icon/module.ts +135 -0
  464. package/iconlake.icon/registry.ts +9 -0
  465. package/iconlake.icon/rest.ts +206 -0
  466. package/iconlake.icon/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  467. package/iconlake.icon/types/gogoproto/gogo.ts +2 -0
  468. package/iconlake.icon/types/google/api/annotations.ts +2 -0
  469. package/iconlake.icon/types/google/api/http.ts +589 -0
  470. package/iconlake.icon/types/google/protobuf/descriptor.ts +3753 -0
  471. package/iconlake.icon/types/iconlake/icon/genesis.ts +74 -0
  472. package/iconlake.icon/types/iconlake/icon/params.ts +58 -0
  473. package/iconlake.icon/types/iconlake/icon/query.ts +276 -0
  474. package/iconlake.icon/types/iconlake/icon/tx.ts +374 -0
  475. package/iconlake.icon/types.ts +11 -0
  476. package/iconlake.iconlake/index.ts +6 -0
  477. package/iconlake.iconlake/module.ts +133 -0
  478. package/iconlake.iconlake/registry.ts +9 -0
  479. package/iconlake.iconlake/rest.ts +342 -0
  480. package/iconlake.iconlake/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
  481. package/iconlake.iconlake/types/cosmos/base/v1beta1/coin.ts +261 -0
  482. package/iconlake.iconlake/types/cosmos_proto/cosmos.ts +247 -0
  483. package/iconlake.iconlake/types/gogoproto/gogo.ts +2 -0
  484. package/iconlake.iconlake/types/google/api/annotations.ts +2 -0
  485. package/iconlake.iconlake/types/google/api/http.ts +589 -0
  486. package/iconlake.iconlake/types/google/protobuf/descriptor.ts +3753 -0
  487. package/iconlake.iconlake/types/iconlake/iconlake/account.ts +140 -0
  488. package/iconlake.iconlake/types/iconlake/iconlake/genesis.ts +91 -0
  489. package/iconlake.iconlake/types/iconlake/iconlake/params.ts +58 -0
  490. package/iconlake.iconlake/types/iconlake/iconlake/query.ts +388 -0
  491. package/iconlake.iconlake/types/iconlake/iconlake/tx.ts +214 -0
  492. package/iconlake.iconlake/types.ts +9 -0
  493. package/index.ts +75 -0
  494. package/modules.ts +5 -0
  495. package/package.json +35 -0
  496. package/tsconfig.json +12 -0
  497. package/types.d.ts +21 -0
@@ -0,0 +1,589 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "google.api";
5
+
6
+ /**
7
+ * Defines the HTTP configuration for an API service. It contains a list of
8
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
9
+ * to one or more HTTP REST API methods.
10
+ */
11
+ export interface Http {
12
+ /**
13
+ * A list of HTTP configuration rules that apply to individual API methods.
14
+ *
15
+ * **NOTE:** All service configuration rules follow "last one wins" order.
16
+ */
17
+ rules: HttpRule[];
18
+ /**
19
+ * When set to true, URL path parmeters will be fully URI-decoded except in
20
+ * cases of single segment matches in reserved expansion, where "%2F" will be
21
+ * left encoded.
22
+ *
23
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
24
+ * segment matches.
25
+ */
26
+ fullyDecodeReservedExpansion: boolean;
27
+ }
28
+
29
+ /**
30
+ * `HttpRule` defines the mapping of an RPC method to one or more HTTP
31
+ * REST API methods. The mapping specifies how different portions of the RPC
32
+ * request message are mapped to URL path, URL query parameters, and
33
+ * HTTP request body. The mapping is typically specified as an
34
+ * `google.api.http` annotation on the RPC method,
35
+ * see "google/api/annotations.proto" for details.
36
+ *
37
+ * The mapping consists of a field specifying the path template and
38
+ * method kind. The path template can refer to fields in the request
39
+ * message, as in the example below which describes a REST GET
40
+ * operation on a resource collection of messages:
41
+ *
42
+ * service Messaging {
43
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
44
+ * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
45
+ * }
46
+ * }
47
+ * message GetMessageRequest {
48
+ * message SubMessage {
49
+ * string subfield = 1;
50
+ * }
51
+ * string message_id = 1; // mapped to the URL
52
+ * SubMessage sub = 2; // `sub.subfield` is url-mapped
53
+ * }
54
+ * message Message {
55
+ * string text = 1; // content of the resource
56
+ * }
57
+ *
58
+ * The same http annotation can alternatively be expressed inside the
59
+ * `GRPC API Configuration` YAML file.
60
+ *
61
+ * http:
62
+ * rules:
63
+ * - selector: <proto_package_name>.Messaging.GetMessage
64
+ * get: /v1/messages/{message_id}/{sub.subfield}
65
+ *
66
+ * This definition enables an automatic, bidrectional mapping of HTTP
67
+ * JSON to RPC. Example:
68
+ *
69
+ * HTTP | RPC
70
+ * -----|-----
71
+ * `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))`
72
+ *
73
+ * In general, not only fields but also field paths can be referenced
74
+ * from a path pattern. Fields mapped to the path pattern cannot be
75
+ * repeated and must have a primitive (non-message) type.
76
+ *
77
+ * Any fields in the request message which are not bound by the path
78
+ * pattern automatically become (optional) HTTP query
79
+ * parameters. Assume the following definition of the request message:
80
+ *
81
+ * service Messaging {
82
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
83
+ * option (google.api.http).get = "/v1/messages/{message_id}";
84
+ * }
85
+ * }
86
+ * message GetMessageRequest {
87
+ * message SubMessage {
88
+ * string subfield = 1;
89
+ * }
90
+ * string message_id = 1; // mapped to the URL
91
+ * int64 revision = 2; // becomes a parameter
92
+ * SubMessage sub = 3; // `sub.subfield` becomes a parameter
93
+ * }
94
+ *
95
+ * This enables a HTTP JSON to RPC mapping as below:
96
+ *
97
+ * HTTP | RPC
98
+ * -----|-----
99
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))`
100
+ *
101
+ * Note that fields which are mapped to HTTP parameters must have a
102
+ * primitive type or a repeated primitive type. Message types are not
103
+ * allowed. In the case of a repeated type, the parameter can be
104
+ * repeated in the URL, as in `...?param=A&param=B`.
105
+ *
106
+ * For HTTP method kinds which allow a request body, the `body` field
107
+ * specifies the mapping. Consider a REST update method on the
108
+ * message resource collection:
109
+ *
110
+ * service Messaging {
111
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
112
+ * option (google.api.http) = {
113
+ * put: "/v1/messages/{message_id}"
114
+ * body: "message"
115
+ * };
116
+ * }
117
+ * }
118
+ * message UpdateMessageRequest {
119
+ * string message_id = 1; // mapped to the URL
120
+ * Message message = 2; // mapped to the body
121
+ * }
122
+ *
123
+ * The following HTTP JSON to RPC mapping is enabled, where the
124
+ * representation of the JSON in the request body is determined by
125
+ * protos JSON encoding:
126
+ *
127
+ * HTTP | RPC
128
+ * -----|-----
129
+ * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
130
+ *
131
+ * The special name `*` can be used in the body mapping to define that
132
+ * every field not bound by the path template should be mapped to the
133
+ * request body. This enables the following alternative definition of
134
+ * the update method:
135
+ *
136
+ * service Messaging {
137
+ * rpc UpdateMessage(Message) returns (Message) {
138
+ * option (google.api.http) = {
139
+ * put: "/v1/messages/{message_id}"
140
+ * body: "*"
141
+ * };
142
+ * }
143
+ * }
144
+ * message Message {
145
+ * string message_id = 1;
146
+ * string text = 2;
147
+ * }
148
+ *
149
+ * The following HTTP JSON to RPC mapping is enabled:
150
+ *
151
+ * HTTP | RPC
152
+ * -----|-----
153
+ * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")`
154
+ *
155
+ * Note that when using `*` in the body mapping, it is not possible to
156
+ * have HTTP parameters, as all fields not bound by the path end in
157
+ * the body. This makes this option more rarely used in practice of
158
+ * defining REST APIs. The common usage of `*` is in custom methods
159
+ * which don't use the URL at all for transferring data.
160
+ *
161
+ * It is possible to define multiple HTTP methods for one RPC by using
162
+ * the `additional_bindings` option. Example:
163
+ *
164
+ * service Messaging {
165
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
166
+ * option (google.api.http) = {
167
+ * get: "/v1/messages/{message_id}"
168
+ * additional_bindings {
169
+ * get: "/v1/users/{user_id}/messages/{message_id}"
170
+ * }
171
+ * };
172
+ * }
173
+ * }
174
+ * message GetMessageRequest {
175
+ * string message_id = 1;
176
+ * string user_id = 2;
177
+ * }
178
+ *
179
+ * This enables the following two alternative HTTP JSON to RPC
180
+ * mappings:
181
+ *
182
+ * HTTP | RPC
183
+ * -----|-----
184
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
185
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")`
186
+ *
187
+ * # Rules for HTTP mapping
188
+ *
189
+ * The rules for mapping HTTP path, query parameters, and body fields
190
+ * to the request message are as follows:
191
+ *
192
+ * 1. The `body` field specifies either `*` or a field path, or is
193
+ * omitted. If omitted, it indicates there is no HTTP request body.
194
+ * 2. Leaf fields (recursive expansion of nested messages in the
195
+ * request) can be classified into three types:
196
+ * (a) Matched in the URL template.
197
+ * (b) Covered by body (if body is `*`, everything except (a) fields;
198
+ * else everything under the body field)
199
+ * (c) All other fields.
200
+ * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
201
+ * 4. Any body sent with an HTTP request can contain only (b) fields.
202
+ *
203
+ * The syntax of the path template is as follows:
204
+ *
205
+ * Template = "/" Segments [ Verb ] ;
206
+ * Segments = Segment { "/" Segment } ;
207
+ * Segment = "*" | "**" | LITERAL | Variable ;
208
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
209
+ * FieldPath = IDENT { "." IDENT } ;
210
+ * Verb = ":" LITERAL ;
211
+ *
212
+ * The syntax `*` matches a single path segment. The syntax `**` matches zero
213
+ * or more path segments, which must be the last part of the path except the
214
+ * `Verb`. The syntax `LITERAL` matches literal text in the path.
215
+ *
216
+ * The syntax `Variable` matches part of the URL path as specified by its
217
+ * template. A variable template must not contain other variables. If a variable
218
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
219
+ * is equivalent to `{var=*}`.
220
+ *
221
+ * If a variable contains exactly one path segment, such as `"{var}"` or
222
+ * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
223
+ * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
224
+ * Discovery Document as `{var}`.
225
+ *
226
+ * If a variable contains one or more path segments, such as `"{var=foo/*}"`
227
+ * or `"{var=**}"`, when such a variable is expanded into a URL path, all
228
+ * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
229
+ * show up in the Discovery Document as `{+var}`.
230
+ *
231
+ * NOTE: While the single segment variable matches the semantics of
232
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
233
+ * Simple String Expansion, the multi segment variable **does not** match
234
+ * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
235
+ * does not expand special characters like `?` and `#`, which would lead
236
+ * to invalid URLs.
237
+ *
238
+ * NOTE: the field paths in variables and in the `body` must not refer to
239
+ * repeated fields or map fields.
240
+ */
241
+ export interface HttpRule {
242
+ /**
243
+ * Selects methods to which this rule applies.
244
+ *
245
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
246
+ */
247
+ selector: string;
248
+ /** Used for listing and getting information about resources. */
249
+ get:
250
+ | string
251
+ | undefined;
252
+ /** Used for updating a resource. */
253
+ put:
254
+ | string
255
+ | undefined;
256
+ /** Used for creating a resource. */
257
+ post:
258
+ | string
259
+ | undefined;
260
+ /** Used for deleting a resource. */
261
+ delete:
262
+ | string
263
+ | undefined;
264
+ /** Used for updating a resource. */
265
+ patch:
266
+ | string
267
+ | undefined;
268
+ /**
269
+ * The custom pattern is used for specifying an HTTP method that is not
270
+ * included in the `pattern` field, such as HEAD, or "*" to leave the
271
+ * HTTP method unspecified for this rule. The wild-card rule is useful
272
+ * for services that provide content to Web (HTML) clients.
273
+ */
274
+ custom:
275
+ | CustomHttpPattern
276
+ | undefined;
277
+ /**
278
+ * The name of the request field whose value is mapped to the HTTP body, or
279
+ * `*` for mapping all fields not captured by the path pattern to the HTTP
280
+ * body. NOTE: the referred field must not be a repeated field and must be
281
+ * present at the top-level of request message type.
282
+ */
283
+ body: string;
284
+ /**
285
+ * Optional. The name of the response field whose value is mapped to the HTTP
286
+ * body of response. Other response fields are ignored. When
287
+ * not set, the response message will be used as HTTP body of response.
288
+ */
289
+ responseBody: string;
290
+ /**
291
+ * Additional HTTP bindings for the selector. Nested bindings must
292
+ * not contain an `additional_bindings` field themselves (that is,
293
+ * the nesting may only be one level deep).
294
+ */
295
+ additionalBindings: HttpRule[];
296
+ }
297
+
298
+ /** A custom pattern is used for defining custom HTTP verb. */
299
+ export interface CustomHttpPattern {
300
+ /** The name of this custom HTTP verb. */
301
+ kind: string;
302
+ /** The path matched by this custom verb. */
303
+ path: string;
304
+ }
305
+
306
+ function createBaseHttp(): Http {
307
+ return { rules: [], fullyDecodeReservedExpansion: false };
308
+ }
309
+
310
+ export const Http = {
311
+ encode(message: Http, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
312
+ for (const v of message.rules) {
313
+ HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();
314
+ }
315
+ if (message.fullyDecodeReservedExpansion === true) {
316
+ writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
317
+ }
318
+ return writer;
319
+ },
320
+
321
+ decode(input: _m0.Reader | Uint8Array, length?: number): Http {
322
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
323
+ let end = length === undefined ? reader.len : reader.pos + length;
324
+ const message = createBaseHttp();
325
+ while (reader.pos < end) {
326
+ const tag = reader.uint32();
327
+ switch (tag >>> 3) {
328
+ case 1:
329
+ message.rules.push(HttpRule.decode(reader, reader.uint32()));
330
+ break;
331
+ case 2:
332
+ message.fullyDecodeReservedExpansion = reader.bool();
333
+ break;
334
+ default:
335
+ reader.skipType(tag & 7);
336
+ break;
337
+ }
338
+ }
339
+ return message;
340
+ },
341
+
342
+ fromJSON(object: any): Http {
343
+ return {
344
+ rules: Array.isArray(object?.rules) ? object.rules.map((e: any) => HttpRule.fromJSON(e)) : [],
345
+ fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion)
346
+ ? Boolean(object.fullyDecodeReservedExpansion)
347
+ : false,
348
+ };
349
+ },
350
+
351
+ toJSON(message: Http): unknown {
352
+ const obj: any = {};
353
+ if (message.rules) {
354
+ obj.rules = message.rules.map((e) => e ? HttpRule.toJSON(e) : undefined);
355
+ } else {
356
+ obj.rules = [];
357
+ }
358
+ message.fullyDecodeReservedExpansion !== undefined
359
+ && (obj.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion);
360
+ return obj;
361
+ },
362
+
363
+ fromPartial<I extends Exact<DeepPartial<Http>, I>>(object: I): Http {
364
+ const message = createBaseHttp();
365
+ message.rules = object.rules?.map((e) => HttpRule.fromPartial(e)) || [];
366
+ message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
367
+ return message;
368
+ },
369
+ };
370
+
371
+ function createBaseHttpRule(): HttpRule {
372
+ return {
373
+ selector: "",
374
+ get: undefined,
375
+ put: undefined,
376
+ post: undefined,
377
+ delete: undefined,
378
+ patch: undefined,
379
+ custom: undefined,
380
+ body: "",
381
+ responseBody: "",
382
+ additionalBindings: [],
383
+ };
384
+ }
385
+
386
+ export const HttpRule = {
387
+ encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
388
+ if (message.selector !== "") {
389
+ writer.uint32(10).string(message.selector);
390
+ }
391
+ if (message.get !== undefined) {
392
+ writer.uint32(18).string(message.get);
393
+ }
394
+ if (message.put !== undefined) {
395
+ writer.uint32(26).string(message.put);
396
+ }
397
+ if (message.post !== undefined) {
398
+ writer.uint32(34).string(message.post);
399
+ }
400
+ if (message.delete !== undefined) {
401
+ writer.uint32(42).string(message.delete);
402
+ }
403
+ if (message.patch !== undefined) {
404
+ writer.uint32(50).string(message.patch);
405
+ }
406
+ if (message.custom !== undefined) {
407
+ CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim();
408
+ }
409
+ if (message.body !== "") {
410
+ writer.uint32(58).string(message.body);
411
+ }
412
+ if (message.responseBody !== "") {
413
+ writer.uint32(98).string(message.responseBody);
414
+ }
415
+ for (const v of message.additionalBindings) {
416
+ HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();
417
+ }
418
+ return writer;
419
+ },
420
+
421
+ decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule {
422
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
423
+ let end = length === undefined ? reader.len : reader.pos + length;
424
+ const message = createBaseHttpRule();
425
+ while (reader.pos < end) {
426
+ const tag = reader.uint32();
427
+ switch (tag >>> 3) {
428
+ case 1:
429
+ message.selector = reader.string();
430
+ break;
431
+ case 2:
432
+ message.get = reader.string();
433
+ break;
434
+ case 3:
435
+ message.put = reader.string();
436
+ break;
437
+ case 4:
438
+ message.post = reader.string();
439
+ break;
440
+ case 5:
441
+ message.delete = reader.string();
442
+ break;
443
+ case 6:
444
+ message.patch = reader.string();
445
+ break;
446
+ case 8:
447
+ message.custom = CustomHttpPattern.decode(reader, reader.uint32());
448
+ break;
449
+ case 7:
450
+ message.body = reader.string();
451
+ break;
452
+ case 12:
453
+ message.responseBody = reader.string();
454
+ break;
455
+ case 11:
456
+ message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
457
+ break;
458
+ default:
459
+ reader.skipType(tag & 7);
460
+ break;
461
+ }
462
+ }
463
+ return message;
464
+ },
465
+
466
+ fromJSON(object: any): HttpRule {
467
+ return {
468
+ selector: isSet(object.selector) ? String(object.selector) : "",
469
+ get: isSet(object.get) ? String(object.get) : undefined,
470
+ put: isSet(object.put) ? String(object.put) : undefined,
471
+ post: isSet(object.post) ? String(object.post) : undefined,
472
+ delete: isSet(object.delete) ? String(object.delete) : undefined,
473
+ patch: isSet(object.patch) ? String(object.patch) : undefined,
474
+ custom: isSet(object.custom) ? CustomHttpPattern.fromJSON(object.custom) : undefined,
475
+ body: isSet(object.body) ? String(object.body) : "",
476
+ responseBody: isSet(object.responseBody) ? String(object.responseBody) : "",
477
+ additionalBindings: Array.isArray(object?.additionalBindings)
478
+ ? object.additionalBindings.map((e: any) => HttpRule.fromJSON(e))
479
+ : [],
480
+ };
481
+ },
482
+
483
+ toJSON(message: HttpRule): unknown {
484
+ const obj: any = {};
485
+ message.selector !== undefined && (obj.selector = message.selector);
486
+ message.get !== undefined && (obj.get = message.get);
487
+ message.put !== undefined && (obj.put = message.put);
488
+ message.post !== undefined && (obj.post = message.post);
489
+ message.delete !== undefined && (obj.delete = message.delete);
490
+ message.patch !== undefined && (obj.patch = message.patch);
491
+ message.custom !== undefined
492
+ && (obj.custom = message.custom ? CustomHttpPattern.toJSON(message.custom) : undefined);
493
+ message.body !== undefined && (obj.body = message.body);
494
+ message.responseBody !== undefined && (obj.responseBody = message.responseBody);
495
+ if (message.additionalBindings) {
496
+ obj.additionalBindings = message.additionalBindings.map((e) => e ? HttpRule.toJSON(e) : undefined);
497
+ } else {
498
+ obj.additionalBindings = [];
499
+ }
500
+ return obj;
501
+ },
502
+
503
+ fromPartial<I extends Exact<DeepPartial<HttpRule>, I>>(object: I): HttpRule {
504
+ const message = createBaseHttpRule();
505
+ message.selector = object.selector ?? "";
506
+ message.get = object.get ?? undefined;
507
+ message.put = object.put ?? undefined;
508
+ message.post = object.post ?? undefined;
509
+ message.delete = object.delete ?? undefined;
510
+ message.patch = object.patch ?? undefined;
511
+ message.custom = (object.custom !== undefined && object.custom !== null)
512
+ ? CustomHttpPattern.fromPartial(object.custom)
513
+ : undefined;
514
+ message.body = object.body ?? "";
515
+ message.responseBody = object.responseBody ?? "";
516
+ message.additionalBindings = object.additionalBindings?.map((e) => HttpRule.fromPartial(e)) || [];
517
+ return message;
518
+ },
519
+ };
520
+
521
+ function createBaseCustomHttpPattern(): CustomHttpPattern {
522
+ return { kind: "", path: "" };
523
+ }
524
+
525
+ export const CustomHttpPattern = {
526
+ encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
527
+ if (message.kind !== "") {
528
+ writer.uint32(10).string(message.kind);
529
+ }
530
+ if (message.path !== "") {
531
+ writer.uint32(18).string(message.path);
532
+ }
533
+ return writer;
534
+ },
535
+
536
+ decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern {
537
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
538
+ let end = length === undefined ? reader.len : reader.pos + length;
539
+ const message = createBaseCustomHttpPattern();
540
+ while (reader.pos < end) {
541
+ const tag = reader.uint32();
542
+ switch (tag >>> 3) {
543
+ case 1:
544
+ message.kind = reader.string();
545
+ break;
546
+ case 2:
547
+ message.path = reader.string();
548
+ break;
549
+ default:
550
+ reader.skipType(tag & 7);
551
+ break;
552
+ }
553
+ }
554
+ return message;
555
+ },
556
+
557
+ fromJSON(object: any): CustomHttpPattern {
558
+ return { kind: isSet(object.kind) ? String(object.kind) : "", path: isSet(object.path) ? String(object.path) : "" };
559
+ },
560
+
561
+ toJSON(message: CustomHttpPattern): unknown {
562
+ const obj: any = {};
563
+ message.kind !== undefined && (obj.kind = message.kind);
564
+ message.path !== undefined && (obj.path = message.path);
565
+ return obj;
566
+ },
567
+
568
+ fromPartial<I extends Exact<DeepPartial<CustomHttpPattern>, I>>(object: I): CustomHttpPattern {
569
+ const message = createBaseCustomHttpPattern();
570
+ message.kind = object.kind ?? "";
571
+ message.path = object.path ?? "";
572
+ return message;
573
+ },
574
+ };
575
+
576
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
577
+
578
+ export type DeepPartial<T> = T extends Builtin ? T
579
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
580
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
581
+ : Partial<T>;
582
+
583
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
584
+ export type Exact<P, I extends P> = P extends Builtin ? P
585
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
586
+
587
+ function isSet(value: any): boolean {
588
+ return value !== null && value !== undefined;
589
+ }