@zoguxprotocol/proto 0.1.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 (422) hide show
  1. package/LICENSE +800 -0
  2. package/README.md +14 -0
  3. package/package.json +48 -0
  4. package/src/codegen/amino/amino.ts +1 -0
  5. package/src/codegen/amino/bundle.ts +3 -0
  6. package/src/codegen/cosmos/app/runtime/v1alpha1/module.ts +277 -0
  7. package/src/codegen/cosmos/app/v1alpha1/config.ts +265 -0
  8. package/src/codegen/cosmos/app/v1alpha1/module.ts +274 -0
  9. package/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +35 -0
  10. package/src/codegen/cosmos/app/v1alpha1/query.ts +99 -0
  11. package/src/codegen/cosmos/auth/module/v1/module.ts +159 -0
  12. package/src/codegen/cosmos/auth/v1beta1/auth.ts +365 -0
  13. package/src/codegen/cosmos/auth/v1beta1/genesis.ts +74 -0
  14. package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +130 -0
  15. package/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +194 -0
  16. package/src/codegen/cosmos/auth/v1beta1/query.ts +1221 -0
  17. package/src/codegen/cosmos/auth/v1beta1/tx.rpc.msg.ts +29 -0
  18. package/src/codegen/cosmos/auth/v1beta1/tx.ts +135 -0
  19. package/src/codegen/cosmos/authz/module/v1/module.ts +42 -0
  20. package/src/codegen/cosmos/authz/v1beta1/authz.ts +298 -0
  21. package/src/codegen/cosmos/authz/v1beta1/event.ts +170 -0
  22. package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
  23. package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
  24. package/src/codegen/cosmos/authz/v1beta1/query.rpc.Query.ts +71 -0
  25. package/src/codegen/cosmos/authz/v1beta1/query.ts +447 -0
  26. package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +56 -0
  27. package/src/codegen/cosmos/authz/v1beta1/tx.ts +390 -0
  28. package/src/codegen/cosmos/bank/module/v1/module.ts +76 -0
  29. package/src/codegen/cosmos/bank/v1beta1/authz.ts +87 -0
  30. package/src/codegen/cosmos/bank/v1beta1/bank.ts +630 -0
  31. package/src/codegen/cosmos/bank/v1beta1/genesis.ts +199 -0
  32. package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +237 -0
  33. package/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +243 -0
  34. package/src/codegen/cosmos/bank/v1beta1/query.ts +1727 -0
  35. package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +66 -0
  36. package/src/codegen/cosmos/bank/v1beta1/tx.ts +519 -0
  37. package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1147 -0
  38. package/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts +30 -0
  39. package/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts +49 -0
  40. package/src/codegen/cosmos/base/node/v1beta1/query.ts +276 -0
  41. package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +243 -0
  42. package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +221 -0
  43. package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1630 -0
  44. package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +113 -0
  45. package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +127 -0
  46. package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1486 -0
  47. package/src/codegen/cosmos/base/tendermint/v1beta1/types.ts +335 -0
  48. package/src/codegen/cosmos/base/v1beta1/coin.ts +278 -0
  49. package/src/codegen/cosmos/bundle.ts +578 -0
  50. package/src/codegen/cosmos/circuit/module/v1/module.ts +58 -0
  51. package/src/codegen/cosmos/circuit/v1/query.lcd.ts +49 -0
  52. package/src/codegen/cosmos/circuit/v1/query.rpc.Query.ts +65 -0
  53. package/src/codegen/cosmos/circuit/v1/query.ts +334 -0
  54. package/src/codegen/cosmos/circuit/v1/tx.rpc.msg.ts +50 -0
  55. package/src/codegen/cosmos/circuit/v1/tx.ts +409 -0
  56. package/src/codegen/cosmos/circuit/v1/types.ts +290 -0
  57. package/src/codegen/cosmos/consensus/module/v1/module.ts +58 -0
  58. package/src/codegen/cosmos/consensus/v1/query.lcd.ts +22 -0
  59. package/src/codegen/cosmos/consensus/v1/query.rpc.Query.ts +35 -0
  60. package/src/codegen/cosmos/consensus/v1/query.ts +103 -0
  61. package/src/codegen/cosmos/consensus/v1/tx.rpc.msg.ts +29 -0
  62. package/src/codegen/cosmos/consensus/v1/tx.ts +163 -0
  63. package/src/codegen/cosmos/crisis/module/v1/module.ts +72 -0
  64. package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +62 -0
  65. package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
  66. package/src/codegen/cosmos/crisis/v1beta1/tx.ts +255 -0
  67. package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
  68. package/src/codegen/cosmos/crypto/hd/v1/hd.ts +117 -0
  69. package/src/codegen/cosmos/crypto/keyring/v1/record.ts +326 -0
  70. package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
  71. package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
  72. package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
  73. package/src/codegen/cosmos/crypto/secp256r1/keys.ts +117 -0
  74. package/src/codegen/cosmos/distribution/module/v1/module.ts +71 -0
  75. package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +977 -0
  76. package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +752 -0
  77. package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +112 -0
  78. package/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +164 -0
  79. package/src/codegen/cosmos/distribution/v1beta1/query.ts +1300 -0
  80. package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +113 -0
  81. package/src/codegen/cosmos/distribution/v1beta1/tx.ts +907 -0
  82. package/src/codegen/cosmos/evidence/module/v1/module.ts +42 -0
  83. package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
  84. package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +59 -0
  85. package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +49 -0
  86. package/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +51 -0
  87. package/src/codegen/cosmos/evidence/v1beta1/query.ts +278 -0
  88. package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
  89. package/src/codegen/cosmos/evidence/v1beta1/tx.ts +135 -0
  90. package/src/codegen/cosmos/feegrant/module/v1/module.ts +42 -0
  91. package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +368 -0
  92. package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +58 -0
  93. package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +57 -0
  94. package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +67 -0
  95. package/src/codegen/cosmos/feegrant/v1beta1/query.ts +424 -0
  96. package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +54 -0
  97. package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +355 -0
  98. package/src/codegen/cosmos/genutil/module/v1/module.ts +42 -0
  99. package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +58 -0
  100. package/src/codegen/cosmos/gov/module/v1/module.ts +75 -0
  101. package/src/codegen/cosmos/gov/v1/genesis.ts +203 -0
  102. package/src/codegen/cosmos/gov/v1/gov.ts +1353 -0
  103. package/src/codegen/cosmos/gov/v1/query.lcd.ts +123 -0
  104. package/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +147 -0
  105. package/src/codegen/cosmos/gov/v1/query.ts +1210 -0
  106. package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +96 -0
  107. package/src/codegen/cosmos/gov/v1/tx.ts +1040 -0
  108. package/src/codegen/cosmos/gov/v1beta1/genesis.ts +143 -0
  109. package/src/codegen/cosmos/gov/v1beta1/gov.ts +1020 -0
  110. package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
  111. package/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +133 -0
  112. package/src/codegen/cosmos/gov/v1beta1/query.ts +1076 -0
  113. package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +58 -0
  114. package/src/codegen/cosmos/gov/v1beta1/tx.ts +539 -0
  115. package/src/codegen/cosmos/group/module/v1/module.ts +79 -0
  116. package/src/codegen/cosmos/group/v1/events.ts +633 -0
  117. package/src/codegen/cosmos/group/v1/genesis.ts +166 -0
  118. package/src/codegen/cosmos/group/v1/query.lcd.ts +207 -0
  119. package/src/codegen/cosmos/group/v1/query.rpc.Query.ts +229 -0
  120. package/src/codegen/cosmos/group/v1/query.ts +1840 -0
  121. package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +154 -0
  122. package/src/codegen/cosmos/group/v1/tx.ts +2004 -0
  123. package/src/codegen/cosmos/group/v1/types.ts +1528 -0
  124. package/src/codegen/cosmos/lcd.ts +114 -0
  125. package/src/codegen/cosmos/mint/module/v1/module.ts +71 -0
  126. package/src/codegen/cosmos/mint/v1beta1/genesis.ts +73 -0
  127. package/src/codegen/cosmos/mint/v1beta1/mint.ts +198 -0
  128. package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +38 -0
  129. package/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +63 -0
  130. package/src/codegen/cosmos/mint/v1beta1/query.ts +309 -0
  131. package/src/codegen/cosmos/mint/v1beta1/tx.rpc.msg.ts +29 -0
  132. package/src/codegen/cosmos/mint/v1beta1/tx.ts +135 -0
  133. package/src/codegen/cosmos/msg/textual/v1/textual.ts +1 -0
  134. package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
  135. package/src/codegen/cosmos/nft/module/v1/module.ts +42 -0
  136. package/src/codegen/cosmos/nft/v1beta1/event.ts +268 -0
  137. package/src/codegen/cosmos/nft/v1beta1/genesis.ts +143 -0
  138. package/src/codegen/cosmos/nft/v1beta1/nft.ts +255 -0
  139. package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +98 -0
  140. package/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +124 -0
  141. package/src/codegen/cosmos/nft/v1beta1/query.ts +886 -0
  142. package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +24 -0
  143. package/src/codegen/cosmos/nft/v1beta1/tx.ts +140 -0
  144. package/src/codegen/cosmos/orm/module/v1alpha1/module.ts +50 -0
  145. package/src/codegen/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +49 -0
  146. package/src/codegen/cosmos/orm/query/v1alpha1/query.ts +640 -0
  147. package/src/codegen/cosmos/orm/v1/orm.ts +356 -0
  148. package/src/codegen/cosmos/orm/v1alpha1/schema.ts +232 -0
  149. package/src/codegen/cosmos/params/module/v1/module.ts +42 -0
  150. package/src/codegen/cosmos/params/v1beta1/params.ts +166 -0
  151. package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +45 -0
  152. package/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +56 -0
  153. package/src/codegen/cosmos/params/v1beta1/query.ts +321 -0
  154. package/src/codegen/cosmos/query/v1/query.ts +1 -0
  155. package/src/codegen/cosmos/reflection/v1/reflection.ts +99 -0
  156. package/src/codegen/cosmos/rpc.query.ts +82 -0
  157. package/src/codegen/cosmos/rpc.tx.ts +61 -0
  158. package/src/codegen/cosmos/slashing/module/v1/module.ts +58 -0
  159. package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +309 -0
  160. package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +49 -0
  161. package/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +65 -0
  162. package/src/codegen/cosmos/slashing/v1beta1/query.ts +358 -0
  163. package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +249 -0
  164. package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +43 -0
  165. package/src/codegen/cosmos/slashing/v1beta1/tx.ts +230 -0
  166. package/src/codegen/cosmos/staking/module/v1/module.ts +104 -0
  167. package/src/codegen/cosmos/staking/v1beta1/authz.ts +244 -0
  168. package/src/codegen/cosmos/staking/v1beta1/genesis.ts +233 -0
  169. package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +220 -0
  170. package/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +260 -0
  171. package/src/codegen/cosmos/staking/v1beta1/query.ts +1910 -0
  172. package/src/codegen/cosmos/staking/v1beta1/staking.ts +2075 -0
  173. package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +102 -0
  174. package/src/codegen/cosmos/staking/v1beta1/tx.ts +1039 -0
  175. package/src/codegen/cosmos/store/internal/kv/v1beta1/kv.ts +124 -0
  176. package/src/codegen/cosmos/store/snapshots/v1/snapshot.ts +564 -0
  177. package/src/codegen/cosmos/store/streaming/abci/grpc.ts +231 -0
  178. package/src/codegen/cosmos/store/v1beta1/commit_info.ts +234 -0
  179. package/src/codegen/cosmos/store/v1beta1/listening.ts +196 -0
  180. package/src/codegen/cosmos/tx/config/v1/config.ts +78 -0
  181. package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +487 -0
  182. package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +77 -0
  183. package/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +167 -0
  184. package/src/codegen/cosmos/tx/v1beta1/service.ts +1536 -0
  185. package/src/codegen/cosmos/tx/v1beta1/tx.ts +1331 -0
  186. package/src/codegen/cosmos/upgrade/module/v1/module.ts +58 -0
  187. package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +71 -0
  188. package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +106 -0
  189. package/src/codegen/cosmos/upgrade/v1beta1/query.ts +617 -0
  190. package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +43 -0
  191. package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +241 -0
  192. package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +403 -0
  193. package/src/codegen/cosmos/vesting/module/v1/module.ts +42 -0
  194. package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +57 -0
  195. package/src/codegen/cosmos/vesting/v1beta1/tx.ts +445 -0
  196. package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +473 -0
  197. package/src/codegen/cosmos_proto/bundle.ts +3 -0
  198. package/src/codegen/cosmos_proto/cosmos.ts +255 -0
  199. package/src/codegen/gogoproto/bundle.ts +3 -0
  200. package/src/codegen/gogoproto/gogo.ts +1 -0
  201. package/src/codegen/google/api/annotations.ts +1 -0
  202. package/src/codegen/google/api/http.ts +920 -0
  203. package/src/codegen/google/bundle.ts +16 -0
  204. package/src/codegen/google/protobuf/any.ts +260 -0
  205. package/src/codegen/google/protobuf/descriptor.ts +3697 -0
  206. package/src/codegen/google/protobuf/duration.ts +201 -0
  207. package/src/codegen/google/protobuf/timestamp.ts +247 -0
  208. package/src/codegen/helpers.ts +242 -0
  209. package/src/codegen/index.ts +13 -0
  210. package/src/codegen/tendermint/abci/types.ts +4487 -0
  211. package/src/codegen/tendermint/bundle.ts +32 -0
  212. package/src/codegen/tendermint/crypto/keys.ts +69 -0
  213. package/src/codegen/tendermint/crypto/proof.ts +372 -0
  214. package/src/codegen/tendermint/libs/bits/types.ts +77 -0
  215. package/src/codegen/tendermint/p2p/types.ts +350 -0
  216. package/src/codegen/tendermint/types/block.ts +91 -0
  217. package/src/codegen/tendermint/types/evidence.ts +325 -0
  218. package/src/codegen/tendermint/types/params.ts +544 -0
  219. package/src/codegen/tendermint/types/types.ts +1558 -0
  220. package/src/codegen/tendermint/types/validator.ts +286 -0
  221. package/src/codegen/tendermint/version/types.ts +152 -0
  222. package/src/codegen/zogux/accountplus/accountplus.ts +152 -0
  223. package/src/codegen/zogux/accountplus/genesis.ts +186 -0
  224. package/src/codegen/zogux/accountplus/models.ts +103 -0
  225. package/src/codegen/zogux/accountplus/params.ts +62 -0
  226. package/src/codegen/zogux/accountplus/query.lcd.ts +46 -0
  227. package/src/codegen/zogux/accountplus/query.rpc.Query.ts +77 -0
  228. package/src/codegen/zogux/accountplus/query.ts +455 -0
  229. package/src/codegen/zogux/accountplus/tx.rpc.msg.ts +47 -0
  230. package/src/codegen/zogux/accountplus/tx.ts +460 -0
  231. package/src/codegen/zogux/affiliates/affiliates.ts +425 -0
  232. package/src/codegen/zogux/affiliates/genesis.ts +73 -0
  233. package/src/codegen/zogux/affiliates/query.lcd.ts +62 -0
  234. package/src/codegen/zogux/affiliates/query.rpc.Query.ts +105 -0
  235. package/src/codegen/zogux/affiliates/query.ts +747 -0
  236. package/src/codegen/zogux/affiliates/tx.rpc.msg.ts +64 -0
  237. package/src/codegen/zogux/affiliates/tx.ts +553 -0
  238. package/src/codegen/zogux/assets/asset.ts +167 -0
  239. package/src/codegen/zogux/assets/genesis.ts +58 -0
  240. package/src/codegen/zogux/assets/query.lcd.ts +41 -0
  241. package/src/codegen/zogux/assets/query.rpc.Query.ts +51 -0
  242. package/src/codegen/zogux/assets/query.ts +238 -0
  243. package/src/codegen/zogux/assets/tx.ts +1 -0
  244. package/src/codegen/zogux/blocktime/blocktime.ts +203 -0
  245. package/src/codegen/zogux/blocktime/genesis.ts +58 -0
  246. package/src/codegen/zogux/blocktime/params.ts +125 -0
  247. package/src/codegen/zogux/blocktime/query.lcd.ts +38 -0
  248. package/src/codegen/zogux/blocktime/query.rpc.Query.ts +77 -0
  249. package/src/codegen/zogux/blocktime/query.ts +428 -0
  250. package/src/codegen/zogux/blocktime/tx.rpc.msg.ts +34 -0
  251. package/src/codegen/zogux/blocktime/tx.ts +233 -0
  252. package/src/codegen/zogux/bridge/bridge_event.ts +171 -0
  253. package/src/codegen/zogux/bridge/bridge_event_info.ts +81 -0
  254. package/src/codegen/zogux/bridge/events.ts +434 -0
  255. package/src/codegen/zogux/bridge/genesis.ts +131 -0
  256. package/src/codegen/zogux/bridge/params.ts +404 -0
  257. package/src/codegen/zogux/bridge/query.lcd.ts +162 -0
  258. package/src/codegen/zogux/bridge/query.rpc.Query.ts +249 -0
  259. package/src/codegen/zogux/bridge/query.ts +1342 -0
  260. package/src/codegen/zogux/bridge/token.ts +1030 -0
  261. package/src/codegen/zogux/bridge/tss.ts +883 -0
  262. package/src/codegen/zogux/bridge/tx.rpc.msg.ts +159 -0
  263. package/src/codegen/zogux/bridge/tx.ts +542 -0
  264. package/src/codegen/zogux/bridge/withdrawal.ts +306 -0
  265. package/src/codegen/zogux/bundle.ts +441 -0
  266. package/src/codegen/zogux/clob/block_rate_limit_config.ts +216 -0
  267. package/src/codegen/zogux/clob/clob_pair.ts +396 -0
  268. package/src/codegen/zogux/clob/equity_tier_limit_config.ts +154 -0
  269. package/src/codegen/zogux/clob/finalize_block.ts +65 -0
  270. package/src/codegen/zogux/clob/genesis.ts +97 -0
  271. package/src/codegen/zogux/clob/liquidations.ts +288 -0
  272. package/src/codegen/zogux/clob/liquidations_config.ts +358 -0
  273. package/src/codegen/zogux/clob/matches.ts +552 -0
  274. package/src/codegen/zogux/clob/mev.ts +525 -0
  275. package/src/codegen/zogux/clob/operation.ts +200 -0
  276. package/src/codegen/zogux/clob/order.ts +1538 -0
  277. package/src/codegen/zogux/clob/order_removals.ts +228 -0
  278. package/src/codegen/zogux/clob/process_proposer_matches_events.ts +176 -0
  279. package/src/codegen/zogux/clob/query.lcd.ts +81 -0
  280. package/src/codegen/zogux/clob/query.rpc.Query.ts +166 -0
  281. package/src/codegen/zogux/clob/query.ts +1945 -0
  282. package/src/codegen/zogux/clob/streaming.ts +96 -0
  283. package/src/codegen/zogux/clob/tx.rpc.msg.ts +131 -0
  284. package/src/codegen/zogux/clob/tx.ts +1472 -0
  285. package/src/codegen/zogux/daemons/bridge/bridge.ts +104 -0
  286. package/src/codegen/zogux/daemons/liquidation/liquidation.ts +156 -0
  287. package/src/codegen/zogux/daemons/pricefeed/price_feed.ts +244 -0
  288. package/src/codegen/zogux/delaymsg/block_message_ids.ts +79 -0
  289. package/src/codegen/zogux/delaymsg/delayed_message.ts +87 -0
  290. package/src/codegen/zogux/delaymsg/genesis.ts +73 -0
  291. package/src/codegen/zogux/delaymsg/query.lcd.ts +38 -0
  292. package/src/codegen/zogux/delaymsg/query.rpc.Query.ts +63 -0
  293. package/src/codegen/zogux/delaymsg/query.ts +364 -0
  294. package/src/codegen/zogux/delaymsg/tx.rpc.msg.ts +27 -0
  295. package/src/codegen/zogux/delaymsg/tx.ts +142 -0
  296. package/src/codegen/zogux/epochs/epoch_info.ts +167 -0
  297. package/src/codegen/zogux/epochs/genesis.ts +58 -0
  298. package/src/codegen/zogux/epochs/query.lcd.ts +41 -0
  299. package/src/codegen/zogux/epochs/query.rpc.Query.ts +51 -0
  300. package/src/codegen/zogux/epochs/query.ts +237 -0
  301. package/src/codegen/zogux/feetiers/genesis.ts +74 -0
  302. package/src/codegen/zogux/feetiers/params.ts +184 -0
  303. package/src/codegen/zogux/feetiers/per_market_fee_discount.ts +111 -0
  304. package/src/codegen/zogux/feetiers/query.lcd.ts +71 -0
  305. package/src/codegen/zogux/feetiers/query.rpc.Query.ts +108 -0
  306. package/src/codegen/zogux/feetiers/query.ts +715 -0
  307. package/src/codegen/zogux/feetiers/staking_tier.ts +151 -0
  308. package/src/codegen/zogux/feetiers/tx.rpc.msg.ts +47 -0
  309. package/src/codegen/zogux/feetiers/tx.ts +351 -0
  310. package/src/codegen/zogux/govplus/genesis.ts +42 -0
  311. package/src/codegen/zogux/govplus/query.rpc.Query.ts +18 -0
  312. package/src/codegen/zogux/govplus/query.ts +1 -0
  313. package/src/codegen/zogux/govplus/tx.rpc.msg.ts +27 -0
  314. package/src/codegen/zogux/govplus/tx.ts +173 -0
  315. package/src/codegen/zogux/indexer/events/events.ts +4292 -0
  316. package/src/codegen/zogux/indexer/indexer_manager/event.ts +428 -0
  317. package/src/codegen/zogux/indexer/off_chain_updates/off_chain_updates.ts +594 -0
  318. package/src/codegen/zogux/indexer/protocol/v1/clob.ts +887 -0
  319. package/src/codegen/zogux/indexer/protocol/v1/perpetual.ts +52 -0
  320. package/src/codegen/zogux/indexer/protocol/v1/subaccount.ts +281 -0
  321. package/src/codegen/zogux/indexer/protocol/v1/vault.ts +69 -0
  322. package/src/codegen/zogux/indexer/redis/redis_order.ts +190 -0
  323. package/src/codegen/zogux/indexer/shared/removal_reason.ts +216 -0
  324. package/src/codegen/zogux/indexer/socks/messages.ts +656 -0
  325. package/src/codegen/zogux/lcd.ts +176 -0
  326. package/src/codegen/zogux/listing/genesis.ts +76 -0
  327. package/src/codegen/zogux/listing/params.ts +89 -0
  328. package/src/codegen/zogux/listing/query.lcd.ts +30 -0
  329. package/src/codegen/zogux/listing/query.rpc.Query.ts +49 -0
  330. package/src/codegen/zogux/listing/query.ts +194 -0
  331. package/src/codegen/zogux/listing/tx.rpc.msg.ts +57 -0
  332. package/src/codegen/zogux/listing/tx.ts +483 -0
  333. package/src/codegen/zogux/perpetuals/genesis.ts +83 -0
  334. package/src/codegen/zogux/perpetuals/params.ts +97 -0
  335. package/src/codegen/zogux/perpetuals/perpetual.ts +660 -0
  336. package/src/codegen/zogux/perpetuals/query.lcd.ts +91 -0
  337. package/src/codegen/zogux/perpetuals/query.rpc.Query.ts +123 -0
  338. package/src/codegen/zogux/perpetuals/query.ts +765 -0
  339. package/src/codegen/zogux/perpetuals/tx.rpc.msg.ts +70 -0
  340. package/src/codegen/zogux/perpetuals/tx.ts +649 -0
  341. package/src/codegen/zogux/prices/genesis.ts +71 -0
  342. package/src/codegen/zogux/prices/market_param.ts +162 -0
  343. package/src/codegen/zogux/prices/market_price.ts +95 -0
  344. package/src/codegen/zogux/prices/query.lcd.ts +75 -0
  345. package/src/codegen/zogux/prices/query.rpc.Query.ts +95 -0
  346. package/src/codegen/zogux/prices/query.ts +630 -0
  347. package/src/codegen/zogux/prices/streaming.ts +87 -0
  348. package/src/codegen/zogux/prices/tx.rpc.msg.ts +50 -0
  349. package/src/codegen/zogux/prices/tx.ts +405 -0
  350. package/src/codegen/zogux/ratelimit/capacity.ts +147 -0
  351. package/src/codegen/zogux/ratelimit/genesis.ts +59 -0
  352. package/src/codegen/zogux/ratelimit/limit_params.ts +174 -0
  353. package/src/codegen/zogux/ratelimit/pending_send_packet.ts +75 -0
  354. package/src/codegen/zogux/ratelimit/query.lcd.ts +46 -0
  355. package/src/codegen/zogux/ratelimit/query.rpc.Query.ts +63 -0
  356. package/src/codegen/zogux/ratelimit/query.ts +333 -0
  357. package/src/codegen/zogux/ratelimit/tx.rpc.msg.ts +24 -0
  358. package/src/codegen/zogux/ratelimit/tx.ts +112 -0
  359. package/src/codegen/zogux/revshare/genesis.ts +58 -0
  360. package/src/codegen/zogux/revshare/params.ts +93 -0
  361. package/src/codegen/zogux/revshare/query.lcd.ts +47 -0
  362. package/src/codegen/zogux/revshare/query.rpc.Query.ts +80 -0
  363. package/src/codegen/zogux/revshare/query.ts +415 -0
  364. package/src/codegen/zogux/revshare/revshare.ts +266 -0
  365. package/src/codegen/zogux/revshare/tx.rpc.msg.ts +60 -0
  366. package/src/codegen/zogux/revshare/tx.ts +462 -0
  367. package/src/codegen/zogux/rewards/genesis.ts +59 -0
  368. package/src/codegen/zogux/rewards/params.ts +122 -0
  369. package/src/codegen/zogux/rewards/query.lcd.ts +22 -0
  370. package/src/codegen/zogux/rewards/query.rpc.Query.ts +35 -0
  371. package/src/codegen/zogux/rewards/query.ts +98 -0
  372. package/src/codegen/zogux/rewards/reward_share.ts +75 -0
  373. package/src/codegen/zogux/rewards/tx.rpc.msg.ts +24 -0
  374. package/src/codegen/zogux/rewards/tx.ts +112 -0
  375. package/src/codegen/zogux/rpc.query.ts +106 -0
  376. package/src/codegen/zogux/rpc.tx.ts +82 -0
  377. package/src/codegen/zogux/sending/genesis.ts +42 -0
  378. package/src/codegen/zogux/sending/query.rpc.Query.ts +18 -0
  379. package/src/codegen/zogux/sending/query.ts +1 -0
  380. package/src/codegen/zogux/sending/transfer.ts +420 -0
  381. package/src/codegen/zogux/sending/tx.rpc.msg.ts +64 -0
  382. package/src/codegen/zogux/sending/tx.ts +237 -0
  383. package/src/codegen/zogux/stats/genesis.ts +59 -0
  384. package/src/codegen/zogux/stats/params.ts +59 -0
  385. package/src/codegen/zogux/stats/query.lcd.ts +54 -0
  386. package/src/codegen/zogux/stats/query.rpc.Query.ts +77 -0
  387. package/src/codegen/zogux/stats/query.ts +412 -0
  388. package/src/codegen/zogux/stats/stats.ts +593 -0
  389. package/src/codegen/zogux/stats/tx.rpc.msg.ts +24 -0
  390. package/src/codegen/zogux/stats/tx.ts +112 -0
  391. package/src/codegen/zogux/subaccounts/asset_position.ts +96 -0
  392. package/src/codegen/zogux/subaccounts/genesis.ts +58 -0
  393. package/src/codegen/zogux/subaccounts/leverage.ts +134 -0
  394. package/src/codegen/zogux/subaccounts/perpetual_position.ts +109 -0
  395. package/src/codegen/zogux/subaccounts/query.lcd.ts +58 -0
  396. package/src/codegen/zogux/subaccounts/query.rpc.Query.ts +82 -0
  397. package/src/codegen/zogux/subaccounts/query.ts +527 -0
  398. package/src/codegen/zogux/subaccounts/streaming.ts +266 -0
  399. package/src/codegen/zogux/subaccounts/subaccount.ts +190 -0
  400. package/src/codegen/zogux/token/genesis.ts +73 -0
  401. package/src/codegen/zogux/token/params.ts +196 -0
  402. package/src/codegen/zogux/token/query.lcd.ts +38 -0
  403. package/src/codegen/zogux/token/query.rpc.Query.ts +63 -0
  404. package/src/codegen/zogux/token/query.ts +342 -0
  405. package/src/codegen/zogux/token/tx.rpc.msg.ts +84 -0
  406. package/src/codegen/zogux/token/tx.ts +828 -0
  407. package/src/codegen/zogux/vault/genesis.ts +433 -0
  408. package/src/codegen/zogux/vault/params.ts +523 -0
  409. package/src/codegen/zogux/vault/query.lcd.ts +91 -0
  410. package/src/codegen/zogux/vault/query.rpc.Query.ts +137 -0
  411. package/src/codegen/zogux/vault/query.ts +1162 -0
  412. package/src/codegen/zogux/vault/share.ts +271 -0
  413. package/src/codegen/zogux/vault/tx.rpc.msg.ts +97 -0
  414. package/src/codegen/zogux/vault/tx.ts +1189 -0
  415. package/src/codegen/zogux/vault/vault.ts +185 -0
  416. package/src/codegen/zogux/vest/genesis.ts +59 -0
  417. package/src/codegen/zogux/vest/query.lcd.ts +30 -0
  418. package/src/codegen/zogux/vest/query.rpc.Query.ts +35 -0
  419. package/src/codegen/zogux/vest/query.ts +114 -0
  420. package/src/codegen/zogux/vest/tx.rpc.msg.ts +34 -0
  421. package/src/codegen/zogux/vest/tx.ts +223 -0
  422. package/src/codegen/zogux/vest/vest_entry.ts +127 -0
@@ -0,0 +1,920 @@
1
+ import * as _m0 from "protobufjs/minimal";
2
+ import { DeepPartial } from "../../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
+
9
+ export interface Http {
10
+ /**
11
+ * A list of HTTP configuration rules that apply to individual API methods.
12
+ *
13
+ * **NOTE:** All service configuration rules follow "last one wins" order.
14
+ */
15
+ rules: HttpRule[];
16
+ /**
17
+ * When set to true, URL path parameters will be fully URI-decoded except in
18
+ * cases of single segment matches in reserved expansion, where "%2F" will be
19
+ * left encoded.
20
+ *
21
+ * The default behavior is to not decode RFC 6570 reserved characters in multi
22
+ * segment matches.
23
+ */
24
+
25
+ fullyDecodeReservedExpansion: boolean;
26
+ }
27
+ /**
28
+ * Defines the HTTP configuration for an API service. It contains a list of
29
+ * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
30
+ * to one or more HTTP REST API methods.
31
+ */
32
+
33
+ export interface HttpSDKType {
34
+ rules: HttpRuleSDKType[];
35
+ fully_decode_reserved_expansion: boolean;
36
+ }
37
+ /**
38
+ * # gRPC Transcoding
39
+ *
40
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
41
+ * more HTTP REST endpoints. It allows developers to build a single API service
42
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
43
+ * APIs](https://github.com/googleapis/googleapis),
44
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
45
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
46
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
47
+ * and use it for large scale production services.
48
+ *
49
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
50
+ * how different portions of the gRPC request message are mapped to the URL
51
+ * path, URL query parameters, and HTTP request body. It also controls how the
52
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
53
+ * typically specified as an `google.api.http` annotation on the gRPC method.
54
+ *
55
+ * Each mapping specifies a URL path template and an HTTP method. The path
56
+ * template may refer to one or more fields in the gRPC request message, as long
57
+ * as each field is a non-repeated field with a primitive (non-message) type.
58
+ * The path template controls how fields of the request message are mapped to
59
+ * the URL path.
60
+ *
61
+ * Example:
62
+ *
63
+ * service Messaging {
64
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
65
+ * option (google.api.http) = {
66
+ * get: "/v1/{name=messages/*}"
67
+ * };
68
+ * }
69
+ * }
70
+ * message GetMessageRequest {
71
+ * string name = 1; // Mapped to URL path.
72
+ * }
73
+ * message Message {
74
+ * string text = 1; // The resource content.
75
+ * }
76
+ *
77
+ * This enables an HTTP REST to gRPC mapping as below:
78
+ *
79
+ * HTTP | gRPC
80
+ * -----|-----
81
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
82
+ *
83
+ * Any fields in the request message which are not bound by the path template
84
+ * automatically become HTTP query parameters if there is no HTTP request body.
85
+ * For example:
86
+ *
87
+ * service Messaging {
88
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
89
+ * option (google.api.http) = {
90
+ * get:"/v1/messages/{message_id}"
91
+ * };
92
+ * }
93
+ * }
94
+ * message GetMessageRequest {
95
+ * message SubMessage {
96
+ * string subfield = 1;
97
+ * }
98
+ * string message_id = 1; // Mapped to URL path.
99
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
100
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
101
+ * }
102
+ *
103
+ * This enables a HTTP JSON to RPC mapping as below:
104
+ *
105
+ * HTTP | gRPC
106
+ * -----|-----
107
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
108
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
109
+ * "foo"))`
110
+ *
111
+ * Note that fields which are mapped to URL query parameters must have a
112
+ * primitive type or a repeated primitive type or a non-repeated message type.
113
+ * In the case of a repeated type, the parameter can be repeated in the URL
114
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
115
+ * message is mapped to a separate parameter, such as
116
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
117
+ *
118
+ * For HTTP methods that allow a request body, the `body` field
119
+ * specifies the mapping. Consider a REST update method on the
120
+ * message resource collection:
121
+ *
122
+ * service Messaging {
123
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
124
+ * option (google.api.http) = {
125
+ * patch: "/v1/messages/{message_id}"
126
+ * body: "message"
127
+ * };
128
+ * }
129
+ * }
130
+ * message UpdateMessageRequest {
131
+ * string message_id = 1; // mapped to the URL
132
+ * Message message = 2; // mapped to the body
133
+ * }
134
+ *
135
+ * The following HTTP JSON to RPC mapping is enabled, where the
136
+ * representation of the JSON in the request body is determined by
137
+ * protos JSON encoding:
138
+ *
139
+ * HTTP | gRPC
140
+ * -----|-----
141
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
142
+ * "123456" message { text: "Hi!" })`
143
+ *
144
+ * The special name `*` can be used in the body mapping to define that
145
+ * every field not bound by the path template should be mapped to the
146
+ * request body. This enables the following alternative definition of
147
+ * the update method:
148
+ *
149
+ * service Messaging {
150
+ * rpc UpdateMessage(Message) returns (Message) {
151
+ * option (google.api.http) = {
152
+ * patch: "/v1/messages/{message_id}"
153
+ * body: "*"
154
+ * };
155
+ * }
156
+ * }
157
+ * message Message {
158
+ * string message_id = 1;
159
+ * string text = 2;
160
+ * }
161
+ *
162
+ *
163
+ * The following HTTP JSON to RPC mapping is enabled:
164
+ *
165
+ * HTTP | gRPC
166
+ * -----|-----
167
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
168
+ * "123456" text: "Hi!")`
169
+ *
170
+ * Note that when using `*` in the body mapping, it is not possible to
171
+ * have HTTP parameters, as all fields not bound by the path end in
172
+ * the body. This makes this option more rarely used in practice when
173
+ * defining REST APIs. The common usage of `*` is in custom methods
174
+ * which don't use the URL at all for transferring data.
175
+ *
176
+ * It is possible to define multiple HTTP methods for one RPC by using
177
+ * the `additional_bindings` option. Example:
178
+ *
179
+ * service Messaging {
180
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
181
+ * option (google.api.http) = {
182
+ * get: "/v1/messages/{message_id}"
183
+ * additional_bindings {
184
+ * get: "/v1/users/{user_id}/messages/{message_id}"
185
+ * }
186
+ * };
187
+ * }
188
+ * }
189
+ * message GetMessageRequest {
190
+ * string message_id = 1;
191
+ * string user_id = 2;
192
+ * }
193
+ *
194
+ * This enables the following two alternative HTTP JSON to RPC mappings:
195
+ *
196
+ * HTTP | gRPC
197
+ * -----|-----
198
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
199
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
200
+ * "123456")`
201
+ *
202
+ * ## Rules for HTTP mapping
203
+ *
204
+ * 1. Leaf request fields (recursive expansion nested messages in the request
205
+ * message) are classified into three categories:
206
+ * - Fields referred by the path template. They are passed via the URL path.
207
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
208
+ * are passed via the HTTP
209
+ * request body.
210
+ * - All other fields are passed via the URL query parameters, and the
211
+ * parameter name is the field path in the request message. A repeated
212
+ * field can be represented as multiple query parameters under the same
213
+ * name.
214
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
215
+ * query parameter, all fields
216
+ * are passed via URL path and HTTP request body.
217
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
218
+ * request body, all
219
+ * fields are passed via URL path and URL query parameters.
220
+ *
221
+ * ### Path template syntax
222
+ *
223
+ * Template = "/" Segments [ Verb ] ;
224
+ * Segments = Segment { "/" Segment } ;
225
+ * Segment = "*" | "**" | LITERAL | Variable ;
226
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
227
+ * FieldPath = IDENT { "." IDENT } ;
228
+ * Verb = ":" LITERAL ;
229
+ *
230
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
231
+ * zero or more URL path segments, which must be the last part of the URL path
232
+ * except the `Verb`.
233
+ *
234
+ * The syntax `Variable` matches part of the URL path as specified by its
235
+ * template. A variable template must not contain other variables. If a variable
236
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
237
+ * is equivalent to `{var=*}`.
238
+ *
239
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
240
+ * contains any reserved character, such characters should be percent-encoded
241
+ * before the matching.
242
+ *
243
+ * If a variable contains exactly one path segment, such as `"{var}"` or
244
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
245
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
246
+ * server side does the reverse decoding. Such variables show up in the
247
+ * [Discovery
248
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
249
+ * `{var}`.
250
+ *
251
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
252
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
253
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
254
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
255
+ * unchanged. Such variables show up in the
256
+ * [Discovery
257
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
258
+ * `{+var}`.
259
+ *
260
+ * ## Using gRPC API Service Configuration
261
+ *
262
+ * gRPC API Service Configuration (service config) is a configuration language
263
+ * for configuring a gRPC service to become a user-facing product. The
264
+ * service config is simply the YAML representation of the `google.api.Service`
265
+ * proto message.
266
+ *
267
+ * As an alternative to annotating your proto file, you can configure gRPC
268
+ * transcoding in your service config YAML files. You do this by specifying a
269
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
270
+ * effect as the proto annotation. This can be particularly useful if you
271
+ * have a proto that is reused in multiple services. Note that any transcoding
272
+ * specified in the service config will override any matching transcoding
273
+ * configuration in the proto.
274
+ *
275
+ * Example:
276
+ *
277
+ * http:
278
+ * rules:
279
+ * # Selects a gRPC method and applies HttpRule to it.
280
+ * - selector: example.v1.Messaging.GetMessage
281
+ * get: /v1/messages/{message_id}/{sub.subfield}
282
+ *
283
+ * ## Special notes
284
+ *
285
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
286
+ * proto to JSON conversion must follow the [proto3
287
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
288
+ *
289
+ * While the single segment variable follows the semantics of
290
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
291
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
292
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
293
+ * does not expand special characters like `?` and `#`, which would lead
294
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
295
+ * for multi segment variables.
296
+ *
297
+ * The path variables **must not** refer to any repeated or mapped field,
298
+ * because client libraries are not capable of handling such variable expansion.
299
+ *
300
+ * The path variables **must not** capture the leading "/" character. The reason
301
+ * is that the most common use case "{var}" does not capture the leading "/"
302
+ * character. For consistency, all path variables must share the same behavior.
303
+ *
304
+ * Repeated message fields must not be mapped to URL query parameters, because
305
+ * no client library can support such complicated mapping.
306
+ *
307
+ * If an API needs to use a JSON array for request or response body, it can map
308
+ * the request or response body to a repeated field. However, some gRPC
309
+ * Transcoding implementations may not support this feature.
310
+ */
311
+
312
+ export interface HttpRule {
313
+ /**
314
+ * Selects a method to which this rule applies.
315
+ *
316
+ * Refer to [selector][google.api.DocumentationRule.selector] for syntax
317
+ * details.
318
+ */
319
+ selector: string;
320
+ /**
321
+ * Maps to HTTP GET. Used for listing and getting information about
322
+ * resources.
323
+ */
324
+
325
+ get?: string;
326
+ /** Maps to HTTP PUT. Used for replacing a resource. */
327
+
328
+ put?: string;
329
+ /** Maps to HTTP POST. Used for creating a resource or performing an action. */
330
+
331
+ post?: string;
332
+ /** Maps to HTTP DELETE. Used for deleting a resource. */
333
+
334
+ delete?: string;
335
+ /** Maps to HTTP PATCH. Used for updating a resource. */
336
+
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
+
345
+ custom?: CustomHttpPattern;
346
+ /**
347
+ * The name of the request field whose value is mapped to the HTTP request
348
+ * body, or `*` for mapping all request fields not captured by the path
349
+ * pattern to the HTTP body, or omitted for not having any HTTP request body.
350
+ *
351
+ * NOTE: the referred field must be present at the top-level of the request
352
+ * message type.
353
+ */
354
+
355
+ body: string;
356
+ /**
357
+ * Optional. The name of the response field whose value is mapped to the HTTP
358
+ * response body. When omitted, the entire response message will be used
359
+ * as the HTTP response body.
360
+ *
361
+ * NOTE: The referred field must be present at the top-level of the response
362
+ * message type.
363
+ */
364
+
365
+ responseBody: string;
366
+ /**
367
+ * Additional HTTP bindings for the selector. Nested bindings must
368
+ * not contain an `additional_bindings` field themselves (that is,
369
+ * the nesting may only be one level deep).
370
+ */
371
+
372
+ additionalBindings: HttpRule[];
373
+ }
374
+ /**
375
+ * # gRPC Transcoding
376
+ *
377
+ * gRPC Transcoding is a feature for mapping between a gRPC method and one or
378
+ * more HTTP REST endpoints. It allows developers to build a single API service
379
+ * that supports both gRPC APIs and REST APIs. Many systems, including [Google
380
+ * APIs](https://github.com/googleapis/googleapis),
381
+ * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
382
+ * Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
383
+ * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
384
+ * and use it for large scale production services.
385
+ *
386
+ * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
387
+ * how different portions of the gRPC request message are mapped to the URL
388
+ * path, URL query parameters, and HTTP request body. It also controls how the
389
+ * gRPC response message is mapped to the HTTP response body. `HttpRule` is
390
+ * typically specified as an `google.api.http` annotation on the gRPC method.
391
+ *
392
+ * Each mapping specifies a URL path template and an HTTP method. The path
393
+ * template may refer to one or more fields in the gRPC request message, as long
394
+ * as each field is a non-repeated field with a primitive (non-message) type.
395
+ * The path template controls how fields of the request message are mapped to
396
+ * the URL path.
397
+ *
398
+ * Example:
399
+ *
400
+ * service Messaging {
401
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
402
+ * option (google.api.http) = {
403
+ * get: "/v1/{name=messages/*}"
404
+ * };
405
+ * }
406
+ * }
407
+ * message GetMessageRequest {
408
+ * string name = 1; // Mapped to URL path.
409
+ * }
410
+ * message Message {
411
+ * string text = 1; // The resource content.
412
+ * }
413
+ *
414
+ * This enables an HTTP REST to gRPC mapping as below:
415
+ *
416
+ * HTTP | gRPC
417
+ * -----|-----
418
+ * `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
419
+ *
420
+ * Any fields in the request message which are not bound by the path template
421
+ * automatically become HTTP query parameters if there is no HTTP request body.
422
+ * For example:
423
+ *
424
+ * service Messaging {
425
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
426
+ * option (google.api.http) = {
427
+ * get:"/v1/messages/{message_id}"
428
+ * };
429
+ * }
430
+ * }
431
+ * message GetMessageRequest {
432
+ * message SubMessage {
433
+ * string subfield = 1;
434
+ * }
435
+ * string message_id = 1; // Mapped to URL path.
436
+ * int64 revision = 2; // Mapped to URL query parameter `revision`.
437
+ * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
438
+ * }
439
+ *
440
+ * This enables a HTTP JSON to RPC mapping as below:
441
+ *
442
+ * HTTP | gRPC
443
+ * -----|-----
444
+ * `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
445
+ * `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
446
+ * "foo"))`
447
+ *
448
+ * Note that fields which are mapped to URL query parameters must have a
449
+ * primitive type or a repeated primitive type or a non-repeated message type.
450
+ * In the case of a repeated type, the parameter can be repeated in the URL
451
+ * as `...?param=A&param=B`. In the case of a message type, each field of the
452
+ * message is mapped to a separate parameter, such as
453
+ * `...?foo.a=A&foo.b=B&foo.c=C`.
454
+ *
455
+ * For HTTP methods that allow a request body, the `body` field
456
+ * specifies the mapping. Consider a REST update method on the
457
+ * message resource collection:
458
+ *
459
+ * service Messaging {
460
+ * rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
461
+ * option (google.api.http) = {
462
+ * patch: "/v1/messages/{message_id}"
463
+ * body: "message"
464
+ * };
465
+ * }
466
+ * }
467
+ * message UpdateMessageRequest {
468
+ * string message_id = 1; // mapped to the URL
469
+ * Message message = 2; // mapped to the body
470
+ * }
471
+ *
472
+ * The following HTTP JSON to RPC mapping is enabled, where the
473
+ * representation of the JSON in the request body is determined by
474
+ * protos JSON encoding:
475
+ *
476
+ * HTTP | gRPC
477
+ * -----|-----
478
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
479
+ * "123456" message { text: "Hi!" })`
480
+ *
481
+ * The special name `*` can be used in the body mapping to define that
482
+ * every field not bound by the path template should be mapped to the
483
+ * request body. This enables the following alternative definition of
484
+ * the update method:
485
+ *
486
+ * service Messaging {
487
+ * rpc UpdateMessage(Message) returns (Message) {
488
+ * option (google.api.http) = {
489
+ * patch: "/v1/messages/{message_id}"
490
+ * body: "*"
491
+ * };
492
+ * }
493
+ * }
494
+ * message Message {
495
+ * string message_id = 1;
496
+ * string text = 2;
497
+ * }
498
+ *
499
+ *
500
+ * The following HTTP JSON to RPC mapping is enabled:
501
+ *
502
+ * HTTP | gRPC
503
+ * -----|-----
504
+ * `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
505
+ * "123456" text: "Hi!")`
506
+ *
507
+ * Note that when using `*` in the body mapping, it is not possible to
508
+ * have HTTP parameters, as all fields not bound by the path end in
509
+ * the body. This makes this option more rarely used in practice when
510
+ * defining REST APIs. The common usage of `*` is in custom methods
511
+ * which don't use the URL at all for transferring data.
512
+ *
513
+ * It is possible to define multiple HTTP methods for one RPC by using
514
+ * the `additional_bindings` option. Example:
515
+ *
516
+ * service Messaging {
517
+ * rpc GetMessage(GetMessageRequest) returns (Message) {
518
+ * option (google.api.http) = {
519
+ * get: "/v1/messages/{message_id}"
520
+ * additional_bindings {
521
+ * get: "/v1/users/{user_id}/messages/{message_id}"
522
+ * }
523
+ * };
524
+ * }
525
+ * }
526
+ * message GetMessageRequest {
527
+ * string message_id = 1;
528
+ * string user_id = 2;
529
+ * }
530
+ *
531
+ * This enables the following two alternative HTTP JSON to RPC mappings:
532
+ *
533
+ * HTTP | gRPC
534
+ * -----|-----
535
+ * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
536
+ * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
537
+ * "123456")`
538
+ *
539
+ * ## Rules for HTTP mapping
540
+ *
541
+ * 1. Leaf request fields (recursive expansion nested messages in the request
542
+ * message) are classified into three categories:
543
+ * - Fields referred by the path template. They are passed via the URL path.
544
+ * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
545
+ * are passed via the HTTP
546
+ * request body.
547
+ * - All other fields are passed via the URL query parameters, and the
548
+ * parameter name is the field path in the request message. A repeated
549
+ * field can be represented as multiple query parameters under the same
550
+ * name.
551
+ * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
552
+ * query parameter, all fields
553
+ * are passed via URL path and HTTP request body.
554
+ * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
555
+ * request body, all
556
+ * fields are passed via URL path and URL query parameters.
557
+ *
558
+ * ### Path template syntax
559
+ *
560
+ * Template = "/" Segments [ Verb ] ;
561
+ * Segments = Segment { "/" Segment } ;
562
+ * Segment = "*" | "**" | LITERAL | Variable ;
563
+ * Variable = "{" FieldPath [ "=" Segments ] "}" ;
564
+ * FieldPath = IDENT { "." IDENT } ;
565
+ * Verb = ":" LITERAL ;
566
+ *
567
+ * The syntax `*` matches a single URL path segment. The syntax `**` matches
568
+ * zero or more URL path segments, which must be the last part of the URL path
569
+ * except the `Verb`.
570
+ *
571
+ * The syntax `Variable` matches part of the URL path as specified by its
572
+ * template. A variable template must not contain other variables. If a variable
573
+ * matches a single path segment, its template may be omitted, e.g. `{var}`
574
+ * is equivalent to `{var=*}`.
575
+ *
576
+ * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
577
+ * contains any reserved character, such characters should be percent-encoded
578
+ * before the matching.
579
+ *
580
+ * If a variable contains exactly one path segment, such as `"{var}"` or
581
+ * `"{var=*}"`, when such a variable is expanded into a URL path on the client
582
+ * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
583
+ * server side does the reverse decoding. Such variables show up in the
584
+ * [Discovery
585
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
586
+ * `{var}`.
587
+ *
588
+ * If a variable contains multiple path segments, such as `"{var=foo/*}"`
589
+ * or `"{var=**}"`, when such a variable is expanded into a URL path on the
590
+ * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
591
+ * The server side does the reverse decoding, except "%2F" and "%2f" are left
592
+ * unchanged. Such variables show up in the
593
+ * [Discovery
594
+ * Document](https://developers.google.com/discovery/v1/reference/apis) as
595
+ * `{+var}`.
596
+ *
597
+ * ## Using gRPC API Service Configuration
598
+ *
599
+ * gRPC API Service Configuration (service config) is a configuration language
600
+ * for configuring a gRPC service to become a user-facing product. The
601
+ * service config is simply the YAML representation of the `google.api.Service`
602
+ * proto message.
603
+ *
604
+ * As an alternative to annotating your proto file, you can configure gRPC
605
+ * transcoding in your service config YAML files. You do this by specifying a
606
+ * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
607
+ * effect as the proto annotation. This can be particularly useful if you
608
+ * have a proto that is reused in multiple services. Note that any transcoding
609
+ * specified in the service config will override any matching transcoding
610
+ * configuration in the proto.
611
+ *
612
+ * Example:
613
+ *
614
+ * http:
615
+ * rules:
616
+ * # Selects a gRPC method and applies HttpRule to it.
617
+ * - selector: example.v1.Messaging.GetMessage
618
+ * get: /v1/messages/{message_id}/{sub.subfield}
619
+ *
620
+ * ## Special notes
621
+ *
622
+ * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
623
+ * proto to JSON conversion must follow the [proto3
624
+ * specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
625
+ *
626
+ * While the single segment variable follows the semantics of
627
+ * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
628
+ * Expansion, the multi segment variable **does not** follow RFC 6570 Section
629
+ * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
630
+ * does not expand special characters like `?` and `#`, which would lead
631
+ * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
632
+ * for multi segment variables.
633
+ *
634
+ * The path variables **must not** refer to any repeated or mapped field,
635
+ * because client libraries are not capable of handling such variable expansion.
636
+ *
637
+ * The path variables **must not** capture the leading "/" character. The reason
638
+ * is that the most common use case "{var}" does not capture the leading "/"
639
+ * character. For consistency, all path variables must share the same behavior.
640
+ *
641
+ * Repeated message fields must not be mapped to URL query parameters, because
642
+ * no client library can support such complicated mapping.
643
+ *
644
+ * If an API needs to use a JSON array for request or response body, it can map
645
+ * the request or response body to a repeated field. However, some gRPC
646
+ * Transcoding implementations may not support this feature.
647
+ */
648
+
649
+ export interface HttpRuleSDKType {
650
+ selector: string;
651
+ get?: string;
652
+ put?: string;
653
+ post?: string;
654
+ delete?: string;
655
+ patch?: string;
656
+ custom?: CustomHttpPatternSDKType;
657
+ body: string;
658
+ response_body: string;
659
+ additional_bindings: HttpRuleSDKType[];
660
+ }
661
+ /** A custom pattern is used for defining custom HTTP verb. */
662
+
663
+ export interface CustomHttpPattern {
664
+ /** The name of this custom HTTP verb. */
665
+ kind: string;
666
+ /** The path matched by this custom verb. */
667
+
668
+ path: string;
669
+ }
670
+ /** A custom pattern is used for defining custom HTTP verb. */
671
+
672
+ export interface CustomHttpPatternSDKType {
673
+ kind: string;
674
+ path: string;
675
+ }
676
+
677
+ function createBaseHttp(): Http {
678
+ return {
679
+ rules: [],
680
+ fullyDecodeReservedExpansion: false
681
+ };
682
+ }
683
+
684
+ export const Http = {
685
+ encode(message: Http, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
686
+ for (const v of message.rules) {
687
+ HttpRule.encode(v!, writer.uint32(10).fork()).ldelim();
688
+ }
689
+
690
+ if (message.fullyDecodeReservedExpansion === true) {
691
+ writer.uint32(16).bool(message.fullyDecodeReservedExpansion);
692
+ }
693
+
694
+ return writer;
695
+ },
696
+
697
+ decode(input: _m0.Reader | Uint8Array, length?: number): Http {
698
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
699
+ let end = length === undefined ? reader.len : reader.pos + length;
700
+ const message = createBaseHttp();
701
+
702
+ while (reader.pos < end) {
703
+ const tag = reader.uint32();
704
+
705
+ switch (tag >>> 3) {
706
+ case 1:
707
+ message.rules.push(HttpRule.decode(reader, reader.uint32()));
708
+ break;
709
+
710
+ case 2:
711
+ message.fullyDecodeReservedExpansion = reader.bool();
712
+ break;
713
+
714
+ default:
715
+ reader.skipType(tag & 7);
716
+ break;
717
+ }
718
+ }
719
+
720
+ return message;
721
+ },
722
+
723
+ fromPartial(object: DeepPartial<Http>): Http {
724
+ const message = createBaseHttp();
725
+ message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || [];
726
+ message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
727
+ return message;
728
+ }
729
+
730
+ };
731
+
732
+ function createBaseHttpRule(): HttpRule {
733
+ return {
734
+ selector: "",
735
+ get: undefined,
736
+ put: undefined,
737
+ post: undefined,
738
+ delete: undefined,
739
+ patch: undefined,
740
+ custom: undefined,
741
+ body: "",
742
+ responseBody: "",
743
+ additionalBindings: []
744
+ };
745
+ }
746
+
747
+ export const HttpRule = {
748
+ encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
749
+ if (message.selector !== "") {
750
+ writer.uint32(10).string(message.selector);
751
+ }
752
+
753
+ if (message.get !== undefined) {
754
+ writer.uint32(18).string(message.get);
755
+ }
756
+
757
+ if (message.put !== undefined) {
758
+ writer.uint32(26).string(message.put);
759
+ }
760
+
761
+ if (message.post !== undefined) {
762
+ writer.uint32(34).string(message.post);
763
+ }
764
+
765
+ if (message.delete !== undefined) {
766
+ writer.uint32(42).string(message.delete);
767
+ }
768
+
769
+ if (message.patch !== undefined) {
770
+ writer.uint32(50).string(message.patch);
771
+ }
772
+
773
+ if (message.custom !== undefined) {
774
+ CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim();
775
+ }
776
+
777
+ if (message.body !== "") {
778
+ writer.uint32(58).string(message.body);
779
+ }
780
+
781
+ if (message.responseBody !== "") {
782
+ writer.uint32(98).string(message.responseBody);
783
+ }
784
+
785
+ for (const v of message.additionalBindings) {
786
+ HttpRule.encode(v!, writer.uint32(90).fork()).ldelim();
787
+ }
788
+
789
+ return writer;
790
+ },
791
+
792
+ decode(input: _m0.Reader | Uint8Array, length?: number): HttpRule {
793
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
794
+ let end = length === undefined ? reader.len : reader.pos + length;
795
+ const message = createBaseHttpRule();
796
+
797
+ while (reader.pos < end) {
798
+ const tag = reader.uint32();
799
+
800
+ switch (tag >>> 3) {
801
+ case 1:
802
+ message.selector = reader.string();
803
+ break;
804
+
805
+ case 2:
806
+ message.get = reader.string();
807
+ break;
808
+
809
+ case 3:
810
+ message.put = reader.string();
811
+ break;
812
+
813
+ case 4:
814
+ message.post = reader.string();
815
+ break;
816
+
817
+ case 5:
818
+ message.delete = reader.string();
819
+ break;
820
+
821
+ case 6:
822
+ message.patch = reader.string();
823
+ break;
824
+
825
+ case 8:
826
+ message.custom = CustomHttpPattern.decode(reader, reader.uint32());
827
+ break;
828
+
829
+ case 7:
830
+ message.body = reader.string();
831
+ break;
832
+
833
+ case 12:
834
+ message.responseBody = reader.string();
835
+ break;
836
+
837
+ case 11:
838
+ message.additionalBindings.push(HttpRule.decode(reader, reader.uint32()));
839
+ break;
840
+
841
+ default:
842
+ reader.skipType(tag & 7);
843
+ break;
844
+ }
845
+ }
846
+
847
+ return message;
848
+ },
849
+
850
+ fromPartial(object: DeepPartial<HttpRule>): HttpRule {
851
+ const message = createBaseHttpRule();
852
+ message.selector = object.selector ?? "";
853
+ message.get = object.get ?? undefined;
854
+ message.put = object.put ?? undefined;
855
+ message.post = object.post ?? undefined;
856
+ message.delete = object.delete ?? undefined;
857
+ message.patch = object.patch ?? undefined;
858
+ message.custom = object.custom !== undefined && object.custom !== null ? CustomHttpPattern.fromPartial(object.custom) : undefined;
859
+ message.body = object.body ?? "";
860
+ message.responseBody = object.responseBody ?? "";
861
+ message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || [];
862
+ return message;
863
+ }
864
+
865
+ };
866
+
867
+ function createBaseCustomHttpPattern(): CustomHttpPattern {
868
+ return {
869
+ kind: "",
870
+ path: ""
871
+ };
872
+ }
873
+
874
+ export const CustomHttpPattern = {
875
+ encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
876
+ if (message.kind !== "") {
877
+ writer.uint32(10).string(message.kind);
878
+ }
879
+
880
+ if (message.path !== "") {
881
+ writer.uint32(18).string(message.path);
882
+ }
883
+
884
+ return writer;
885
+ },
886
+
887
+ decode(input: _m0.Reader | Uint8Array, length?: number): CustomHttpPattern {
888
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
889
+ let end = length === undefined ? reader.len : reader.pos + length;
890
+ const message = createBaseCustomHttpPattern();
891
+
892
+ while (reader.pos < end) {
893
+ const tag = reader.uint32();
894
+
895
+ switch (tag >>> 3) {
896
+ case 1:
897
+ message.kind = reader.string();
898
+ break;
899
+
900
+ case 2:
901
+ message.path = reader.string();
902
+ break;
903
+
904
+ default:
905
+ reader.skipType(tag & 7);
906
+ break;
907
+ }
908
+ }
909
+
910
+ return message;
911
+ },
912
+
913
+ fromPartial(object: DeepPartial<CustomHttpPattern>): CustomHttpPattern {
914
+ const message = createBaseCustomHttpPattern();
915
+ message.kind = object.kind ?? "";
916
+ message.path = object.path ?? "";
917
+ return message;
918
+ }
919
+
920
+ };