@devvit/protos 0.10.19-next-2024-04-23-c35a72ce6.0 → 0.10.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. package/package.json +6 -5
  2. package/schema/devvit/data/api/v1alpha/delivery.proto +2 -2
  3. package/types/devvit/actor/automation/v1alpha/automation.d.ts +28 -6
  4. package/types/devvit/actor/automation/v1alpha/automation.d.ts.map +1 -1
  5. package/types/devvit/actor/automation/v1alpha/automation_builder.d.ts +142 -6
  6. package/types/devvit/actor/automation/v1alpha/automation_builder.d.ts.map +1 -1
  7. package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +4007 -96
  8. package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts.map +1 -1
  9. package/types/devvit/actor/automation/v1alpha/step.d.ts +79 -16
  10. package/types/devvit/actor/automation/v1alpha/step.d.ts.map +1 -1
  11. package/types/devvit/actor/automation/v1alpha/trigger.d.ts.map +1 -1
  12. package/types/devvit/actor/automation/v2alpha/automation_ui_builder.d.ts +153 -6
  13. package/types/devvit/actor/automation/v2alpha/automation_ui_builder.d.ts.map +1 -1
  14. package/types/devvit/actor/bot/bot.d.ts +51 -6
  15. package/types/devvit/actor/bot/bot.d.ts.map +1 -1
  16. package/types/devvit/actor/gl/glclient.d.ts +75 -6
  17. package/types/devvit/actor/gl/glclient.d.ts.map +1 -1
  18. package/types/devvit/actor/hello/hello.d.ts +27 -6
  19. package/types/devvit/actor/hello/hello.d.ts.map +1 -1
  20. package/types/devvit/actor/permissions/permissions.d.ts.map +1 -1
  21. package/types/devvit/actor/producer/producer.d.ts +27 -6
  22. package/types/devvit/actor/producer/producer.d.ts.map +1 -1
  23. package/types/devvit/actor/reddit/context_action.d.ts +52 -6
  24. package/types/devvit/actor/reddit/context_action.d.ts.map +1 -1
  25. package/types/devvit/actor/reddit/context_type.d.ts.map +1 -1
  26. package/types/devvit/actor/reddit/post_filter.d.ts +27 -6
  27. package/types/devvit/actor/reddit/post_filter.d.ts.map +1 -1
  28. package/types/devvit/actor/scheduler/action.d.ts.map +1 -1
  29. package/types/devvit/actor/scheduler/handler.d.ts +38 -6
  30. package/types/devvit/actor/scheduler/handler.d.ts.map +1 -1
  31. package/types/devvit/actor/settings/v1alpha/app_settings.d.ts +4 -4
  32. package/types/devvit/actor/settings/v1alpha/app_settings.d.ts.map +1 -1
  33. package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts +4 -4
  34. package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts.map +1 -1
  35. package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts +246 -6
  36. package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts.map +1 -1
  37. package/types/devvit/actor/settings/v1alpha/shared.d.ts.map +1 -1
  38. package/types/devvit/actor/test/streams.d.ts +87 -6
  39. package/types/devvit/actor/test/streams.d.ts.map +1 -1
  40. package/types/devvit/actor/test/wrappertypes.d.ts +260 -6
  41. package/types/devvit/actor/test/wrappertypes.d.ts.map +1 -1
  42. package/types/devvit/actor/user_configurable/user_configurable.d.ts +56 -6
  43. package/types/devvit/actor/user_configurable/user_configurable.d.ts.map +1 -1
  44. package/types/devvit/cli/playtest.d.ts.map +1 -1
  45. package/types/devvit/data/api/v1alpha/admin.d.ts +27 -6
  46. package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
  47. package/types/devvit/data/api/v1alpha/filter.d.ts.map +1 -1
  48. package/types/devvit/data/api/v1alpha/intake.d.ts +27 -6
  49. package/types/devvit/data/api/v1alpha/intake.d.ts.map +1 -1
  50. package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +1 -1
  51. package/types/devvit/debug/v1alpha/debug.d.ts +27 -6
  52. package/types/devvit/debug/v1alpha/debug.d.ts.map +1 -1
  53. package/types/devvit/dev_portal/actor/actor_type.d.ts.map +1 -1
  54. package/types/devvit/dev_portal/admin/waitlist_admin.d.ts +103 -6
  55. package/types/devvit/dev_portal/admin/waitlist_admin.d.ts.map +1 -1
  56. package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
  57. package/types/devvit/dev_portal/app/categories/categories.d.ts.map +1 -1
  58. package/types/devvit/dev_portal/app/info/app_info.d.ts.map +1 -1
  59. package/types/devvit/dev_portal/app_settings/app_settings.d.ts.map +1 -1
  60. package/types/devvit/dev_portal/app_version/app_version.d.ts.map +1 -1
  61. package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts.map +1 -1
  62. package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts.map +1 -1
  63. package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts.map +1 -1
  64. package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts.map +1 -1
  65. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts.map +1 -1
  66. package/types/devvit/dev_portal/dev_portal.d.ts +4950 -41
  67. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  68. package/types/devvit/dev_portal/feedback/feedback.d.ts.map +1 -1
  69. package/types/devvit/dev_portal/installation/installation.d.ts.map +1 -1
  70. package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts.map +1 -1
  71. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts.map +1 -1
  72. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +12 -13
  73. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts.map +1 -1
  74. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts.map +1 -1
  75. package/types/devvit/dev_portal/internal/media/media.d.ts.map +1 -1
  76. package/types/devvit/dev_portal/nutrition/nutrition.d.ts.map +1 -1
  77. package/types/devvit/dev_portal/reddit/redditor.d.ts.map +1 -1
  78. package/types/devvit/dev_portal/waitlist/waitlist.d.ts +99 -6
  79. package/types/devvit/dev_portal/waitlist/waitlist.d.ts.map +1 -1
  80. package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
  81. package/types/devvit/events/v1alpha/realtime.d.ts +51 -6
  82. package/types/devvit/events/v1alpha/realtime.d.ts.map +1 -1
  83. package/types/devvit/events/v1alpha/wqcleanup.d.ts.map +1 -1
  84. package/types/devvit/gateway/automod.d.ts +27 -6
  85. package/types/devvit/gateway/automod.d.ts.map +1 -1
  86. package/types/devvit/gateway/custom_post_snapshot.d.ts +33 -6
  87. package/types/devvit/gateway/custom_post_snapshot.d.ts.map +1 -1
  88. package/types/devvit/gateway/resolvers.d.ts +171 -6
  89. package/types/devvit/gateway/resolvers.d.ts.map +1 -1
  90. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +149 -11
  91. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts.map +1 -1
  92. package/types/devvit/gateway/v1alpha/triggers.d.ts +7873 -6
  93. package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
  94. package/types/devvit/gql/snapshot.d.ts.map +1 -1
  95. package/types/devvit/gql/subreddit_metadata.d.ts.map +1 -1
  96. package/types/devvit/options/options.d.ts.map +1 -1
  97. package/types/devvit/plugin/assetresolver/assetresolver.d.ts +53 -6
  98. package/types/devvit/plugin/assetresolver/assetresolver.d.ts.map +1 -1
  99. package/types/devvit/plugin/automodregex/automodregex.d.ts +51 -6
  100. package/types/devvit/plugin/automodregex/automodregex.d.ts.map +1 -1
  101. package/types/devvit/plugin/builder/builder.d.ts +121 -6
  102. package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
  103. package/types/devvit/plugin/buildpack/buildpack.d.ts +442 -6
  104. package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
  105. package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
  106. package/types/devvit/plugin/buildpack/filesystem.d.ts.map +1 -1
  107. package/types/devvit/plugin/clock/clock.d.ts +34 -6
  108. package/types/devvit/plugin/clock/clock.d.ts.map +1 -1
  109. package/types/devvit/plugin/devserver/devserver.d.ts +233 -11
  110. package/types/devvit/plugin/devserver/devserver.d.ts.map +1 -1
  111. package/types/devvit/plugin/devserver/testcases.d.ts.map +1 -1
  112. package/types/devvit/plugin/gl/glrenderer.d.ts +27 -6
  113. package/types/devvit/plugin/gl/glrenderer.d.ts.map +1 -1
  114. package/types/devvit/plugin/gl/methods.d.ts.map +1 -1
  115. package/types/devvit/plugin/gl/methodtype.d.ts.map +1 -1
  116. package/types/devvit/plugin/http/http.d.ts +27 -6
  117. package/types/devvit/plugin/http/http.d.ts.map +1 -1
  118. package/types/devvit/plugin/inspector/inspector.d.ts +51 -6
  119. package/types/devvit/plugin/inspector/inspector.d.ts.map +1 -1
  120. package/types/devvit/plugin/kvstore/kvstore.d.ts +99 -6
  121. package/types/devvit/plugin/kvstore/kvstore.d.ts.map +1 -1
  122. package/types/devvit/plugin/linker/linker.d.ts +143 -6
  123. package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
  124. package/types/devvit/plugin/linker/resolver.d.ts +238 -6
  125. package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
  126. package/types/devvit/plugin/logger/logger.d.ts +104 -6
  127. package/types/devvit/plugin/logger/logger.d.ts.map +1 -1
  128. package/types/devvit/plugin/media/media.d.ts +27 -6
  129. package/types/devvit/plugin/media/media.d.ts.map +1 -1
  130. package/types/devvit/plugin/modlog/modlog.d.ts +27 -6
  131. package/types/devvit/plugin/modlog/modlog.d.ts.map +1 -1
  132. package/types/devvit/plugin/redditapi/common/common_msg.d.ts.map +1 -1
  133. package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts.map +1 -1
  134. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +732 -6
  135. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
  136. package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts.map +1 -1
  137. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +97 -6
  138. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts.map +1 -1
  139. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
  140. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +2305 -6
  141. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  142. package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts.map +1 -1
  143. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +3016 -6
  144. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
  145. package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts.map +1 -1
  146. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +3162 -6
  147. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
  148. package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts.map +1 -1
  149. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +336 -6
  150. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
  151. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts.map +1 -1
  152. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +4816 -6
  153. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
  154. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts.map +1 -1
  155. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +427 -6
  156. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts.map +1 -1
  157. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts.map +1 -1
  158. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +653 -6
  159. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
  160. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts.map +1 -1
  161. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +3830 -6
  162. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
  163. package/types/devvit/plugin/redditapi/users/users_msg.d.ts.map +1 -1
  164. package/types/devvit/plugin/redditapi/users/users_svc.d.ts +1399 -6
  165. package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
  166. package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts.map +1 -1
  167. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +1681 -6
  168. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
  169. package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts.map +1 -1
  170. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +3023 -6
  171. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
  172. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +100 -6
  173. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts.map +1 -1
  174. package/types/devvit/plugin/redis/redisapi.d.ts +967 -6
  175. package/types/devvit/plugin/redis/redisapi.d.ts.map +1 -1
  176. package/types/devvit/plugin/scheduler/scheduler.d.ts +78 -6
  177. package/types/devvit/plugin/scheduler/scheduler.d.ts.map +1 -1
  178. package/types/devvit/plugin/settings/v1alpha/settings.d.ts +28 -6
  179. package/types/devvit/plugin/settings/v1alpha/settings.d.ts.map +1 -1
  180. package/types/devvit/plugin/streambroker/streambroker.d.ts +51 -6
  181. package/types/devvit/plugin/streambroker/streambroker.d.ts.map +1 -1
  182. package/types/devvit/plugin/timer/timer.d.ts +27 -6
  183. package/types/devvit/plugin/timer/timer.d.ts.map +1 -1
  184. package/types/devvit/plugin/v2events/v2events.d.ts +27 -6
  185. package/types/devvit/plugin/v2events/v2events.d.ts.map +1 -1
  186. package/types/devvit/reddit/comment.d.ts.map +1 -1
  187. package/types/devvit/reddit/common.d.ts.map +1 -1
  188. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +51 -6
  189. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts.map +1 -1
  190. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +1801 -6
  191. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
  192. package/types/devvit/reddit/post.d.ts.map +1 -1
  193. package/types/devvit/reddit/post_guidance/v1alpha/post_guidance.d.ts +27 -6
  194. package/types/devvit/reddit/post_guidance/v1alpha/post_guidance.d.ts.map +1 -1
  195. package/types/devvit/reddit/subreddit.d.ts.map +1 -1
  196. package/types/devvit/reddit/thing_type.d.ts.map +1 -1
  197. package/types/devvit/reddit/user.d.ts.map +1 -1
  198. package/types/devvit/reddit/v2alpha/commentv2.d.ts.map +1 -1
  199. package/types/devvit/reddit/v2alpha/flair.d.ts.map +1 -1
  200. package/types/devvit/reddit/v2alpha/modaction.d.ts.map +1 -1
  201. package/types/devvit/reddit/v2alpha/modmail.d.ts.map +1 -1
  202. package/types/devvit/reddit/v2alpha/postv2.d.ts.map +1 -1
  203. package/types/devvit/reddit/v2alpha/subredditv2.d.ts.map +1 -1
  204. package/types/devvit/reddit/v2alpha/userv2.d.ts.map +1 -1
  205. package/types/devvit/remote_logger/remote_logger.d.ts +77 -11
  206. package/types/devvit/remote_logger/remote_logger.d.ts.map +1 -1
  207. package/types/devvit/runtime/actor/bootstrap.d.ts +117 -6
  208. package/types/devvit/runtime/actor/bootstrap.d.ts.map +1 -1
  209. package/types/devvit/runtime/actor/echo.d.ts +36 -6
  210. package/types/devvit/runtime/actor/echo.d.ts.map +1 -1
  211. package/types/devvit/runtime/actor/runtime.d.ts +115 -6
  212. package/types/devvit/runtime/actor/runtime.d.ts.map +1 -1
  213. package/types/devvit/runtime/actor/supervisor.d.ts +212 -6
  214. package/types/devvit/runtime/actor/supervisor.d.ts.map +1 -1
  215. package/types/devvit/runtime/actor/v1alpha/health.d.ts +27 -6
  216. package/types/devvit/runtime/actor/v1alpha/health.d.ts.map +1 -1
  217. package/types/devvit/runtime/bundle.d.ts.map +1 -1
  218. package/types/devvit/runtime/envelope.d.ts.map +1 -1
  219. package/types/devvit/runtime/runtime_common.d.ts.map +1 -1
  220. package/types/devvit/runtime/serializable.d.ts.map +1 -1
  221. package/types/devvit/service/bundle_service.d.ts +181 -6
  222. package/types/devvit/service/bundle_service.d.ts.map +1 -1
  223. package/types/devvit/service/envelope_service.d.ts +60 -6
  224. package/types/devvit/service/envelope_service.d.ts.map +1 -1
  225. package/types/devvit/ui/block_kit/v1beta/attributes.d.ts.map +1 -1
  226. package/types/devvit/ui/block_kit/v1beta/block.d.ts.map +1 -1
  227. package/types/devvit/ui/block_kit/v1beta/enums.d.ts.map +1 -1
  228. package/types/devvit/ui/block_kit/v1beta/rendering.d.ts.map +1 -1
  229. package/types/devvit/ui/block_kit/v1beta/ui.d.ts.map +1 -1
  230. package/types/devvit/ui/common/v1alpha/common.d.ts.map +1 -1
  231. package/types/devvit/ui/effects/v1alpha/effect.d.ts.map +1 -1
  232. package/types/devvit/ui/effects/v1alpha/interval.d.ts.map +1 -1
  233. package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts.map +1 -1
  234. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts.map +1 -1
  235. package/types/devvit/ui/effects/v1alpha/reload_part.d.ts.map +1 -1
  236. package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts.map +1 -1
  237. package/types/devvit/ui/effects/v1alpha/send_event.d.ts.map +1 -1
  238. package/types/devvit/ui/effects/v1alpha/show_form.d.ts.map +1 -1
  239. package/types/devvit/ui/effects/v1alpha/show_toast.d.ts.map +1 -1
  240. package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
  241. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +27 -6
  242. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts.map +1 -1
  243. package/types/devvit/ui/form_builder/v1alpha/field.d.ts.map +1 -1
  244. package/types/devvit/ui/form_builder/v1alpha/form.d.ts.map +1 -1
  245. package/types/devvit/ui/form_builder/v1alpha/type.d.ts.map +1 -1
  246. package/types/devvit/ui/form_builder/v1alpha/value.d.ts.map +1 -1
  247. package/types/devvit/ui/toast/toast.d.ts.map +1 -1
  248. package/types/devvit/uuid.d.ts.map +1 -1
  249. package/types/typeRegistry.d.ts.map +1 -1
@@ -3,7 +3,8 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import { Metadata, MethodDefinition } from "../../../../../lib/Types.js";
6
+ import _m0 from 'protobufjs/minimal.js';
7
+ import { Metadata } from "../../../../../lib/Types.js";
7
8
  import { Empty } from '../../../../google/protobuf/empty.js';
8
9
  import { JsonStatus, Listing } from '../common/common_msg.js';
9
10
  import { BasicIdRequest, CommentRequest, FollowPostRequest, InfoRequest, JsonWrappedComment, MoreChildrenRequest, ReportAwardRequest, ReportRequest, SaveRequest, SendRepliesRequest, SetContestModeRequest, SetSubredditStickyRequest, SetSuggestedSortRequest, SubmitRequest, SubmitResponse, VoteRequest } from './linksandcomments_msg.js';
@@ -225,11 +226,2309 @@ export declare class LinksAndCommentsClientImpl implements LinksAndComments {
225
226
  */
226
227
  export type LinksAndCommentsDefinition = typeof LinksAndCommentsDefinition;
227
228
  export declare const LinksAndCommentsDefinition: {
228
- name: 'LinksAndComments';
229
- fullName: string;
230
- methods: {
231
- [methodName: string]: MethodDefinition & {
232
- options: {};
229
+ readonly name: "LinksAndComments";
230
+ readonly fullName: "devvit.plugin.redditapi.linksandcomments.LinksAndComments";
231
+ readonly methods: {
232
+ /**
233
+ * Submit a new Comment
234
+ * Note: `thing_id` refers to the Post or Comment this comment is replying to
235
+ *
236
+ * @see {@link https://www.reddit.com/dev/api#POST_api_comment}
237
+ */
238
+ readonly comment: {
239
+ readonly name: "Comment";
240
+ readonly requestType: {
241
+ $type: "devvit.plugin.redditapi.linksandcomments.CommentRequest";
242
+ encode(message: CommentRequest, writer?: _m0.Writer): _m0.Writer;
243
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CommentRequest;
244
+ fromJSON(object: any): CommentRequest;
245
+ toJSON(message: CommentRequest): unknown;
246
+ create(base?: {
247
+ richtextJson?: string | undefined;
248
+ text?: string;
249
+ thingId?: string;
250
+ } | undefined): CommentRequest;
251
+ fromPartial(object: {
252
+ richtextJson?: string | undefined;
253
+ text?: string;
254
+ thingId?: string;
255
+ }): CommentRequest;
256
+ };
257
+ readonly requestStream: false;
258
+ readonly responseType: {
259
+ $type: "devvit.plugin.redditapi.linksandcomments.JsonWrappedComment";
260
+ encode(message: JsonWrappedComment, writer?: _m0.Writer): _m0.Writer;
261
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonWrappedComment;
262
+ fromJSON(object: any): JsonWrappedComment;
263
+ toJSON(message: JsonWrappedComment): unknown;
264
+ create(base?: {
265
+ json?: {
266
+ errors?: string[];
267
+ data?: {
268
+ things?: {
269
+ kind?: string;
270
+ data?: {
271
+ allAwardings?: {
272
+ awardSubType?: string | undefined;
273
+ awardType?: string | undefined;
274
+ awardingsRequiredToGrantBenefits?: number | undefined;
275
+ coinPrice?: number | undefined;
276
+ coinReward?: number | undefined;
277
+ count?: number | undefined;
278
+ daysOfDripExtension?: number | undefined;
279
+ daysOfPremium?: number | undefined;
280
+ description?: string | undefined;
281
+ endDate?: string | undefined;
282
+ giverCoinReward?: number | undefined;
283
+ iconFormat?: string | undefined;
284
+ iconHeight?: number | undefined;
285
+ iconUrl?: string | undefined;
286
+ iconWidth?: number | undefined;
287
+ id?: string | undefined;
288
+ isEnabled?: boolean | undefined;
289
+ isNew?: boolean | undefined;
290
+ name?: string | undefined;
291
+ pennyDonate?: number | undefined;
292
+ pennyPrice?: number | undefined;
293
+ resizedIcons?: {
294
+ height?: number | undefined;
295
+ url?: string | undefined;
296
+ width?: number | undefined;
297
+ }[];
298
+ resizedStaticIcons?: {
299
+ height?: number | undefined;
300
+ url?: string | undefined;
301
+ width?: number | undefined;
302
+ }[];
303
+ startDate?: string | undefined;
304
+ staticIconHeight?: number | undefined;
305
+ staticIconUrl?: string | undefined;
306
+ staticIconWidth?: number | undefined;
307
+ stickyDurationSeconds?: number | undefined;
308
+ subredditCoinReward?: number | undefined;
309
+ subredditId?: string | undefined;
310
+ tiersByRequiredAwardings?: string | undefined;
311
+ }[];
312
+ approved?: boolean | undefined;
313
+ approvedAtUtc?: number | undefined;
314
+ approvedBy?: string | undefined;
315
+ archived?: boolean | undefined;
316
+ associatedAward?: string | undefined;
317
+ author?: string | undefined;
318
+ authorFlairBackgroundColor?: string | undefined;
319
+ authorFlairCssClass?: string | undefined;
320
+ authorFlairRichtext?: {
321
+ e?: string | undefined;
322
+ t?: string | undefined;
323
+ }[];
324
+ authorFlairTemplateId?: string | undefined;
325
+ authorFlairText?: string | undefined;
326
+ authorFlairTextColor?: string | undefined;
327
+ authorFlairType?: string | undefined;
328
+ authorFullname?: string | undefined;
329
+ authorIsBlocked?: boolean | undefined;
330
+ authorPatreonFlair?: boolean | undefined;
331
+ authorPremium?: boolean | undefined;
332
+ awarders?: string[];
333
+ bannedAtUtc?: number | undefined;
334
+ bannedBy?: string | undefined;
335
+ body?: string | undefined;
336
+ bodyHtml?: string | undefined;
337
+ canGild?: boolean | undefined;
338
+ canModPost?: boolean | undefined;
339
+ collapsed?: boolean | undefined;
340
+ collapsedBecauseCrowdControl?: boolean | undefined;
341
+ collapsedReason?: string | undefined;
342
+ collapsedReasonCode?: string | undefined;
343
+ commentType?: string | undefined;
344
+ controversiality?: number | undefined;
345
+ created?: number | undefined;
346
+ createdUtc?: number | undefined;
347
+ depth?: number | undefined;
348
+ distinguished?: string | undefined;
349
+ downs?: number | undefined;
350
+ edited?: boolean | undefined;
351
+ gilded?: number | undefined;
352
+ gildings?: {
353
+ gid1?: number | undefined;
354
+ gid2?: number | undefined;
355
+ gid3?: number | undefined;
356
+ } | undefined;
357
+ id?: string | undefined;
358
+ ignoreReports?: boolean | undefined;
359
+ isSubmitter?: boolean | undefined;
360
+ likes?: boolean | undefined;
361
+ linkId?: string | undefined;
362
+ locked?: boolean | undefined;
363
+ modNote?: string | undefined;
364
+ modReasonBy?: string | undefined;
365
+ modReasonTitle?: string | undefined;
366
+ modReports?: any[][];
367
+ name?: string | undefined;
368
+ noFollow?: boolean | undefined;
369
+ numReports?: number | undefined;
370
+ parentId?: string | undefined;
371
+ permalink?: string | undefined;
372
+ removalReason?: string | undefined;
373
+ removed?: boolean | undefined;
374
+ replies?: string | undefined;
375
+ reportReasons?: string[];
376
+ rteMode?: string | undefined;
377
+ saved?: boolean | undefined;
378
+ score?: number | undefined;
379
+ scoreHidden?: boolean | undefined;
380
+ sendReplies?: boolean | undefined;
381
+ spam?: boolean | undefined;
382
+ stickied?: boolean | undefined;
383
+ subreddit?: string | undefined;
384
+ subredditId?: string | undefined;
385
+ subredditNamePrefixed?: string | undefined;
386
+ subredditType?: string | undefined;
387
+ topAwardedType?: string | undefined;
388
+ totalAwardsReceived?: number | undefined;
389
+ treatmentTags?: string[];
390
+ unrepliableReason?: string | undefined;
391
+ ups?: number | undefined;
392
+ userReports?: any[][];
393
+ count?: number | undefined;
394
+ children?: string[];
395
+ banInfo?: {
396
+ auto?: boolean | undefined;
397
+ bannedAt?: number | undefined;
398
+ banner?: string | undefined;
399
+ moderatorBanned?: boolean | undefined;
400
+ note?: string | undefined;
401
+ unbanner?: string | undefined;
402
+ unbannedAt?: number | undefined;
403
+ resetUsed?: boolean | undefined;
404
+ reasonId?: string | undefined;
405
+ reasonTitle?: string | undefined;
406
+ reasonMessage?: string | undefined;
407
+ reasonBy?: string | undefined;
408
+ modNote?: string | undefined;
409
+ banAllTriggered?: boolean | undefined;
410
+ subredditMessage?: string | undefined;
411
+ removeAction?: import("../../../reddit/common.js").BanInfo_BanInfoAction;
412
+ } | undefined;
413
+ markedSpam?: boolean | undefined;
414
+ verdict?: string | undefined;
415
+ } | undefined;
416
+ }[];
417
+ } | undefined;
418
+ } | undefined;
419
+ } | undefined): JsonWrappedComment;
420
+ fromPartial(object: {
421
+ json?: {
422
+ errors?: string[];
423
+ data?: {
424
+ things?: {
425
+ kind?: string;
426
+ data?: {
427
+ allAwardings?: {
428
+ awardSubType?: string | undefined;
429
+ awardType?: string | undefined;
430
+ awardingsRequiredToGrantBenefits?: number | undefined;
431
+ coinPrice?: number | undefined;
432
+ coinReward?: number | undefined;
433
+ count?: number | undefined;
434
+ daysOfDripExtension?: number | undefined;
435
+ daysOfPremium?: number | undefined;
436
+ description?: string | undefined;
437
+ endDate?: string | undefined;
438
+ giverCoinReward?: number | undefined;
439
+ iconFormat?: string | undefined;
440
+ iconHeight?: number | undefined;
441
+ iconUrl?: string | undefined;
442
+ iconWidth?: number | undefined;
443
+ id?: string | undefined;
444
+ isEnabled?: boolean | undefined;
445
+ isNew?: boolean | undefined;
446
+ name?: string | undefined;
447
+ pennyDonate?: number | undefined;
448
+ pennyPrice?: number | undefined;
449
+ resizedIcons?: {
450
+ height?: number | undefined;
451
+ url?: string | undefined;
452
+ width?: number | undefined;
453
+ }[];
454
+ resizedStaticIcons?: {
455
+ height?: number | undefined;
456
+ url?: string | undefined;
457
+ width?: number | undefined;
458
+ }[];
459
+ startDate?: string | undefined;
460
+ staticIconHeight?: number | undefined;
461
+ staticIconUrl?: string | undefined;
462
+ staticIconWidth?: number | undefined;
463
+ stickyDurationSeconds?: number | undefined;
464
+ subredditCoinReward?: number | undefined;
465
+ subredditId?: string | undefined;
466
+ tiersByRequiredAwardings?: string | undefined;
467
+ }[];
468
+ approved?: boolean | undefined;
469
+ approvedAtUtc?: number | undefined;
470
+ approvedBy?: string | undefined;
471
+ archived?: boolean | undefined;
472
+ associatedAward?: string | undefined;
473
+ author?: string | undefined;
474
+ authorFlairBackgroundColor?: string | undefined;
475
+ authorFlairCssClass?: string | undefined;
476
+ authorFlairRichtext?: {
477
+ e?: string | undefined;
478
+ t?: string | undefined;
479
+ }[];
480
+ authorFlairTemplateId?: string | undefined;
481
+ authorFlairText?: string | undefined;
482
+ authorFlairTextColor?: string | undefined;
483
+ authorFlairType?: string | undefined;
484
+ authorFullname?: string | undefined;
485
+ authorIsBlocked?: boolean | undefined;
486
+ authorPatreonFlair?: boolean | undefined;
487
+ authorPremium?: boolean | undefined;
488
+ awarders?: string[];
489
+ bannedAtUtc?: number | undefined;
490
+ bannedBy?: string | undefined;
491
+ body?: string | undefined;
492
+ bodyHtml?: string | undefined;
493
+ canGild?: boolean | undefined;
494
+ canModPost?: boolean | undefined;
495
+ collapsed?: boolean | undefined;
496
+ collapsedBecauseCrowdControl?: boolean | undefined;
497
+ collapsedReason?: string | undefined;
498
+ collapsedReasonCode?: string | undefined;
499
+ commentType?: string | undefined;
500
+ controversiality?: number | undefined;
501
+ created?: number | undefined;
502
+ createdUtc?: number | undefined;
503
+ depth?: number | undefined;
504
+ distinguished?: string | undefined;
505
+ downs?: number | undefined;
506
+ edited?: boolean | undefined;
507
+ gilded?: number | undefined;
508
+ gildings?: {
509
+ gid1?: number | undefined;
510
+ gid2?: number | undefined;
511
+ gid3?: number | undefined;
512
+ } | undefined;
513
+ id?: string | undefined;
514
+ ignoreReports?: boolean | undefined;
515
+ isSubmitter?: boolean | undefined;
516
+ likes?: boolean | undefined;
517
+ linkId?: string | undefined;
518
+ locked?: boolean | undefined;
519
+ modNote?: string | undefined;
520
+ modReasonBy?: string | undefined;
521
+ modReasonTitle?: string | undefined;
522
+ modReports?: any[][];
523
+ name?: string | undefined;
524
+ noFollow?: boolean | undefined;
525
+ numReports?: number | undefined;
526
+ parentId?: string | undefined;
527
+ permalink?: string | undefined;
528
+ removalReason?: string | undefined;
529
+ removed?: boolean | undefined;
530
+ replies?: string | undefined;
531
+ reportReasons?: string[];
532
+ rteMode?: string | undefined;
533
+ saved?: boolean | undefined;
534
+ score?: number | undefined;
535
+ scoreHidden?: boolean | undefined;
536
+ sendReplies?: boolean | undefined;
537
+ spam?: boolean | undefined;
538
+ stickied?: boolean | undefined;
539
+ subreddit?: string | undefined;
540
+ subredditId?: string | undefined;
541
+ subredditNamePrefixed?: string | undefined;
542
+ subredditType?: string | undefined;
543
+ topAwardedType?: string | undefined;
544
+ totalAwardsReceived?: number | undefined;
545
+ treatmentTags?: string[];
546
+ unrepliableReason?: string | undefined;
547
+ ups?: number | undefined;
548
+ userReports?: any[][];
549
+ count?: number | undefined;
550
+ children?: string[];
551
+ banInfo?: {
552
+ auto?: boolean | undefined;
553
+ bannedAt?: number | undefined;
554
+ banner?: string | undefined;
555
+ moderatorBanned?: boolean | undefined;
556
+ note?: string | undefined;
557
+ unbanner?: string | undefined;
558
+ unbannedAt?: number | undefined;
559
+ resetUsed?: boolean | undefined;
560
+ reasonId?: string | undefined;
561
+ reasonTitle?: string | undefined;
562
+ reasonMessage?: string | undefined;
563
+ reasonBy?: string | undefined;
564
+ modNote?: string | undefined;
565
+ banAllTriggered?: boolean | undefined;
566
+ subredditMessage?: string | undefined;
567
+ removeAction?: import("../../../reddit/common.js").BanInfo_BanInfoAction;
568
+ } | undefined;
569
+ markedSpam?: boolean | undefined;
570
+ verdict?: string | undefined;
571
+ } | undefined;
572
+ }[];
573
+ } | undefined;
574
+ } | undefined;
575
+ }): JsonWrappedComment;
576
+ };
577
+ readonly responseStream: false;
578
+ readonly options: {};
579
+ };
580
+ /**
581
+ * Delete a Post or Comment
582
+ * Note: `id` must be a single thing ID for a Post or Comment
583
+ *
584
+ * @see {@link https://www.reddit.com/dev/api#POST_api_del}
585
+ */
586
+ readonly del: {
587
+ readonly name: "Del";
588
+ readonly requestType: {
589
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
590
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
591
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
592
+ fromJSON(object: any): BasicIdRequest;
593
+ toJSON(message: BasicIdRequest): unknown;
594
+ create(base?: {
595
+ id?: string;
596
+ } | undefined): BasicIdRequest;
597
+ fromPartial(object: {
598
+ id?: string;
599
+ }): BasicIdRequest;
600
+ };
601
+ readonly requestStream: false;
602
+ readonly responseType: {
603
+ $type: "google.protobuf.Empty";
604
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
605
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
606
+ fromJSON(_: any): Empty;
607
+ toJSON(_: Empty): unknown; /**
608
+ * Edit the body text of a Comment or Post
609
+ * Note: `thing_id` refers to the Post or Comment being edited
610
+ *
611
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
612
+ */
613
+ create(base?: {} | undefined): Empty;
614
+ fromPartial(_: {}): Empty;
615
+ };
616
+ readonly responseStream: false;
617
+ readonly options: {};
618
+ };
619
+ /**
620
+ * Edit the body text of a Comment or Post
621
+ * Note: `thing_id` refers to the Post or Comment being edited
622
+ *
623
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
624
+ */
625
+ readonly editUserText: {
626
+ readonly name: "EditUserText";
627
+ readonly requestType: {
628
+ $type: "devvit.plugin.redditapi.linksandcomments.CommentRequest";
629
+ encode(message: CommentRequest, writer?: _m0.Writer): _m0.Writer;
630
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CommentRequest;
631
+ fromJSON(object: any): CommentRequest;
632
+ toJSON(message: CommentRequest): unknown;
633
+ create(base?: {
634
+ richtextJson?: string | undefined;
635
+ text?: string;
636
+ thingId?: string;
637
+ } | undefined): CommentRequest;
638
+ fromPartial(object: {
639
+ richtextJson?: string | undefined;
640
+ text?: string;
641
+ thingId?: string;
642
+ }): CommentRequest;
643
+ };
644
+ readonly requestStream: false;
645
+ readonly responseType: {
646
+ $type: "devvit.plugin.redditapi.linksandcomments.JsonWrappedComment";
647
+ encode(message: JsonWrappedComment, writer?: _m0.Writer): _m0.Writer;
648
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonWrappedComment;
649
+ fromJSON(object: any): JsonWrappedComment;
650
+ toJSON(message: JsonWrappedComment): unknown;
651
+ create(base?: {
652
+ json?: {
653
+ errors?: string[];
654
+ data?: {
655
+ things?: {
656
+ kind?: string;
657
+ data?: {
658
+ allAwardings?: {
659
+ awardSubType?: string | undefined;
660
+ awardType?: string | undefined;
661
+ awardingsRequiredToGrantBenefits?: number | undefined;
662
+ coinPrice?: number | undefined;
663
+ coinReward?: number | undefined;
664
+ count?: number | undefined;
665
+ daysOfDripExtension?: number | undefined;
666
+ daysOfPremium?: number | undefined;
667
+ description?: string | undefined;
668
+ endDate?: string | undefined;
669
+ giverCoinReward?: number | undefined;
670
+ iconFormat?: string | undefined;
671
+ iconHeight?: number | undefined;
672
+ iconUrl?: string | undefined;
673
+ iconWidth?: number | undefined;
674
+ id?: string | undefined;
675
+ isEnabled?: boolean | undefined;
676
+ isNew?: boolean | undefined;
677
+ name?: string | undefined;
678
+ pennyDonate?: number | undefined;
679
+ pennyPrice?: number | undefined;
680
+ resizedIcons?: {
681
+ height?: number | undefined;
682
+ url?: string | undefined;
683
+ width?: number | undefined;
684
+ }[];
685
+ resizedStaticIcons?: {
686
+ height?: number | undefined;
687
+ url?: string | undefined;
688
+ width?: number | undefined;
689
+ }[];
690
+ startDate?: string | undefined;
691
+ staticIconHeight?: number | undefined;
692
+ staticIconUrl?: string | undefined;
693
+ staticIconWidth?: number | undefined;
694
+ stickyDurationSeconds?: number | undefined;
695
+ subredditCoinReward?: number | undefined;
696
+ subredditId?: string | undefined;
697
+ tiersByRequiredAwardings?: string | undefined;
698
+ }[];
699
+ approved?: boolean | undefined;
700
+ approvedAtUtc?: number | undefined;
701
+ approvedBy?: string | undefined;
702
+ archived?: boolean | undefined;
703
+ associatedAward?: string | undefined;
704
+ author?: string | undefined;
705
+ authorFlairBackgroundColor?: string | undefined;
706
+ authorFlairCssClass?: string | undefined;
707
+ authorFlairRichtext?: {
708
+ e?: string | undefined;
709
+ t?: string | undefined;
710
+ }[];
711
+ authorFlairTemplateId?: string | undefined;
712
+ authorFlairText?: string | undefined;
713
+ authorFlairTextColor?: string | undefined;
714
+ authorFlairType?: string | undefined;
715
+ authorFullname?: string | undefined;
716
+ authorIsBlocked?: boolean | undefined;
717
+ authorPatreonFlair?: boolean | undefined;
718
+ authorPremium?: boolean | undefined;
719
+ awarders?: string[];
720
+ bannedAtUtc?: number | undefined;
721
+ bannedBy?: string | undefined;
722
+ body?: string | undefined;
723
+ bodyHtml?: string | undefined;
724
+ canGild?: boolean | undefined;
725
+ canModPost?: boolean | undefined;
726
+ collapsed?: boolean | undefined;
727
+ collapsedBecauseCrowdControl?: boolean | undefined;
728
+ collapsedReason?: string | undefined;
729
+ collapsedReasonCode?: string | undefined;
730
+ commentType?: string | undefined;
731
+ controversiality?: number | undefined;
732
+ created?: number | undefined;
733
+ createdUtc?: number | undefined;
734
+ depth?: number | undefined;
735
+ distinguished?: string | undefined;
736
+ downs?: number | undefined;
737
+ edited?: boolean | undefined;
738
+ gilded?: number | undefined;
739
+ gildings?: {
740
+ gid1?: number | undefined;
741
+ gid2?: number | undefined;
742
+ gid3?: number | undefined;
743
+ } | undefined;
744
+ id?: string | undefined;
745
+ ignoreReports?: boolean | undefined;
746
+ isSubmitter?: boolean | undefined;
747
+ likes?: boolean | undefined;
748
+ linkId?: string | undefined;
749
+ locked?: boolean | undefined;
750
+ modNote?: string | undefined;
751
+ modReasonBy?: string | undefined;
752
+ modReasonTitle?: string | undefined;
753
+ modReports?: any[][];
754
+ name?: string | undefined;
755
+ noFollow?: boolean | undefined;
756
+ numReports?: number | undefined;
757
+ parentId?: string | undefined;
758
+ permalink?: string | undefined;
759
+ removalReason?: string | undefined;
760
+ removed?: boolean | undefined;
761
+ replies?: string | undefined;
762
+ reportReasons?: string[];
763
+ rteMode?: string | undefined;
764
+ saved?: boolean | undefined;
765
+ score?: number | undefined;
766
+ scoreHidden?: boolean | undefined;
767
+ sendReplies?: boolean | undefined;
768
+ spam?: boolean | undefined;
769
+ stickied?: boolean | undefined;
770
+ subreddit?: string | undefined;
771
+ subredditId?: string | undefined;
772
+ subredditNamePrefixed?: string | undefined;
773
+ subredditType?: string | undefined;
774
+ topAwardedType?: string | undefined;
775
+ totalAwardsReceived?: number | undefined;
776
+ treatmentTags?: string[];
777
+ unrepliableReason?: string | undefined;
778
+ ups?: number | undefined;
779
+ userReports?: any[][];
780
+ count?: number | undefined;
781
+ children?: string[];
782
+ banInfo?: {
783
+ auto?: boolean | undefined;
784
+ bannedAt?: number | undefined;
785
+ banner?: string | undefined;
786
+ moderatorBanned?: boolean | undefined;
787
+ note?: string | undefined;
788
+ unbanner?: string | undefined;
789
+ unbannedAt?: number | undefined;
790
+ resetUsed?: boolean | undefined;
791
+ reasonId?: string | undefined;
792
+ reasonTitle?: string | undefined;
793
+ reasonMessage?: string | undefined;
794
+ reasonBy?: string | undefined;
795
+ modNote?: string | undefined;
796
+ banAllTriggered?: boolean | undefined;
797
+ subredditMessage?: string | undefined;
798
+ removeAction?: import("../../../reddit/common.js").BanInfo_BanInfoAction;
799
+ } | undefined;
800
+ markedSpam?: boolean | undefined;
801
+ verdict?: string | undefined;
802
+ } | undefined;
803
+ }[];
804
+ } | undefined;
805
+ } | undefined;
806
+ } | undefined): JsonWrappedComment;
807
+ fromPartial(object: {
808
+ json?: {
809
+ errors?: string[];
810
+ data?: {
811
+ things?: {
812
+ kind?: string;
813
+ data?: {
814
+ allAwardings?: {
815
+ awardSubType?: string | undefined;
816
+ awardType?: string | undefined;
817
+ awardingsRequiredToGrantBenefits?: number | undefined;
818
+ coinPrice?: number | undefined;
819
+ coinReward?: number | undefined;
820
+ count?: number | undefined;
821
+ daysOfDripExtension?: number | undefined;
822
+ daysOfPremium?: number | undefined;
823
+ description?: string | undefined;
824
+ endDate?: string | undefined;
825
+ giverCoinReward?: number | undefined;
826
+ iconFormat?: string | undefined;
827
+ iconHeight?: number | undefined;
828
+ iconUrl?: string | undefined;
829
+ iconWidth?: number | undefined;
830
+ id?: string | undefined;
831
+ isEnabled?: boolean | undefined;
832
+ isNew?: boolean | undefined;
833
+ name?: string | undefined;
834
+ pennyDonate?: number | undefined;
835
+ pennyPrice?: number | undefined;
836
+ resizedIcons?: {
837
+ height?: number | undefined;
838
+ url?: string | undefined;
839
+ width?: number | undefined;
840
+ }[];
841
+ resizedStaticIcons?: {
842
+ height?: number | undefined;
843
+ url?: string | undefined;
844
+ width?: number | undefined;
845
+ }[];
846
+ startDate?: string | undefined;
847
+ staticIconHeight?: number | undefined;
848
+ staticIconUrl?: string | undefined;
849
+ staticIconWidth?: number | undefined;
850
+ stickyDurationSeconds?: number | undefined;
851
+ subredditCoinReward?: number | undefined;
852
+ subredditId?: string | undefined;
853
+ tiersByRequiredAwardings?: string | undefined;
854
+ }[];
855
+ approved?: boolean | undefined;
856
+ approvedAtUtc?: number | undefined;
857
+ approvedBy?: string | undefined;
858
+ archived?: boolean | undefined;
859
+ associatedAward?: string | undefined;
860
+ author?: string | undefined;
861
+ authorFlairBackgroundColor?: string | undefined;
862
+ authorFlairCssClass?: string | undefined;
863
+ authorFlairRichtext?: {
864
+ e?: string | undefined;
865
+ t?: string | undefined;
866
+ }[];
867
+ authorFlairTemplateId?: string | undefined;
868
+ authorFlairText?: string | undefined;
869
+ authorFlairTextColor?: string | undefined;
870
+ authorFlairType?: string | undefined;
871
+ authorFullname?: string | undefined;
872
+ authorIsBlocked?: boolean | undefined;
873
+ authorPatreonFlair?: boolean | undefined;
874
+ authorPremium?: boolean | undefined;
875
+ awarders?: string[];
876
+ bannedAtUtc?: number | undefined;
877
+ bannedBy?: string | undefined;
878
+ body?: string | undefined;
879
+ bodyHtml?: string | undefined;
880
+ canGild?: boolean | undefined;
881
+ canModPost?: boolean | undefined;
882
+ collapsed?: boolean | undefined;
883
+ collapsedBecauseCrowdControl?: boolean | undefined;
884
+ collapsedReason?: string | undefined;
885
+ collapsedReasonCode?: string | undefined;
886
+ commentType?: string | undefined;
887
+ controversiality?: number | undefined;
888
+ created?: number | undefined;
889
+ createdUtc?: number | undefined;
890
+ depth?: number | undefined;
891
+ distinguished?: string | undefined;
892
+ downs?: number | undefined;
893
+ edited?: boolean | undefined;
894
+ gilded?: number | undefined;
895
+ gildings?: {
896
+ gid1?: number | undefined;
897
+ gid2?: number | undefined;
898
+ gid3?: number | undefined;
899
+ } | undefined;
900
+ id?: string | undefined;
901
+ ignoreReports?: boolean | undefined;
902
+ isSubmitter?: boolean | undefined;
903
+ likes?: boolean | undefined;
904
+ linkId?: string | undefined;
905
+ locked?: boolean | undefined;
906
+ modNote?: string | undefined;
907
+ modReasonBy?: string | undefined;
908
+ modReasonTitle?: string | undefined;
909
+ modReports?: any[][];
910
+ name?: string | undefined;
911
+ noFollow?: boolean | undefined;
912
+ numReports?: number | undefined;
913
+ parentId?: string | undefined;
914
+ permalink?: string | undefined;
915
+ removalReason?: string | undefined;
916
+ removed?: boolean | undefined;
917
+ replies?: string | undefined;
918
+ reportReasons?: string[];
919
+ rteMode?: string | undefined;
920
+ saved?: boolean | undefined;
921
+ score?: number | undefined;
922
+ scoreHidden?: boolean | undefined;
923
+ sendReplies?: boolean | undefined;
924
+ spam?: boolean | undefined;
925
+ stickied?: boolean | undefined;
926
+ subreddit?: string | undefined;
927
+ subredditId?: string | undefined;
928
+ subredditNamePrefixed?: string | undefined;
929
+ subredditType?: string | undefined;
930
+ topAwardedType?: string | undefined;
931
+ totalAwardsReceived?: number | undefined;
932
+ treatmentTags?: string[];
933
+ unrepliableReason?: string | undefined;
934
+ ups?: number | undefined;
935
+ userReports?: any[][];
936
+ count?: number | undefined;
937
+ children?: string[];
938
+ banInfo?: {
939
+ auto?: boolean | undefined;
940
+ bannedAt?: number | undefined;
941
+ banner?: string | undefined;
942
+ moderatorBanned?: boolean | undefined;
943
+ note?: string | undefined;
944
+ unbanner?: string | undefined;
945
+ unbannedAt?: number | undefined;
946
+ resetUsed?: boolean | undefined;
947
+ reasonId?: string | undefined;
948
+ reasonTitle?: string | undefined;
949
+ reasonMessage?: string | undefined;
950
+ reasonBy?: string | undefined;
951
+ modNote?: string | undefined;
952
+ banAllTriggered?: boolean | undefined;
953
+ subredditMessage?: string | undefined;
954
+ removeAction?: import("../../../reddit/common.js").BanInfo_BanInfoAction;
955
+ } | undefined;
956
+ markedSpam?: boolean | undefined;
957
+ verdict?: string | undefined;
958
+ } | undefined;
959
+ }[];
960
+ } | undefined;
961
+ } | undefined;
962
+ }): JsonWrappedComment;
963
+ };
964
+ readonly responseStream: false;
965
+ readonly options: {};
966
+ };
967
+ /**
968
+ * Follow or unfollow a Post
969
+ *
970
+ * @see {@link https://www.reddit.com/dev/api#POST_api_follow_post}
971
+ */
972
+ readonly followPost: {
973
+ readonly name: "FollowPost";
974
+ readonly requestType: {
975
+ $type: "devvit.plugin.redditapi.linksandcomments.FollowPostRequest";
976
+ encode(message: FollowPostRequest, writer?: _m0.Writer): _m0.Writer;
977
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): FollowPostRequest;
978
+ fromJSON(object: any): FollowPostRequest;
979
+ toJSON(message: FollowPostRequest): unknown;
980
+ create(base?: {
981
+ follow?: boolean;
982
+ fullname?: string;
983
+ } | undefined): FollowPostRequest;
984
+ fromPartial(object: {
985
+ follow?: boolean;
986
+ fullname?: string;
987
+ }): FollowPostRequest;
988
+ };
989
+ readonly requestStream: false;
990
+ readonly responseType: {
991
+ $type: "google.protobuf.Empty";
992
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
993
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
994
+ fromJSON(_: any): Empty;
995
+ toJSON(_: Empty): unknown; /**
996
+ * Edit the body text of a Comment or Post
997
+ * Note: `thing_id` refers to the Post or Comment being edited
998
+ *
999
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
1000
+ */
1001
+ create(base?: {} | undefined): Empty;
1002
+ fromPartial(_: {}): Empty;
1003
+ };
1004
+ readonly responseStream: false;
1005
+ readonly options: {};
1006
+ };
1007
+ /**
1008
+ * Hide one or more Posts for the user
1009
+ * Note: `id` must be one or more comma-separated Post thing IDs
1010
+ *
1011
+ * @see {@link Unhide}
1012
+ * @see {@link https://www.reddit.com/dev/api#POST_api_hide}
1013
+ */
1014
+ readonly hide: {
1015
+ readonly name: "Hide";
1016
+ readonly requestType: {
1017
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
1018
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
1019
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
1020
+ fromJSON(object: any): BasicIdRequest;
1021
+ toJSON(message: BasicIdRequest): unknown;
1022
+ create(base?: {
1023
+ id?: string;
1024
+ } | undefined): BasicIdRequest;
1025
+ fromPartial(object: {
1026
+ id?: string;
1027
+ }): BasicIdRequest;
1028
+ };
1029
+ readonly requestStream: false;
1030
+ readonly responseType: {
1031
+ $type: "google.protobuf.Empty";
1032
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
1033
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
1034
+ fromJSON(_: any): Empty;
1035
+ toJSON(_: Empty): unknown; /**
1036
+ * Edit the body text of a Comment or Post
1037
+ * Note: `thing_id` refers to the Post or Comment being edited
1038
+ *
1039
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
1040
+ */
1041
+ create(base?: {} | undefined): Empty;
1042
+ fromPartial(_: {}): Empty;
1043
+ };
1044
+ readonly responseStream: false;
1045
+ readonly options: {};
1046
+ };
1047
+ /**
1048
+ * Get one or more things by ID, Subreddit name, or Link Post URL
1049
+ *
1050
+ * @see {@link https://www.reddit.com/dev/api#GET_api_info}
1051
+ */
1052
+ readonly info: {
1053
+ readonly name: "Info";
1054
+ readonly requestType: {
1055
+ $type: "devvit.plugin.redditapi.linksandcomments.InfoRequest";
1056
+ encode(message: InfoRequest, writer?: _m0.Writer): _m0.Writer;
1057
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): InfoRequest;
1058
+ fromJSON(object: any): InfoRequest;
1059
+ toJSON(message: InfoRequest): unknown;
1060
+ create(base?: {
1061
+ subreddits?: string[];
1062
+ thingIds?: string[];
1063
+ url?: string | undefined;
1064
+ } | undefined): InfoRequest;
1065
+ fromPartial(object: {
1066
+ subreddits?: string[];
1067
+ thingIds?: string[];
1068
+ url?: string | undefined;
1069
+ }): InfoRequest;
1070
+ };
1071
+ readonly requestStream: false;
1072
+ readonly responseType: {
1073
+ $type: "devvit.plugin.redditapi.common.Listing";
1074
+ encode(message: Listing, writer?: _m0.Writer): _m0.Writer;
1075
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Listing;
1076
+ fromJSON(object: any): Listing;
1077
+ toJSON(message: Listing): unknown;
1078
+ create(base?: {
1079
+ kind?: string;
1080
+ data?: {
1081
+ after?: string | undefined;
1082
+ before?: string | undefined;
1083
+ children?: {
1084
+ kind?: string;
1085
+ data?: {
1086
+ allAwardings?: {
1087
+ typeUrl?: string;
1088
+ value?: Uint8Array;
1089
+ }[];
1090
+ approved?: boolean | undefined;
1091
+ approvedAtUtc?: number | undefined;
1092
+ approvedBy?: string | undefined;
1093
+ archived?: boolean | undefined;
1094
+ associatedAward?: string | undefined;
1095
+ author?: string | undefined;
1096
+ authorFlairBackgroundColor?: string | undefined;
1097
+ authorFlairCssClass?: string | undefined;
1098
+ authorFlairRichtext?: {
1099
+ e?: string | undefined;
1100
+ t?: string | undefined;
1101
+ a?: string | undefined;
1102
+ u?: string | undefined;
1103
+ }[];
1104
+ authorFlairTemplateId?: string | undefined;
1105
+ authorFlairText?: string | undefined;
1106
+ authorFlairTextColor?: string | undefined;
1107
+ authorFlairType?: string | undefined;
1108
+ authorFullname?: string | undefined;
1109
+ authorIsBlocked?: boolean | undefined;
1110
+ authorPatreonFlair?: boolean | undefined;
1111
+ authorPremium?: boolean | undefined;
1112
+ awarders?: string[];
1113
+ bannedAtUtc?: number | undefined;
1114
+ bannedBy?: string | undefined;
1115
+ body?: string | undefined;
1116
+ bodyHtml?: string | undefined;
1117
+ canGild?: boolean | undefined;
1118
+ canModPost?: boolean | undefined;
1119
+ collapsed?: boolean | undefined;
1120
+ collapsedBecauseCrowdControl?: boolean | undefined;
1121
+ collapsedReason?: string | undefined;
1122
+ collapsedReasonCode?: string | undefined;
1123
+ commentType?: string | undefined;
1124
+ controversiality?: number | undefined;
1125
+ created?: number | undefined;
1126
+ createdUtc?: number | undefined;
1127
+ distinguished?: string | undefined;
1128
+ downs?: number | undefined;
1129
+ edited?: boolean | undefined;
1130
+ gilded?: number | undefined;
1131
+ gildings?: {
1132
+ typeUrl?: string;
1133
+ value?: Uint8Array;
1134
+ } | undefined;
1135
+ id?: string | undefined;
1136
+ ignoreReports?: boolean | undefined;
1137
+ isSubmitter?: boolean | undefined;
1138
+ likes?: boolean | undefined;
1139
+ linkId?: string | undefined;
1140
+ locked?: boolean | undefined;
1141
+ modNote?: string | undefined;
1142
+ modReasonBy?: string | undefined;
1143
+ modReasonTitle?: string | undefined;
1144
+ name?: string | undefined;
1145
+ noFollow?: boolean | undefined;
1146
+ numReports?: number | undefined;
1147
+ parentId?: string | undefined;
1148
+ permalink?: string | undefined;
1149
+ removalReason?: string | undefined;
1150
+ removed?: boolean | undefined;
1151
+ replies?: string | undefined;
1152
+ reportReasons?: any[] | undefined;
1153
+ rteMode?: string | undefined;
1154
+ saved?: boolean | undefined;
1155
+ score?: number | undefined;
1156
+ scoreHidden?: boolean | undefined;
1157
+ sendReplies?: boolean | undefined;
1158
+ spam?: boolean | undefined;
1159
+ stickied?: boolean | undefined;
1160
+ subreddit?: string | undefined;
1161
+ subredditId?: string | undefined;
1162
+ subredditNamePrefixed?: string | undefined;
1163
+ subredditType?: string | undefined;
1164
+ topAwardedType?: string | undefined;
1165
+ totalAwardsReceived?: number | undefined;
1166
+ treatmentTags?: {
1167
+ typeUrl?: string;
1168
+ value?: Uint8Array;
1169
+ }[];
1170
+ unrepliableReason?: string | undefined;
1171
+ ups?: number | undefined;
1172
+ depth?: number | undefined;
1173
+ linkTitle?: string | undefined;
1174
+ linkAuthor?: string | undefined;
1175
+ numComments?: number | undefined;
1176
+ over18?: boolean | undefined;
1177
+ linkPermalink?: string | undefined;
1178
+ quarantine?: boolean | undefined;
1179
+ linkUrl?: string | undefined;
1180
+ selftext?: string | undefined;
1181
+ selftextHtml?: string | undefined;
1182
+ thumbnail?: string | undefined;
1183
+ thumbnailWidth?: number | undefined;
1184
+ thumbnailHeight?: number | undefined;
1185
+ title?: string | undefined;
1186
+ url?: string | undefined;
1187
+ displayName?: string | undefined;
1188
+ modPermissions?: string[];
1189
+ count?: number | undefined;
1190
+ children?: any[] | undefined;
1191
+ replyList?: any | undefined;
1192
+ hidden?: boolean | undefined;
1193
+ linkFlairBackgroundColor?: string | undefined;
1194
+ linkFlairCssClass?: string | undefined;
1195
+ linkFlairRichtext?: {
1196
+ e?: string | undefined;
1197
+ t?: string | undefined;
1198
+ a?: string | undefined;
1199
+ u?: string | undefined;
1200
+ }[];
1201
+ linkFlairTemplateId?: string | undefined;
1202
+ linkFlairText?: string | undefined;
1203
+ linkFlairTextColor?: string | undefined;
1204
+ linkFlairType?: string | undefined;
1205
+ secureMedia?: {
1206
+ type?: string;
1207
+ oembed?: {
1208
+ type?: string;
1209
+ title?: string | undefined;
1210
+ providerName?: string | undefined;
1211
+ providerUrl?: string | undefined;
1212
+ version?: string;
1213
+ thumbnailWidth?: number | undefined;
1214
+ thumbnailHeight?: number | undefined;
1215
+ thumbnailUrl?: string | undefined;
1216
+ html?: string;
1217
+ height?: number | undefined;
1218
+ width?: number | undefined;
1219
+ authorUrl?: string | undefined;
1220
+ authorName?: string | undefined;
1221
+ } | undefined;
1222
+ redditVideo?: {
1223
+ bitrateKbps?: number | undefined;
1224
+ dashUrl?: string | undefined;
1225
+ duration?: number | undefined;
1226
+ fallbackUrl?: string | undefined;
1227
+ height?: number | undefined;
1228
+ hlsUrl?: string | undefined;
1229
+ isGif?: boolean | undefined;
1230
+ scrubberMediaUrl?: string | undefined;
1231
+ transcodingStatus?: string | undefined;
1232
+ width?: number | undefined;
1233
+ } | undefined;
1234
+ } | undefined;
1235
+ spoiler?: boolean;
1236
+ modReports?: any[][];
1237
+ userReports?: any[][];
1238
+ removedBy?: string | undefined;
1239
+ removedByCategory?: string | undefined;
1240
+ } | undefined;
1241
+ }[];
1242
+ dist?: number | undefined;
1243
+ } | undefined;
1244
+ } | undefined): Listing;
1245
+ fromPartial(object: {
1246
+ kind?: string;
1247
+ data?: {
1248
+ after?: string | undefined;
1249
+ before?: string | undefined;
1250
+ children?: {
1251
+ kind?: string;
1252
+ data?: {
1253
+ allAwardings?: {
1254
+ typeUrl?: string;
1255
+ value?: Uint8Array;
1256
+ }[];
1257
+ approved?: boolean | undefined;
1258
+ approvedAtUtc?: number | undefined;
1259
+ approvedBy?: string | undefined;
1260
+ archived?: boolean | undefined;
1261
+ associatedAward?: string | undefined;
1262
+ author?: string | undefined;
1263
+ authorFlairBackgroundColor?: string | undefined;
1264
+ authorFlairCssClass?: string | undefined;
1265
+ authorFlairRichtext?: {
1266
+ e?: string | undefined;
1267
+ t?: string | undefined;
1268
+ a?: string | undefined;
1269
+ u?: string | undefined;
1270
+ }[];
1271
+ authorFlairTemplateId?: string | undefined;
1272
+ authorFlairText?: string | undefined;
1273
+ authorFlairTextColor?: string | undefined;
1274
+ authorFlairType?: string | undefined;
1275
+ authorFullname?: string | undefined;
1276
+ authorIsBlocked?: boolean | undefined;
1277
+ authorPatreonFlair?: boolean | undefined;
1278
+ authorPremium?: boolean | undefined;
1279
+ awarders?: string[];
1280
+ bannedAtUtc?: number | undefined;
1281
+ bannedBy?: string | undefined;
1282
+ body?: string | undefined;
1283
+ bodyHtml?: string | undefined;
1284
+ canGild?: boolean | undefined;
1285
+ canModPost?: boolean | undefined;
1286
+ collapsed?: boolean | undefined;
1287
+ collapsedBecauseCrowdControl?: boolean | undefined;
1288
+ collapsedReason?: string | undefined;
1289
+ collapsedReasonCode?: string | undefined;
1290
+ commentType?: string | undefined;
1291
+ controversiality?: number | undefined;
1292
+ created?: number | undefined;
1293
+ createdUtc?: number | undefined;
1294
+ distinguished?: string | undefined;
1295
+ downs?: number | undefined;
1296
+ edited?: boolean | undefined;
1297
+ gilded?: number | undefined;
1298
+ gildings?: {
1299
+ typeUrl?: string;
1300
+ value?: Uint8Array;
1301
+ } | undefined;
1302
+ id?: string | undefined;
1303
+ ignoreReports?: boolean | undefined;
1304
+ isSubmitter?: boolean | undefined;
1305
+ likes?: boolean | undefined;
1306
+ linkId?: string | undefined;
1307
+ locked?: boolean | undefined;
1308
+ modNote?: string | undefined;
1309
+ modReasonBy?: string | undefined;
1310
+ modReasonTitle?: string | undefined;
1311
+ name?: string | undefined;
1312
+ noFollow?: boolean | undefined;
1313
+ numReports?: number | undefined;
1314
+ parentId?: string | undefined;
1315
+ permalink?: string | undefined;
1316
+ removalReason?: string | undefined;
1317
+ removed?: boolean | undefined;
1318
+ replies?: string | undefined;
1319
+ reportReasons?: any[] | undefined;
1320
+ rteMode?: string | undefined;
1321
+ saved?: boolean | undefined;
1322
+ score?: number | undefined;
1323
+ scoreHidden?: boolean | undefined;
1324
+ sendReplies?: boolean | undefined;
1325
+ spam?: boolean | undefined;
1326
+ stickied?: boolean | undefined;
1327
+ subreddit?: string | undefined;
1328
+ subredditId?: string | undefined;
1329
+ subredditNamePrefixed?: string | undefined;
1330
+ subredditType?: string | undefined;
1331
+ topAwardedType?: string | undefined;
1332
+ totalAwardsReceived?: number | undefined;
1333
+ treatmentTags?: {
1334
+ typeUrl?: string;
1335
+ value?: Uint8Array;
1336
+ }[];
1337
+ unrepliableReason?: string | undefined;
1338
+ ups?: number | undefined;
1339
+ depth?: number | undefined;
1340
+ linkTitle?: string | undefined;
1341
+ linkAuthor?: string | undefined;
1342
+ numComments?: number | undefined;
1343
+ over18?: boolean | undefined;
1344
+ linkPermalink?: string | undefined;
1345
+ quarantine?: boolean | undefined;
1346
+ linkUrl?: string | undefined;
1347
+ selftext?: string | undefined;
1348
+ selftextHtml?: string | undefined;
1349
+ thumbnail?: string | undefined;
1350
+ thumbnailWidth?: number | undefined;
1351
+ thumbnailHeight?: number | undefined;
1352
+ title?: string | undefined;
1353
+ url?: string | undefined;
1354
+ displayName?: string | undefined;
1355
+ modPermissions?: string[];
1356
+ count?: number | undefined;
1357
+ children?: any[] | undefined;
1358
+ replyList?: any | undefined;
1359
+ hidden?: boolean | undefined;
1360
+ linkFlairBackgroundColor?: string | undefined;
1361
+ linkFlairCssClass?: string | undefined;
1362
+ linkFlairRichtext?: {
1363
+ e?: string | undefined;
1364
+ t?: string | undefined;
1365
+ a?: string | undefined;
1366
+ u?: string | undefined;
1367
+ }[];
1368
+ linkFlairTemplateId?: string | undefined;
1369
+ linkFlairText?: string | undefined;
1370
+ linkFlairTextColor?: string | undefined;
1371
+ linkFlairType?: string | undefined;
1372
+ secureMedia?: {
1373
+ type?: string;
1374
+ oembed?: {
1375
+ type?: string;
1376
+ title?: string | undefined;
1377
+ providerName?: string | undefined;
1378
+ providerUrl?: string | undefined;
1379
+ version?: string;
1380
+ thumbnailWidth?: number | undefined;
1381
+ thumbnailHeight?: number | undefined;
1382
+ thumbnailUrl?: string | undefined;
1383
+ html?: string;
1384
+ height?: number | undefined;
1385
+ width?: number | undefined;
1386
+ authorUrl?: string | undefined;
1387
+ authorName?: string | undefined;
1388
+ } | undefined;
1389
+ redditVideo?: {
1390
+ bitrateKbps?: number | undefined;
1391
+ dashUrl?: string | undefined;
1392
+ duration?: number | undefined;
1393
+ fallbackUrl?: string | undefined;
1394
+ height?: number | undefined;
1395
+ hlsUrl?: string | undefined;
1396
+ isGif?: boolean | undefined;
1397
+ scrubberMediaUrl?: string | undefined;
1398
+ transcodingStatus?: string | undefined;
1399
+ width?: number | undefined;
1400
+ } | undefined;
1401
+ } | undefined;
1402
+ spoiler?: boolean;
1403
+ modReports?: any[][];
1404
+ userReports?: any[][];
1405
+ removedBy?: string | undefined;
1406
+ removedByCategory?: string | undefined;
1407
+ } | undefined;
1408
+ }[];
1409
+ dist?: number | undefined;
1410
+ } | undefined;
1411
+ }): Listing;
1412
+ };
1413
+ readonly responseStream: false;
1414
+ readonly options: {};
1415
+ };
1416
+ /**
1417
+ * Disable comments for a Post or Comment
1418
+ * Note: `id` must be a single thing ID for a Post or Comment
1419
+ *
1420
+ * @see {@link https://www.reddit.com/dev/api#POST_api_lock}
1421
+ */
1422
+ readonly lock: {
1423
+ readonly name: "Lock";
1424
+ readonly requestType: {
1425
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
1426
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
1427
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
1428
+ fromJSON(object: any): BasicIdRequest;
1429
+ toJSON(message: BasicIdRequest): unknown;
1430
+ create(base?: {
1431
+ id?: string;
1432
+ } | undefined): BasicIdRequest;
1433
+ fromPartial(object: {
1434
+ id?: string;
1435
+ }): BasicIdRequest;
1436
+ };
1437
+ readonly requestStream: false;
1438
+ readonly responseType: {
1439
+ $type: "google.protobuf.Empty";
1440
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
1441
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
1442
+ fromJSON(_: any): Empty;
1443
+ toJSON(_: Empty): unknown; /**
1444
+ * Edit the body text of a Comment or Post
1445
+ * Note: `thing_id` refers to the Post or Comment being edited
1446
+ *
1447
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
1448
+ */
1449
+ create(base?: {} | undefined): Empty;
1450
+ fromPartial(_: {}): Empty;
1451
+ };
1452
+ readonly responseStream: false;
1453
+ readonly options: {};
1454
+ };
1455
+ /**
1456
+ * Marks a Post as Not-Safe-For-Work
1457
+ *
1458
+ * @see {@link UnmarkNSFW}
1459
+ * @see {@link https://www.reddit.com/dev/api#POST_api_marknsfw}
1460
+ */
1461
+ readonly markNSFW: {
1462
+ readonly name: "MarkNSFW";
1463
+ readonly requestType: {
1464
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
1465
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
1466
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
1467
+ fromJSON(object: any): BasicIdRequest;
1468
+ toJSON(message: BasicIdRequest): unknown;
1469
+ create(base?: {
1470
+ id?: string;
1471
+ } | undefined): BasicIdRequest;
1472
+ fromPartial(object: {
1473
+ id?: string;
1474
+ }): BasicIdRequest;
1475
+ };
1476
+ readonly requestStream: false;
1477
+ readonly responseType: {
1478
+ $type: "google.protobuf.Empty";
1479
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
1480
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
1481
+ fromJSON(_: any): Empty;
1482
+ toJSON(_: Empty): unknown; /**
1483
+ * Edit the body text of a Comment or Post
1484
+ * Note: `thing_id` refers to the Post or Comment being edited
1485
+ *
1486
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
1487
+ */
1488
+ create(base?: {} | undefined): Empty;
1489
+ fromPartial(_: {}): Empty;
1490
+ };
1491
+ readonly responseStream: false;
1492
+ readonly options: {};
1493
+ };
1494
+ /**
1495
+ * Get more comments from a truncated Comment tree
1496
+ *
1497
+ * A comment tree has been truncated if it ends with an entry of kind "more"
1498
+ * instead of "t1". Use this API to fetch the additional comments listed in
1499
+ * the "children" array of the "more" entry.
1500
+ *
1501
+ * @see {@link https://www.reddit.com/dev/api#GET_api_morechildren}
1502
+ */
1503
+ readonly moreChildren: {
1504
+ readonly name: "MoreChildren";
1505
+ readonly requestType: {
1506
+ $type: "devvit.plugin.redditapi.linksandcomments.MoreChildrenRequest";
1507
+ encode(message: MoreChildrenRequest, writer?: _m0.Writer): _m0.Writer;
1508
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MoreChildrenRequest;
1509
+ fromJSON(object: any): MoreChildrenRequest;
1510
+ toJSON(message: MoreChildrenRequest): unknown;
1511
+ create(base?: {
1512
+ children?: string[];
1513
+ depth?: number | undefined;
1514
+ limitChildren?: boolean | undefined;
1515
+ linkId?: string;
1516
+ sort?: string | undefined;
1517
+ id?: string | undefined;
1518
+ } | undefined): MoreChildrenRequest;
1519
+ fromPartial(object: {
1520
+ children?: string[];
1521
+ depth?: number | undefined;
1522
+ limitChildren?: boolean | undefined;
1523
+ linkId?: string;
1524
+ sort?: string | undefined;
1525
+ id?: string | undefined;
1526
+ }): MoreChildrenRequest;
1527
+ };
1528
+ readonly requestStream: false;
1529
+ readonly responseType: {
1530
+ $type: "devvit.plugin.redditapi.linksandcomments.JsonWrappedComment";
1531
+ encode(message: JsonWrappedComment, writer?: _m0.Writer): _m0.Writer;
1532
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonWrappedComment;
1533
+ fromJSON(object: any): JsonWrappedComment;
1534
+ toJSON(message: JsonWrappedComment): unknown;
1535
+ create(base?: {
1536
+ json?: {
1537
+ errors?: string[];
1538
+ data?: {
1539
+ things?: {
1540
+ kind?: string;
1541
+ data?: {
1542
+ allAwardings?: {
1543
+ awardSubType?: string | undefined;
1544
+ awardType?: string | undefined;
1545
+ awardingsRequiredToGrantBenefits?: number | undefined;
1546
+ coinPrice?: number | undefined;
1547
+ coinReward?: number | undefined;
1548
+ count?: number | undefined;
1549
+ daysOfDripExtension?: number | undefined;
1550
+ daysOfPremium?: number | undefined;
1551
+ description?: string | undefined;
1552
+ endDate?: string | undefined;
1553
+ giverCoinReward?: number | undefined;
1554
+ iconFormat?: string | undefined;
1555
+ iconHeight?: number | undefined;
1556
+ iconUrl?: string | undefined;
1557
+ iconWidth?: number | undefined;
1558
+ id?: string | undefined;
1559
+ isEnabled?: boolean | undefined;
1560
+ isNew?: boolean | undefined;
1561
+ name?: string | undefined;
1562
+ pennyDonate?: number | undefined;
1563
+ pennyPrice?: number | undefined;
1564
+ resizedIcons?: {
1565
+ height?: number | undefined;
1566
+ url?: string | undefined;
1567
+ width?: number | undefined;
1568
+ }[];
1569
+ resizedStaticIcons?: {
1570
+ height?: number | undefined;
1571
+ url?: string | undefined;
1572
+ width?: number | undefined;
1573
+ }[];
1574
+ startDate?: string | undefined;
1575
+ staticIconHeight?: number | undefined;
1576
+ staticIconUrl?: string | undefined;
1577
+ staticIconWidth?: number | undefined;
1578
+ stickyDurationSeconds?: number | undefined;
1579
+ subredditCoinReward?: number | undefined;
1580
+ subredditId?: string | undefined;
1581
+ tiersByRequiredAwardings?: string | undefined;
1582
+ }[];
1583
+ approved?: boolean | undefined;
1584
+ approvedAtUtc?: number | undefined;
1585
+ approvedBy?: string | undefined;
1586
+ archived?: boolean | undefined;
1587
+ associatedAward?: string | undefined;
1588
+ author?: string | undefined;
1589
+ authorFlairBackgroundColor?: string | undefined;
1590
+ authorFlairCssClass?: string | undefined;
1591
+ authorFlairRichtext?: {
1592
+ e?: string | undefined;
1593
+ t?: string | undefined;
1594
+ }[];
1595
+ authorFlairTemplateId?: string | undefined;
1596
+ authorFlairText?: string | undefined;
1597
+ authorFlairTextColor?: string | undefined;
1598
+ authorFlairType?: string | undefined;
1599
+ authorFullname?: string | undefined;
1600
+ authorIsBlocked?: boolean | undefined;
1601
+ authorPatreonFlair?: boolean | undefined;
1602
+ authorPremium?: boolean | undefined;
1603
+ awarders?: string[];
1604
+ bannedAtUtc?: number | undefined;
1605
+ bannedBy?: string | undefined;
1606
+ body?: string | undefined;
1607
+ bodyHtml?: string | undefined;
1608
+ canGild?: boolean | undefined;
1609
+ canModPost?: boolean | undefined;
1610
+ collapsed?: boolean | undefined;
1611
+ collapsedBecauseCrowdControl?: boolean | undefined;
1612
+ collapsedReason?: string | undefined;
1613
+ collapsedReasonCode?: string | undefined;
1614
+ commentType?: string | undefined;
1615
+ controversiality?: number | undefined;
1616
+ created?: number | undefined;
1617
+ createdUtc?: number | undefined;
1618
+ depth?: number | undefined;
1619
+ distinguished?: string | undefined;
1620
+ downs?: number | undefined;
1621
+ edited?: boolean | undefined;
1622
+ gilded?: number | undefined;
1623
+ gildings?: {
1624
+ gid1?: number | undefined;
1625
+ gid2?: number | undefined;
1626
+ gid3?: number | undefined;
1627
+ } | undefined;
1628
+ id?: string | undefined;
1629
+ ignoreReports?: boolean | undefined;
1630
+ isSubmitter?: boolean | undefined;
1631
+ likes?: boolean | undefined;
1632
+ linkId?: string | undefined;
1633
+ locked?: boolean | undefined;
1634
+ modNote?: string | undefined;
1635
+ modReasonBy?: string | undefined;
1636
+ modReasonTitle?: string | undefined;
1637
+ modReports?: any[][];
1638
+ name?: string | undefined;
1639
+ noFollow?: boolean | undefined;
1640
+ numReports?: number | undefined;
1641
+ parentId?: string | undefined;
1642
+ permalink?: string | undefined;
1643
+ removalReason?: string | undefined;
1644
+ removed?: boolean | undefined;
1645
+ replies?: string | undefined;
1646
+ reportReasons?: string[];
1647
+ rteMode?: string | undefined;
1648
+ saved?: boolean | undefined;
1649
+ score?: number | undefined;
1650
+ scoreHidden?: boolean | undefined;
1651
+ sendReplies?: boolean | undefined;
1652
+ spam?: boolean | undefined;
1653
+ stickied?: boolean | undefined;
1654
+ subreddit?: string | undefined;
1655
+ subredditId?: string | undefined;
1656
+ subredditNamePrefixed?: string | undefined;
1657
+ subredditType?: string | undefined;
1658
+ topAwardedType?: string | undefined;
1659
+ totalAwardsReceived?: number | undefined;
1660
+ treatmentTags?: string[];
1661
+ unrepliableReason?: string | undefined;
1662
+ ups?: number | undefined;
1663
+ userReports?: any[][];
1664
+ count?: number | undefined;
1665
+ children?: string[];
1666
+ banInfo?: {
1667
+ auto?: boolean | undefined;
1668
+ bannedAt?: number | undefined;
1669
+ banner?: string | undefined;
1670
+ moderatorBanned?: boolean | undefined;
1671
+ note?: string | undefined;
1672
+ unbanner?: string | undefined;
1673
+ unbannedAt?: number | undefined;
1674
+ resetUsed?: boolean | undefined;
1675
+ reasonId?: string | undefined;
1676
+ reasonTitle?: string | undefined;
1677
+ reasonMessage?: string | undefined;
1678
+ reasonBy?: string | undefined;
1679
+ modNote?: string | undefined;
1680
+ banAllTriggered?: boolean | undefined;
1681
+ subredditMessage?: string | undefined;
1682
+ removeAction?: import("../../../reddit/common.js").BanInfo_BanInfoAction;
1683
+ } | undefined;
1684
+ markedSpam?: boolean | undefined;
1685
+ verdict?: string | undefined;
1686
+ } | undefined;
1687
+ }[];
1688
+ } | undefined;
1689
+ } | undefined;
1690
+ } | undefined): JsonWrappedComment;
1691
+ fromPartial(object: {
1692
+ json?: {
1693
+ errors?: string[];
1694
+ data?: {
1695
+ things?: {
1696
+ kind?: string;
1697
+ data?: {
1698
+ allAwardings?: {
1699
+ awardSubType?: string | undefined;
1700
+ awardType?: string | undefined;
1701
+ awardingsRequiredToGrantBenefits?: number | undefined;
1702
+ coinPrice?: number | undefined;
1703
+ coinReward?: number | undefined;
1704
+ count?: number | undefined;
1705
+ daysOfDripExtension?: number | undefined;
1706
+ daysOfPremium?: number | undefined;
1707
+ description?: string | undefined;
1708
+ endDate?: string | undefined;
1709
+ giverCoinReward?: number | undefined;
1710
+ iconFormat?: string | undefined;
1711
+ iconHeight?: number | undefined;
1712
+ iconUrl?: string | undefined;
1713
+ iconWidth?: number | undefined;
1714
+ id?: string | undefined;
1715
+ isEnabled?: boolean | undefined;
1716
+ isNew?: boolean | undefined;
1717
+ name?: string | undefined;
1718
+ pennyDonate?: number | undefined;
1719
+ pennyPrice?: number | undefined;
1720
+ resizedIcons?: {
1721
+ height?: number | undefined;
1722
+ url?: string | undefined;
1723
+ width?: number | undefined;
1724
+ }[];
1725
+ resizedStaticIcons?: {
1726
+ height?: number | undefined;
1727
+ url?: string | undefined;
1728
+ width?: number | undefined;
1729
+ }[];
1730
+ startDate?: string | undefined;
1731
+ staticIconHeight?: number | undefined;
1732
+ staticIconUrl?: string | undefined;
1733
+ staticIconWidth?: number | undefined;
1734
+ stickyDurationSeconds?: number | undefined;
1735
+ subredditCoinReward?: number | undefined;
1736
+ subredditId?: string | undefined;
1737
+ tiersByRequiredAwardings?: string | undefined;
1738
+ }[];
1739
+ approved?: boolean | undefined;
1740
+ approvedAtUtc?: number | undefined;
1741
+ approvedBy?: string | undefined;
1742
+ archived?: boolean | undefined;
1743
+ associatedAward?: string | undefined;
1744
+ author?: string | undefined;
1745
+ authorFlairBackgroundColor?: string | undefined;
1746
+ authorFlairCssClass?: string | undefined;
1747
+ authorFlairRichtext?: {
1748
+ e?: string | undefined;
1749
+ t?: string | undefined;
1750
+ }[];
1751
+ authorFlairTemplateId?: string | undefined;
1752
+ authorFlairText?: string | undefined;
1753
+ authorFlairTextColor?: string | undefined;
1754
+ authorFlairType?: string | undefined;
1755
+ authorFullname?: string | undefined;
1756
+ authorIsBlocked?: boolean | undefined;
1757
+ authorPatreonFlair?: boolean | undefined;
1758
+ authorPremium?: boolean | undefined;
1759
+ awarders?: string[];
1760
+ bannedAtUtc?: number | undefined;
1761
+ bannedBy?: string | undefined;
1762
+ body?: string | undefined;
1763
+ bodyHtml?: string | undefined;
1764
+ canGild?: boolean | undefined;
1765
+ canModPost?: boolean | undefined;
1766
+ collapsed?: boolean | undefined;
1767
+ collapsedBecauseCrowdControl?: boolean | undefined;
1768
+ collapsedReason?: string | undefined;
1769
+ collapsedReasonCode?: string | undefined;
1770
+ commentType?: string | undefined;
1771
+ controversiality?: number | undefined;
1772
+ created?: number | undefined;
1773
+ createdUtc?: number | undefined;
1774
+ depth?: number | undefined;
1775
+ distinguished?: string | undefined;
1776
+ downs?: number | undefined;
1777
+ edited?: boolean | undefined;
1778
+ gilded?: number | undefined;
1779
+ gildings?: {
1780
+ gid1?: number | undefined;
1781
+ gid2?: number | undefined;
1782
+ gid3?: number | undefined;
1783
+ } | undefined;
1784
+ id?: string | undefined;
1785
+ ignoreReports?: boolean | undefined;
1786
+ isSubmitter?: boolean | undefined;
1787
+ likes?: boolean | undefined;
1788
+ linkId?: string | undefined;
1789
+ locked?: boolean | undefined;
1790
+ modNote?: string | undefined;
1791
+ modReasonBy?: string | undefined;
1792
+ modReasonTitle?: string | undefined;
1793
+ modReports?: any[][];
1794
+ name?: string | undefined;
1795
+ noFollow?: boolean | undefined;
1796
+ numReports?: number | undefined;
1797
+ parentId?: string | undefined;
1798
+ permalink?: string | undefined;
1799
+ removalReason?: string | undefined;
1800
+ removed?: boolean | undefined;
1801
+ replies?: string | undefined;
1802
+ reportReasons?: string[];
1803
+ rteMode?: string | undefined;
1804
+ saved?: boolean | undefined;
1805
+ score?: number | undefined;
1806
+ scoreHidden?: boolean | undefined;
1807
+ sendReplies?: boolean | undefined;
1808
+ spam?: boolean | undefined;
1809
+ stickied?: boolean | undefined;
1810
+ subreddit?: string | undefined;
1811
+ subredditId?: string | undefined;
1812
+ subredditNamePrefixed?: string | undefined;
1813
+ subredditType?: string | undefined;
1814
+ topAwardedType?: string | undefined;
1815
+ totalAwardsReceived?: number | undefined;
1816
+ treatmentTags?: string[];
1817
+ unrepliableReason?: string | undefined;
1818
+ ups?: number | undefined;
1819
+ userReports?: any[][];
1820
+ count?: number | undefined;
1821
+ children?: string[];
1822
+ banInfo?: {
1823
+ auto?: boolean | undefined;
1824
+ bannedAt?: number | undefined;
1825
+ banner?: string | undefined;
1826
+ moderatorBanned?: boolean | undefined;
1827
+ note?: string | undefined;
1828
+ unbanner?: string | undefined;
1829
+ unbannedAt?: number | undefined;
1830
+ resetUsed?: boolean | undefined;
1831
+ reasonId?: string | undefined;
1832
+ reasonTitle?: string | undefined;
1833
+ reasonMessage?: string | undefined;
1834
+ reasonBy?: string | undefined;
1835
+ modNote?: string | undefined;
1836
+ banAllTriggered?: boolean | undefined;
1837
+ subredditMessage?: string | undefined;
1838
+ removeAction?: import("../../../reddit/common.js").BanInfo_BanInfoAction;
1839
+ } | undefined;
1840
+ markedSpam?: boolean | undefined;
1841
+ verdict?: string | undefined;
1842
+ } | undefined;
1843
+ }[];
1844
+ } | undefined;
1845
+ } | undefined;
1846
+ }): JsonWrappedComment;
1847
+ };
1848
+ readonly responseStream: false;
1849
+ readonly options: {};
1850
+ };
1851
+ /**
1852
+ * Report a Post, Comment, or Private Message
1853
+ *
1854
+ * If reporting a Post or Comment the report is sent to the moderators of the subreddit for review.
1855
+ * If reporting a Private Message the report is sent to Reddit for review.
1856
+ *
1857
+ * @see {@link https://www.reddit.com/dev/api#POST_api_report}
1858
+ */
1859
+ readonly report: {
1860
+ readonly name: "Report";
1861
+ readonly requestType: {
1862
+ $type: "devvit.plugin.redditapi.linksandcomments.ReportRequest";
1863
+ encode(message: ReportRequest, writer?: _m0.Writer): _m0.Writer;
1864
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ReportRequest;
1865
+ fromJSON(object: any): ReportRequest;
1866
+ toJSON(message: ReportRequest): unknown;
1867
+ create(base?: {
1868
+ additionalInfo?: string | undefined;
1869
+ customText?: string | undefined;
1870
+ modmailConvId?: string | undefined;
1871
+ otherReason?: string | undefined;
1872
+ reason?: string;
1873
+ ruleReason?: string | undefined;
1874
+ siteReason?: string | undefined;
1875
+ srName?: string | undefined;
1876
+ thingId?: string;
1877
+ usernames?: string | undefined;
1878
+ } | undefined): ReportRequest;
1879
+ fromPartial(object: {
1880
+ additionalInfo?: string | undefined;
1881
+ customText?: string | undefined;
1882
+ modmailConvId?: string | undefined;
1883
+ otherReason?: string | undefined;
1884
+ reason?: string;
1885
+ ruleReason?: string | undefined;
1886
+ siteReason?: string | undefined;
1887
+ srName?: string | undefined;
1888
+ thingId?: string;
1889
+ usernames?: string | undefined;
1890
+ }): ReportRequest;
1891
+ };
1892
+ readonly requestStream: false;
1893
+ readonly responseType: {
1894
+ $type: "devvit.plugin.redditapi.common.JsonStatus";
1895
+ encode(message: JsonStatus, writer?: _m0.Writer): _m0.Writer;
1896
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonStatus;
1897
+ fromJSON(object: any): JsonStatus;
1898
+ toJSON(message: JsonStatus): unknown;
1899
+ create(base?: {
1900
+ json?: {
1901
+ errors?: string[];
1902
+ } | undefined;
1903
+ } | undefined): JsonStatus;
1904
+ fromPartial(object: {
1905
+ json?: {
1906
+ errors?: string[];
1907
+ } | undefined;
1908
+ }): JsonStatus;
1909
+ };
1910
+ readonly responseStream: false;
1911
+ readonly options: {};
1912
+ };
1913
+ /**
1914
+ * Report an award to Reddit for review
1915
+ *
1916
+ * @see {@link https://www.reddit.com/dev/api#POST_api_report_award}
1917
+ */
1918
+ readonly reportAward: {
1919
+ readonly name: "ReportAward";
1920
+ readonly requestType: {
1921
+ $type: "devvit.plugin.redditapi.linksandcomments.ReportAwardRequest";
1922
+ encode(message: ReportAwardRequest, writer?: _m0.Writer): _m0.Writer;
1923
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ReportAwardRequest;
1924
+ fromJSON(object: any): ReportAwardRequest;
1925
+ toJSON(message: ReportAwardRequest): unknown;
1926
+ create(base?: {
1927
+ awardId?: string;
1928
+ reason?: string | undefined;
1929
+ } | undefined): ReportAwardRequest;
1930
+ fromPartial(object: {
1931
+ awardId?: string;
1932
+ reason?: string | undefined;
1933
+ }): ReportAwardRequest;
1934
+ };
1935
+ readonly requestStream: false;
1936
+ readonly responseType: {
1937
+ $type: "google.protobuf.Empty";
1938
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
1939
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
1940
+ fromJSON(_: any): Empty;
1941
+ toJSON(_: Empty): unknown; /**
1942
+ * Edit the body text of a Comment or Post
1943
+ * Note: `thing_id` refers to the Post or Comment being edited
1944
+ *
1945
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
1946
+ */
1947
+ create(base?: {} | undefined): Empty;
1948
+ fromPartial(_: {}): Empty;
1949
+ };
1950
+ readonly responseStream: false;
1951
+ readonly options: {};
1952
+ };
1953
+ /**
1954
+ * Save a Post or Comment to the user's Saved list
1955
+ *
1956
+ * @see {@link Unsave}
1957
+ * @see {@link https://www.reddit.com/dev/api#POST_api_save}
1958
+ */
1959
+ readonly save: {
1960
+ readonly name: "Save";
1961
+ readonly requestType: {
1962
+ $type: "devvit.plugin.redditapi.linksandcomments.SaveRequest";
1963
+ encode(message: SaveRequest, writer?: _m0.Writer): _m0.Writer;
1964
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SaveRequest;
1965
+ fromJSON(object: any): SaveRequest;
1966
+ toJSON(message: SaveRequest): unknown;
1967
+ create(base?: {
1968
+ id?: string;
1969
+ } | undefined): SaveRequest;
1970
+ fromPartial(object: {
1971
+ id?: string;
1972
+ }): SaveRequest;
1973
+ };
1974
+ readonly requestStream: false;
1975
+ readonly responseType: {
1976
+ $type: "google.protobuf.Empty";
1977
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
1978
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
1979
+ fromJSON(_: any): Empty;
1980
+ toJSON(_: Empty): unknown; /**
1981
+ * Edit the body text of a Comment or Post
1982
+ * Note: `thing_id` refers to the Post or Comment being edited
1983
+ *
1984
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
1985
+ */
1986
+ create(base?: {} | undefined): Empty;
1987
+ fromPartial(_: {}): Empty;
1988
+ };
1989
+ readonly responseStream: false;
1990
+ readonly options: {};
1991
+ };
1992
+ /**
1993
+ * Enable or disable reply notifications for a Post or Comment
1994
+ *
1995
+ * @see {@link https://www.reddit.com/dev/api#POST_api_sendreplies}
1996
+ */
1997
+ readonly sendReplies: {
1998
+ readonly name: "SendReplies";
1999
+ readonly requestType: {
2000
+ $type: "devvit.plugin.redditapi.linksandcomments.SendRepliesRequest";
2001
+ encode(message: SendRepliesRequest, writer?: _m0.Writer): _m0.Writer;
2002
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SendRepliesRequest;
2003
+ fromJSON(object: any): SendRepliesRequest;
2004
+ toJSON(message: SendRepliesRequest): unknown;
2005
+ create(base?: {
2006
+ id?: string;
2007
+ state?: boolean;
2008
+ } | undefined): SendRepliesRequest;
2009
+ fromPartial(object: {
2010
+ id?: string;
2011
+ state?: boolean;
2012
+ }): SendRepliesRequest;
2013
+ };
2014
+ readonly requestStream: false;
2015
+ readonly responseType: {
2016
+ $type: "google.protobuf.Empty";
2017
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2018
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2019
+ fromJSON(_: any): Empty;
2020
+ toJSON(_: Empty): unknown; /**
2021
+ * Edit the body text of a Comment or Post
2022
+ * Note: `thing_id` refers to the Post or Comment being edited
2023
+ *
2024
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2025
+ */
2026
+ create(base?: {} | undefined): Empty;
2027
+ fromPartial(_: {}): Empty;
2028
+ };
2029
+ readonly responseStream: false;
2030
+ readonly options: {};
2031
+ };
2032
+ /**
2033
+ * Toggle Contest Mode for a Post's comments
2034
+ *
2035
+ * Contest Mode randomizes the sort order and hides the vote score for comments
2036
+ *
2037
+ * @see {@link https://www.reddit.com/dev/api#POST_api_set_contest_mode}
2038
+ */
2039
+ readonly setContestMode: {
2040
+ readonly name: "SetContestMode";
2041
+ readonly requestType: {
2042
+ $type: "devvit.plugin.redditapi.linksandcomments.SetContestModeRequest";
2043
+ encode(message: SetContestModeRequest, writer?: _m0.Writer): _m0.Writer;
2044
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetContestModeRequest;
2045
+ fromJSON(object: any): SetContestModeRequest;
2046
+ toJSON(message: SetContestModeRequest): unknown;
2047
+ create(base?: {
2048
+ id?: string;
2049
+ state?: boolean;
2050
+ } | undefined): SetContestModeRequest;
2051
+ fromPartial(object: {
2052
+ id?: string;
2053
+ state?: boolean;
2054
+ }): SetContestModeRequest;
2055
+ };
2056
+ readonly requestStream: false;
2057
+ readonly responseType: {
2058
+ $type: "devvit.plugin.redditapi.common.JsonStatus";
2059
+ encode(message: JsonStatus, writer?: _m0.Writer): _m0.Writer;
2060
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonStatus;
2061
+ fromJSON(object: any): JsonStatus;
2062
+ toJSON(message: JsonStatus): unknown;
2063
+ create(base?: {
2064
+ json?: {
2065
+ errors?: string[];
2066
+ } | undefined;
2067
+ } | undefined): JsonStatus;
2068
+ fromPartial(object: {
2069
+ json?: {
2070
+ errors?: string[];
2071
+ } | undefined;
2072
+ }): JsonStatus;
2073
+ };
2074
+ readonly responseStream: false;
2075
+ readonly options: {};
2076
+ };
2077
+ /**
2078
+ * Set the "sticky" or "pinned" status of a Post
2079
+ *
2080
+ * If the post was created by the current user they can pin the post
2081
+ * to the top of their user profile. Otherwise they must be a moderator
2082
+ * of the subreddit to stick it to the top of the subreddit it was posted in.
2083
+ *
2084
+ * @see {@link https://www.reddit.com/dev/api#POST_api_set_subreddit_sticky}
2085
+ */
2086
+ readonly setSubredditSticky: {
2087
+ readonly name: "SetSubredditSticky";
2088
+ readonly requestType: {
2089
+ $type: "devvit.plugin.redditapi.linksandcomments.SetSubredditStickyRequest";
2090
+ encode(message: SetSubredditStickyRequest, writer?: _m0.Writer): _m0.Writer;
2091
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetSubredditStickyRequest;
2092
+ fromJSON(object: any): SetSubredditStickyRequest;
2093
+ toJSON(message: SetSubredditStickyRequest): unknown;
2094
+ create(base?: {
2095
+ id?: string;
2096
+ num?: number | undefined;
2097
+ state?: boolean;
2098
+ toProfile?: boolean | undefined;
2099
+ } | undefined): SetSubredditStickyRequest;
2100
+ fromPartial(object: {
2101
+ id?: string;
2102
+ num?: number | undefined;
2103
+ state?: boolean;
2104
+ toProfile?: boolean | undefined;
2105
+ }): SetSubredditStickyRequest;
2106
+ };
2107
+ readonly requestStream: false;
2108
+ readonly responseType: {
2109
+ $type: "devvit.plugin.redditapi.common.JsonStatus";
2110
+ encode(message: JsonStatus, writer?: _m0.Writer): _m0.Writer;
2111
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonStatus;
2112
+ fromJSON(object: any): JsonStatus;
2113
+ toJSON(message: JsonStatus): unknown;
2114
+ create(base?: {
2115
+ json?: {
2116
+ errors?: string[];
2117
+ } | undefined;
2118
+ } | undefined): JsonStatus;
2119
+ fromPartial(object: {
2120
+ json?: {
2121
+ errors?: string[];
2122
+ } | undefined;
2123
+ }): JsonStatus;
2124
+ };
2125
+ readonly responseStream: false;
2126
+ readonly options: {};
2127
+ };
2128
+ /**
2129
+ * Set the default sort order for comments in the given Post
2130
+ *
2131
+ * @see {@link https://www.reddit.com/dev/api#POST_api_set_suggested_sort}
2132
+ */
2133
+ readonly setSuggestedSort: {
2134
+ readonly name: "SetSuggestedSort";
2135
+ readonly requestType: {
2136
+ $type: "devvit.plugin.redditapi.linksandcomments.SetSuggestedSortRequest";
2137
+ encode(message: SetSuggestedSortRequest, writer?: _m0.Writer): _m0.Writer;
2138
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetSuggestedSortRequest;
2139
+ fromJSON(object: any): SetSuggestedSortRequest;
2140
+ toJSON(message: SetSuggestedSortRequest): unknown;
2141
+ create(base?: {
2142
+ id?: string;
2143
+ sort?: string;
2144
+ } | undefined): SetSuggestedSortRequest;
2145
+ fromPartial(object: {
2146
+ id?: string;
2147
+ sort?: string;
2148
+ }): SetSuggestedSortRequest;
2149
+ };
2150
+ readonly requestStream: false;
2151
+ readonly responseType: {
2152
+ $type: "devvit.plugin.redditapi.common.JsonStatus";
2153
+ encode(message: JsonStatus, writer?: _m0.Writer): _m0.Writer;
2154
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonStatus;
2155
+ fromJSON(object: any): JsonStatus;
2156
+ toJSON(message: JsonStatus): unknown;
2157
+ create(base?: {
2158
+ json?: {
2159
+ errors?: string[];
2160
+ } | undefined;
2161
+ } | undefined): JsonStatus;
2162
+ fromPartial(object: {
2163
+ json?: {
2164
+ errors?: string[];
2165
+ } | undefined;
2166
+ }): JsonStatus;
2167
+ };
2168
+ readonly responseStream: false;
2169
+ readonly options: {};
2170
+ };
2171
+ /**
2172
+ * Sets the spoiler tag on a given Post to hide its contents by default
2173
+ * Note: `id` must be a single thing ID for a Post
2174
+ *
2175
+ * @see {@link Unspoiler}
2176
+ * @see {@link https://www.reddit.com/dev/api#POST_api_spoiler}
2177
+ */
2178
+ readonly spoiler: {
2179
+ readonly name: "Spoiler";
2180
+ readonly requestType: {
2181
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
2182
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
2183
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
2184
+ fromJSON(object: any): BasicIdRequest;
2185
+ toJSON(message: BasicIdRequest): unknown;
2186
+ create(base?: {
2187
+ id?: string;
2188
+ } | undefined): BasicIdRequest;
2189
+ fromPartial(object: {
2190
+ id?: string;
2191
+ }): BasicIdRequest;
2192
+ };
2193
+ readonly requestStream: false;
2194
+ readonly responseType: {
2195
+ $type: "google.protobuf.Empty";
2196
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2197
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2198
+ fromJSON(_: any): Empty;
2199
+ toJSON(_: Empty): unknown; /**
2200
+ * Edit the body text of a Comment or Post
2201
+ * Note: `thing_id` refers to the Post or Comment being edited
2202
+ *
2203
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2204
+ */
2205
+ create(base?: {} | undefined): Empty;
2206
+ fromPartial(_: {}): Empty;
2207
+ };
2208
+ readonly responseStream: false;
2209
+ readonly options: {};
2210
+ };
2211
+ /**
2212
+ * Create a new Post
2213
+ *
2214
+ * @see {@link https://www.reddit.com/dev/api#POST_api_submit}
2215
+ */
2216
+ readonly submit: {
2217
+ readonly name: "Submit";
2218
+ readonly requestType: {
2219
+ $type: "devvit.plugin.redditapi.linksandcomments.SubmitRequest";
2220
+ encode(message: SubmitRequest, writer?: _m0.Writer): _m0.Writer;
2221
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SubmitRequest;
2222
+ fromJSON(object: any): SubmitRequest;
2223
+ toJSON(message: SubmitRequest): unknown;
2224
+ create(base?: {
2225
+ collectionId?: string | undefined;
2226
+ flairId?: string | undefined;
2227
+ flairText?: string | undefined;
2228
+ kind?: string;
2229
+ nsfw?: boolean | undefined;
2230
+ richtextJson?: string | undefined;
2231
+ sendreplies?: boolean | undefined;
2232
+ spoiler?: boolean | undefined;
2233
+ sr?: string;
2234
+ text?: string | undefined;
2235
+ title?: string;
2236
+ url?: string | undefined;
2237
+ videoPosterUrl?: string | undefined;
2238
+ crosspostFullname?: string | undefined;
2239
+ } | undefined): SubmitRequest;
2240
+ fromPartial(object: {
2241
+ collectionId?: string | undefined;
2242
+ flairId?: string | undefined;
2243
+ flairText?: string | undefined;
2244
+ kind?: string;
2245
+ nsfw?: boolean | undefined;
2246
+ richtextJson?: string | undefined;
2247
+ sendreplies?: boolean | undefined;
2248
+ spoiler?: boolean | undefined;
2249
+ sr?: string;
2250
+ text?: string | undefined;
2251
+ title?: string;
2252
+ url?: string | undefined;
2253
+ videoPosterUrl?: string | undefined;
2254
+ crosspostFullname?: string | undefined;
2255
+ }): SubmitRequest;
2256
+ };
2257
+ readonly requestStream: false;
2258
+ readonly responseType: {
2259
+ $type: "devvit.plugin.redditapi.linksandcomments.SubmitResponse";
2260
+ encode(message: SubmitResponse, writer?: _m0.Writer): _m0.Writer;
2261
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SubmitResponse;
2262
+ fromJSON(object: any): SubmitResponse;
2263
+ toJSON(message: SubmitResponse): unknown;
2264
+ create(base?: {
2265
+ json?: {
2266
+ errors?: {
2267
+ typeUrl?: string;
2268
+ value?: Uint8Array;
2269
+ }[];
2270
+ data?: {
2271
+ url?: string | undefined;
2272
+ draftsCount?: number | undefined;
2273
+ id?: string | undefined;
2274
+ name?: string | undefined;
2275
+ } | undefined;
2276
+ } | undefined;
2277
+ } | undefined): SubmitResponse;
2278
+ fromPartial(object: {
2279
+ json?: {
2280
+ errors?: {
2281
+ typeUrl?: string;
2282
+ value?: Uint8Array;
2283
+ }[];
2284
+ data?: {
2285
+ url?: string | undefined;
2286
+ draftsCount?: number | undefined;
2287
+ id?: string | undefined;
2288
+ name?: string | undefined;
2289
+ } | undefined;
2290
+ } | undefined;
2291
+ }): SubmitResponse;
2292
+ };
2293
+ readonly responseStream: false;
2294
+ readonly options: {};
2295
+ };
2296
+ /**
2297
+ * Unhide one or more Posts for the user
2298
+ * Note: `id` must be one or more comma-separated Post thing IDs
2299
+ *
2300
+ * @see {@link Hide}
2301
+ * @see {@link https://www.reddit.com/dev/api#POST_api_unhide}
2302
+ */
2303
+ readonly unhide: {
2304
+ readonly name: "Unhide";
2305
+ readonly requestType: {
2306
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
2307
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
2308
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
2309
+ fromJSON(object: any): BasicIdRequest;
2310
+ toJSON(message: BasicIdRequest): unknown;
2311
+ create(base?: {
2312
+ id?: string;
2313
+ } | undefined): BasicIdRequest;
2314
+ fromPartial(object: {
2315
+ id?: string;
2316
+ }): BasicIdRequest;
2317
+ };
2318
+ readonly requestStream: false;
2319
+ readonly responseType: {
2320
+ $type: "google.protobuf.Empty";
2321
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2322
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2323
+ fromJSON(_: any): Empty;
2324
+ toJSON(_: Empty): unknown; /**
2325
+ * Edit the body text of a Comment or Post
2326
+ * Note: `thing_id` refers to the Post or Comment being edited
2327
+ *
2328
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2329
+ */
2330
+ create(base?: {} | undefined): Empty;
2331
+ fromPartial(_: {}): Empty;
2332
+ };
2333
+ readonly responseStream: false;
2334
+ readonly options: {};
2335
+ };
2336
+ /**
2337
+ * Enable comments for a Post or Comment
2338
+ * Note: `id` must be a single thing ID for a Post or Comment
2339
+ *
2340
+ * @see {@link Lock}
2341
+ * @see {@link https://www.reddit.com/dev/api#POST_api_unlock}
2342
+ */
2343
+ readonly unlock: {
2344
+ readonly name: "Unlock";
2345
+ readonly requestType: {
2346
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
2347
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
2348
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
2349
+ fromJSON(object: any): BasicIdRequest;
2350
+ toJSON(message: BasicIdRequest): unknown;
2351
+ create(base?: {
2352
+ id?: string;
2353
+ } | undefined): BasicIdRequest;
2354
+ fromPartial(object: {
2355
+ id?: string;
2356
+ }): BasicIdRequest;
2357
+ };
2358
+ readonly requestStream: false;
2359
+ readonly responseType: {
2360
+ $type: "google.protobuf.Empty";
2361
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2362
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2363
+ fromJSON(_: any): Empty;
2364
+ toJSON(_: Empty): unknown; /**
2365
+ * Edit the body text of a Comment or Post
2366
+ * Note: `thing_id` refers to the Post or Comment being edited
2367
+ *
2368
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2369
+ */
2370
+ create(base?: {} | undefined): Empty;
2371
+ fromPartial(_: {}): Empty;
2372
+ };
2373
+ readonly responseStream: false;
2374
+ readonly options: {};
2375
+ };
2376
+ /**
2377
+ * Clears the Not-Safe-For-Work status from a Post
2378
+ *
2379
+ * @see {@link MarkNSFW}
2380
+ * @see {@link https://www.reddit.com/dev/api#POST_api_unmarknsfw}
2381
+ */
2382
+ readonly unmarkNSFW: {
2383
+ readonly name: "UnmarkNSFW";
2384
+ readonly requestType: {
2385
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
2386
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
2387
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
2388
+ fromJSON(object: any): BasicIdRequest;
2389
+ toJSON(message: BasicIdRequest): unknown;
2390
+ create(base?: {
2391
+ id?: string;
2392
+ } | undefined): BasicIdRequest;
2393
+ fromPartial(object: {
2394
+ id?: string;
2395
+ }): BasicIdRequest;
2396
+ };
2397
+ readonly requestStream: false;
2398
+ readonly responseType: {
2399
+ $type: "google.protobuf.Empty";
2400
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2401
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2402
+ fromJSON(_: any): Empty;
2403
+ toJSON(_: Empty): unknown; /**
2404
+ * Edit the body text of a Comment or Post
2405
+ * Note: `thing_id` refers to the Post or Comment being edited
2406
+ *
2407
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2408
+ */
2409
+ create(base?: {} | undefined): Empty;
2410
+ fromPartial(_: {}): Empty;
2411
+ };
2412
+ readonly responseStream: false;
2413
+ readonly options: {};
2414
+ };
2415
+ /**
2416
+ * Remove a Post or Comment from the user's Saved list
2417
+ *
2418
+ * @see {@link Save}
2419
+ * @see {@link https://www.reddit.com/dev/api#POST_api_unsave}
2420
+ */
2421
+ readonly unsave: {
2422
+ readonly name: "Unsave";
2423
+ readonly requestType: {
2424
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
2425
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
2426
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
2427
+ fromJSON(object: any): BasicIdRequest;
2428
+ toJSON(message: BasicIdRequest): unknown;
2429
+ create(base?: {
2430
+ id?: string;
2431
+ } | undefined): BasicIdRequest;
2432
+ fromPartial(object: {
2433
+ id?: string;
2434
+ }): BasicIdRequest;
2435
+ };
2436
+ readonly requestStream: false;
2437
+ readonly responseType: {
2438
+ $type: "google.protobuf.Empty";
2439
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2440
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2441
+ fromJSON(_: any): Empty;
2442
+ toJSON(_: Empty): unknown; /**
2443
+ * Edit the body text of a Comment or Post
2444
+ * Note: `thing_id` refers to the Post or Comment being edited
2445
+ *
2446
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2447
+ */
2448
+ create(base?: {} | undefined): Empty;
2449
+ fromPartial(_: {}): Empty;
2450
+ };
2451
+ readonly responseStream: false;
2452
+ readonly options: {};
2453
+ };
2454
+ /**
2455
+ * Clears the spoiler tag on a given Post
2456
+ *
2457
+ * @see {@link Spoiler}
2458
+ * @see {@link https://www.reddit.com/dev/api#POST_api_unspoiler}
2459
+ */
2460
+ readonly unspoiler: {
2461
+ readonly name: "Unspoiler";
2462
+ readonly requestType: {
2463
+ $type: "devvit.plugin.redditapi.linksandcomments.BasicIdRequest";
2464
+ encode(message: BasicIdRequest, writer?: _m0.Writer): _m0.Writer;
2465
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): BasicIdRequest;
2466
+ fromJSON(object: any): BasicIdRequest;
2467
+ toJSON(message: BasicIdRequest): unknown;
2468
+ create(base?: {
2469
+ id?: string;
2470
+ } | undefined): BasicIdRequest;
2471
+ fromPartial(object: {
2472
+ id?: string;
2473
+ }): BasicIdRequest;
2474
+ };
2475
+ readonly requestStream: false;
2476
+ readonly responseType: {
2477
+ $type: "google.protobuf.Empty";
2478
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2479
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2480
+ fromJSON(_: any): Empty;
2481
+ toJSON(_: Empty): unknown; /**
2482
+ * Edit the body text of a Comment or Post
2483
+ * Note: `thing_id` refers to the Post or Comment being edited
2484
+ *
2485
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2486
+ */
2487
+ create(base?: {} | undefined): Empty;
2488
+ fromPartial(_: {}): Empty;
2489
+ };
2490
+ readonly responseStream: false;
2491
+ readonly options: {};
2492
+ };
2493
+ /**
2494
+ * Vote or clear a vote on a Post or Comment
2495
+ *
2496
+ * @see {@link https://www.reddit.com/dev/api#POST_api_vote}
2497
+ */
2498
+ readonly vote: {
2499
+ readonly name: "Vote";
2500
+ readonly requestType: {
2501
+ $type: "devvit.plugin.redditapi.linksandcomments.VoteRequest";
2502
+ encode(message: VoteRequest, writer?: _m0.Writer): _m0.Writer;
2503
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): VoteRequest;
2504
+ fromJSON(object: any): VoteRequest;
2505
+ toJSON(message: VoteRequest): unknown;
2506
+ create(base?: {
2507
+ dir?: number;
2508
+ id?: string;
2509
+ } | undefined): VoteRequest;
2510
+ fromPartial(object: {
2511
+ dir?: number;
2512
+ id?: string;
2513
+ }): VoteRequest;
2514
+ };
2515
+ readonly requestStream: false;
2516
+ readonly responseType: {
2517
+ $type: "google.protobuf.Empty";
2518
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
2519
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
2520
+ fromJSON(_: any): Empty;
2521
+ toJSON(_: Empty): unknown; /**
2522
+ * Edit the body text of a Comment or Post
2523
+ * Note: `thing_id` refers to the Post or Comment being edited
2524
+ *
2525
+ * @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
2526
+ */
2527
+ create(base?: {} | undefined): Empty;
2528
+ fromPartial(_: {}): Empty;
2529
+ };
2530
+ readonly responseStream: false;
2531
+ readonly options: {};
233
2532
  };
234
2533
  };
235
2534
  };