decentralcardgame-cardchain-client-ts 0.0.31 → 0.0.32

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