@devvit/protos 0.10.19-next-2024-04-23-27f06a745.0 → 0.10.20-next-2024-04-24-8b36e13f0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. package/package.json +6 -5
  2. package/types/devvit/actor/automation/v1alpha/automation.d.ts +28 -6
  3. package/types/devvit/actor/automation/v1alpha/automation.d.ts.map +1 -1
  4. package/types/devvit/actor/automation/v1alpha/automation_builder.d.ts +142 -6
  5. package/types/devvit/actor/automation/v1alpha/automation_builder.d.ts.map +1 -1
  6. package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +4007 -96
  7. package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts.map +1 -1
  8. package/types/devvit/actor/automation/v1alpha/step.d.ts +79 -16
  9. package/types/devvit/actor/automation/v1alpha/step.d.ts.map +1 -1
  10. package/types/devvit/actor/automation/v1alpha/trigger.d.ts.map +1 -1
  11. package/types/devvit/actor/automation/v2alpha/automation_ui_builder.d.ts +153 -6
  12. package/types/devvit/actor/automation/v2alpha/automation_ui_builder.d.ts.map +1 -1
  13. package/types/devvit/actor/bot/bot.d.ts +51 -6
  14. package/types/devvit/actor/bot/bot.d.ts.map +1 -1
  15. package/types/devvit/actor/gl/glclient.d.ts +75 -6
  16. package/types/devvit/actor/gl/glclient.d.ts.map +1 -1
  17. package/types/devvit/actor/hello/hello.d.ts +27 -6
  18. package/types/devvit/actor/hello/hello.d.ts.map +1 -1
  19. package/types/devvit/actor/permissions/permissions.d.ts.map +1 -1
  20. package/types/devvit/actor/producer/producer.d.ts +27 -6
  21. package/types/devvit/actor/producer/producer.d.ts.map +1 -1
  22. package/types/devvit/actor/reddit/context_action.d.ts +52 -6
  23. package/types/devvit/actor/reddit/context_action.d.ts.map +1 -1
  24. package/types/devvit/actor/reddit/context_type.d.ts.map +1 -1
  25. package/types/devvit/actor/reddit/post_filter.d.ts +27 -6
  26. package/types/devvit/actor/reddit/post_filter.d.ts.map +1 -1
  27. package/types/devvit/actor/scheduler/action.d.ts.map +1 -1
  28. package/types/devvit/actor/scheduler/handler.d.ts +38 -6
  29. package/types/devvit/actor/scheduler/handler.d.ts.map +1 -1
  30. package/types/devvit/actor/settings/v1alpha/app_settings.d.ts +4 -4
  31. package/types/devvit/actor/settings/v1alpha/app_settings.d.ts.map +1 -1
  32. package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts +4 -4
  33. package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts.map +1 -1
  34. package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts +246 -6
  35. package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts.map +1 -1
  36. package/types/devvit/actor/settings/v1alpha/shared.d.ts.map +1 -1
  37. package/types/devvit/actor/test/streams.d.ts +87 -6
  38. package/types/devvit/actor/test/streams.d.ts.map +1 -1
  39. package/types/devvit/actor/test/wrappertypes.d.ts +260 -6
  40. package/types/devvit/actor/test/wrappertypes.d.ts.map +1 -1
  41. package/types/devvit/actor/user_configurable/user_configurable.d.ts +56 -6
  42. package/types/devvit/actor/user_configurable/user_configurable.d.ts.map +1 -1
  43. package/types/devvit/cli/playtest.d.ts.map +1 -1
  44. package/types/devvit/data/api/v1alpha/admin.d.ts +27 -6
  45. package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
  46. package/types/devvit/data/api/v1alpha/filter.d.ts.map +1 -1
  47. package/types/devvit/data/api/v1alpha/intake.d.ts +27 -6
  48. package/types/devvit/data/api/v1alpha/intake.d.ts.map +1 -1
  49. package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +1 -1
  50. package/types/devvit/debug/v1alpha/debug.d.ts +27 -6
  51. package/types/devvit/debug/v1alpha/debug.d.ts.map +1 -1
  52. package/types/devvit/dev_portal/actor/actor_type.d.ts.map +1 -1
  53. package/types/devvit/dev_portal/admin/waitlist_admin.d.ts +103 -6
  54. package/types/devvit/dev_portal/admin/waitlist_admin.d.ts.map +1 -1
  55. package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
  56. package/types/devvit/dev_portal/app/categories/categories.d.ts.map +1 -1
  57. package/types/devvit/dev_portal/app/info/app_info.d.ts.map +1 -1
  58. package/types/devvit/dev_portal/app_settings/app_settings.d.ts.map +1 -1
  59. package/types/devvit/dev_portal/app_version/app_version.d.ts.map +1 -1
  60. package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts.map +1 -1
  61. package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts.map +1 -1
  62. package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts.map +1 -1
  63. package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts.map +1 -1
  64. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts.map +1 -1
  65. package/types/devvit/dev_portal/dev_portal.d.ts +4950 -41
  66. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  67. package/types/devvit/dev_portal/feedback/feedback.d.ts.map +1 -1
  68. package/types/devvit/dev_portal/installation/installation.d.ts.map +1 -1
  69. package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts.map +1 -1
  70. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts.map +1 -1
  71. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +12 -13
  72. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts.map +1 -1
  73. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts.map +1 -1
  74. package/types/devvit/dev_portal/internal/media/media.d.ts.map +1 -1
  75. package/types/devvit/dev_portal/nutrition/nutrition.d.ts.map +1 -1
  76. package/types/devvit/dev_portal/reddit/redditor.d.ts.map +1 -1
  77. package/types/devvit/dev_portal/waitlist/waitlist.d.ts +99 -6
  78. package/types/devvit/dev_portal/waitlist/waitlist.d.ts.map +1 -1
  79. package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
  80. package/types/devvit/events/v1alpha/realtime.d.ts +51 -6
  81. package/types/devvit/events/v1alpha/realtime.d.ts.map +1 -1
  82. package/types/devvit/events/v1alpha/wqcleanup.d.ts.map +1 -1
  83. package/types/devvit/gateway/automod.d.ts +27 -6
  84. package/types/devvit/gateway/automod.d.ts.map +1 -1
  85. package/types/devvit/gateway/custom_post_snapshot.d.ts +33 -6
  86. package/types/devvit/gateway/custom_post_snapshot.d.ts.map +1 -1
  87. package/types/devvit/gateway/resolvers.d.ts +171 -6
  88. package/types/devvit/gateway/resolvers.d.ts.map +1 -1
  89. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +149 -11
  90. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts.map +1 -1
  91. package/types/devvit/gateway/v1alpha/triggers.d.ts +7873 -6
  92. package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
  93. package/types/devvit/gql/snapshot.d.ts.map +1 -1
  94. package/types/devvit/gql/subreddit_metadata.d.ts.map +1 -1
  95. package/types/devvit/options/options.d.ts.map +1 -1
  96. package/types/devvit/plugin/assetresolver/assetresolver.d.ts +53 -6
  97. package/types/devvit/plugin/assetresolver/assetresolver.d.ts.map +1 -1
  98. package/types/devvit/plugin/automodregex/automodregex.d.ts +51 -6
  99. package/types/devvit/plugin/automodregex/automodregex.d.ts.map +1 -1
  100. package/types/devvit/plugin/builder/builder.d.ts +121 -6
  101. package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
  102. package/types/devvit/plugin/buildpack/buildpack.d.ts +442 -6
  103. package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
  104. package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
  105. package/types/devvit/plugin/buildpack/filesystem.d.ts.map +1 -1
  106. package/types/devvit/plugin/clock/clock.d.ts +34 -6
  107. package/types/devvit/plugin/clock/clock.d.ts.map +1 -1
  108. package/types/devvit/plugin/devserver/devserver.d.ts +233 -11
  109. package/types/devvit/plugin/devserver/devserver.d.ts.map +1 -1
  110. package/types/devvit/plugin/devserver/testcases.d.ts.map +1 -1
  111. package/types/devvit/plugin/gl/glrenderer.d.ts +27 -6
  112. package/types/devvit/plugin/gl/glrenderer.d.ts.map +1 -1
  113. package/types/devvit/plugin/gl/methods.d.ts.map +1 -1
  114. package/types/devvit/plugin/gl/methodtype.d.ts.map +1 -1
  115. package/types/devvit/plugin/http/http.d.ts +27 -6
  116. package/types/devvit/plugin/http/http.d.ts.map +1 -1
  117. package/types/devvit/plugin/inspector/inspector.d.ts +51 -6
  118. package/types/devvit/plugin/inspector/inspector.d.ts.map +1 -1
  119. package/types/devvit/plugin/kvstore/kvstore.d.ts +99 -6
  120. package/types/devvit/plugin/kvstore/kvstore.d.ts.map +1 -1
  121. package/types/devvit/plugin/linker/linker.d.ts +143 -6
  122. package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
  123. package/types/devvit/plugin/linker/resolver.d.ts +238 -6
  124. package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
  125. package/types/devvit/plugin/logger/logger.d.ts +104 -6
  126. package/types/devvit/plugin/logger/logger.d.ts.map +1 -1
  127. package/types/devvit/plugin/media/media.d.ts +27 -6
  128. package/types/devvit/plugin/media/media.d.ts.map +1 -1
  129. package/types/devvit/plugin/modlog/modlog.d.ts +27 -6
  130. package/types/devvit/plugin/modlog/modlog.d.ts.map +1 -1
  131. package/types/devvit/plugin/redditapi/common/common_msg.d.ts.map +1 -1
  132. package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts.map +1 -1
  133. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +732 -6
  134. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
  135. package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts.map +1 -1
  136. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +97 -6
  137. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts.map +1 -1
  138. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
  139. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +2305 -6
  140. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  141. package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts.map +1 -1
  142. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +3016 -6
  143. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
  144. package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts.map +1 -1
  145. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +3162 -6
  146. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
  147. package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts.map +1 -1
  148. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +336 -6
  149. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
  150. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts.map +1 -1
  151. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +4816 -6
  152. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
  153. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts.map +1 -1
  154. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +427 -6
  155. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts.map +1 -1
  156. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts.map +1 -1
  157. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +653 -6
  158. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
  159. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts.map +1 -1
  160. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +3830 -6
  161. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
  162. package/types/devvit/plugin/redditapi/users/users_msg.d.ts.map +1 -1
  163. package/types/devvit/plugin/redditapi/users/users_svc.d.ts +1399 -6
  164. package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
  165. package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts.map +1 -1
  166. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +1681 -6
  167. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
  168. package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts.map +1 -1
  169. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +3023 -6
  170. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
  171. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +100 -6
  172. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts.map +1 -1
  173. package/types/devvit/plugin/redis/redisapi.d.ts +967 -6
  174. package/types/devvit/plugin/redis/redisapi.d.ts.map +1 -1
  175. package/types/devvit/plugin/scheduler/scheduler.d.ts +78 -6
  176. package/types/devvit/plugin/scheduler/scheduler.d.ts.map +1 -1
  177. package/types/devvit/plugin/settings/v1alpha/settings.d.ts +28 -6
  178. package/types/devvit/plugin/settings/v1alpha/settings.d.ts.map +1 -1
  179. package/types/devvit/plugin/streambroker/streambroker.d.ts +51 -6
  180. package/types/devvit/plugin/streambroker/streambroker.d.ts.map +1 -1
  181. package/types/devvit/plugin/timer/timer.d.ts +27 -6
  182. package/types/devvit/plugin/timer/timer.d.ts.map +1 -1
  183. package/types/devvit/plugin/v2events/v2events.d.ts +27 -6
  184. package/types/devvit/plugin/v2events/v2events.d.ts.map +1 -1
  185. package/types/devvit/reddit/comment.d.ts.map +1 -1
  186. package/types/devvit/reddit/common.d.ts.map +1 -1
  187. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +51 -6
  188. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts.map +1 -1
  189. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +1801 -6
  190. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
  191. package/types/devvit/reddit/post.d.ts.map +1 -1
  192. package/types/devvit/reddit/post_guidance/v1alpha/post_guidance.d.ts +27 -6
  193. package/types/devvit/reddit/post_guidance/v1alpha/post_guidance.d.ts.map +1 -1
  194. package/types/devvit/reddit/subreddit.d.ts.map +1 -1
  195. package/types/devvit/reddit/thing_type.d.ts.map +1 -1
  196. package/types/devvit/reddit/user.d.ts.map +1 -1
  197. package/types/devvit/reddit/v2alpha/commentv2.d.ts.map +1 -1
  198. package/types/devvit/reddit/v2alpha/flair.d.ts.map +1 -1
  199. package/types/devvit/reddit/v2alpha/modaction.d.ts.map +1 -1
  200. package/types/devvit/reddit/v2alpha/modmail.d.ts.map +1 -1
  201. package/types/devvit/reddit/v2alpha/postv2.d.ts.map +1 -1
  202. package/types/devvit/reddit/v2alpha/subredditv2.d.ts.map +1 -1
  203. package/types/devvit/reddit/v2alpha/userv2.d.ts.map +1 -1
  204. package/types/devvit/remote_logger/remote_logger.d.ts +77 -11
  205. package/types/devvit/remote_logger/remote_logger.d.ts.map +1 -1
  206. package/types/devvit/runtime/actor/bootstrap.d.ts +117 -6
  207. package/types/devvit/runtime/actor/bootstrap.d.ts.map +1 -1
  208. package/types/devvit/runtime/actor/echo.d.ts +36 -6
  209. package/types/devvit/runtime/actor/echo.d.ts.map +1 -1
  210. package/types/devvit/runtime/actor/runtime.d.ts +115 -6
  211. package/types/devvit/runtime/actor/runtime.d.ts.map +1 -1
  212. package/types/devvit/runtime/actor/supervisor.d.ts +212 -6
  213. package/types/devvit/runtime/actor/supervisor.d.ts.map +1 -1
  214. package/types/devvit/runtime/actor/v1alpha/health.d.ts +27 -6
  215. package/types/devvit/runtime/actor/v1alpha/health.d.ts.map +1 -1
  216. package/types/devvit/runtime/bundle.d.ts.map +1 -1
  217. package/types/devvit/runtime/envelope.d.ts.map +1 -1
  218. package/types/devvit/runtime/runtime_common.d.ts.map +1 -1
  219. package/types/devvit/runtime/serializable.d.ts.map +1 -1
  220. package/types/devvit/service/bundle_service.d.ts +181 -6
  221. package/types/devvit/service/bundle_service.d.ts.map +1 -1
  222. package/types/devvit/service/envelope_service.d.ts +60 -6
  223. package/types/devvit/service/envelope_service.d.ts.map +1 -1
  224. package/types/devvit/ui/block_kit/v1beta/attributes.d.ts.map +1 -1
  225. package/types/devvit/ui/block_kit/v1beta/block.d.ts.map +1 -1
  226. package/types/devvit/ui/block_kit/v1beta/enums.d.ts.map +1 -1
  227. package/types/devvit/ui/block_kit/v1beta/rendering.d.ts.map +1 -1
  228. package/types/devvit/ui/block_kit/v1beta/ui.d.ts.map +1 -1
  229. package/types/devvit/ui/common/v1alpha/common.d.ts.map +1 -1
  230. package/types/devvit/ui/effects/v1alpha/effect.d.ts.map +1 -1
  231. package/types/devvit/ui/effects/v1alpha/interval.d.ts.map +1 -1
  232. package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts.map +1 -1
  233. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts.map +1 -1
  234. package/types/devvit/ui/effects/v1alpha/reload_part.d.ts.map +1 -1
  235. package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts.map +1 -1
  236. package/types/devvit/ui/effects/v1alpha/send_event.d.ts.map +1 -1
  237. package/types/devvit/ui/effects/v1alpha/show_form.d.ts.map +1 -1
  238. package/types/devvit/ui/effects/v1alpha/show_toast.d.ts.map +1 -1
  239. package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
  240. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +27 -6
  241. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts.map +1 -1
  242. package/types/devvit/ui/form_builder/v1alpha/field.d.ts.map +1 -1
  243. package/types/devvit/ui/form_builder/v1alpha/form.d.ts.map +1 -1
  244. package/types/devvit/ui/form_builder/v1alpha/type.d.ts.map +1 -1
  245. package/types/devvit/ui/form_builder/v1alpha/value.d.ts.map +1 -1
  246. package/types/devvit/ui/toast/toast.d.ts.map +1 -1
  247. package/types/devvit/uuid.d.ts.map +1 -1
  248. 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 { AddButtonWidgetRequest, AddCalendarWidgetRequest, AddCommunityListWidgetRequest, AddCustomWidgetRequest, AddImageWidgetRequest, AddPostFlairWidgetRequest, AddTextAreaWidgetRequest, ButtonWidget, CalendarWidget, CommunityListWidget, CustomWidget, DeleteWidgetRequest, GetWidgetImageUploadLeaseRequest, GetWidgetImageUploadLeaseResponse, GetWidgetsRequest, GetWidgetsResponse, ImageWidget, OrderWidgetsRequest, PostFlairWidget, TextAreaWidget, UpdateButtonWidgetRequest, UpdateCalendarWidgetRequest, UpdateCommunityListWidgetRequest, UpdateCommunityListWidgetResponse, UpdateCustomWidgetRequest, UpdateImageWidgetRequest, UpdatePostFlairWidgetRequest, UpdateTextAreaWidgetRequest } from './widgets_msg.js';
9
10
  /** WIDGETS - https://www.reddit.com/dev/api#section_widgets */
@@ -147,11 +148,1685 @@ export declare class WidgetsClientImpl implements Widgets {
147
148
  /** WIDGETS - https://www.reddit.com/dev/api#section_widgets */
148
149
  export type WidgetsDefinition = typeof WidgetsDefinition;
149
150
  export declare const WidgetsDefinition: {
150
- name: 'Widgets';
151
- fullName: string;
152
- methods: {
153
- [methodName: string]: MethodDefinition & {
154
- options: {};
151
+ readonly name: "Widgets";
152
+ readonly fullName: "devvit.plugin.redditapi.widgets.Widgets";
153
+ readonly methods: {
154
+ /**
155
+ * Add a button widget to a subreddit.
156
+ *
157
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
158
+ */
159
+ readonly addButtonWidget: {
160
+ readonly name: "AddButtonWidget";
161
+ readonly requestType: {
162
+ $type: "devvit.plugin.redditapi.widgets.AddButtonWidgetRequest";
163
+ encode(message: AddButtonWidgetRequest, writer?: _m0.Writer): _m0.Writer;
164
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddButtonWidgetRequest;
165
+ fromJSON(object: any): AddButtonWidgetRequest;
166
+ toJSON(message: AddButtonWidgetRequest): unknown;
167
+ create(base?: {
168
+ subreddit?: string;
169
+ shortName?: string;
170
+ description?: string;
171
+ buttons?: {
172
+ kind?: string;
173
+ text?: string;
174
+ url?: string | undefined;
175
+ imageUrl?: string | undefined;
176
+ linkUrl?: string | undefined;
177
+ color?: string | undefined;
178
+ fillColor?: string | undefined;
179
+ textColor?: string | undefined;
180
+ height?: number | undefined;
181
+ width?: number | undefined;
182
+ hoverState?: {
183
+ kind?: string;
184
+ color?: string | undefined;
185
+ fillColor?: string | undefined;
186
+ text?: string | undefined;
187
+ textColor?: string | undefined;
188
+ imageUrl?: string | undefined;
189
+ height?: number | undefined;
190
+ width?: number | undefined;
191
+ } | undefined;
192
+ }[];
193
+ styles?: {
194
+ backgroundColor?: string | undefined;
195
+ headerColor?: string | undefined;
196
+ } | undefined;
197
+ } | undefined): AddButtonWidgetRequest;
198
+ fromPartial(object: {
199
+ subreddit?: string;
200
+ shortName?: string;
201
+ description?: string;
202
+ buttons?: {
203
+ kind?: string;
204
+ text?: string;
205
+ url?: string | undefined;
206
+ imageUrl?: string | undefined;
207
+ linkUrl?: string | undefined;
208
+ color?: string | undefined;
209
+ fillColor?: string | undefined;
210
+ textColor?: string | undefined;
211
+ height?: number | undefined;
212
+ width?: number | undefined;
213
+ hoverState?: {
214
+ kind?: string;
215
+ color?: string | undefined;
216
+ fillColor?: string | undefined;
217
+ text?: string | undefined;
218
+ textColor?: string | undefined;
219
+ imageUrl?: string | undefined;
220
+ height?: number | undefined;
221
+ width?: number | undefined;
222
+ } | undefined;
223
+ }[];
224
+ styles?: {
225
+ backgroundColor?: string | undefined;
226
+ headerColor?: string | undefined;
227
+ } | undefined;
228
+ }): AddButtonWidgetRequest;
229
+ };
230
+ readonly requestStream: false;
231
+ readonly responseType: {
232
+ $type: "devvit.plugin.redditapi.widgets.ButtonWidget";
233
+ encode(message: ButtonWidget, writer?: _m0.Writer): _m0.Writer;
234
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ButtonWidget;
235
+ fromJSON(object: any): ButtonWidget;
236
+ toJSON(message: ButtonWidget): unknown;
237
+ create(base?: {
238
+ id?: string;
239
+ kind?: string;
240
+ shortName?: string;
241
+ description?: string;
242
+ buttons?: {
243
+ kind?: string;
244
+ text?: string;
245
+ url?: string | undefined;
246
+ imageUrl?: string | undefined;
247
+ linkUrl?: string | undefined;
248
+ color?: string | undefined;
249
+ fillColor?: string | undefined;
250
+ textColor?: string | undefined;
251
+ height?: number | undefined;
252
+ width?: number | undefined;
253
+ hoverState?: {
254
+ kind?: string;
255
+ color?: string | undefined;
256
+ fillColor?: string | undefined;
257
+ text?: string | undefined;
258
+ textColor?: string | undefined;
259
+ imageUrl?: string | undefined;
260
+ height?: number | undefined;
261
+ width?: number | undefined;
262
+ } | undefined;
263
+ }[];
264
+ styles?: {
265
+ backgroundColor?: string | undefined;
266
+ headerColor?: string | undefined;
267
+ } | undefined;
268
+ } | undefined): ButtonWidget;
269
+ fromPartial(object: {
270
+ id?: string;
271
+ kind?: string;
272
+ shortName?: string;
273
+ description?: string;
274
+ buttons?: {
275
+ kind?: string;
276
+ text?: string;
277
+ url?: string | undefined;
278
+ imageUrl?: string | undefined;
279
+ linkUrl?: string | undefined;
280
+ color?: string | undefined;
281
+ fillColor?: string | undefined;
282
+ textColor?: string | undefined;
283
+ height?: number | undefined;
284
+ width?: number | undefined;
285
+ hoverState?: {
286
+ kind?: string;
287
+ color?: string | undefined;
288
+ fillColor?: string | undefined;
289
+ text?: string | undefined;
290
+ textColor?: string | undefined;
291
+ imageUrl?: string | undefined;
292
+ height?: number | undefined;
293
+ width?: number | undefined;
294
+ } | undefined;
295
+ }[];
296
+ styles?: {
297
+ backgroundColor?: string | undefined;
298
+ headerColor?: string | undefined;
299
+ } | undefined;
300
+ }): ButtonWidget;
301
+ };
302
+ readonly responseStream: false;
303
+ readonly options: {};
304
+ };
305
+ /**
306
+ * Add an image widget to a subreddit.
307
+ *
308
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
309
+ */
310
+ readonly addImageWidget: {
311
+ readonly name: "AddImageWidget";
312
+ readonly requestType: {
313
+ $type: "devvit.plugin.redditapi.widgets.AddImageWidgetRequest";
314
+ encode(message: AddImageWidgetRequest, writer?: _m0.Writer): _m0.Writer;
315
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddImageWidgetRequest;
316
+ fromJSON(object: any): AddImageWidgetRequest;
317
+ toJSON(message: AddImageWidgetRequest): unknown;
318
+ create(base?: {
319
+ subreddit?: string;
320
+ data?: {
321
+ url?: string;
322
+ linkUrl?: string;
323
+ height?: number;
324
+ width?: number;
325
+ }[];
326
+ shortName?: string;
327
+ styles?: {
328
+ backgroundColor?: string | undefined;
329
+ headerColor?: string | undefined;
330
+ } | undefined;
331
+ } | undefined): AddImageWidgetRequest;
332
+ fromPartial(object: {
333
+ subreddit?: string;
334
+ data?: {
335
+ url?: string;
336
+ linkUrl?: string;
337
+ height?: number;
338
+ width?: number;
339
+ }[];
340
+ shortName?: string;
341
+ styles?: {
342
+ backgroundColor?: string | undefined;
343
+ headerColor?: string | undefined;
344
+ } | undefined;
345
+ }): AddImageWidgetRequest;
346
+ };
347
+ readonly requestStream: false;
348
+ readonly responseType: {
349
+ $type: "devvit.plugin.redditapi.widgets.ImageWidget";
350
+ encode(message: ImageWidget, writer?: _m0.Writer): _m0.Writer;
351
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ImageWidget;
352
+ fromJSON(object: any): ImageWidget;
353
+ toJSON(message: ImageWidget): unknown;
354
+ create(base?: {
355
+ id?: string;
356
+ kind?: string;
357
+ data?: {
358
+ url?: string;
359
+ linkUrl?: string;
360
+ height?: number;
361
+ width?: number;
362
+ }[];
363
+ shortName?: string;
364
+ styles?: {
365
+ backgroundColor?: string | undefined;
366
+ headerColor?: string | undefined;
367
+ } | undefined;
368
+ subreddit?: string | undefined;
369
+ } | undefined): ImageWidget;
370
+ fromPartial(object: {
371
+ id?: string;
372
+ kind?: string;
373
+ data?: {
374
+ url?: string;
375
+ linkUrl?: string;
376
+ height?: number;
377
+ width?: number;
378
+ }[];
379
+ shortName?: string;
380
+ styles?: {
381
+ backgroundColor?: string | undefined;
382
+ headerColor?: string | undefined;
383
+ } | undefined;
384
+ subreddit?: string | undefined;
385
+ }): ImageWidget;
386
+ };
387
+ readonly responseStream: false;
388
+ readonly options: {};
389
+ };
390
+ /**
391
+ * Add a calendar widget to a subreddit.
392
+ *
393
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
394
+ */
395
+ readonly addCalendarWidget: {
396
+ readonly name: "AddCalendarWidget";
397
+ readonly requestType: {
398
+ $type: "devvit.plugin.redditapi.widgets.AddCalendarWidgetRequest";
399
+ encode(message: AddCalendarWidgetRequest, writer?: _m0.Writer): _m0.Writer;
400
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddCalendarWidgetRequest;
401
+ fromJSON(object: any): AddCalendarWidgetRequest;
402
+ toJSON(message: AddCalendarWidgetRequest): unknown;
403
+ create(base?: {
404
+ subreddit?: string;
405
+ configuration?: {
406
+ numEvents?: number;
407
+ showDate?: boolean;
408
+ showDescription?: boolean;
409
+ showLocation?: boolean;
410
+ showTime?: boolean;
411
+ showTitle?: boolean;
412
+ } | undefined;
413
+ googleCalendarId?: string;
414
+ requiresSync?: boolean;
415
+ shortName?: string;
416
+ styles?: {
417
+ backgroundColor?: string | undefined;
418
+ headerColor?: string | undefined;
419
+ } | undefined;
420
+ } | undefined): AddCalendarWidgetRequest;
421
+ fromPartial(object: {
422
+ subreddit?: string;
423
+ configuration?: {
424
+ numEvents?: number;
425
+ showDate?: boolean;
426
+ showDescription?: boolean;
427
+ showLocation?: boolean;
428
+ showTime?: boolean;
429
+ showTitle?: boolean;
430
+ } | undefined;
431
+ googleCalendarId?: string;
432
+ requiresSync?: boolean;
433
+ shortName?: string;
434
+ styles?: {
435
+ backgroundColor?: string | undefined;
436
+ headerColor?: string | undefined;
437
+ } | undefined;
438
+ }): AddCalendarWidgetRequest;
439
+ };
440
+ readonly requestStream: false;
441
+ readonly responseType: {
442
+ $type: "devvit.plugin.redditapi.widgets.CalendarWidget";
443
+ encode(message: CalendarWidget, writer?: _m0.Writer): _m0.Writer;
444
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CalendarWidget;
445
+ fromJSON(object: any): CalendarWidget;
446
+ toJSON(message: CalendarWidget): unknown;
447
+ create(base?: {
448
+ id?: string;
449
+ kind?: string;
450
+ configuration?: {
451
+ numEvents?: number;
452
+ showDate?: boolean;
453
+ showDescription?: boolean;
454
+ showLocation?: boolean;
455
+ showTime?: boolean;
456
+ showTitle?: boolean;
457
+ } | undefined;
458
+ googleCalendarId?: string;
459
+ requiresSync?: boolean;
460
+ shortName?: string;
461
+ styles?: {
462
+ backgroundColor?: string | undefined;
463
+ headerColor?: string | undefined;
464
+ } | undefined;
465
+ } | undefined): CalendarWidget;
466
+ fromPartial(object: {
467
+ id?: string;
468
+ kind?: string;
469
+ configuration?: {
470
+ numEvents?: number;
471
+ showDate?: boolean;
472
+ showDescription?: boolean;
473
+ showLocation?: boolean;
474
+ showTime?: boolean;
475
+ showTitle?: boolean;
476
+ } | undefined;
477
+ googleCalendarId?: string;
478
+ requiresSync?: boolean;
479
+ shortName?: string;
480
+ styles?: {
481
+ backgroundColor?: string | undefined;
482
+ headerColor?: string | undefined;
483
+ } | undefined;
484
+ }): CalendarWidget;
485
+ };
486
+ readonly responseStream: false;
487
+ readonly options: {};
488
+ };
489
+ /**
490
+ * Add a text widget to a subreddit.
491
+ *
492
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
493
+ */
494
+ readonly addTextAreaWidget: {
495
+ readonly name: "AddTextAreaWidget";
496
+ readonly requestType: {
497
+ $type: "devvit.plugin.redditapi.widgets.AddTextAreaWidgetRequest";
498
+ encode(message: AddTextAreaWidgetRequest, writer?: _m0.Writer): _m0.Writer;
499
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddTextAreaWidgetRequest;
500
+ fromJSON(object: any): AddTextAreaWidgetRequest;
501
+ toJSON(message: AddTextAreaWidgetRequest): unknown;
502
+ create(base?: {
503
+ subreddit?: string;
504
+ shortName?: string;
505
+ text?: string;
506
+ styles?: {
507
+ backgroundColor?: string | undefined;
508
+ headerColor?: string | undefined;
509
+ } | undefined;
510
+ } | undefined): AddTextAreaWidgetRequest;
511
+ fromPartial(object: {
512
+ subreddit?: string;
513
+ shortName?: string;
514
+ text?: string;
515
+ styles?: {
516
+ backgroundColor?: string | undefined;
517
+ headerColor?: string | undefined;
518
+ } | undefined;
519
+ }): AddTextAreaWidgetRequest;
520
+ };
521
+ readonly requestStream: false;
522
+ readonly responseType: {
523
+ $type: "devvit.plugin.redditapi.widgets.TextAreaWidget";
524
+ encode(message: TextAreaWidget, writer?: _m0.Writer): _m0.Writer;
525
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TextAreaWidget;
526
+ fromJSON(object: any): TextAreaWidget;
527
+ toJSON(message: TextAreaWidget): unknown;
528
+ create(base?: {
529
+ id?: string;
530
+ kind?: string;
531
+ shortName?: string;
532
+ text?: string;
533
+ styles?: {
534
+ backgroundColor?: string | undefined;
535
+ headerColor?: string | undefined;
536
+ } | undefined;
537
+ } | undefined): TextAreaWidget;
538
+ fromPartial(object: {
539
+ id?: string;
540
+ kind?: string;
541
+ shortName?: string;
542
+ text?: string;
543
+ styles?: {
544
+ backgroundColor?: string | undefined;
545
+ headerColor?: string | undefined;
546
+ } | undefined;
547
+ }): TextAreaWidget;
548
+ };
549
+ readonly responseStream: false;
550
+ readonly options: {};
551
+ };
552
+ /**
553
+ * Add a community list widget to a subreddit.
554
+ *
555
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
556
+ */
557
+ readonly addCommunityListWidget: {
558
+ readonly name: "AddCommunityListWidget";
559
+ readonly requestType: {
560
+ $type: "devvit.plugin.redditapi.widgets.AddCommunityListWidgetRequest";
561
+ encode(message: AddCommunityListWidgetRequest, writer?: _m0.Writer): _m0.Writer;
562
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddCommunityListWidgetRequest;
563
+ fromJSON(object: any): AddCommunityListWidgetRequest;
564
+ toJSON(message: AddCommunityListWidgetRequest): unknown;
565
+ create(base?: {
566
+ subreddit?: string;
567
+ shortName?: string;
568
+ data?: string[];
569
+ styles?: {
570
+ backgroundColor?: string | undefined;
571
+ headerColor?: string | undefined;
572
+ } | undefined;
573
+ } | undefined): AddCommunityListWidgetRequest;
574
+ fromPartial(object: {
575
+ subreddit?: string;
576
+ shortName?: string;
577
+ data?: string[];
578
+ styles?: {
579
+ backgroundColor?: string | undefined;
580
+ headerColor?: string | undefined;
581
+ } | undefined;
582
+ }): AddCommunityListWidgetRequest;
583
+ };
584
+ readonly requestStream: false;
585
+ readonly responseType: {
586
+ $type: "devvit.plugin.redditapi.widgets.CommunityListWidget";
587
+ encode(message: CommunityListWidget, writer?: _m0.Writer): _m0.Writer;
588
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CommunityListWidget;
589
+ fromJSON(object: any): CommunityListWidget;
590
+ toJSON(message: CommunityListWidget): unknown;
591
+ create(base?: {
592
+ id?: string;
593
+ kind?: string;
594
+ shortName?: string;
595
+ data?: {
596
+ communityIcon?: string;
597
+ iconUrl?: string;
598
+ isNsfw?: boolean;
599
+ isSubscribed?: boolean;
600
+ name?: string;
601
+ prefixedName?: string;
602
+ primaryColor?: string;
603
+ subscribers?: number;
604
+ type?: string;
605
+ }[];
606
+ styles?: {
607
+ backgroundColor?: string | undefined;
608
+ headerColor?: string | undefined;
609
+ } | undefined;
610
+ } | undefined): CommunityListWidget;
611
+ fromPartial(object: {
612
+ id?: string;
613
+ kind?: string;
614
+ shortName?: string;
615
+ data?: {
616
+ communityIcon?: string;
617
+ iconUrl?: string;
618
+ isNsfw?: boolean;
619
+ isSubscribed?: boolean;
620
+ name?: string;
621
+ prefixedName?: string;
622
+ primaryColor?: string;
623
+ subscribers?: number;
624
+ type?: string;
625
+ }[];
626
+ styles?: {
627
+ backgroundColor?: string | undefined;
628
+ headerColor?: string | undefined;
629
+ } | undefined;
630
+ }): CommunityListWidget;
631
+ };
632
+ readonly responseStream: false;
633
+ readonly options: {};
634
+ };
635
+ /**
636
+ * Add a post flair widget to a subreddit.
637
+ *
638
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
639
+ */
640
+ readonly addPostFlairWidget: {
641
+ readonly name: "AddPostFlairWidget";
642
+ readonly requestType: {
643
+ $type: "devvit.plugin.redditapi.widgets.AddPostFlairWidgetRequest";
644
+ encode(message: AddPostFlairWidgetRequest, writer?: _m0.Writer): _m0.Writer;
645
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddPostFlairWidgetRequest;
646
+ fromJSON(object: any): AddPostFlairWidgetRequest;
647
+ toJSON(message: AddPostFlairWidgetRequest): unknown;
648
+ create(base?: {
649
+ subreddit?: string;
650
+ display?: string;
651
+ order?: string[];
652
+ shortName?: string;
653
+ styles?: {
654
+ backgroundColor?: string | undefined;
655
+ headerColor?: string | undefined;
656
+ } | undefined;
657
+ } | undefined): AddPostFlairWidgetRequest;
658
+ fromPartial(object: {
659
+ subreddit?: string;
660
+ display?: string;
661
+ order?: string[];
662
+ shortName?: string;
663
+ styles?: {
664
+ backgroundColor?: string | undefined;
665
+ headerColor?: string | undefined;
666
+ } | undefined;
667
+ }): AddPostFlairWidgetRequest;
668
+ };
669
+ readonly requestStream: false;
670
+ readonly responseType: {
671
+ $type: "devvit.plugin.redditapi.widgets.PostFlairWidget";
672
+ encode(message: PostFlairWidget, writer?: _m0.Writer): _m0.Writer;
673
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PostFlairWidget;
674
+ fromJSON(object: any): PostFlairWidget;
675
+ toJSON(message: PostFlairWidget): unknown;
676
+ create(base?: {
677
+ id?: string;
678
+ kind?: string;
679
+ display?: string;
680
+ order?: string[];
681
+ shortName?: string;
682
+ styles?: {
683
+ backgroundColor?: string | undefined;
684
+ headerColor?: string | undefined;
685
+ } | undefined;
686
+ subreddit?: string | undefined;
687
+ } | undefined): PostFlairWidget;
688
+ fromPartial(object: {
689
+ id?: string;
690
+ kind?: string;
691
+ display?: string;
692
+ order?: string[];
693
+ shortName?: string;
694
+ styles?: {
695
+ backgroundColor?: string | undefined;
696
+ headerColor?: string | undefined;
697
+ } | undefined;
698
+ subreddit?: string | undefined;
699
+ }): PostFlairWidget;
700
+ };
701
+ readonly responseStream: false;
702
+ readonly options: {};
703
+ };
704
+ /**
705
+ * Add a custom widget to a subreddit. This is an experimental feature.
706
+ * Custom widgets don't display on mobile devices. Customizations can break at any time
707
+ *
708
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget}
709
+ */
710
+ readonly addCustomWidget: {
711
+ readonly name: "AddCustomWidget";
712
+ readonly requestType: {
713
+ $type: "devvit.plugin.redditapi.widgets.AddCustomWidgetRequest";
714
+ encode(message: AddCustomWidgetRequest, writer?: _m0.Writer): _m0.Writer;
715
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AddCustomWidgetRequest;
716
+ fromJSON(object: any): AddCustomWidgetRequest;
717
+ toJSON(message: AddCustomWidgetRequest): unknown;
718
+ create(base?: {
719
+ subreddit?: string;
720
+ shortName?: string;
721
+ text?: string;
722
+ height?: number;
723
+ css?: string;
724
+ imageData?: {
725
+ url?: string;
726
+ linkUrl?: string;
727
+ height?: number;
728
+ width?: number;
729
+ }[];
730
+ styles?: {
731
+ backgroundColor?: string | undefined;
732
+ headerColor?: string | undefined;
733
+ } | undefined;
734
+ } | undefined): AddCustomWidgetRequest;
735
+ fromPartial(object: {
736
+ subreddit?: string;
737
+ shortName?: string;
738
+ text?: string;
739
+ height?: number;
740
+ css?: string;
741
+ imageData?: {
742
+ url?: string;
743
+ linkUrl?: string;
744
+ height?: number;
745
+ width?: number;
746
+ }[];
747
+ styles?: {
748
+ backgroundColor?: string | undefined;
749
+ headerColor?: string | undefined;
750
+ } | undefined;
751
+ }): AddCustomWidgetRequest;
752
+ };
753
+ readonly requestStream: false;
754
+ readonly responseType: {
755
+ $type: "devvit.plugin.redditapi.widgets.CustomWidget";
756
+ encode(message: CustomWidget, writer?: _m0.Writer): _m0.Writer;
757
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CustomWidget;
758
+ fromJSON(object: any): CustomWidget;
759
+ toJSON(message: CustomWidget): unknown;
760
+ create(base?: {
761
+ id?: string;
762
+ kind?: string;
763
+ shortName?: string;
764
+ text?: string;
765
+ height?: number;
766
+ css?: string;
767
+ imageData?: {
768
+ url?: string;
769
+ linkUrl?: string;
770
+ height?: number;
771
+ width?: number;
772
+ }[];
773
+ styles?: {
774
+ backgroundColor?: string | undefined;
775
+ headerColor?: string | undefined;
776
+ } | undefined;
777
+ } | undefined): CustomWidget;
778
+ fromPartial(object: {
779
+ id?: string;
780
+ kind?: string;
781
+ shortName?: string;
782
+ text?: string;
783
+ height?: number;
784
+ css?: string;
785
+ imageData?: {
786
+ url?: string;
787
+ linkUrl?: string;
788
+ height?: number;
789
+ width?: number;
790
+ }[];
791
+ styles?: {
792
+ backgroundColor?: string | undefined;
793
+ headerColor?: string | undefined;
794
+ } | undefined;
795
+ }): CustomWidget;
796
+ };
797
+ readonly responseStream: false;
798
+ readonly options: {};
799
+ };
800
+ /**
801
+ * Delete a widget from a subreddit.
802
+ *
803
+ * @see {@link https://www.reddit.com/dev/api#DELETE_api_widget_\{widget_id\}}
804
+ */
805
+ readonly deleteWidget: {
806
+ readonly name: "DeleteWidget";
807
+ readonly requestType: {
808
+ $type: "devvit.plugin.redditapi.widgets.DeleteWidgetRequest";
809
+ encode(message: DeleteWidgetRequest, writer?: _m0.Writer): _m0.Writer;
810
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): DeleteWidgetRequest;
811
+ fromJSON(object: any): DeleteWidgetRequest;
812
+ toJSON(message: DeleteWidgetRequest): unknown;
813
+ create(base?: {
814
+ id?: string;
815
+ subreddit?: string;
816
+ } | undefined): DeleteWidgetRequest;
817
+ fromPartial(object: {
818
+ id?: string;
819
+ subreddit?: string;
820
+ }): DeleteWidgetRequest;
821
+ };
822
+ readonly requestStream: false;
823
+ readonly responseType: {
824
+ $type: "google.protobuf.Empty";
825
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
826
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
827
+ fromJSON(_: any): Empty;
828
+ toJSON(_: Empty): unknown;
829
+ create(base?: {} | undefined): Empty;
830
+ fromPartial(_: {}): Empty;
831
+ };
832
+ readonly responseStream: false;
833
+ readonly options: {};
834
+ };
835
+ /**
836
+ * Update a button widget on a subreddit.
837
+ *
838
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
839
+ */
840
+ readonly updateButtonWidget: {
841
+ readonly name: "UpdateButtonWidget";
842
+ readonly requestType: {
843
+ $type: "devvit.plugin.redditapi.widgets.UpdateButtonWidgetRequest";
844
+ encode(message: UpdateButtonWidgetRequest, writer?: _m0.Writer): _m0.Writer;
845
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateButtonWidgetRequest;
846
+ fromJSON(object: any): UpdateButtonWidgetRequest;
847
+ toJSON(message: UpdateButtonWidgetRequest): unknown;
848
+ create(base?: {
849
+ subreddit?: string;
850
+ id?: string;
851
+ shortName?: string;
852
+ description?: string;
853
+ buttons?: {
854
+ kind?: string;
855
+ text?: string;
856
+ url?: string | undefined;
857
+ imageUrl?: string | undefined;
858
+ linkUrl?: string | undefined;
859
+ color?: string | undefined;
860
+ fillColor?: string | undefined;
861
+ textColor?: string | undefined;
862
+ height?: number | undefined;
863
+ width?: number | undefined;
864
+ hoverState?: {
865
+ kind?: string;
866
+ color?: string | undefined;
867
+ fillColor?: string | undefined;
868
+ text?: string | undefined;
869
+ textColor?: string | undefined;
870
+ imageUrl?: string | undefined;
871
+ height?: number | undefined;
872
+ width?: number | undefined;
873
+ } | undefined;
874
+ }[];
875
+ styles?: {
876
+ backgroundColor?: string | undefined;
877
+ headerColor?: string | undefined;
878
+ } | undefined;
879
+ } | undefined): UpdateButtonWidgetRequest;
880
+ fromPartial(object: {
881
+ subreddit?: string;
882
+ id?: string;
883
+ shortName?: string;
884
+ description?: string;
885
+ buttons?: {
886
+ kind?: string;
887
+ text?: string;
888
+ url?: string | undefined;
889
+ imageUrl?: string | undefined;
890
+ linkUrl?: string | undefined;
891
+ color?: string | undefined;
892
+ fillColor?: string | undefined;
893
+ textColor?: string | undefined;
894
+ height?: number | undefined;
895
+ width?: number | undefined;
896
+ hoverState?: {
897
+ kind?: string;
898
+ color?: string | undefined;
899
+ fillColor?: string | undefined;
900
+ text?: string | undefined;
901
+ textColor?: string | undefined;
902
+ imageUrl?: string | undefined;
903
+ height?: number | undefined;
904
+ width?: number | undefined;
905
+ } | undefined;
906
+ }[];
907
+ styles?: {
908
+ backgroundColor?: string | undefined;
909
+ headerColor?: string | undefined;
910
+ } | undefined;
911
+ }): UpdateButtonWidgetRequest;
912
+ };
913
+ readonly requestStream: false;
914
+ readonly responseType: {
915
+ $type: "devvit.plugin.redditapi.widgets.ButtonWidget";
916
+ encode(message: ButtonWidget, writer?: _m0.Writer): _m0.Writer;
917
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ButtonWidget;
918
+ fromJSON(object: any): ButtonWidget;
919
+ toJSON(message: ButtonWidget): unknown;
920
+ create(base?: {
921
+ id?: string;
922
+ kind?: string;
923
+ shortName?: string;
924
+ description?: string;
925
+ buttons?: {
926
+ kind?: string;
927
+ text?: string;
928
+ url?: string | undefined;
929
+ imageUrl?: string | undefined;
930
+ linkUrl?: string | undefined;
931
+ color?: string | undefined;
932
+ fillColor?: string | undefined;
933
+ textColor?: string | undefined;
934
+ height?: number | undefined;
935
+ width?: number | undefined;
936
+ hoverState?: {
937
+ kind?: string;
938
+ color?: string | undefined;
939
+ fillColor?: string | undefined;
940
+ text?: string | undefined;
941
+ textColor?: string | undefined;
942
+ imageUrl?: string | undefined;
943
+ height?: number | undefined;
944
+ width?: number | undefined;
945
+ } | undefined;
946
+ }[];
947
+ styles?: {
948
+ backgroundColor?: string | undefined;
949
+ headerColor?: string | undefined;
950
+ } | undefined;
951
+ } | undefined): ButtonWidget;
952
+ fromPartial(object: {
953
+ id?: string;
954
+ kind?: string;
955
+ shortName?: string;
956
+ description?: string;
957
+ buttons?: {
958
+ kind?: string;
959
+ text?: string;
960
+ url?: string | undefined;
961
+ imageUrl?: string | undefined;
962
+ linkUrl?: string | undefined;
963
+ color?: string | undefined;
964
+ fillColor?: string | undefined;
965
+ textColor?: string | undefined;
966
+ height?: number | undefined;
967
+ width?: number | undefined;
968
+ hoverState?: {
969
+ kind?: string;
970
+ color?: string | undefined;
971
+ fillColor?: string | undefined;
972
+ text?: string | undefined;
973
+ textColor?: string | undefined;
974
+ imageUrl?: string | undefined;
975
+ height?: number | undefined;
976
+ width?: number | undefined;
977
+ } | undefined;
978
+ }[];
979
+ styles?: {
980
+ backgroundColor?: string | undefined;
981
+ headerColor?: string | undefined;
982
+ } | undefined;
983
+ }): ButtonWidget;
984
+ };
985
+ readonly responseStream: false;
986
+ readonly options: {};
987
+ };
988
+ /**
989
+ * Update an image widget on a subreddit.
990
+ *
991
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
992
+ */
993
+ readonly updateImageWidget: {
994
+ readonly name: "UpdateImageWidget";
995
+ readonly requestType: {
996
+ $type: "devvit.plugin.redditapi.widgets.UpdateImageWidgetRequest";
997
+ encode(message: UpdateImageWidgetRequest, writer?: _m0.Writer): _m0.Writer;
998
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateImageWidgetRequest;
999
+ fromJSON(object: any): UpdateImageWidgetRequest;
1000
+ toJSON(message: UpdateImageWidgetRequest): unknown;
1001
+ create(base?: {
1002
+ subreddit?: string;
1003
+ id?: string;
1004
+ data?: {
1005
+ url?: string;
1006
+ linkUrl?: string;
1007
+ height?: number;
1008
+ width?: number;
1009
+ }[];
1010
+ shortName?: string;
1011
+ styles?: {
1012
+ backgroundColor?: string | undefined;
1013
+ headerColor?: string | undefined;
1014
+ } | undefined;
1015
+ } | undefined): UpdateImageWidgetRequest;
1016
+ fromPartial(object: {
1017
+ subreddit?: string;
1018
+ id?: string;
1019
+ data?: {
1020
+ url?: string;
1021
+ linkUrl?: string;
1022
+ height?: number;
1023
+ width?: number;
1024
+ }[];
1025
+ shortName?: string;
1026
+ styles?: {
1027
+ backgroundColor?: string | undefined;
1028
+ headerColor?: string | undefined;
1029
+ } | undefined;
1030
+ }): UpdateImageWidgetRequest;
1031
+ };
1032
+ readonly requestStream: false;
1033
+ readonly responseType: {
1034
+ $type: "devvit.plugin.redditapi.widgets.ImageWidget";
1035
+ encode(message: ImageWidget, writer?: _m0.Writer): _m0.Writer;
1036
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ImageWidget;
1037
+ fromJSON(object: any): ImageWidget;
1038
+ toJSON(message: ImageWidget): unknown;
1039
+ create(base?: {
1040
+ id?: string;
1041
+ kind?: string;
1042
+ data?: {
1043
+ url?: string;
1044
+ linkUrl?: string;
1045
+ height?: number;
1046
+ width?: number;
1047
+ }[];
1048
+ shortName?: string;
1049
+ styles?: {
1050
+ backgroundColor?: string | undefined;
1051
+ headerColor?: string | undefined;
1052
+ } | undefined;
1053
+ subreddit?: string | undefined;
1054
+ } | undefined): ImageWidget;
1055
+ fromPartial(object: {
1056
+ id?: string;
1057
+ kind?: string;
1058
+ data?: {
1059
+ url?: string;
1060
+ linkUrl?: string;
1061
+ height?: number;
1062
+ width?: number;
1063
+ }[];
1064
+ shortName?: string;
1065
+ styles?: {
1066
+ backgroundColor?: string | undefined;
1067
+ headerColor?: string | undefined;
1068
+ } | undefined;
1069
+ subreddit?: string | undefined;
1070
+ }): ImageWidget;
1071
+ };
1072
+ readonly responseStream: false;
1073
+ readonly options: {};
1074
+ };
1075
+ /**
1076
+ * Update a calendar widget on a subreddit.
1077
+ *
1078
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
1079
+ */
1080
+ readonly updateCalendarWidget: {
1081
+ readonly name: "UpdateCalendarWidget";
1082
+ readonly requestType: {
1083
+ $type: "devvit.plugin.redditapi.widgets.UpdateCalendarWidgetRequest";
1084
+ encode(message: UpdateCalendarWidgetRequest, writer?: _m0.Writer): _m0.Writer;
1085
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateCalendarWidgetRequest;
1086
+ fromJSON(object: any): UpdateCalendarWidgetRequest;
1087
+ toJSON(message: UpdateCalendarWidgetRequest): unknown;
1088
+ create(base?: {
1089
+ subreddit?: string;
1090
+ id?: string;
1091
+ configuration?: {
1092
+ numEvents?: number;
1093
+ showDate?: boolean;
1094
+ showDescription?: boolean;
1095
+ showLocation?: boolean;
1096
+ showTime?: boolean;
1097
+ showTitle?: boolean;
1098
+ } | undefined;
1099
+ googleCalendarId?: string;
1100
+ requiresSync?: boolean;
1101
+ shortName?: string;
1102
+ styles?: {
1103
+ backgroundColor?: string | undefined;
1104
+ headerColor?: string | undefined;
1105
+ } | undefined;
1106
+ } | undefined): UpdateCalendarWidgetRequest;
1107
+ fromPartial(object: {
1108
+ subreddit?: string;
1109
+ id?: string;
1110
+ configuration?: {
1111
+ numEvents?: number;
1112
+ showDate?: boolean;
1113
+ showDescription?: boolean;
1114
+ showLocation?: boolean;
1115
+ showTime?: boolean;
1116
+ showTitle?: boolean;
1117
+ } | undefined;
1118
+ googleCalendarId?: string;
1119
+ requiresSync?: boolean;
1120
+ shortName?: string;
1121
+ styles?: {
1122
+ backgroundColor?: string | undefined;
1123
+ headerColor?: string | undefined;
1124
+ } | undefined;
1125
+ }): UpdateCalendarWidgetRequest;
1126
+ };
1127
+ readonly requestStream: false;
1128
+ readonly responseType: {
1129
+ $type: "devvit.plugin.redditapi.widgets.CalendarWidget";
1130
+ encode(message: CalendarWidget, writer?: _m0.Writer): _m0.Writer;
1131
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CalendarWidget;
1132
+ fromJSON(object: any): CalendarWidget;
1133
+ toJSON(message: CalendarWidget): unknown;
1134
+ create(base?: {
1135
+ id?: string;
1136
+ kind?: string;
1137
+ configuration?: {
1138
+ numEvents?: number;
1139
+ showDate?: boolean;
1140
+ showDescription?: boolean;
1141
+ showLocation?: boolean;
1142
+ showTime?: boolean;
1143
+ showTitle?: boolean;
1144
+ } | undefined;
1145
+ googleCalendarId?: string;
1146
+ requiresSync?: boolean;
1147
+ shortName?: string;
1148
+ styles?: {
1149
+ backgroundColor?: string | undefined;
1150
+ headerColor?: string | undefined;
1151
+ } | undefined;
1152
+ } | undefined): CalendarWidget;
1153
+ fromPartial(object: {
1154
+ id?: string;
1155
+ kind?: string;
1156
+ configuration?: {
1157
+ numEvents?: number;
1158
+ showDate?: boolean;
1159
+ showDescription?: boolean;
1160
+ showLocation?: boolean;
1161
+ showTime?: boolean;
1162
+ showTitle?: boolean;
1163
+ } | undefined;
1164
+ googleCalendarId?: string;
1165
+ requiresSync?: boolean;
1166
+ shortName?: string;
1167
+ styles?: {
1168
+ backgroundColor?: string | undefined;
1169
+ headerColor?: string | undefined;
1170
+ } | undefined;
1171
+ }): CalendarWidget;
1172
+ };
1173
+ readonly responseStream: false;
1174
+ readonly options: {};
1175
+ };
1176
+ /**
1177
+ * Update a text widget on a subreddit.
1178
+ *
1179
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
1180
+ */
1181
+ readonly updateTextAreaWidget: {
1182
+ readonly name: "UpdateTextAreaWidget";
1183
+ readonly requestType: {
1184
+ $type: "devvit.plugin.redditapi.widgets.UpdateTextAreaWidgetRequest";
1185
+ encode(message: UpdateTextAreaWidgetRequest, writer?: _m0.Writer): _m0.Writer;
1186
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateTextAreaWidgetRequest;
1187
+ fromJSON(object: any): UpdateTextAreaWidgetRequest;
1188
+ toJSON(message: UpdateTextAreaWidgetRequest): unknown;
1189
+ create(base?: {
1190
+ subreddit?: string;
1191
+ id?: string;
1192
+ shortName?: string;
1193
+ text?: string;
1194
+ styles?: {
1195
+ backgroundColor?: string | undefined;
1196
+ headerColor?: string | undefined;
1197
+ } | undefined;
1198
+ } | undefined): UpdateTextAreaWidgetRequest;
1199
+ fromPartial(object: {
1200
+ subreddit?: string;
1201
+ id?: string;
1202
+ shortName?: string;
1203
+ text?: string;
1204
+ styles?: {
1205
+ backgroundColor?: string | undefined;
1206
+ headerColor?: string | undefined;
1207
+ } | undefined;
1208
+ }): UpdateTextAreaWidgetRequest;
1209
+ };
1210
+ readonly requestStream: false;
1211
+ readonly responseType: {
1212
+ $type: "devvit.plugin.redditapi.widgets.TextAreaWidget";
1213
+ encode(message: TextAreaWidget, writer?: _m0.Writer): _m0.Writer;
1214
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): TextAreaWidget;
1215
+ fromJSON(object: any): TextAreaWidget;
1216
+ toJSON(message: TextAreaWidget): unknown;
1217
+ create(base?: {
1218
+ id?: string;
1219
+ kind?: string;
1220
+ shortName?: string;
1221
+ text?: string;
1222
+ styles?: {
1223
+ backgroundColor?: string | undefined;
1224
+ headerColor?: string | undefined;
1225
+ } | undefined;
1226
+ } | undefined): TextAreaWidget;
1227
+ fromPartial(object: {
1228
+ id?: string;
1229
+ kind?: string;
1230
+ shortName?: string;
1231
+ text?: string;
1232
+ styles?: {
1233
+ backgroundColor?: string | undefined;
1234
+ headerColor?: string | undefined;
1235
+ } | undefined;
1236
+ }): TextAreaWidget;
1237
+ };
1238
+ readonly responseStream: false;
1239
+ readonly options: {};
1240
+ };
1241
+ /**
1242
+ * Update a community list widget on a subreddit.
1243
+ *
1244
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
1245
+ */
1246
+ readonly updateCommunityListWidget: {
1247
+ readonly name: "UpdateCommunityListWidget";
1248
+ readonly requestType: {
1249
+ $type: "devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetRequest";
1250
+ encode(message: UpdateCommunityListWidgetRequest, writer?: _m0.Writer): _m0.Writer;
1251
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateCommunityListWidgetRequest;
1252
+ fromJSON(object: any): UpdateCommunityListWidgetRequest;
1253
+ toJSON(message: UpdateCommunityListWidgetRequest): unknown;
1254
+ create(base?: {
1255
+ subreddit?: string;
1256
+ id?: string;
1257
+ shortName?: string;
1258
+ data?: string[];
1259
+ styles?: {
1260
+ backgroundColor?: string | undefined;
1261
+ headerColor?: string | undefined;
1262
+ } | undefined;
1263
+ } | undefined): UpdateCommunityListWidgetRequest;
1264
+ fromPartial(object: {
1265
+ subreddit?: string;
1266
+ id?: string;
1267
+ shortName?: string;
1268
+ data?: string[];
1269
+ styles?: {
1270
+ backgroundColor?: string | undefined;
1271
+ headerColor?: string | undefined;
1272
+ } | undefined;
1273
+ }): UpdateCommunityListWidgetRequest;
1274
+ };
1275
+ readonly requestStream: false;
1276
+ readonly responseType: {
1277
+ $type: "devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetResponse";
1278
+ encode(message: UpdateCommunityListWidgetResponse, writer?: _m0.Writer): _m0.Writer;
1279
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateCommunityListWidgetResponse;
1280
+ fromJSON(object: any): UpdateCommunityListWidgetResponse;
1281
+ toJSON(message: UpdateCommunityListWidgetResponse): unknown;
1282
+ create(base?: {
1283
+ kind?: string;
1284
+ shortName?: string;
1285
+ data?: string[];
1286
+ styles?: {
1287
+ backgroundColor?: string | undefined;
1288
+ headerColor?: string | undefined;
1289
+ } | undefined;
1290
+ } | undefined): UpdateCommunityListWidgetResponse;
1291
+ fromPartial(object: {
1292
+ kind?: string;
1293
+ shortName?: string;
1294
+ data?: string[];
1295
+ styles?: {
1296
+ backgroundColor?: string | undefined;
1297
+ headerColor?: string | undefined;
1298
+ } | undefined;
1299
+ }): UpdateCommunityListWidgetResponse;
1300
+ };
1301
+ readonly responseStream: false;
1302
+ readonly options: {};
1303
+ };
1304
+ /**
1305
+ * Update a post flair widget on a subreddit.
1306
+ *
1307
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
1308
+ */
1309
+ readonly updatePostFlairWidget: {
1310
+ readonly name: "UpdatePostFlairWidget";
1311
+ readonly requestType: {
1312
+ $type: "devvit.plugin.redditapi.widgets.UpdatePostFlairWidgetRequest";
1313
+ encode(message: UpdatePostFlairWidgetRequest, writer?: _m0.Writer): _m0.Writer;
1314
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdatePostFlairWidgetRequest;
1315
+ fromJSON(object: any): UpdatePostFlairWidgetRequest;
1316
+ toJSON(message: UpdatePostFlairWidgetRequest): unknown;
1317
+ create(base?: {
1318
+ subreddit?: string;
1319
+ id?: string;
1320
+ display?: string;
1321
+ order?: string[];
1322
+ shortName?: string;
1323
+ styles?: {
1324
+ backgroundColor?: string | undefined;
1325
+ headerColor?: string | undefined;
1326
+ } | undefined;
1327
+ } | undefined): UpdatePostFlairWidgetRequest;
1328
+ fromPartial(object: {
1329
+ subreddit?: string;
1330
+ id?: string;
1331
+ display?: string;
1332
+ order?: string[];
1333
+ shortName?: string;
1334
+ styles?: {
1335
+ backgroundColor?: string | undefined;
1336
+ headerColor?: string | undefined;
1337
+ } | undefined;
1338
+ }): UpdatePostFlairWidgetRequest;
1339
+ };
1340
+ readonly requestStream: false;
1341
+ readonly responseType: {
1342
+ $type: "devvit.plugin.redditapi.widgets.PostFlairWidget";
1343
+ encode(message: PostFlairWidget, writer?: _m0.Writer): _m0.Writer;
1344
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PostFlairWidget;
1345
+ fromJSON(object: any): PostFlairWidget;
1346
+ toJSON(message: PostFlairWidget): unknown;
1347
+ create(base?: {
1348
+ id?: string;
1349
+ kind?: string;
1350
+ display?: string;
1351
+ order?: string[];
1352
+ shortName?: string;
1353
+ styles?: {
1354
+ backgroundColor?: string | undefined;
1355
+ headerColor?: string | undefined;
1356
+ } | undefined;
1357
+ subreddit?: string | undefined;
1358
+ } | undefined): PostFlairWidget;
1359
+ fromPartial(object: {
1360
+ id?: string;
1361
+ kind?: string;
1362
+ display?: string;
1363
+ order?: string[];
1364
+ shortName?: string;
1365
+ styles?: {
1366
+ backgroundColor?: string | undefined;
1367
+ headerColor?: string | undefined;
1368
+ } | undefined;
1369
+ subreddit?: string | undefined;
1370
+ }): PostFlairWidget;
1371
+ };
1372
+ readonly responseStream: false;
1373
+ readonly options: {};
1374
+ };
1375
+ /**
1376
+ * Update a custom widget on a subreddit.
1377
+ *
1378
+ * @see {@link https://www.reddit.com/dev/api#PUT_api_widget_\{widget_id\}}
1379
+ */
1380
+ readonly updateCustomWidget: {
1381
+ readonly name: "UpdateCustomWidget";
1382
+ readonly requestType: {
1383
+ $type: "devvit.plugin.redditapi.widgets.UpdateCustomWidgetRequest";
1384
+ encode(message: UpdateCustomWidgetRequest, writer?: _m0.Writer): _m0.Writer;
1385
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): UpdateCustomWidgetRequest;
1386
+ fromJSON(object: any): UpdateCustomWidgetRequest;
1387
+ toJSON(message: UpdateCustomWidgetRequest): unknown;
1388
+ create(base?: {
1389
+ subreddit?: string;
1390
+ id?: string;
1391
+ shortName?: string;
1392
+ text?: string;
1393
+ height?: number;
1394
+ css?: string;
1395
+ imageData?: {
1396
+ url?: string;
1397
+ linkUrl?: string;
1398
+ height?: number;
1399
+ width?: number;
1400
+ }[];
1401
+ styles?: {
1402
+ backgroundColor?: string | undefined;
1403
+ headerColor?: string | undefined;
1404
+ } | undefined;
1405
+ } | undefined): UpdateCustomWidgetRequest;
1406
+ fromPartial(object: {
1407
+ subreddit?: string;
1408
+ id?: string;
1409
+ shortName?: string;
1410
+ text?: string;
1411
+ height?: number;
1412
+ css?: string;
1413
+ imageData?: {
1414
+ url?: string;
1415
+ linkUrl?: string;
1416
+ height?: number;
1417
+ width?: number;
1418
+ }[];
1419
+ styles?: {
1420
+ backgroundColor?: string | undefined;
1421
+ headerColor?: string | undefined;
1422
+ } | undefined;
1423
+ }): UpdateCustomWidgetRequest;
1424
+ };
1425
+ readonly requestStream: false;
1426
+ readonly responseType: {
1427
+ $type: "devvit.plugin.redditapi.widgets.CustomWidget";
1428
+ encode(message: CustomWidget, writer?: _m0.Writer): _m0.Writer;
1429
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): CustomWidget;
1430
+ fromJSON(object: any): CustomWidget;
1431
+ toJSON(message: CustomWidget): unknown;
1432
+ create(base?: {
1433
+ id?: string;
1434
+ kind?: string;
1435
+ shortName?: string;
1436
+ text?: string;
1437
+ height?: number;
1438
+ css?: string;
1439
+ imageData?: {
1440
+ url?: string;
1441
+ linkUrl?: string;
1442
+ height?: number;
1443
+ width?: number;
1444
+ }[];
1445
+ styles?: {
1446
+ backgroundColor?: string | undefined;
1447
+ headerColor?: string | undefined;
1448
+ } | undefined;
1449
+ } | undefined): CustomWidget;
1450
+ fromPartial(object: {
1451
+ id?: string;
1452
+ kind?: string;
1453
+ shortName?: string;
1454
+ text?: string;
1455
+ height?: number;
1456
+ css?: string;
1457
+ imageData?: {
1458
+ url?: string;
1459
+ linkUrl?: string;
1460
+ height?: number;
1461
+ width?: number;
1462
+ }[];
1463
+ styles?: {
1464
+ backgroundColor?: string | undefined;
1465
+ headerColor?: string | undefined;
1466
+ } | undefined;
1467
+ }): CustomWidget;
1468
+ };
1469
+ readonly responseStream: false;
1470
+ readonly options: {};
1471
+ };
1472
+ /**
1473
+ * Get an S3 upload lease for a widget image. This is used to upload images for image widgets.
1474
+ *
1475
+ * @see {@link https://www.reddit.com/dev/api#POST_api_widget_image_upload_s3}
1476
+ */
1477
+ readonly getWidgetImageUploadLease: {
1478
+ readonly name: "GetWidgetImageUploadLease";
1479
+ readonly requestType: {
1480
+ $type: "devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseRequest";
1481
+ encode(message: GetWidgetImageUploadLeaseRequest, writer?: _m0.Writer): _m0.Writer;
1482
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWidgetImageUploadLeaseRequest;
1483
+ fromJSON(object: any): GetWidgetImageUploadLeaseRequest;
1484
+ toJSON(message: GetWidgetImageUploadLeaseRequest): unknown;
1485
+ create(base?: {
1486
+ subreddit?: string;
1487
+ filepath?: string;
1488
+ mimetype?: string;
1489
+ } | undefined): GetWidgetImageUploadLeaseRequest;
1490
+ fromPartial(object: {
1491
+ subreddit?: string;
1492
+ filepath?: string;
1493
+ mimetype?: string;
1494
+ }): GetWidgetImageUploadLeaseRequest;
1495
+ };
1496
+ readonly requestStream: false;
1497
+ readonly responseType: {
1498
+ $type: "devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse";
1499
+ encode(message: GetWidgetImageUploadLeaseResponse, writer?: _m0.Writer): _m0.Writer;
1500
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWidgetImageUploadLeaseResponse;
1501
+ fromJSON(object: any): GetWidgetImageUploadLeaseResponse;
1502
+ toJSON(message: GetWidgetImageUploadLeaseResponse): unknown;
1503
+ create(base?: {
1504
+ s3UploadLease?: {
1505
+ action?: string;
1506
+ fields?: {
1507
+ name?: string;
1508
+ value?: string;
1509
+ }[];
1510
+ } | undefined;
1511
+ websocketUrl?: string;
1512
+ } | undefined): GetWidgetImageUploadLeaseResponse;
1513
+ fromPartial(object: {
1514
+ s3UploadLease?: {
1515
+ action?: string;
1516
+ fields?: {
1517
+ name?: string;
1518
+ value?: string;
1519
+ }[];
1520
+ } | undefined;
1521
+ websocketUrl?: string;
1522
+ }): GetWidgetImageUploadLeaseResponse;
1523
+ };
1524
+ readonly responseStream: false;
1525
+ readonly options: {};
1526
+ };
1527
+ /**
1528
+ * Update the order of widgets on a subreddit.
1529
+ *
1530
+ * @see {@link https://www.reddit.com/dev/api#PATCH_api_widget_order_\{section\}}
1531
+ */
1532
+ readonly orderWidgets: {
1533
+ readonly name: "OrderWidgets";
1534
+ readonly requestType: {
1535
+ $type: "devvit.plugin.redditapi.widgets.OrderWidgetsRequest";
1536
+ encode(message: OrderWidgetsRequest, writer?: _m0.Writer): _m0.Writer;
1537
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): OrderWidgetsRequest;
1538
+ fromJSON(object: any): OrderWidgetsRequest;
1539
+ toJSON(message: OrderWidgetsRequest): unknown;
1540
+ create(base?: {
1541
+ subreddit?: string;
1542
+ order?: string[];
1543
+ } | undefined): OrderWidgetsRequest;
1544
+ fromPartial(object: {
1545
+ subreddit?: string;
1546
+ order?: string[];
1547
+ }): OrderWidgetsRequest;
1548
+ };
1549
+ readonly requestStream: false;
1550
+ readonly responseType: {
1551
+ $type: "google.protobuf.Empty";
1552
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
1553
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
1554
+ fromJSON(_: any): Empty;
1555
+ toJSON(_: Empty): unknown;
1556
+ create(base?: {} | undefined): Empty;
1557
+ fromPartial(_: {}): Empty;
1558
+ };
1559
+ readonly responseStream: false;
1560
+ readonly options: {};
1561
+ };
1562
+ /**
1563
+ * Get a list of widgets on a subreddit.
1564
+ *
1565
+ * @see {@link https://www.reddit.com/dev/api#GET_api_widgets}
1566
+ */
1567
+ readonly getWidgets: {
1568
+ readonly name: "GetWidgets";
1569
+ readonly requestType: {
1570
+ $type: "devvit.plugin.redditapi.widgets.GetWidgetsRequest";
1571
+ encode(message: GetWidgetsRequest, writer?: _m0.Writer): _m0.Writer;
1572
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWidgetsRequest;
1573
+ fromJSON(object: any): GetWidgetsRequest;
1574
+ toJSON(message: GetWidgetsRequest): unknown;
1575
+ create(base?: {
1576
+ subreddit?: string;
1577
+ progressiveImages?: boolean | undefined;
1578
+ } | undefined): GetWidgetsRequest;
1579
+ fromPartial(object: {
1580
+ subreddit?: string;
1581
+ progressiveImages?: boolean | undefined;
1582
+ }): GetWidgetsRequest;
1583
+ };
1584
+ readonly requestStream: false;
1585
+ readonly responseType: {
1586
+ $type: "devvit.plugin.redditapi.widgets.GetWidgetsResponse";
1587
+ encode(message: GetWidgetsResponse, writer?: _m0.Writer): _m0.Writer;
1588
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GetWidgetsResponse;
1589
+ fromJSON(object: any): GetWidgetsResponse;
1590
+ toJSON(message: GetWidgetsResponse): unknown;
1591
+ create(base?: {
1592
+ layout?: {
1593
+ idCardWidget?: string;
1594
+ topbar?: {
1595
+ order?: string[];
1596
+ } | undefined;
1597
+ sidebar?: {
1598
+ order?: string[];
1599
+ } | undefined;
1600
+ moderatorWidget?: string;
1601
+ } | undefined;
1602
+ items?: {
1603
+ [x: string]: {
1604
+ id?: string;
1605
+ kind?: string;
1606
+ styles?: {
1607
+ backgroundColor?: string | undefined;
1608
+ headerColor?: string | undefined;
1609
+ } | undefined;
1610
+ shortName?: string;
1611
+ description?: string | undefined;
1612
+ data?: {
1613
+ url?: string | undefined;
1614
+ linkUrl?: string | undefined;
1615
+ height?: number | undefined;
1616
+ width?: number | undefined;
1617
+ iconUrl?: string | undefined;
1618
+ name?: string | undefined;
1619
+ prefixedName?: string | undefined;
1620
+ isSubscribed?: boolean | undefined;
1621
+ type?: string | undefined;
1622
+ subscribers?: number | undefined;
1623
+ communityIcon?: string | undefined;
1624
+ isNsfw?: boolean | undefined;
1625
+ text?: string | undefined;
1626
+ children?: {
1627
+ text?: string | undefined;
1628
+ url?: string | undefined;
1629
+ children?: any[];
1630
+ }[];
1631
+ }[];
1632
+ buttons?: {
1633
+ kind?: string;
1634
+ text?: string;
1635
+ url?: string | undefined;
1636
+ imageUrl?: string | undefined;
1637
+ linkUrl?: string | undefined;
1638
+ color?: string | undefined;
1639
+ fillColor?: string | undefined;
1640
+ textColor?: string | undefined;
1641
+ height?: number | undefined;
1642
+ width?: number | undefined;
1643
+ hoverState?: {
1644
+ kind?: string;
1645
+ color?: string | undefined;
1646
+ fillColor?: string | undefined;
1647
+ text?: string | undefined;
1648
+ textColor?: string | undefined;
1649
+ imageUrl?: string | undefined;
1650
+ height?: number | undefined;
1651
+ width?: number | undefined;
1652
+ } | undefined;
1653
+ }[];
1654
+ subscribersCount?: number | undefined;
1655
+ currentlyViewingText?: string | undefined;
1656
+ currentlyViewingCount?: number | undefined;
1657
+ subscribersText?: string | undefined;
1658
+ showWiki?: boolean | undefined;
1659
+ templates?: {
1660
+ [x: string]: {
1661
+ text?: string;
1662
+ richtext?: {
1663
+ e?: string | undefined;
1664
+ t?: string | undefined;
1665
+ }[];
1666
+ backgroundColor?: string;
1667
+ templateId?: string;
1668
+ textColor?: string;
1669
+ type?: string;
1670
+ } | undefined;
1671
+ };
1672
+ display?: string | undefined;
1673
+ order?: string[];
1674
+ mods?: {
1675
+ name?: string;
1676
+ authorFlairType?: string;
1677
+ authorFlairTextColor?: string;
1678
+ authorFlairBackgroundColor?: string;
1679
+ authorFalirText?: string;
1680
+ authorFlairRichtext?: {
1681
+ e?: string | undefined;
1682
+ t?: string | undefined;
1683
+ }[];
1684
+ }[];
1685
+ totalMods?: number | undefined;
1686
+ googleCalendarId?: string | undefined;
1687
+ requiresSync?: boolean | undefined;
1688
+ configuration?: {
1689
+ numEvents?: number;
1690
+ showDate?: boolean;
1691
+ showDescription?: boolean;
1692
+ showLocation?: boolean;
1693
+ showTime?: boolean;
1694
+ showTitle?: boolean;
1695
+ } | undefined;
1696
+ text?: string | undefined;
1697
+ css?: string | undefined;
1698
+ stylesheetUrl?: string | undefined;
1699
+ height?: number | undefined;
1700
+ imageData?: {
1701
+ url?: string;
1702
+ linkUrl?: string;
1703
+ height?: number;
1704
+ width?: number;
1705
+ }[];
1706
+ } | undefined;
1707
+ };
1708
+ } | undefined): GetWidgetsResponse;
1709
+ fromPartial(object: {
1710
+ layout?: {
1711
+ idCardWidget?: string;
1712
+ topbar?: {
1713
+ order?: string[];
1714
+ } | undefined;
1715
+ sidebar?: {
1716
+ order?: string[];
1717
+ } | undefined;
1718
+ moderatorWidget?: string;
1719
+ } | undefined;
1720
+ items?: {
1721
+ [x: string]: {
1722
+ id?: string;
1723
+ kind?: string;
1724
+ styles?: {
1725
+ backgroundColor?: string | undefined;
1726
+ headerColor?: string | undefined;
1727
+ } | undefined;
1728
+ shortName?: string;
1729
+ description?: string | undefined;
1730
+ data?: {
1731
+ url?: string | undefined;
1732
+ linkUrl?: string | undefined;
1733
+ height?: number | undefined;
1734
+ width?: number | undefined;
1735
+ iconUrl?: string | undefined;
1736
+ name?: string | undefined;
1737
+ prefixedName?: string | undefined;
1738
+ isSubscribed?: boolean | undefined;
1739
+ type?: string | undefined;
1740
+ subscribers?: number | undefined;
1741
+ communityIcon?: string | undefined;
1742
+ isNsfw?: boolean | undefined;
1743
+ text?: string | undefined;
1744
+ children?: {
1745
+ text?: string | undefined;
1746
+ url?: string | undefined;
1747
+ children?: any[];
1748
+ }[];
1749
+ }[];
1750
+ buttons?: {
1751
+ kind?: string;
1752
+ text?: string;
1753
+ url?: string | undefined;
1754
+ imageUrl?: string | undefined;
1755
+ linkUrl?: string | undefined;
1756
+ color?: string | undefined;
1757
+ fillColor?: string | undefined;
1758
+ textColor?: string | undefined;
1759
+ height?: number | undefined;
1760
+ width?: number | undefined;
1761
+ hoverState?: {
1762
+ kind?: string;
1763
+ color?: string | undefined;
1764
+ fillColor?: string | undefined;
1765
+ text?: string | undefined;
1766
+ textColor?: string | undefined;
1767
+ imageUrl?: string | undefined;
1768
+ height?: number | undefined;
1769
+ width?: number | undefined;
1770
+ } | undefined;
1771
+ }[];
1772
+ subscribersCount?: number | undefined;
1773
+ currentlyViewingText?: string | undefined;
1774
+ currentlyViewingCount?: number | undefined;
1775
+ subscribersText?: string | undefined;
1776
+ showWiki?: boolean | undefined;
1777
+ templates?: {
1778
+ [x: string]: {
1779
+ text?: string;
1780
+ richtext?: {
1781
+ e?: string | undefined;
1782
+ t?: string | undefined;
1783
+ }[];
1784
+ backgroundColor?: string;
1785
+ templateId?: string;
1786
+ textColor?: string;
1787
+ type?: string;
1788
+ } | undefined;
1789
+ };
1790
+ display?: string | undefined;
1791
+ order?: string[];
1792
+ mods?: {
1793
+ name?: string;
1794
+ authorFlairType?: string;
1795
+ authorFlairTextColor?: string;
1796
+ authorFlairBackgroundColor?: string;
1797
+ authorFalirText?: string;
1798
+ authorFlairRichtext?: {
1799
+ e?: string | undefined;
1800
+ t?: string | undefined;
1801
+ }[];
1802
+ }[];
1803
+ totalMods?: number | undefined;
1804
+ googleCalendarId?: string | undefined;
1805
+ requiresSync?: boolean | undefined;
1806
+ configuration?: {
1807
+ numEvents?: number;
1808
+ showDate?: boolean;
1809
+ showDescription?: boolean;
1810
+ showLocation?: boolean;
1811
+ showTime?: boolean;
1812
+ showTitle?: boolean;
1813
+ } | undefined;
1814
+ text?: string | undefined;
1815
+ css?: string | undefined;
1816
+ stylesheetUrl?: string | undefined;
1817
+ height?: number | undefined;
1818
+ imageData?: {
1819
+ url?: string;
1820
+ linkUrl?: string;
1821
+ height?: number;
1822
+ width?: number;
1823
+ }[];
1824
+ } | undefined;
1825
+ };
1826
+ }): GetWidgetsResponse;
1827
+ };
1828
+ readonly responseStream: false;
1829
+ readonly options: {};
155
1830
  };
156
1831
  };
157
1832
  };