@gitopia/gitopiajs 0.0.4 → 0.0.6

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 (310) hide show
  1. package/dist/LICENSE +21 -0
  2. package/dist/amino/amino.d.ts +1 -0
  3. package/dist/amino/amino.js +2 -0
  4. package/dist/amino/bundle.d.ts +1 -0
  5. package/dist/amino/bundle.js +41 -0
  6. package/dist/binary.d.ts +130 -0
  7. package/dist/binary.js +371 -0
  8. package/dist/cosmos/bank/v1beta1/bank.d.ts +407 -0
  9. package/dist/cosmos/bank/v1beta1/bank.js +664 -0
  10. package/dist/cosmos/bank/v1beta1/query.d.ts +1062 -0
  11. package/dist/cosmos/bank/v1beta1/query.js +1759 -0
  12. package/dist/cosmos/bank/v1beta1/query.lcd.d.ts +19 -0
  13. package/dist/cosmos/bank/v1beta1/query.lcd.js +173 -0
  14. package/dist/cosmos/bank/v1beta1/query.rpc.Query.d.ts +106 -0
  15. package/dist/cosmos/bank/v1beta1/query.rpc.Query.js +123 -0
  16. package/dist/cosmos/base/query/v1beta1/pagination.d.ts +190 -0
  17. package/dist/cosmos/base/query/v1beta1/pagination.js +204 -0
  18. package/dist/cosmos/base/v1beta1/coin.d.ts +193 -0
  19. package/dist/cosmos/base/v1beta1/coin.js +306 -0
  20. package/dist/cosmos/bundle.d.ts +2311 -0
  21. package/dist/cosmos/bundle.js +134 -0
  22. package/dist/cosmos/client.d.ts +84 -0
  23. package/dist/cosmos/client.js +65 -0
  24. package/dist/cosmos/feegrant/v1beta1/feegrant.d.ts +245 -0
  25. package/dist/cosmos/feegrant/v1beta1/feegrant.js +456 -0
  26. package/dist/cosmos/feegrant/v1beta1/query.d.ts +258 -0
  27. package/dist/cosmos/feegrant/v1beta1/query.js +487 -0
  28. package/dist/cosmos/feegrant/v1beta1/query.lcd.d.ts +11 -0
  29. package/dist/cosmos/feegrant/v1beta1/query.lcd.js +44 -0
  30. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.d.ts +28 -0
  31. package/dist/cosmos/feegrant/v1beta1/query.rpc.Query.js +47 -0
  32. package/dist/cosmos/gov/v1beta1/gov.d.ts +571 -0
  33. package/dist/cosmos/gov/v1beta1/gov.js +1122 -0
  34. package/dist/cosmos/gov/v1beta1/query.d.ts +636 -0
  35. package/dist/cosmos/gov/v1beta1/query.js +1264 -0
  36. package/dist/cosmos/gov/v1beta1/query.lcd.d.ts +16 -0
  37. package/dist/cosmos/gov/v1beta1/query.lcd.js +87 -0
  38. package/dist/cosmos/gov/v1beta1/query.rpc.Query.d.ts +44 -0
  39. package/dist/cosmos/gov/v1beta1/query.rpc.Query.js +92 -0
  40. package/dist/cosmos/group/v1/query.d.ts +1097 -0
  41. package/dist/cosmos/group/v1/query.js +2182 -0
  42. package/dist/cosmos/group/v1/query.lcd.d.ts +22 -0
  43. package/dist/cosmos/group/v1/query.lcd.js +158 -0
  44. package/dist/cosmos/group/v1/query.rpc.Query.d.ts +78 -0
  45. package/dist/cosmos/group/v1/query.rpc.Query.js +148 -0
  46. package/dist/cosmos/group/v1/tx.amino.d.ts +73 -0
  47. package/dist/cosmos/group/v1/tx.amino.js +77 -0
  48. package/dist/cosmos/group/v1/tx.d.ts +1198 -0
  49. package/dist/cosmos/group/v1/tx.js +2362 -0
  50. package/dist/cosmos/group/v1/tx.registry.d.ts +180 -0
  51. package/dist/cosmos/group/v1/tx.registry.js +271 -0
  52. package/dist/cosmos/group/v1/tx.rpc.msg.d.ts +51 -0
  53. package/dist/cosmos/group/v1/tx.rpc.msg.js +96 -0
  54. package/dist/cosmos/group/v1/types.d.ts +873 -0
  55. package/dist/cosmos/group/v1/types.js +1495 -0
  56. package/dist/cosmos/msg/v1/msg.d.ts +1 -0
  57. package/dist/cosmos/msg/v1/msg.js +2 -0
  58. package/dist/cosmos/query/v1/query.d.ts +1 -0
  59. package/dist/cosmos/query/v1/query.js +2 -0
  60. package/dist/cosmos/rpc.query.d.ts +59 -0
  61. package/dist/cosmos/rpc.query.js +60 -0
  62. package/dist/cosmos/rpc.tx.d.ts +10 -0
  63. package/dist/cosmos/rpc.tx.js +44 -0
  64. package/dist/cosmos/upgrade/v1beta1/upgrade.d.ts +278 -0
  65. package/dist/cosmos/upgrade/v1beta1/upgrade.js +382 -0
  66. package/dist/cosmos_proto/bundle.d.ts +32 -0
  67. package/dist/cosmos_proto/bundle.js +41 -0
  68. package/dist/cosmos_proto/cosmos.d.ts +171 -0
  69. package/dist/cosmos_proto/cosmos.js +221 -0
  70. package/dist/esm/amino/amino.js +1 -0
  71. package/dist/esm/amino/bundle.js +5 -0
  72. package/dist/esm/binary.js +366 -0
  73. package/dist/esm/cosmos/bank/v1beta1/bank.js +661 -0
  74. package/dist/esm/cosmos/bank/v1beta1/query.js +1756 -0
  75. package/dist/esm/cosmos/bank/v1beta1/query.lcd.js +169 -0
  76. package/dist/esm/cosmos/bank/v1beta1/query.rpc.Query.js +118 -0
  77. package/dist/esm/cosmos/base/query/v1beta1/pagination.js +201 -0
  78. package/dist/esm/cosmos/base/v1beta1/coin.js +303 -0
  79. package/dist/esm/cosmos/bundle.js +98 -0
  80. package/dist/esm/cosmos/client.js +27 -0
  81. package/dist/esm/cosmos/feegrant/v1beta1/feegrant.js +450 -0
  82. package/dist/esm/cosmos/feegrant/v1beta1/query.js +484 -0
  83. package/dist/esm/cosmos/feegrant/v1beta1/query.lcd.js +40 -0
  84. package/dist/esm/cosmos/feegrant/v1beta1/query.rpc.Query.js +42 -0
  85. package/dist/esm/cosmos/gov/v1beta1/gov.js +1112 -0
  86. package/dist/esm/cosmos/gov/v1beta1/query.js +1261 -0
  87. package/dist/esm/cosmos/gov/v1beta1/query.lcd.js +83 -0
  88. package/dist/esm/cosmos/gov/v1beta1/query.rpc.Query.js +87 -0
  89. package/dist/esm/cosmos/group/v1/query.js +2179 -0
  90. package/dist/esm/cosmos/group/v1/query.lcd.js +154 -0
  91. package/dist/esm/cosmos/group/v1/query.rpc.Query.js +143 -0
  92. package/dist/esm/cosmos/group/v1/tx.amino.js +74 -0
  93. package/dist/esm/cosmos/group/v1/tx.js +2354 -0
  94. package/dist/esm/cosmos/group/v1/tx.registry.js +267 -0
  95. package/dist/esm/cosmos/group/v1/tx.rpc.msg.js +92 -0
  96. package/dist/esm/cosmos/group/v1/types.js +1483 -0
  97. package/dist/esm/cosmos/msg/v1/msg.js +1 -0
  98. package/dist/esm/cosmos/query/v1/query.js +1 -0
  99. package/dist/esm/cosmos/rpc.query.js +23 -0
  100. package/dist/esm/cosmos/rpc.tx.js +7 -0
  101. package/dist/esm/cosmos/upgrade/v1beta1/upgrade.js +379 -0
  102. package/dist/esm/cosmos_proto/bundle.js +5 -0
  103. package/dist/esm/cosmos_proto/cosmos.js +216 -0
  104. package/dist/esm/gitopia/bundle.js +95 -0
  105. package/dist/esm/gitopia/client.js +32 -0
  106. package/dist/esm/gitopia/custom-lcd-client.js +50 -0
  107. package/dist/esm/gitopia/gitopia/gitopia/attachment.js +101 -0
  108. package/dist/esm/gitopia/gitopia/gitopia/bounty.js +255 -0
  109. package/dist/esm/gitopia/gitopia/gitopia/branch.js +137 -0
  110. package/dist/esm/gitopia/gitopia/gitopia/comment.js +488 -0
  111. package/dist/esm/gitopia/gitopia/gitopia/dao.js +451 -0
  112. package/dist/esm/gitopia/gitopia/gitopia/exercised_amount.js +78 -0
  113. package/dist/esm/gitopia/gitopia/gitopia/genesis.js +460 -0
  114. package/dist/esm/gitopia/gitopia/gitopia/issue.js +323 -0
  115. package/dist/esm/gitopia/gitopia/gitopia/params.js +293 -0
  116. package/dist/esm/gitopia/gitopia/gitopia/pullRequest.js +565 -0
  117. package/dist/esm/gitopia/gitopia/gitopia/query.js +7351 -0
  118. package/dist/esm/gitopia/gitopia/gitopia/query.lcd.js +452 -0
  119. package/dist/esm/gitopia/gitopia/gitopia/query.rpc.Query.js +453 -0
  120. package/dist/esm/gitopia/gitopia/gitopia/reaction.js +123 -0
  121. package/dist/esm/gitopia/gitopia/gitopia/release.js +225 -0
  122. package/dist/esm/gitopia/gitopia/gitopia/repository.js +1200 -0
  123. package/dist/esm/gitopia/gitopia/gitopia/tag.js +125 -0
  124. package/dist/esm/gitopia/gitopia/gitopia/task.js +197 -0
  125. package/dist/esm/gitopia/gitopia/gitopia/tx.amino.js +464 -0
  126. package/dist/esm/gitopia/gitopia/gitopia/tx.js +14679 -0
  127. package/dist/esm/gitopia/gitopia/gitopia/tx.registry.js +1671 -0
  128. package/dist/esm/gitopia/gitopia/gitopia/tx.rpc.msg.js +560 -0
  129. package/dist/esm/gitopia/gitopia/gitopia/user.js +340 -0
  130. package/dist/esm/gitopia/gitopia/gitopia/whois.js +146 -0
  131. package/dist/esm/gitopia/gitopia/offchain/offchain.js +144 -0
  132. package/dist/esm/gitopia/gitopia/rewards/genesis.js +82 -0
  133. package/dist/esm/gitopia/gitopia/rewards/params.js +81 -0
  134. package/dist/esm/gitopia/gitopia/rewards/pool.js +191 -0
  135. package/dist/esm/gitopia/gitopia/rewards/query.js +654 -0
  136. package/dist/esm/gitopia/gitopia/rewards/query.lcd.js +40 -0
  137. package/dist/esm/gitopia/gitopia/rewards/query.rpc.Query.js +53 -0
  138. package/dist/esm/gitopia/gitopia/rewards/rewards.js +191 -0
  139. package/dist/esm/gitopia/gitopia/rewards/task.js +176 -0
  140. package/dist/esm/gitopia/gitopia/rewards/tx.amino.js +19 -0
  141. package/dist/esm/gitopia/gitopia/rewards/tx.js +525 -0
  142. package/dist/esm/gitopia/gitopia/rewards/tx.registry.js +69 -0
  143. package/dist/esm/gitopia/gitopia/rewards/tx.rpc.msg.js +26 -0
  144. package/dist/esm/gitopia/rpc.query.js +29 -0
  145. package/dist/esm/gitopia/rpc.tx.js +13 -0
  146. package/dist/esm/gogoproto/bundle.js +5 -0
  147. package/dist/esm/gogoproto/gogo.js +1 -0
  148. package/dist/esm/google/api/annotations.js +1 -0
  149. package/dist/esm/google/api/http.js +329 -0
  150. package/dist/esm/google/bundle.js +14 -0
  151. package/dist/esm/google/protobuf/any.js +74 -0
  152. package/dist/esm/google/protobuf/descriptor.js +4848 -0
  153. package/dist/esm/google/protobuf/duration.js +71 -0
  154. package/dist/esm/google/protobuf/timestamp.js +68 -0
  155. package/dist/esm/helpers.js +131 -0
  156. package/dist/esm/ibc/applications/transfer/v1/query.js +847 -0
  157. package/dist/esm/ibc/applications/transfer/v1/query.lcd.js +70 -0
  158. package/dist/esm/ibc/applications/transfer/v1/query.rpc.Query.js +71 -0
  159. package/dist/esm/ibc/applications/transfer/v1/transfer.js +164 -0
  160. package/dist/esm/ibc/applications/transfer/v1/tx.amino.js +9 -0
  161. package/dist/esm/ibc/applications/transfer/v1/tx.js +226 -0
  162. package/dist/esm/ibc/applications/transfer/v1/tx.registry.js +33 -0
  163. package/dist/esm/ibc/applications/transfer/v1/tx.rpc.msg.js +14 -0
  164. package/dist/esm/ibc/bundle.js +44 -0
  165. package/dist/esm/ibc/client.js +29 -0
  166. package/dist/esm/ibc/core/client/v1/client.js +611 -0
  167. package/dist/esm/ibc/rpc.query.js +30 -0
  168. package/dist/esm/ibc/rpc.tx.js +14 -0
  169. package/dist/esm/index.js +19 -0
  170. package/dist/esm/utf8.js +137 -0
  171. package/dist/esm/varint.js +408 -0
  172. package/dist/gitopia/bundle.d.ts +6123 -0
  173. package/dist/gitopia/bundle.js +131 -0
  174. package/dist/gitopia/client.d.ts +492 -0
  175. package/dist/gitopia/client.js +70 -0
  176. package/dist/gitopia/custom-lcd-client.d.ts +31 -0
  177. package/dist/gitopia/custom-lcd-client.js +87 -0
  178. package/dist/gitopia/gitopia/gitopia/attachment.d.ts +39 -0
  179. package/dist/gitopia/gitopia/gitopia/attachment.js +104 -0
  180. package/dist/gitopia/gitopia/gitopia/bounty.d.ts +79 -0
  181. package/dist/gitopia/gitopia/gitopia/bounty.js +262 -0
  182. package/dist/gitopia/gitopia/gitopia/branch.d.ts +48 -0
  183. package/dist/gitopia/gitopia/gitopia/branch.js +140 -0
  184. package/dist/gitopia/gitopia/gitopia/comment.d.ts +125 -0
  185. package/dist/gitopia/gitopia/gitopia/comment.js +495 -0
  186. package/dist/gitopia/gitopia/gitopia/dao.d.ts +160 -0
  187. package/dist/gitopia/gitopia/gitopia/dao.js +454 -0
  188. package/dist/gitopia/gitopia/gitopia/exercised_amount.d.ts +34 -0
  189. package/dist/gitopia/gitopia/gitopia/exercised_amount.js +81 -0
  190. package/dist/gitopia/gitopia/gitopia/genesis.d.ts +143 -0
  191. package/dist/gitopia/gitopia/gitopia/genesis.js +463 -0
  192. package/dist/gitopia/gitopia/gitopia/issue.d.ts +88 -0
  193. package/dist/gitopia/gitopia/gitopia/issue.js +328 -0
  194. package/dist/gitopia/gitopia/gitopia/params.d.ts +115 -0
  195. package/dist/gitopia/gitopia/gitopia/params.js +296 -0
  196. package/dist/gitopia/gitopia/gitopia/pullRequest.d.ts +177 -0
  197. package/dist/gitopia/gitopia/gitopia/pullRequest.js +570 -0
  198. package/dist/gitopia/gitopia/gitopia/query.d.ts +3130 -0
  199. package/dist/gitopia/gitopia/gitopia/query.js +7355 -0
  200. package/dist/gitopia/gitopia/gitopia/query.lcd.d.ts +54 -0
  201. package/dist/gitopia/gitopia/gitopia/query.lcd.js +456 -0
  202. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.d.ts +188 -0
  203. package/dist/gitopia/gitopia/gitopia/query.rpc.Query.js +458 -0
  204. package/dist/gitopia/gitopia/gitopia/reaction.d.ts +42 -0
  205. package/dist/gitopia/gitopia/gitopia/reaction.js +128 -0
  206. package/dist/gitopia/gitopia/gitopia/release.d.ts +70 -0
  207. package/dist/gitopia/gitopia/gitopia/release.js +228 -0
  208. package/dist/gitopia/gitopia/gitopia/repository.d.ts +424 -0
  209. package/dist/gitopia/gitopia/gitopia/repository.js +1207 -0
  210. package/dist/gitopia/gitopia/gitopia/tag.d.ts +45 -0
  211. package/dist/gitopia/gitopia/gitopia/tag.js +128 -0
  212. package/dist/gitopia/gitopia/gitopia/task.d.ts +64 -0
  213. package/dist/gitopia/gitopia/gitopia/task.js +204 -0
  214. package/dist/gitopia/gitopia/gitopia/tx.amino.d.ts +463 -0
  215. package/dist/gitopia/gitopia/gitopia/tx.amino.js +467 -0
  216. package/dist/gitopia/gitopia/gitopia/tx.d.ts +6246 -0
  217. package/dist/gitopia/gitopia/gitopia/tx.js +14687 -0
  218. package/dist/gitopia/gitopia/gitopia/tx.registry.d.ts +1116 -0
  219. package/dist/gitopia/gitopia/gitopia/tx.registry.js +1675 -0
  220. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.d.ts +200 -0
  221. package/dist/gitopia/gitopia/gitopia/tx.rpc.msg.js +564 -0
  222. package/dist/gitopia/gitopia/gitopia/user.d.ts +104 -0
  223. package/dist/gitopia/gitopia/gitopia/user.js +343 -0
  224. package/dist/gitopia/gitopia/gitopia/whois.d.ts +51 -0
  225. package/dist/gitopia/gitopia/gitopia/whois.js +151 -0
  226. package/dist/gitopia/gitopia/offchain/offchain.d.ts +74 -0
  227. package/dist/gitopia/gitopia/offchain/offchain.js +147 -0
  228. package/dist/gitopia/gitopia/rewards/genesis.d.ts +40 -0
  229. package/dist/gitopia/gitopia/rewards/genesis.js +85 -0
  230. package/dist/gitopia/gitopia/rewards/params.d.ts +37 -0
  231. package/dist/gitopia/gitopia/rewards/params.js +84 -0
  232. package/dist/gitopia/gitopia/rewards/pool.d.ts +59 -0
  233. package/dist/gitopia/gitopia/rewards/pool.js +196 -0
  234. package/dist/gitopia/gitopia/rewards/query.d.ts +294 -0
  235. package/dist/gitopia/gitopia/rewards/query.js +657 -0
  236. package/dist/gitopia/gitopia/rewards/query.lcd.d.ts +12 -0
  237. package/dist/gitopia/gitopia/rewards/query.lcd.js +44 -0
  238. package/dist/gitopia/gitopia/rewards/query.rpc.Query.d.ts +28 -0
  239. package/dist/gitopia/gitopia/rewards/query.rpc.Query.js +58 -0
  240. package/dist/gitopia/gitopia/rewards/rewards.d.ts +79 -0
  241. package/dist/gitopia/gitopia/rewards/rewards.js +194 -0
  242. package/dist/gitopia/gitopia/rewards/task.d.ts +54 -0
  243. package/dist/gitopia/gitopia/rewards/task.js +181 -0
  244. package/dist/gitopia/gitopia/rewards/tx.amino.d.ts +18 -0
  245. package/dist/gitopia/gitopia/rewards/tx.amino.js +22 -0
  246. package/dist/gitopia/gitopia/rewards/tx.d.ts +242 -0
  247. package/dist/gitopia/gitopia/rewards/tx.js +528 -0
  248. package/dist/gitopia/gitopia/rewards/tx.registry.d.ts +48 -0
  249. package/dist/gitopia/gitopia/rewards/tx.registry.js +73 -0
  250. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.d.ts +19 -0
  251. package/dist/gitopia/gitopia/rewards/tx.rpc.msg.js +30 -0
  252. package/dist/gitopia/rpc.query.d.ts +117 -0
  253. package/dist/gitopia/rpc.query.js +66 -0
  254. package/dist/gitopia/rpc.tx.d.ts +16 -0
  255. package/dist/gitopia/rpc.tx.js +50 -0
  256. package/dist/gogoproto/bundle.d.ts +1 -0
  257. package/dist/gogoproto/bundle.js +41 -0
  258. package/dist/gogoproto/gogo.d.ts +1 -0
  259. package/dist/gogoproto/gogo.js +2 -0
  260. package/dist/google/api/annotations.d.ts +1 -0
  261. package/dist/google/api/annotations.js +2 -0
  262. package/dist/google/api/http.d.ts +1049 -0
  263. package/dist/google/api/http.js +332 -0
  264. package/dist/google/bundle.d.ts +525 -0
  265. package/dist/google/bundle.js +50 -0
  266. package/dist/google/protobuf/any.d.ts +358 -0
  267. package/dist/google/protobuf/any.js +77 -0
  268. package/dist/google/protobuf/descriptor.d.ts +3178 -0
  269. package/dist/google/protobuf/descriptor.js +4886 -0
  270. package/dist/google/protobuf/duration.d.ts +223 -0
  271. package/dist/google/protobuf/duration.js +74 -0
  272. package/dist/google/protobuf/timestamp.d.ts +314 -0
  273. package/dist/google/protobuf/timestamp.js +71 -0
  274. package/dist/helpers.d.ts +82 -0
  275. package/dist/helpers.js +146 -0
  276. package/dist/ibc/applications/transfer/v1/query.d.ts +479 -0
  277. package/dist/ibc/applications/transfer/v1/query.js +850 -0
  278. package/dist/ibc/applications/transfer/v1/query.lcd.d.ts +14 -0
  279. package/dist/ibc/applications/transfer/v1/query.lcd.js +74 -0
  280. package/dist/ibc/applications/transfer/v1/query.rpc.Query.d.ts +36 -0
  281. package/dist/ibc/applications/transfer/v1/query.rpc.Query.js +76 -0
  282. package/dist/ibc/applications/transfer/v1/transfer.d.ts +123 -0
  283. package/dist/ibc/applications/transfer/v1/transfer.js +167 -0
  284. package/dist/ibc/applications/transfer/v1/tx.amino.d.ts +8 -0
  285. package/dist/ibc/applications/transfer/v1/tx.amino.js +12 -0
  286. package/dist/ibc/applications/transfer/v1/tx.d.ts +132 -0
  287. package/dist/ibc/applications/transfer/v1/tx.js +229 -0
  288. package/dist/ibc/applications/transfer/v1/tx.registry.d.ts +24 -0
  289. package/dist/ibc/applications/transfer/v1/tx.registry.js +37 -0
  290. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +12 -0
  291. package/dist/ibc/applications/transfer/v1/tx.rpc.msg.js +18 -0
  292. package/dist/ibc/bundle.d.ts +450 -0
  293. package/dist/ibc/bundle.js +80 -0
  294. package/dist/ibc/client.d.ts +22 -0
  295. package/dist/ibc/client.js +67 -0
  296. package/dist/ibc/core/client/v1/client.d.ts +408 -0
  297. package/dist/ibc/core/client/v1/client.js +614 -0
  298. package/dist/ibc/rpc.query.d.ts +73 -0
  299. package/dist/ibc/rpc.query.js +67 -0
  300. package/dist/ibc/rpc.tx.d.ts +17 -0
  301. package/dist/ibc/rpc.tx.js +51 -0
  302. package/dist/index.d.ts +18 -0
  303. package/dist/index.js +35 -0
  304. package/dist/package.json +49 -0
  305. package/dist/utf8.d.ts +27 -0
  306. package/dist/utf8.js +141 -0
  307. package/dist/varint.d.ts +105 -0
  308. package/dist/varint.js +426 -0
  309. package/package.json +11 -8
  310. package/CHANGELOG.md +0 -8
@@ -0,0 +1,495 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Comment = exports.CommentParentAmino = exports.CommentParentSDKType = exports.CommentParent = exports.CommentTypeAmino = exports.CommentTypeSDKType = exports.CommentType = void 0;
4
+ exports.commentTypeFromJSON = commentTypeFromJSON;
5
+ exports.commentTypeToJSON = commentTypeToJSON;
6
+ exports.commentParentFromJSON = commentParentFromJSON;
7
+ exports.commentParentToJSON = commentParentToJSON;
8
+ //@ts-nocheck
9
+ const attachment_1 = require("./attachment");
10
+ const reaction_1 = require("./reaction");
11
+ const binary_1 = require("../../../binary");
12
+ var CommentType;
13
+ (function (CommentType) {
14
+ CommentType[CommentType["COMMENT_TYPE_NONE"] = 0] = "COMMENT_TYPE_NONE";
15
+ CommentType[CommentType["COMMENT_TYPE_REPLY"] = 1] = "COMMENT_TYPE_REPLY";
16
+ CommentType[CommentType["COMMENT_TYPE_ADD_LABELS"] = 2] = "COMMENT_TYPE_ADD_LABELS";
17
+ CommentType[CommentType["COMMENT_TYPE_REMOVE_LABELS"] = 3] = "COMMENT_TYPE_REMOVE_LABELS";
18
+ CommentType[CommentType["COMMENT_TYPE_ADD_ASSIGNEES"] = 4] = "COMMENT_TYPE_ADD_ASSIGNEES";
19
+ CommentType[CommentType["COMMENT_TYPE_REMOVE_ASSIGNEES"] = 5] = "COMMENT_TYPE_REMOVE_ASSIGNEES";
20
+ CommentType[CommentType["COMMENT_TYPE_ADD_REVIEWERS"] = 6] = "COMMENT_TYPE_ADD_REVIEWERS";
21
+ CommentType[CommentType["COMMENT_TYPE_REMOVE_REVIEWERS"] = 7] = "COMMENT_TYPE_REMOVE_REVIEWERS";
22
+ CommentType[CommentType["COMMENT_TYPE_MODIFIED_TITLE"] = 8] = "COMMENT_TYPE_MODIFIED_TITLE";
23
+ CommentType[CommentType["COMMENT_TYPE_MODIFIED_DESCRIPTION"] = 9] = "COMMENT_TYPE_MODIFIED_DESCRIPTION";
24
+ CommentType[CommentType["COMMENT_TYPE_ISSUE_CLOSED"] = 10] = "COMMENT_TYPE_ISSUE_CLOSED";
25
+ CommentType[CommentType["COMMENT_TYPE_ISSUE_OPENED"] = 11] = "COMMENT_TYPE_ISSUE_OPENED";
26
+ CommentType[CommentType["COMMENT_TYPE_PULL_REQUEST_CLOSED"] = 12] = "COMMENT_TYPE_PULL_REQUEST_CLOSED";
27
+ CommentType[CommentType["COMMENT_TYPE_PULL_REQUEST_OPENED"] = 13] = "COMMENT_TYPE_PULL_REQUEST_OPENED";
28
+ CommentType[CommentType["COMMENT_TYPE_PULL_REQUEST_MERGED"] = 14] = "COMMENT_TYPE_PULL_REQUEST_MERGED";
29
+ CommentType[CommentType["COMMENT_TYPE_REVIEW"] = 15] = "COMMENT_TYPE_REVIEW";
30
+ CommentType[CommentType["COMMENT_TYPE_ADD_BOUNTY"] = 16] = "COMMENT_TYPE_ADD_BOUNTY";
31
+ CommentType[CommentType["COMMENT_TYPE_MODIFIED_BOUNTY"] = 17] = "COMMENT_TYPE_MODIFIED_BOUNTY";
32
+ CommentType[CommentType["COMMENT_TYPE_CLOSED_BOUNTY"] = 18] = "COMMENT_TYPE_CLOSED_BOUNTY";
33
+ CommentType[CommentType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
34
+ })(CommentType || (exports.CommentType = CommentType = {}));
35
+ exports.CommentTypeSDKType = CommentType;
36
+ exports.CommentTypeAmino = CommentType;
37
+ function commentTypeFromJSON(object) {
38
+ switch (object) {
39
+ case 0:
40
+ case "COMMENT_TYPE_NONE":
41
+ return CommentType.COMMENT_TYPE_NONE;
42
+ case 1:
43
+ case "COMMENT_TYPE_REPLY":
44
+ return CommentType.COMMENT_TYPE_REPLY;
45
+ case 2:
46
+ case "COMMENT_TYPE_ADD_LABELS":
47
+ return CommentType.COMMENT_TYPE_ADD_LABELS;
48
+ case 3:
49
+ case "COMMENT_TYPE_REMOVE_LABELS":
50
+ return CommentType.COMMENT_TYPE_REMOVE_LABELS;
51
+ case 4:
52
+ case "COMMENT_TYPE_ADD_ASSIGNEES":
53
+ return CommentType.COMMENT_TYPE_ADD_ASSIGNEES;
54
+ case 5:
55
+ case "COMMENT_TYPE_REMOVE_ASSIGNEES":
56
+ return CommentType.COMMENT_TYPE_REMOVE_ASSIGNEES;
57
+ case 6:
58
+ case "COMMENT_TYPE_ADD_REVIEWERS":
59
+ return CommentType.COMMENT_TYPE_ADD_REVIEWERS;
60
+ case 7:
61
+ case "COMMENT_TYPE_REMOVE_REVIEWERS":
62
+ return CommentType.COMMENT_TYPE_REMOVE_REVIEWERS;
63
+ case 8:
64
+ case "COMMENT_TYPE_MODIFIED_TITLE":
65
+ return CommentType.COMMENT_TYPE_MODIFIED_TITLE;
66
+ case 9:
67
+ case "COMMENT_TYPE_MODIFIED_DESCRIPTION":
68
+ return CommentType.COMMENT_TYPE_MODIFIED_DESCRIPTION;
69
+ case 10:
70
+ case "COMMENT_TYPE_ISSUE_CLOSED":
71
+ return CommentType.COMMENT_TYPE_ISSUE_CLOSED;
72
+ case 11:
73
+ case "COMMENT_TYPE_ISSUE_OPENED":
74
+ return CommentType.COMMENT_TYPE_ISSUE_OPENED;
75
+ case 12:
76
+ case "COMMENT_TYPE_PULL_REQUEST_CLOSED":
77
+ return CommentType.COMMENT_TYPE_PULL_REQUEST_CLOSED;
78
+ case 13:
79
+ case "COMMENT_TYPE_PULL_REQUEST_OPENED":
80
+ return CommentType.COMMENT_TYPE_PULL_REQUEST_OPENED;
81
+ case 14:
82
+ case "COMMENT_TYPE_PULL_REQUEST_MERGED":
83
+ return CommentType.COMMENT_TYPE_PULL_REQUEST_MERGED;
84
+ case 15:
85
+ case "COMMENT_TYPE_REVIEW":
86
+ return CommentType.COMMENT_TYPE_REVIEW;
87
+ case 16:
88
+ case "COMMENT_TYPE_ADD_BOUNTY":
89
+ return CommentType.COMMENT_TYPE_ADD_BOUNTY;
90
+ case 17:
91
+ case "COMMENT_TYPE_MODIFIED_BOUNTY":
92
+ return CommentType.COMMENT_TYPE_MODIFIED_BOUNTY;
93
+ case 18:
94
+ case "COMMENT_TYPE_CLOSED_BOUNTY":
95
+ return CommentType.COMMENT_TYPE_CLOSED_BOUNTY;
96
+ case -1:
97
+ case "UNRECOGNIZED":
98
+ default:
99
+ return CommentType.UNRECOGNIZED;
100
+ }
101
+ }
102
+ function commentTypeToJSON(object) {
103
+ switch (object) {
104
+ case CommentType.COMMENT_TYPE_NONE:
105
+ return "COMMENT_TYPE_NONE";
106
+ case CommentType.COMMENT_TYPE_REPLY:
107
+ return "COMMENT_TYPE_REPLY";
108
+ case CommentType.COMMENT_TYPE_ADD_LABELS:
109
+ return "COMMENT_TYPE_ADD_LABELS";
110
+ case CommentType.COMMENT_TYPE_REMOVE_LABELS:
111
+ return "COMMENT_TYPE_REMOVE_LABELS";
112
+ case CommentType.COMMENT_TYPE_ADD_ASSIGNEES:
113
+ return "COMMENT_TYPE_ADD_ASSIGNEES";
114
+ case CommentType.COMMENT_TYPE_REMOVE_ASSIGNEES:
115
+ return "COMMENT_TYPE_REMOVE_ASSIGNEES";
116
+ case CommentType.COMMENT_TYPE_ADD_REVIEWERS:
117
+ return "COMMENT_TYPE_ADD_REVIEWERS";
118
+ case CommentType.COMMENT_TYPE_REMOVE_REVIEWERS:
119
+ return "COMMENT_TYPE_REMOVE_REVIEWERS";
120
+ case CommentType.COMMENT_TYPE_MODIFIED_TITLE:
121
+ return "COMMENT_TYPE_MODIFIED_TITLE";
122
+ case CommentType.COMMENT_TYPE_MODIFIED_DESCRIPTION:
123
+ return "COMMENT_TYPE_MODIFIED_DESCRIPTION";
124
+ case CommentType.COMMENT_TYPE_ISSUE_CLOSED:
125
+ return "COMMENT_TYPE_ISSUE_CLOSED";
126
+ case CommentType.COMMENT_TYPE_ISSUE_OPENED:
127
+ return "COMMENT_TYPE_ISSUE_OPENED";
128
+ case CommentType.COMMENT_TYPE_PULL_REQUEST_CLOSED:
129
+ return "COMMENT_TYPE_PULL_REQUEST_CLOSED";
130
+ case CommentType.COMMENT_TYPE_PULL_REQUEST_OPENED:
131
+ return "COMMENT_TYPE_PULL_REQUEST_OPENED";
132
+ case CommentType.COMMENT_TYPE_PULL_REQUEST_MERGED:
133
+ return "COMMENT_TYPE_PULL_REQUEST_MERGED";
134
+ case CommentType.COMMENT_TYPE_REVIEW:
135
+ return "COMMENT_TYPE_REVIEW";
136
+ case CommentType.COMMENT_TYPE_ADD_BOUNTY:
137
+ return "COMMENT_TYPE_ADD_BOUNTY";
138
+ case CommentType.COMMENT_TYPE_MODIFIED_BOUNTY:
139
+ return "COMMENT_TYPE_MODIFIED_BOUNTY";
140
+ case CommentType.COMMENT_TYPE_CLOSED_BOUNTY:
141
+ return "COMMENT_TYPE_CLOSED_BOUNTY";
142
+ case CommentType.UNRECOGNIZED:
143
+ default:
144
+ return "UNRECOGNIZED";
145
+ }
146
+ }
147
+ var CommentParent;
148
+ (function (CommentParent) {
149
+ CommentParent[CommentParent["COMMENT_PARENT_NONE"] = 0] = "COMMENT_PARENT_NONE";
150
+ CommentParent[CommentParent["COMMENT_PARENT_ISSUE"] = 1] = "COMMENT_PARENT_ISSUE";
151
+ CommentParent[CommentParent["COMMENT_PARENT_PULL_REQUEST"] = 2] = "COMMENT_PARENT_PULL_REQUEST";
152
+ CommentParent[CommentParent["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
153
+ })(CommentParent || (exports.CommentParent = CommentParent = {}));
154
+ exports.CommentParentSDKType = CommentParent;
155
+ exports.CommentParentAmino = CommentParent;
156
+ function commentParentFromJSON(object) {
157
+ switch (object) {
158
+ case 0:
159
+ case "COMMENT_PARENT_NONE":
160
+ return CommentParent.COMMENT_PARENT_NONE;
161
+ case 1:
162
+ case "COMMENT_PARENT_ISSUE":
163
+ return CommentParent.COMMENT_PARENT_ISSUE;
164
+ case 2:
165
+ case "COMMENT_PARENT_PULL_REQUEST":
166
+ return CommentParent.COMMENT_PARENT_PULL_REQUEST;
167
+ case -1:
168
+ case "UNRECOGNIZED":
169
+ default:
170
+ return CommentParent.UNRECOGNIZED;
171
+ }
172
+ }
173
+ function commentParentToJSON(object) {
174
+ switch (object) {
175
+ case CommentParent.COMMENT_PARENT_NONE:
176
+ return "COMMENT_PARENT_NONE";
177
+ case CommentParent.COMMENT_PARENT_ISSUE:
178
+ return "COMMENT_PARENT_ISSUE";
179
+ case CommentParent.COMMENT_PARENT_PULL_REQUEST:
180
+ return "COMMENT_PARENT_PULL_REQUEST";
181
+ case CommentParent.UNRECOGNIZED:
182
+ default:
183
+ return "UNRECOGNIZED";
184
+ }
185
+ }
186
+ function createBaseComment() {
187
+ return {
188
+ creator: "",
189
+ id: BigInt(0),
190
+ repositoryId: BigInt(0),
191
+ parentIid: BigInt(0),
192
+ parent: 0,
193
+ commentIid: BigInt(0),
194
+ body: "",
195
+ attachments: [],
196
+ diffHunk: "",
197
+ path: "",
198
+ position: BigInt(0),
199
+ system: false,
200
+ authorAssociation: "",
201
+ createdAt: BigInt(0),
202
+ updatedAt: BigInt(0),
203
+ commentType: 0,
204
+ resolved: false,
205
+ replies: [],
206
+ reactions: [],
207
+ hidden: false
208
+ };
209
+ }
210
+ exports.Comment = {
211
+ typeUrl: "/gitopia.gitopia.gitopia.Comment",
212
+ encode(message, writer = binary_1.BinaryWriter.create()) {
213
+ if (message.creator !== "") {
214
+ writer.uint32(10).string(message.creator);
215
+ }
216
+ if (message.id !== BigInt(0)) {
217
+ writer.uint32(16).uint64(message.id);
218
+ }
219
+ if (message.repositoryId !== BigInt(0)) {
220
+ writer.uint32(24).uint64(message.repositoryId);
221
+ }
222
+ if (message.parentIid !== BigInt(0)) {
223
+ writer.uint32(32).uint64(message.parentIid);
224
+ }
225
+ if (message.parent !== 0) {
226
+ writer.uint32(40).int32(message.parent);
227
+ }
228
+ if (message.commentIid !== BigInt(0)) {
229
+ writer.uint32(48).uint64(message.commentIid);
230
+ }
231
+ if (message.body !== "") {
232
+ writer.uint32(58).string(message.body);
233
+ }
234
+ for (const v of message.attachments) {
235
+ attachment_1.Attachment.encode(v, writer.uint32(66).fork()).ldelim();
236
+ }
237
+ if (message.diffHunk !== "") {
238
+ writer.uint32(74).string(message.diffHunk);
239
+ }
240
+ if (message.path !== "") {
241
+ writer.uint32(82).string(message.path);
242
+ }
243
+ if (message.position !== BigInt(0)) {
244
+ writer.uint32(88).uint64(message.position);
245
+ }
246
+ if (message.system === true) {
247
+ writer.uint32(96).bool(message.system);
248
+ }
249
+ if (message.authorAssociation !== "") {
250
+ writer.uint32(106).string(message.authorAssociation);
251
+ }
252
+ if (message.createdAt !== BigInt(0)) {
253
+ writer.uint32(112).int64(message.createdAt);
254
+ }
255
+ if (message.updatedAt !== BigInt(0)) {
256
+ writer.uint32(120).int64(message.updatedAt);
257
+ }
258
+ if (message.commentType !== 0) {
259
+ writer.uint32(128).int32(message.commentType);
260
+ }
261
+ if (message.resolved === true) {
262
+ writer.uint32(136).bool(message.resolved);
263
+ }
264
+ writer.uint32(146).fork();
265
+ for (const v of message.replies) {
266
+ writer.uint64(v);
267
+ }
268
+ writer.ldelim();
269
+ for (const v of message.reactions) {
270
+ reaction_1.Reaction.encode(v, writer.uint32(154).fork()).ldelim();
271
+ }
272
+ if (message.hidden === true) {
273
+ writer.uint32(160).bool(message.hidden);
274
+ }
275
+ return writer;
276
+ },
277
+ decode(input, length) {
278
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
279
+ let end = length === undefined ? reader.len : reader.pos + length;
280
+ const message = createBaseComment();
281
+ while (reader.pos < end) {
282
+ const tag = reader.uint32();
283
+ switch (tag >>> 3) {
284
+ case 1:
285
+ message.creator = reader.string();
286
+ break;
287
+ case 2:
288
+ message.id = reader.uint64();
289
+ break;
290
+ case 3:
291
+ message.repositoryId = reader.uint64();
292
+ break;
293
+ case 4:
294
+ message.parentIid = reader.uint64();
295
+ break;
296
+ case 5:
297
+ message.parent = reader.int32();
298
+ break;
299
+ case 6:
300
+ message.commentIid = reader.uint64();
301
+ break;
302
+ case 7:
303
+ message.body = reader.string();
304
+ break;
305
+ case 8:
306
+ message.attachments.push(attachment_1.Attachment.decode(reader, reader.uint32()));
307
+ break;
308
+ case 9:
309
+ message.diffHunk = reader.string();
310
+ break;
311
+ case 10:
312
+ message.path = reader.string();
313
+ break;
314
+ case 11:
315
+ message.position = reader.uint64();
316
+ break;
317
+ case 12:
318
+ message.system = reader.bool();
319
+ break;
320
+ case 13:
321
+ message.authorAssociation = reader.string();
322
+ break;
323
+ case 14:
324
+ message.createdAt = reader.int64();
325
+ break;
326
+ case 15:
327
+ message.updatedAt = reader.int64();
328
+ break;
329
+ case 16:
330
+ message.commentType = reader.int32();
331
+ break;
332
+ case 17:
333
+ message.resolved = reader.bool();
334
+ break;
335
+ case 18:
336
+ if ((tag & 7) === 2) {
337
+ const end2 = reader.uint32() + reader.pos;
338
+ while (reader.pos < end2) {
339
+ message.replies.push(reader.uint64());
340
+ }
341
+ }
342
+ else {
343
+ message.replies.push(reader.uint64());
344
+ }
345
+ break;
346
+ case 19:
347
+ message.reactions.push(reaction_1.Reaction.decode(reader, reader.uint32()));
348
+ break;
349
+ case 20:
350
+ message.hidden = reader.bool();
351
+ break;
352
+ default:
353
+ reader.skipType(tag & 7);
354
+ break;
355
+ }
356
+ }
357
+ return message;
358
+ },
359
+ fromPartial(object) {
360
+ const message = createBaseComment();
361
+ message.creator = object.creator ?? "";
362
+ message.id = object.id !== undefined && object.id !== null ? BigInt(object.id.toString()) : BigInt(0);
363
+ message.repositoryId = object.repositoryId !== undefined && object.repositoryId !== null ? BigInt(object.repositoryId.toString()) : BigInt(0);
364
+ message.parentIid = object.parentIid !== undefined && object.parentIid !== null ? BigInt(object.parentIid.toString()) : BigInt(0);
365
+ message.parent = object.parent ?? 0;
366
+ message.commentIid = object.commentIid !== undefined && object.commentIid !== null ? BigInt(object.commentIid.toString()) : BigInt(0);
367
+ message.body = object.body ?? "";
368
+ message.attachments = object.attachments?.map(e => attachment_1.Attachment.fromPartial(e)) || [];
369
+ message.diffHunk = object.diffHunk ?? "";
370
+ message.path = object.path ?? "";
371
+ message.position = object.position !== undefined && object.position !== null ? BigInt(object.position.toString()) : BigInt(0);
372
+ message.system = object.system ?? false;
373
+ message.authorAssociation = object.authorAssociation ?? "";
374
+ message.createdAt = object.createdAt !== undefined && object.createdAt !== null ? BigInt(object.createdAt.toString()) : BigInt(0);
375
+ message.updatedAt = object.updatedAt !== undefined && object.updatedAt !== null ? BigInt(object.updatedAt.toString()) : BigInt(0);
376
+ message.commentType = object.commentType ?? 0;
377
+ message.resolved = object.resolved ?? false;
378
+ message.replies = object.replies?.map(e => BigInt(e.toString())) || [];
379
+ message.reactions = object.reactions?.map(e => reaction_1.Reaction.fromPartial(e)) || [];
380
+ message.hidden = object.hidden ?? false;
381
+ return message;
382
+ },
383
+ fromAmino(object) {
384
+ const message = createBaseComment();
385
+ if (object.creator !== undefined && object.creator !== null) {
386
+ message.creator = object.creator;
387
+ }
388
+ if (object.id !== undefined && object.id !== null) {
389
+ message.id = BigInt(object.id);
390
+ }
391
+ if (object.repositoryId !== undefined && object.repositoryId !== null) {
392
+ message.repositoryId = BigInt(object.repositoryId);
393
+ }
394
+ if (object.parentIid !== undefined && object.parentIid !== null) {
395
+ message.parentIid = BigInt(object.parentIid);
396
+ }
397
+ if (object.parent !== undefined && object.parent !== null) {
398
+ message.parent = object.parent;
399
+ }
400
+ if (object.commentIid !== undefined && object.commentIid !== null) {
401
+ message.commentIid = BigInt(object.commentIid);
402
+ }
403
+ if (object.body !== undefined && object.body !== null) {
404
+ message.body = object.body;
405
+ }
406
+ message.attachments = object.attachments?.map(e => attachment_1.Attachment.fromAmino(e)) || [];
407
+ if (object.diffHunk !== undefined && object.diffHunk !== null) {
408
+ message.diffHunk = object.diffHunk;
409
+ }
410
+ if (object.path !== undefined && object.path !== null) {
411
+ message.path = object.path;
412
+ }
413
+ if (object.position !== undefined && object.position !== null) {
414
+ message.position = BigInt(object.position);
415
+ }
416
+ if (object.system !== undefined && object.system !== null) {
417
+ message.system = object.system;
418
+ }
419
+ if (object.authorAssociation !== undefined && object.authorAssociation !== null) {
420
+ message.authorAssociation = object.authorAssociation;
421
+ }
422
+ if (object.createdAt !== undefined && object.createdAt !== null) {
423
+ message.createdAt = BigInt(object.createdAt);
424
+ }
425
+ if (object.updatedAt !== undefined && object.updatedAt !== null) {
426
+ message.updatedAt = BigInt(object.updatedAt);
427
+ }
428
+ if (object.commentType !== undefined && object.commentType !== null) {
429
+ message.commentType = object.commentType;
430
+ }
431
+ if (object.resolved !== undefined && object.resolved !== null) {
432
+ message.resolved = object.resolved;
433
+ }
434
+ message.replies = object.replies?.map(e => BigInt(e)) || [];
435
+ message.reactions = object.reactions?.map(e => reaction_1.Reaction.fromAmino(e)) || [];
436
+ if (object.hidden !== undefined && object.hidden !== null) {
437
+ message.hidden = object.hidden;
438
+ }
439
+ return message;
440
+ },
441
+ toAmino(message) {
442
+ const obj = {};
443
+ obj.creator = message.creator === "" ? undefined : message.creator;
444
+ obj.id = message.id !== BigInt(0) ? message.id?.toString() : undefined;
445
+ obj.repositoryId = message.repositoryId !== BigInt(0) ? message.repositoryId?.toString() : undefined;
446
+ obj.parentIid = message.parentIid !== BigInt(0) ? message.parentIid?.toString() : undefined;
447
+ obj.parent = message.parent === 0 ? undefined : message.parent;
448
+ obj.commentIid = message.commentIid !== BigInt(0) ? message.commentIid?.toString() : undefined;
449
+ obj.body = message.body === "" ? undefined : message.body;
450
+ if (message.attachments) {
451
+ obj.attachments = message.attachments.map(e => e ? attachment_1.Attachment.toAmino(e) : undefined);
452
+ }
453
+ else {
454
+ obj.attachments = message.attachments;
455
+ }
456
+ obj.diffHunk = message.diffHunk === "" ? undefined : message.diffHunk;
457
+ obj.path = message.path === "" ? undefined : message.path;
458
+ obj.position = message.position !== BigInt(0) ? message.position?.toString() : undefined;
459
+ obj.system = message.system === false ? undefined : message.system;
460
+ obj.authorAssociation = message.authorAssociation === "" ? undefined : message.authorAssociation;
461
+ obj.createdAt = message.createdAt !== BigInt(0) ? message.createdAt?.toString() : undefined;
462
+ obj.updatedAt = message.updatedAt !== BigInt(0) ? message.updatedAt?.toString() : undefined;
463
+ obj.commentType = message.commentType === 0 ? undefined : message.commentType;
464
+ obj.resolved = message.resolved === false ? undefined : message.resolved;
465
+ if (message.replies) {
466
+ obj.replies = message.replies.map(e => e.toString());
467
+ }
468
+ else {
469
+ obj.replies = message.replies;
470
+ }
471
+ if (message.reactions) {
472
+ obj.reactions = message.reactions.map(e => e ? reaction_1.Reaction.toAmino(e) : undefined);
473
+ }
474
+ else {
475
+ obj.reactions = message.reactions;
476
+ }
477
+ obj.hidden = message.hidden === false ? undefined : message.hidden;
478
+ return obj;
479
+ },
480
+ fromAminoMsg(object) {
481
+ return exports.Comment.fromAmino(object.value);
482
+ },
483
+ fromProtoMsg(message) {
484
+ return exports.Comment.decode(message.value);
485
+ },
486
+ toProto(message) {
487
+ return exports.Comment.encode(message).finish();
488
+ },
489
+ toProtoMsg(message) {
490
+ return {
491
+ typeUrl: "/gitopia.gitopia.gitopia.Comment",
492
+ value: exports.Comment.encode(message).finish()
493
+ };
494
+ }
495
+ };
@@ -0,0 +1,160 @@
1
+ import { BinaryReader, BinaryWriter } from "../../../binary";
2
+ /** Configuration options for DAO governance */
3
+ export interface DaoConfig {
4
+ /** Whether pull requests require governance proposal */
5
+ requirePullRequestProposal: boolean;
6
+ /** Whether repository deletion requires governance proposal */
7
+ requireRepositoryDeletionProposal: boolean;
8
+ /** Whether management of collaborators requires governance proposal */
9
+ requireCollaboratorProposal: boolean;
10
+ /** Whether releases requires governance proposal */
11
+ requireReleaseProposal: boolean;
12
+ }
13
+ export interface DaoConfigProtoMsg {
14
+ typeUrl: "/gitopia.gitopia.gitopia.DaoConfig";
15
+ value: Uint8Array;
16
+ }
17
+ /** Configuration options for DAO governance */
18
+ export interface DaoConfigAmino {
19
+ /** Whether pull requests require governance proposal */
20
+ require_pull_request_proposal?: boolean;
21
+ /** Whether repository deletion requires governance proposal */
22
+ require_repository_deletion_proposal?: boolean;
23
+ /** Whether management of collaborators requires governance proposal */
24
+ require_collaborator_proposal?: boolean;
25
+ /** Whether releases requires governance proposal */
26
+ require_release_proposal?: boolean;
27
+ }
28
+ export interface DaoConfigAminoMsg {
29
+ type: "/gitopia.gitopia.gitopia.DaoConfig";
30
+ value: DaoConfigAmino;
31
+ }
32
+ /** Configuration options for DAO governance */
33
+ export interface DaoConfigSDKType {
34
+ require_pull_request_proposal: boolean;
35
+ require_repository_deletion_proposal: boolean;
36
+ require_collaborator_proposal: boolean;
37
+ require_release_proposal: boolean;
38
+ }
39
+ export interface Dao {
40
+ creator: string;
41
+ id: bigint;
42
+ address: string;
43
+ name: string;
44
+ avatarUrl: string;
45
+ followers: string[];
46
+ following: string[];
47
+ teams: bigint[];
48
+ location: string;
49
+ website: string;
50
+ verified: boolean;
51
+ description: string;
52
+ createdAt: bigint;
53
+ updatedAt: bigint;
54
+ pinnedRepos: bigint[];
55
+ /** Group associated with the DAO */
56
+ groupId: bigint;
57
+ /** DAO configuration settings */
58
+ config: DaoConfig;
59
+ }
60
+ export interface DaoProtoMsg {
61
+ typeUrl: "/gitopia.gitopia.gitopia.Dao";
62
+ value: Uint8Array;
63
+ }
64
+ export interface DaoAmino {
65
+ creator?: string;
66
+ id?: string;
67
+ address?: string;
68
+ name?: string;
69
+ avatarUrl?: string;
70
+ followers?: string[];
71
+ following?: string[];
72
+ teams?: string[];
73
+ location?: string;
74
+ website?: string;
75
+ verified?: boolean;
76
+ description?: string;
77
+ createdAt?: string;
78
+ updatedAt?: string;
79
+ pinned_repos?: string[];
80
+ /** Group associated with the DAO */
81
+ group_id?: string;
82
+ /** DAO configuration settings */
83
+ config?: DaoConfigAmino;
84
+ }
85
+ export interface DaoAminoMsg {
86
+ type: "/gitopia.gitopia.gitopia.Dao";
87
+ value: DaoAmino;
88
+ }
89
+ export interface DaoSDKType {
90
+ creator: string;
91
+ id: bigint;
92
+ address: string;
93
+ name: string;
94
+ avatarUrl: string;
95
+ followers: string[];
96
+ following: string[];
97
+ teams: bigint[];
98
+ location: string;
99
+ website: string;
100
+ verified: boolean;
101
+ description: string;
102
+ createdAt: bigint;
103
+ updatedAt: bigint;
104
+ pinned_repos: bigint[];
105
+ group_id: bigint;
106
+ config: DaoConfigSDKType;
107
+ }
108
+ export interface GroupDao {
109
+ daoAddress: string;
110
+ }
111
+ export interface GroupDaoProtoMsg {
112
+ typeUrl: "/gitopia.gitopia.gitopia.GroupDao";
113
+ value: Uint8Array;
114
+ }
115
+ export interface GroupDaoAmino {
116
+ dao_address?: string;
117
+ }
118
+ export interface GroupDaoAminoMsg {
119
+ type: "/gitopia.gitopia.gitopia.GroupDao";
120
+ value: GroupDaoAmino;
121
+ }
122
+ export interface GroupDaoSDKType {
123
+ dao_address: string;
124
+ }
125
+ export declare const DaoConfig: {
126
+ typeUrl: string;
127
+ encode(message: DaoConfig, writer?: BinaryWriter): BinaryWriter;
128
+ decode(input: BinaryReader | Uint8Array, length?: number): DaoConfig;
129
+ fromPartial(object: Partial<DaoConfig>): DaoConfig;
130
+ fromAmino(object: DaoConfigAmino): DaoConfig;
131
+ toAmino(message: DaoConfig): DaoConfigAmino;
132
+ fromAminoMsg(object: DaoConfigAminoMsg): DaoConfig;
133
+ fromProtoMsg(message: DaoConfigProtoMsg): DaoConfig;
134
+ toProto(message: DaoConfig): Uint8Array;
135
+ toProtoMsg(message: DaoConfig): DaoConfigProtoMsg;
136
+ };
137
+ export declare const Dao: {
138
+ typeUrl: string;
139
+ encode(message: Dao, writer?: BinaryWriter): BinaryWriter;
140
+ decode(input: BinaryReader | Uint8Array, length?: number): Dao;
141
+ fromPartial(object: Partial<Dao>): Dao;
142
+ fromAmino(object: DaoAmino): Dao;
143
+ toAmino(message: Dao): DaoAmino;
144
+ fromAminoMsg(object: DaoAminoMsg): Dao;
145
+ fromProtoMsg(message: DaoProtoMsg): Dao;
146
+ toProto(message: Dao): Uint8Array;
147
+ toProtoMsg(message: Dao): DaoProtoMsg;
148
+ };
149
+ export declare const GroupDao: {
150
+ typeUrl: string;
151
+ encode(message: GroupDao, writer?: BinaryWriter): BinaryWriter;
152
+ decode(input: BinaryReader | Uint8Array, length?: number): GroupDao;
153
+ fromPartial(object: Partial<GroupDao>): GroupDao;
154
+ fromAmino(object: GroupDaoAmino): GroupDao;
155
+ toAmino(message: GroupDao): GroupDaoAmino;
156
+ fromAminoMsg(object: GroupDaoAminoMsg): GroupDao;
157
+ fromProtoMsg(message: GroupDaoProtoMsg): GroupDao;
158
+ toProto(message: GroupDao): Uint8Array;
159
+ toProtoMsg(message: GroupDao): GroupDaoProtoMsg;
160
+ };