@devvit/protos 0.11.0-next-2024-07-24-1be38cc96.0 → 0.11.0-next-2024-07-25-e11c6b2a8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1161) hide show
  1. package/index.d.ts +1 -1
  2. package/index.d.ts.map +1 -1
  3. package/index.js +1 -1
  4. package/meta.min.json +117 -156
  5. package/package.json +7 -6
  6. package/protos.min.js +2 -2
  7. package/protos.min.js.map +4 -4
  8. package/schema/.snootobuf/.gitIgnoreMe +1 -0
  9. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/audit.proto +1 -1
  10. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/auth.proto +1 -1
  11. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/organization.proto +1 -1
  12. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/service.proto +1 -1
  13. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/subscription.proto +1 -1
  14. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/admin/v1alpha/ui.proto +1 -1
  15. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/admin.proto +1 -1
  16. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/delivery.proto +13 -7
  17. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/filter.proto +1 -1
  18. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/firehose.proto +1 -1
  19. package/schema/{devvit → .snootobuf/deps/devvit}/data/api/v1alpha/intake.proto +1 -1
  20. package/schema/{devvit → .snootobuf/deps/devvit}/events/v1alpha/events.proto +2 -2
  21. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +17 -0
  22. package/schema/{devvit → .snootobuf/deps/devvit}/options/options.proto +1 -1
  23. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/commentv2.proto +1 -1
  24. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/flair.proto +1 -1
  25. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modaction.proto +1 -1
  26. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/modmail.proto +1 -1
  27. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/postv2.proto +1 -1
  28. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/subredditv2.proto +1 -1
  29. package/schema/{devvit → .snootobuf/deps/devvit}/reddit/v2alpha/userv2.proto +1 -1
  30. package/schema/{devvit/data → .snootobuf/deps/devvit}/triggers/v1alpha/triggers.proto +2 -1
  31. package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
  32. package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
  33. package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
  34. package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
  35. package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
  36. package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
  37. package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
  38. package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
  39. package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
  40. package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
  41. package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
  42. package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
  43. package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
  44. package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
  45. package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
  46. package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
  47. package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
  48. package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
  49. package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
  50. package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
  51. package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
  52. package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
  53. package/schema/.snootobuf/deps/enum/vote.proto +12 -0
  54. package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
  55. package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
  56. package/schema/.snootobuf/deps/evaluator/evaluator.proto +112 -0
  57. package/schema/.snootobuf/deps/google/api/auth.proto +181 -0
  58. package/schema/.snootobuf/deps/google/api/backend.proto +51 -0
  59. package/schema/.snootobuf/deps/google/api/billing.proto +67 -0
  60. package/schema/{google → .snootobuf/deps/google}/api/client.proto +37 -37
  61. package/schema/.snootobuf/deps/google/api/config_change.proto +85 -0
  62. package/schema/.snootobuf/deps/google/api/consumer.proto +83 -0
  63. package/schema/.snootobuf/deps/google/api/context.proto +63 -0
  64. package/schema/.snootobuf/deps/google/api/control.proto +33 -0
  65. package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
  66. package/schema/.snootobuf/deps/google/api/documentation.proto +157 -0
  67. package/schema/.snootobuf/deps/google/api/endpoint.proto +71 -0
  68. package/schema/{google → .snootobuf/deps/google}/api/field_behavior.proto +23 -17
  69. package/schema/{google → .snootobuf/deps/google}/api/http.proto +1 -0
  70. package/schema/.snootobuf/deps/google/api/httpbody.proto +76 -0
  71. package/schema/.snootobuf/deps/google/api/label.proto +49 -0
  72. package/schema/.snootobuf/deps/google/api/launch_stage.proto +67 -0
  73. package/schema/.snootobuf/deps/google/api/log.proto +55 -0
  74. package/schema/.snootobuf/deps/google/api/logging.proto +83 -0
  75. package/schema/.snootobuf/deps/google/api/metric.proto +192 -0
  76. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +116 -0
  77. package/schema/.snootobuf/deps/google/api/monitoring.proto +89 -0
  78. package/schema/.snootobuf/deps/google/api/quota.proto +259 -0
  79. package/schema/.snootobuf/deps/google/api/resource.proto +299 -0
  80. package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
  81. package/schema/.snootobuf/deps/google/api/service.proto +175 -0
  82. package/schema/.snootobuf/deps/google/api/source_info.proto +32 -0
  83. package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
  84. package/schema/.snootobuf/deps/google/api/usage.proto +92 -0
  85. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
  86. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
  87. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
  88. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
  89. package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
  90. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
  91. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
  92. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
  93. package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
  94. package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
  95. package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
  96. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
  97. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
  98. package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
  99. package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
  100. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
  101. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
  102. package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
  103. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
  104. package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
  105. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
  106. package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
  107. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
  108. package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
  109. package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
  110. package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
  111. package/schema/.snootobuf/deps/google/type/color.proto +170 -0
  112. package/schema/.snootobuf/deps/google/type/date.proto +50 -0
  113. package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
  114. package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
  115. package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
  116. package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
  117. package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
  118. package/schema/.snootobuf/deps/google/type/money.proto +43 -0
  119. package/schema/.snootobuf/deps/google/type/month.proto +66 -0
  120. package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
  121. package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
  122. package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
  123. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  124. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
  125. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
  126. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
  127. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
  128. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
  129. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
  130. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
  131. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
  132. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
  133. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
  134. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
  135. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
  136. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
  137. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
  138. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
  139. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
  140. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
  141. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
  142. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
  143. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
  144. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
  145. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
  146. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
  147. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
  148. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
  149. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
  150. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
  151. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
  152. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
  153. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
  154. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
  155. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
  156. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
  157. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +69 -0
  158. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +289 -0
  159. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
  160. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +54 -0
  161. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
  162. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
  163. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
  164. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
  165. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
  166. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +32 -0
  167. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
  168. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
  169. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
  170. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +144 -0
  171. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
  172. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
  173. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
  174. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
  175. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  176. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
  177. package/schema/.snootobuf/deps/validate/validate.proto +862 -0
  178. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.client.ts +597 -0
  179. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/automation/v1alpha/event_handlers.ts +191 -0
  180. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.client.ts +49 -0
  181. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/bot/bot.ts +340 -0
  182. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.client.ts +42 -0
  183. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/hello/hello.ts +99 -0
  184. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.client.ts +70 -0
  185. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/payments/v1alpha/payments.ts +334 -0
  186. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/permissions/permissions.ts +324 -0
  187. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.client.ts +37 -0
  188. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/producer/producer.ts +174 -0
  189. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.client.ts +58 -0
  190. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_action.ts +679 -0
  191. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/context_type.ts +22 -0
  192. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.client.ts +37 -0
  193. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/reddit/post_filter.ts +131 -0
  194. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/action.ts +84 -0
  195. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.client.ts +43 -0
  196. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/scheduler/handler.ts +12 -0
  197. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.client.ts +70 -0
  198. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/app_settings.ts +15 -0
  199. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.client.ts +70 -0
  200. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/installation_settings.ts +15 -0
  201. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.client.ts +68 -0
  202. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/instance_settings.ts +15 -0
  203. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/settings/v1alpha/shared.ts +311 -0
  204. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.client.ts +82 -0
  205. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/streams.ts +77 -0
  206. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.client.ts +120 -0
  207. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/test/wrappertypes.ts +25 -0
  208. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.client.ts +63 -0
  209. package/schema/.snootobuf/output/devenv_ts_files/devvit/actor/user_configurable/user_configurable.ts +284 -0
  210. package/schema/.snootobuf/output/devenv_ts_files/devvit/cli/playtest.ts +323 -0
  211. package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.client.ts +37 -0
  212. package/schema/.snootobuf/output/devenv_ts_files/devvit/debug/v1alpha/debug.ts +143 -0
  213. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/actor/actor_type.ts +94 -0
  214. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.client.ts +76 -0
  215. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/admin/waitlist_admin.ts +659 -0
  216. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/app.ts +2060 -0
  217. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/categories/categories.ts +146 -0
  218. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app/info/app_info.ts +389 -0
  219. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/app_publish_request.ts +970 -0
  220. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/note/app_publish_request_note.ts +257 -0
  221. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_publish_request/review/app_publish_request_review.ts +336 -0
  222. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_settings/app_settings.ts +571 -0
  223. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/app_version.ts +1161 -0
  224. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/app_version/info/app_version_info.ts +397 -0
  225. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/audit/audit.ts +646 -0
  226. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/auth/auth.ts +458 -0
  227. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/organization/organization.ts +347 -0
  228. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/data_api/admin/subscription/subscription.ts +982 -0
  229. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.client.ts +1071 -0
  230. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.ts +222 -0
  231. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/feedback/feedback.ts +70 -0
  232. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation/installation.ts +1882 -0
  233. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/installation_settings/installation_settings.ts +575 -0
  234. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.client.ts +41 -0
  235. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/authorization/v1alpha/authorization.ts +394 -0
  236. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.client.ts +118 -0
  237. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.ts +27 -0
  238. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.ts +180 -0
  239. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.client.ts +41 -0
  240. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/internal/media/media.ts +162 -0
  241. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/nutrition/nutrition.ts +245 -0
  242. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/reddit/redditor.ts +98 -0
  243. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.client.ts +84 -0
  244. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/waitlist/waitlist.ts +455 -0
  245. package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.client.ts +50 -0
  246. package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/realtime.ts +149 -0
  247. package/schema/.snootobuf/output/devenv_ts_files/devvit/events/v1alpha/wqcleanup.ts +68 -0
  248. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.client.ts +37 -0
  249. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/custom_post_snapshot.ts +76 -0
  250. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.client.ts +37 -0
  251. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/resolvers.ts +76 -0
  252. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.client.ts +114 -0
  253. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/utils/v1alpha/utilities.ts +475 -0
  254. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.client.ts +96 -0
  255. package/schema/.snootobuf/output/devenv_ts_files/devvit/gateway/v1alpha/triggers.ts +256 -0
  256. package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/snapshot.ts +80 -0
  257. package/schema/.snootobuf/output/devenv_ts_files/devvit/gql/subreddit_metadata.ts +312 -0
  258. package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/common.ts +22 -0
  259. package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/order.ts +208 -0
  260. package/schema/.snootobuf/output/devenv_ts_files/devvit/payments/v1alpha/product.ts +241 -0
  261. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.client.ts +58 -0
  262. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/assetresolver/assetresolver.ts +380 -0
  263. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.client.ts +57 -0
  264. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/builder/builder.ts +102 -0
  265. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.client.ts +57 -0
  266. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack.ts +13 -0
  267. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/buildpack_common.ts +705 -0
  268. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/buildpack/filesystem.ts +168 -0
  269. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.client.ts +37 -0
  270. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/clock/clock.ts +12 -0
  271. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.client.ts +37 -0
  272. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/http/http.ts +294 -0
  273. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.client.ts +51 -0
  274. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/inspector/inspector.ts +304 -0
  275. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.client.ts +72 -0
  276. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/kvstore/kvstore.ts +209 -0
  277. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.client.ts +51 -0
  278. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/linker.ts +89 -0
  279. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.client.ts +80 -0
  280. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/linker/resolver.ts +198 -0
  281. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.client.ts +83 -0
  282. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/logger/logger.ts +608 -0
  283. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.client.ts +37 -0
  284. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/media/media.ts +155 -0
  285. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.client.ts +43 -0
  286. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/modlog/modlog.ts +187 -0
  287. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.client.ts +81 -0
  288. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/payments/v1alpha/payments.ts +476 -0
  289. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/common/common_msg.ts +3641 -0
  290. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_msg.ts +2310 -0
  291. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.client.ts +270 -0
  292. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/flair/flair_svc.ts +43 -0
  293. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_msg.ts +224 -0
  294. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.client.ts +63 -0
  295. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/graphql/graphql_svc.ts +14 -0
  296. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.ts +1869 -0
  297. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.client.ts +571 -0
  298. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.ts +52 -0
  299. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_msg.ts +1156 -0
  300. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.client.ts +194 -0
  301. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/listings/listings_svc.ts +27 -0
  302. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_msg.ts +1231 -0
  303. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.client.ts +373 -0
  304. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/moderation/moderation_svc.ts +46 -0
  305. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_msg.ts +1025 -0
  306. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.client.ts +112 -0
  307. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/modnote/modnote_svc.ts +23 -0
  308. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_msg.ts +4135 -0
  309. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.client.ts +351 -0
  310. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/newmodmail/newmodmail_svc.ts +52 -0
  311. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_msg.ts +1040 -0
  312. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.client.ts +207 -0
  313. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/postcollections/postcollections_svc.ts +34 -0
  314. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_msg.ts +380 -0
  315. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.client.ts +186 -0
  316. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/privatemessages/privatemessages_svc.ts +25 -0
  317. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_msg.ts +11280 -0
  318. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.client.ts +480 -0
  319. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/subreddits/subreddits_svc.ts +71 -0
  320. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_msg.ts +1820 -0
  321. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.client.ts +247 -0
  322. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/users/users_svc.ts +42 -0
  323. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_msg.ts +4766 -0
  324. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.client.ts +401 -0
  325. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/widgets/widgets_svc.ts +56 -0
  326. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_msg.ts +1786 -0
  327. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.client.ts +236 -0
  328. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapi/wiki/wiki_svc.ts +35 -0
  329. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.client.ts +50 -0
  330. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redditapiv2/redditapiv2.ts +15 -0
  331. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.client.ts +518 -0
  332. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/redis/redisapi.ts +3347 -0
  333. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.client.ts +89 -0
  334. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/scheduler/scheduler.ts +575 -0
  335. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.client.ts +41 -0
  336. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/settings/v1alpha/settings.ts +235 -0
  337. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.client.ts +50 -0
  338. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/streambroker/streambroker.ts +169 -0
  339. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.client.ts +37 -0
  340. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/timer/timer.ts +76 -0
  341. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.client.ts +41 -0
  342. package/schema/.snootobuf/output/devenv_ts_files/devvit/plugin/v2events/v2events.ts +312 -0
  343. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/comment.ts +963 -0
  344. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/common.ts +1099 -0
  345. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.client.ts +50 -0
  346. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_actions/v2alpha/custom_actions.ts +527 -0
  347. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.client.ts +79 -0
  348. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/custom_post/v1alpha/custom_post.ts +340 -0
  349. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/post.ts +2063 -0
  350. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/subreddit.ts +1374 -0
  351. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/thing_type.ts +36 -0
  352. package/schema/.snootobuf/output/devenv_ts_files/devvit/reddit/user.ts +1418 -0
  353. package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.client.ts +78 -0
  354. package/schema/.snootobuf/output/devenv_ts_files/devvit/remote_logger/remote_logger.ts +538 -0
  355. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.client.ts +56 -0
  356. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/bootstrap.ts +13 -0
  357. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.client.ts +36 -0
  358. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/echo.ts +11 -0
  359. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.client.ts +53 -0
  360. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/runtime.ts +78 -0
  361. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.client.ts +87 -0
  362. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/supervisor.ts +92 -0
  363. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.client.ts +37 -0
  364. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/actor/v1alpha/health.ts +87 -0
  365. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/bundle.ts +859 -0
  366. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/envelope.ts +230 -0
  367. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/runtime_common.ts +251 -0
  368. package/schema/.snootobuf/output/devenv_ts_files/devvit/runtime/serializable.ts +232 -0
  369. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.client.ts +57 -0
  370. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/bundle_service.ts +82 -0
  371. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.client.ts +41 -0
  372. package/schema/.snootobuf/output/devenv_ts_files/devvit/service/envelope_service.ts +12 -0
  373. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/attributes.ts +642 -0
  374. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/block.ts +1656 -0
  375. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/enums.ts +602 -0
  376. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/rendering.ts +157 -0
  377. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/block_kit/v1beta/ui.ts +354 -0
  378. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/common/v1alpha/common.ts +116 -0
  379. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/create_order.ts +217 -0
  380. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/effect.ts +266 -0
  381. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/interval.ts +169 -0
  382. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/navigate_to_url.ts +81 -0
  383. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/realtime_subscriptions.ts +156 -0
  384. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/reload_part.ts +349 -0
  385. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/rerender_ui.ts +71 -0
  386. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_form.ts +162 -0
  387. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/effects/v1alpha/show_toast.ts +104 -0
  388. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/event.ts +697 -0
  389. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.client.ts +39 -0
  390. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/events/v1alpha/handle_ui.ts +160 -0
  391. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/field.ts +974 -0
  392. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/form.ts +134 -0
  393. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/type.ts +56 -0
  394. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/form_builder/v1alpha/value.ts +359 -0
  395. package/schema/.snootobuf/output/devenv_ts_files/devvit/ui/toast/toast.ts +314 -0
  396. package/schema/.snootobuf/output/devenv_ts_files/devvit/uuid.ts +70 -0
  397. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/any.ts +322 -0
  398. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/descriptor.ts +3475 -0
  399. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/duration.ts +231 -0
  400. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/empty.ts +81 -0
  401. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/struct.ts +482 -0
  402. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/timestamp.ts +290 -0
  403. package/schema/.snootobuf/output/devenv_ts_files/google/protobuf/wrappers.ts +752 -0
  404. package/schema/devvit/dev_portal/admin/waitlist_admin.proto +2 -0
  405. package/schema/devvit/dev_portal/app/app.proto +2 -0
  406. package/schema/devvit/dev_portal/app_publish_request/app_publish_request.proto +2 -0
  407. package/schema/devvit/dev_portal/app_publish_request/note/app_publish_request_note.proto +2 -0
  408. package/schema/devvit/dev_portal/app_publish_request/review/app_publish_request_review.proto +2 -0
  409. package/schema/devvit/dev_portal/app_settings/app_settings.proto +2 -0
  410. package/schema/devvit/dev_portal/dev_portal.proto +2 -0
  411. package/schema/devvit/dev_portal/feedback/feedback.proto +2 -0
  412. package/schema/devvit/dev_portal/installation_settings/installation_settings.proto +2 -0
  413. package/schema/devvit/dev_portal/nutrition/nutrition.proto +2 -0
  414. package/schema/devvit/dev_portal/waitlist/waitlist.proto +2 -0
  415. package/schema/devvit/gateway/v1alpha/triggers.proto +1 -1
  416. package/schema/snootobuf.devenv.lock +0 -0
  417. package/schema/snootobuf.devenv.yaml +15 -0
  418. package/schema/snootobuf.lock +0 -0
  419. package/schema/snootobuf.redditapi.lock +0 -0
  420. package/schema/snootobuf.redditapi.yaml +14 -0
  421. package/schema/snootobuf.ts.lock +0 -0
  422. package/schema/snootobuf.ts.yaml +35 -0
  423. package/schema/snootobuf.yaml +49 -0
  424. package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +6 -6
  425. package/types/devvit/actor/automation/v1alpha/event_handlers.js +5 -5
  426. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts +342 -0
  427. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts.map +1 -0
  428. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.js +466 -0
  429. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts +175 -0
  430. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts.map +1 -0
  431. package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.js +1833 -0
  432. package/types/devvit/actor/bot/bot.d.ts +2 -2
  433. package/types/devvit/actor/bot/bot.js +3 -3
  434. package/types/devvit/actor/bot/bot.twirp-client.d.ts +23 -0
  435. package/types/devvit/actor/bot/bot.twirp-client.d.ts.map +1 -0
  436. package/types/devvit/actor/bot/bot.twirp-client.js +36 -0
  437. package/types/devvit/actor/bot/bot.twirp.d.ts +15 -0
  438. package/types/devvit/actor/bot/bot.twirp.d.ts.map +1 -0
  439. package/types/devvit/actor/bot/bot.twirp.js +154 -0
  440. package/types/devvit/actor/hello/hello.d.ts +1 -1
  441. package/types/devvit/actor/hello/hello.js +2 -2
  442. package/types/devvit/actor/hello/hello.twirp-client.d.ts +19 -0
  443. package/types/devvit/actor/hello/hello.twirp-client.d.ts.map +1 -0
  444. package/types/devvit/actor/hello/hello.twirp-client.js +23 -0
  445. package/types/devvit/actor/hello/hello.twirp.d.ts +12 -0
  446. package/types/devvit/actor/hello/hello.twirp.d.ts.map +1 -0
  447. package/types/devvit/actor/hello/hello.twirp.js +88 -0
  448. package/types/devvit/actor/payments/v1alpha/payments.d.ts +2 -2
  449. package/types/devvit/actor/payments/v1alpha/payments.js +3 -3
  450. package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts +22 -0
  451. package/types/devvit/actor/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
  452. package/types/devvit/actor/payments/v1alpha/payments.twirp-client.js +35 -0
  453. package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts +14 -0
  454. package/types/devvit/actor/payments/v1alpha/payments.twirp.d.ts.map +1 -0
  455. package/types/devvit/actor/payments/v1alpha/payments.twirp.js +156 -0
  456. package/types/devvit/actor/permissions/permissions.d.ts +1 -1
  457. package/types/devvit/actor/permissions/permissions.js +2 -2
  458. package/types/devvit/actor/producer/producer.d.ts +1 -1
  459. package/types/devvit/actor/producer/producer.js +2 -2
  460. package/types/devvit/actor/producer/producer.twirp-client.d.ts +19 -0
  461. package/types/devvit/actor/producer/producer.twirp-client.d.ts.map +1 -0
  462. package/types/devvit/actor/producer/producer.twirp-client.js +23 -0
  463. package/types/devvit/actor/producer/producer.twirp.d.ts +12 -0
  464. package/types/devvit/actor/producer/producer.twirp.d.ts.map +1 -0
  465. package/types/devvit/actor/producer/producer.twirp.js +88 -0
  466. package/types/devvit/actor/reddit/context_action.d.ts +6 -6
  467. package/types/devvit/actor/reddit/context_action.js +7 -7
  468. package/types/devvit/actor/reddit/context_action.twirp-client.d.ts +23 -0
  469. package/types/devvit/actor/reddit/context_action.twirp-client.d.ts.map +1 -0
  470. package/types/devvit/actor/reddit/context_action.twirp-client.js +36 -0
  471. package/types/devvit/actor/reddit/context_action.twirp.d.ts +15 -0
  472. package/types/devvit/actor/reddit/context_action.twirp.d.ts.map +1 -0
  473. package/types/devvit/actor/reddit/context_action.twirp.js +157 -0
  474. package/types/devvit/actor/reddit/post_filter.d.ts +2 -2
  475. package/types/devvit/actor/reddit/post_filter.js +3 -3
  476. package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts +19 -0
  477. package/types/devvit/actor/reddit/post_filter.twirp-client.d.ts.map +1 -0
  478. package/types/devvit/actor/reddit/post_filter.twirp-client.js +23 -0
  479. package/types/devvit/actor/reddit/post_filter.twirp.d.ts +12 -0
  480. package/types/devvit/actor/reddit/post_filter.twirp.d.ts.map +1 -0
  481. package/types/devvit/actor/reddit/post_filter.twirp.js +88 -0
  482. package/types/devvit/actor/scheduler/action.d.ts +1 -1
  483. package/types/devvit/actor/scheduler/action.js +3 -3
  484. package/types/devvit/actor/scheduler/handler.d.ts +3 -3
  485. package/types/devvit/actor/scheduler/handler.js +3 -3
  486. package/types/devvit/actor/scheduler/handler.twirp-client.d.ts +20 -0
  487. package/types/devvit/actor/scheduler/handler.twirp-client.d.ts.map +1 -0
  488. package/types/devvit/actor/scheduler/handler.twirp-client.js +24 -0
  489. package/types/devvit/actor/scheduler/handler.twirp.d.ts +13 -0
  490. package/types/devvit/actor/scheduler/handler.twirp.d.ts.map +1 -0
  491. package/types/devvit/actor/scheduler/handler.twirp.js +91 -0
  492. package/types/devvit/actor/settings/v1alpha/app_settings.d.ts +2 -2
  493. package/types/devvit/actor/settings/v1alpha/app_settings.js +2 -2
  494. package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts +22 -0
  495. package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.d.ts.map +1 -0
  496. package/types/devvit/actor/settings/v1alpha/app_settings.twirp-client.js +35 -0
  497. package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts +14 -0
  498. package/types/devvit/actor/settings/v1alpha/app_settings.twirp.d.ts.map +1 -0
  499. package/types/devvit/actor/settings/v1alpha/app_settings.twirp.js +156 -0
  500. package/types/devvit/actor/settings/v1alpha/installation_settings.d.ts +2 -2
  501. package/types/devvit/actor/settings/v1alpha/installation_settings.js +2 -2
  502. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts +22 -0
  503. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.d.ts.map +1 -0
  504. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp-client.js +35 -0
  505. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts +14 -0
  506. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.d.ts.map +1 -0
  507. package/types/devvit/actor/settings/v1alpha/installation_settings.twirp.js +156 -0
  508. package/types/devvit/actor/settings/v1alpha/instance_settings.d.ts +2 -2
  509. package/types/devvit/actor/settings/v1alpha/instance_settings.js +2 -2
  510. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts +22 -0
  511. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.d.ts.map +1 -0
  512. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp-client.js +35 -0
  513. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts +14 -0
  514. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.d.ts.map +1 -0
  515. package/types/devvit/actor/settings/v1alpha/instance_settings.twirp.js +156 -0
  516. package/types/devvit/actor/settings/v1alpha/shared.d.ts +3 -3
  517. package/types/devvit/actor/settings/v1alpha/shared.js +4 -4
  518. package/types/devvit/actor/test/streams.d.ts +1 -1
  519. package/types/devvit/actor/test/streams.js +2 -2
  520. package/types/devvit/actor/test/streams.twirp-client.d.ts +25 -0
  521. package/types/devvit/actor/test/streams.twirp-client.d.ts.map +1 -0
  522. package/types/devvit/actor/test/streams.twirp-client.js +47 -0
  523. package/types/devvit/actor/test/streams.twirp.d.ts +16 -0
  524. package/types/devvit/actor/test/streams.twirp.d.ts.map +1 -0
  525. package/types/devvit/actor/test/streams.twirp.js +222 -0
  526. package/types/devvit/actor/test/wrappertypes.d.ts +2 -2
  527. package/types/devvit/actor/test/wrappertypes.js +2 -2
  528. package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts +40 -0
  529. package/types/devvit/actor/test/wrappertypes.twirp-client.d.ts.map +1 -0
  530. package/types/devvit/actor/test/wrappertypes.twirp-client.js +107 -0
  531. package/types/devvit/actor/test/wrappertypes.twirp.d.ts +26 -0
  532. package/types/devvit/actor/test/wrappertypes.twirp.d.ts.map +1 -0
  533. package/types/devvit/actor/test/wrappertypes.twirp.js +552 -0
  534. package/types/devvit/actor/user_configurable/user_configurable.d.ts +2 -2
  535. package/types/devvit/actor/user_configurable/user_configurable.js +3 -3
  536. package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts +23 -0
  537. package/types/devvit/actor/user_configurable/user_configurable.twirp-client.d.ts.map +1 -0
  538. package/types/devvit/actor/user_configurable/user_configurable.twirp-client.js +36 -0
  539. package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts +15 -0
  540. package/types/devvit/actor/user_configurable/user_configurable.twirp.d.ts.map +1 -0
  541. package/types/devvit/actor/user_configurable/user_configurable.twirp.js +157 -0
  542. package/types/devvit/cli/playtest.d.ts +2 -2
  543. package/types/devvit/cli/playtest.js +3 -3
  544. package/types/devvit/data/api/v1alpha/admin.d.ts +4 -4
  545. package/types/devvit/data/api/v1alpha/admin.d.ts.map +1 -1
  546. package/types/devvit/data/api/v1alpha/admin.js +6 -6
  547. package/types/devvit/debug/v1alpha/debug.d.ts +1 -1
  548. package/types/devvit/debug/v1alpha/debug.js +2 -2
  549. package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts +19 -0
  550. package/types/devvit/debug/v1alpha/debug.twirp-client.d.ts.map +1 -0
  551. package/types/devvit/debug/v1alpha/debug.twirp-client.js +23 -0
  552. package/types/devvit/debug/v1alpha/debug.twirp.d.ts +12 -0
  553. package/types/devvit/debug/v1alpha/debug.twirp.d.ts.map +1 -0
  554. package/types/devvit/debug/v1alpha/debug.twirp.js +88 -0
  555. package/types/devvit/dev_portal/actor/actor_type.d.ts +1 -1
  556. package/types/devvit/dev_portal/actor/actor_type.js +2 -2
  557. package/types/devvit/dev_portal/admin/waitlist_admin.d.ts +3 -3
  558. package/types/devvit/dev_portal/admin/waitlist_admin.js +5 -5
  559. package/types/devvit/dev_portal/app/app.d.ts +4 -4
  560. package/types/devvit/dev_portal/app/app.js +6 -6
  561. package/types/devvit/dev_portal/app/info/app_info.d.ts +4 -4
  562. package/types/devvit/dev_portal/app/info/app_info.js +6 -6
  563. package/types/devvit/dev_portal/app_publish_request/app_publish_request.d.ts +6 -6
  564. package/types/devvit/dev_portal/app_publish_request/app_publish_request.js +8 -8
  565. package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.d.ts +2 -2
  566. package/types/devvit/dev_portal/app_publish_request/note/app_publish_request_note.js +4 -4
  567. package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts +2 -2
  568. package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +4 -4
  569. package/types/devvit/dev_portal/app_settings/app_settings.d.ts +3 -3
  570. package/types/devvit/dev_portal/app_settings/app_settings.js +4 -4
  571. package/types/devvit/dev_portal/app_version/app_version.d.ts +7 -7
  572. package/types/devvit/dev_portal/app_version/app_version.js +9 -9
  573. package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts +1 -1
  574. package/types/devvit/dev_portal/app_version/info/app_version_info.js +4 -4
  575. package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts +1 -1
  576. package/types/devvit/dev_portal/data_api/admin/audit/audit.js +3 -3
  577. package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts +3 -3
  578. package/types/devvit/dev_portal/data_api/admin/auth/auth.js +5 -5
  579. package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts +2 -2
  580. package/types/devvit/dev_portal/data_api/admin/organization/organization.js +3 -3
  581. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts +4 -4
  582. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.js +5 -5
  583. package/types/devvit/dev_portal/dev_portal.d.ts +20 -20
  584. package/types/devvit/dev_portal/dev_portal.js +20 -20
  585. package/types/devvit/dev_portal/feedback/feedback.d.ts +1 -1
  586. package/types/devvit/dev_portal/feedback/feedback.js +2 -2
  587. package/types/devvit/dev_portal/installation/installation.d.ts +4 -4
  588. package/types/devvit/dev_portal/installation/installation.js +8 -8
  589. package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts +3 -3
  590. package/types/devvit/dev_portal/installation_settings/installation_settings.js +4 -4
  591. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts +2 -2
  592. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.js +3 -3
  593. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +5 -5
  594. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.js +5 -5
  595. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts +2 -2
  596. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.js +3 -3
  597. package/types/devvit/dev_portal/internal/media/media.d.ts +1 -1
  598. package/types/devvit/dev_portal/internal/media/media.js +2 -2
  599. package/types/devvit/dev_portal/nutrition/nutrition.d.ts +1 -1
  600. package/types/devvit/dev_portal/nutrition/nutrition.js +2 -2
  601. package/types/devvit/dev_portal/reddit/redditor.d.ts +1 -1
  602. package/types/devvit/dev_portal/reddit/redditor.js +2 -2
  603. package/types/devvit/dev_portal/waitlist/waitlist.d.ts +3 -3
  604. package/types/devvit/dev_portal/waitlist/waitlist.js +5 -5
  605. package/types/devvit/events/v1alpha/events.d.ts +6 -6
  606. package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
  607. package/types/devvit/events/v1alpha/events.js +17 -17
  608. package/types/devvit/events/v1alpha/realtime.d.ts +2 -2
  609. package/types/devvit/events/v1alpha/realtime.js +4 -4
  610. package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts +23 -0
  611. package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts.map +1 -0
  612. package/types/devvit/events/v1alpha/realtime.twirp-client.js +36 -0
  613. package/types/devvit/events/v1alpha/realtime.twirp.d.ts +15 -0
  614. package/types/devvit/events/v1alpha/realtime.twirp.d.ts.map +1 -0
  615. package/types/devvit/events/v1alpha/realtime.twirp.js +157 -0
  616. package/types/devvit/events/v1alpha/wqcleanup.d.ts +1 -1
  617. package/types/devvit/events/v1alpha/wqcleanup.js +2 -2
  618. package/types/devvit/gateway/custom_post_snapshot.d.ts +2 -2
  619. package/types/devvit/gateway/custom_post_snapshot.js +3 -3
  620. package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts +20 -0
  621. package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts.map +1 -0
  622. package/types/devvit/gateway/custom_post_snapshot.twirp-client.js +24 -0
  623. package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts +13 -0
  624. package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts.map +1 -0
  625. package/types/devvit/gateway/custom_post_snapshot.twirp.js +91 -0
  626. package/types/devvit/gateway/resolvers.d.ts +2 -2
  627. package/types/devvit/gateway/resolvers.js +3 -3
  628. package/types/devvit/gateway/resolvers.twirp-client.d.ts +20 -0
  629. package/types/devvit/gateway/resolvers.twirp-client.d.ts.map +1 -0
  630. package/types/devvit/gateway/resolvers.twirp-client.js +24 -0
  631. package/types/devvit/gateway/resolvers.twirp.d.ts +13 -0
  632. package/types/devvit/gateway/resolvers.twirp.d.ts.map +1 -0
  633. package/types/devvit/gateway/resolvers.twirp.js +91 -0
  634. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +1 -1
  635. package/types/devvit/gateway/utils/v1alpha/utilities.js +2 -2
  636. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts +47 -0
  637. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts.map +1 -0
  638. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.js +93 -0
  639. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts +28 -0
  640. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts.map +1 -0
  641. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.js +440 -0
  642. package/types/devvit/gateway/v1alpha/triggers.d.ts +8 -8
  643. package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
  644. package/types/devvit/gateway/v1alpha/triggers.js +5 -5
  645. package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts +37 -0
  646. package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts.map +1 -0
  647. package/types/devvit/gateway/v1alpha/triggers.twirp-client.js +86 -0
  648. package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts +25 -0
  649. package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts.map +1 -0
  650. package/types/devvit/gateway/v1alpha/triggers.twirp.js +423 -0
  651. package/types/devvit/gql/snapshot.d.ts +1 -1
  652. package/types/devvit/gql/snapshot.js +2 -2
  653. package/types/devvit/gql/subreddit_metadata.d.ts +3 -3
  654. package/types/devvit/gql/subreddit_metadata.js +4 -4
  655. package/types/devvit/options/options.d.ts +1 -1
  656. package/types/devvit/options/options.js +2 -2
  657. package/types/devvit/payments/v1alpha/order.d.ts +3 -3
  658. package/types/devvit/payments/v1alpha/order.js +5 -5
  659. package/types/devvit/payments/v1alpha/product.d.ts +2 -2
  660. package/types/devvit/payments/v1alpha/product.js +3 -3
  661. package/types/devvit/plugin/assetresolver/assetresolver.d.ts +1 -1
  662. package/types/devvit/plugin/assetresolver/assetresolver.js +2 -2
  663. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts +22 -0
  664. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts.map +1 -0
  665. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.js +35 -0
  666. package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts +14 -0
  667. package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts.map +1 -0
  668. package/types/devvit/plugin/assetresolver/assetresolver.twirp.js +156 -0
  669. package/types/devvit/plugin/builder/builder.d.ts +3 -3
  670. package/types/devvit/plugin/builder/builder.js +4 -4
  671. package/types/devvit/plugin/builder/builder.twirp-client.d.ts +23 -0
  672. package/types/devvit/plugin/builder/builder.twirp-client.d.ts.map +1 -0
  673. package/types/devvit/plugin/builder/builder.twirp-client.js +36 -0
  674. package/types/devvit/plugin/builder/builder.twirp.d.ts +15 -0
  675. package/types/devvit/plugin/builder/builder.twirp.d.ts.map +1 -0
  676. package/types/devvit/plugin/builder/builder.twirp.js +154 -0
  677. package/types/devvit/plugin/buildpack/buildpack.d.ts +2 -2
  678. package/types/devvit/plugin/buildpack/buildpack.js +2 -2
  679. package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts +22 -0
  680. package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts.map +1 -0
  681. package/types/devvit/plugin/buildpack/buildpack.twirp-client.js +35 -0
  682. package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts +14 -0
  683. package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts.map +1 -0
  684. package/types/devvit/plugin/buildpack/buildpack.twirp.js +156 -0
  685. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +4 -4
  686. package/types/devvit/plugin/buildpack/buildpack_common.js +6 -6
  687. package/types/devvit/plugin/buildpack/filesystem.d.ts +1 -1
  688. package/types/devvit/plugin/buildpack/filesystem.js +2 -2
  689. package/types/devvit/plugin/clock/clock.d.ts +3 -3
  690. package/types/devvit/plugin/clock/clock.js +3 -3
  691. package/types/devvit/plugin/clock/clock.twirp-client.d.ts +20 -0
  692. package/types/devvit/plugin/clock/clock.twirp-client.d.ts.map +1 -0
  693. package/types/devvit/plugin/clock/clock.twirp-client.js +24 -0
  694. package/types/devvit/plugin/clock/clock.twirp.d.ts +13 -0
  695. package/types/devvit/plugin/clock/clock.twirp.d.ts.map +1 -0
  696. package/types/devvit/plugin/clock/clock.twirp.js +89 -0
  697. package/types/devvit/plugin/http/http.d.ts +1 -1
  698. package/types/devvit/plugin/http/http.js +2 -2
  699. package/types/devvit/plugin/http/http.twirp-client.d.ts +19 -0
  700. package/types/devvit/plugin/http/http.twirp-client.d.ts.map +1 -0
  701. package/types/devvit/plugin/http/http.twirp-client.js +23 -0
  702. package/types/devvit/plugin/http/http.twirp.d.ts +12 -0
  703. package/types/devvit/plugin/http/http.twirp.d.ts.map +1 -0
  704. package/types/devvit/plugin/http/http.twirp.js +88 -0
  705. package/types/devvit/plugin/inspector/inspector.d.ts +3 -3
  706. package/types/devvit/plugin/inspector/inspector.js +4 -4
  707. package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts +23 -0
  708. package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts.map +1 -0
  709. package/types/devvit/plugin/inspector/inspector.twirp-client.js +36 -0
  710. package/types/devvit/plugin/inspector/inspector.twirp.d.ts +15 -0
  711. package/types/devvit/plugin/inspector/inspector.twirp.d.ts.map +1 -0
  712. package/types/devvit/plugin/inspector/inspector.twirp.js +157 -0
  713. package/types/devvit/plugin/kvstore/kvstore.d.ts +2 -2
  714. package/types/devvit/plugin/kvstore/kvstore.js +3 -3
  715. package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts +29 -0
  716. package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts.map +1 -0
  717. package/types/devvit/plugin/kvstore/kvstore.twirp-client.js +60 -0
  718. package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts +19 -0
  719. package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts.map +1 -0
  720. package/types/devvit/plugin/kvstore/kvstore.twirp.js +289 -0
  721. package/types/devvit/plugin/linker/linker.d.ts +4 -4
  722. package/types/devvit/plugin/linker/linker.js +5 -5
  723. package/types/devvit/plugin/linker/linker.twirp-client.d.ts +20 -0
  724. package/types/devvit/plugin/linker/linker.twirp-client.d.ts.map +1 -0
  725. package/types/devvit/plugin/linker/linker.twirp-client.js +24 -0
  726. package/types/devvit/plugin/linker/linker.twirp.d.ts +13 -0
  727. package/types/devvit/plugin/linker/linker.twirp.d.ts.map +1 -0
  728. package/types/devvit/plugin/linker/linker.twirp.js +89 -0
  729. package/types/devvit/plugin/linker/resolver.d.ts +5 -5
  730. package/types/devvit/plugin/linker/resolver.js +6 -6
  731. package/types/devvit/plugin/linker/resolver.twirp-client.d.ts +29 -0
  732. package/types/devvit/plugin/linker/resolver.twirp-client.d.ts.map +1 -0
  733. package/types/devvit/plugin/linker/resolver.twirp-client.js +51 -0
  734. package/types/devvit/plugin/linker/resolver.twirp.d.ts +20 -0
  735. package/types/devvit/plugin/linker/resolver.twirp.d.ts.map +1 -0
  736. package/types/devvit/plugin/linker/resolver.twirp.js +226 -0
  737. package/types/devvit/plugin/logger/logger.d.ts +1 -1
  738. package/types/devvit/plugin/logger/logger.js +4 -4
  739. package/types/devvit/plugin/media/media.d.ts +1 -1
  740. package/types/devvit/plugin/media/media.js +2 -2
  741. package/types/devvit/plugin/media/media.twirp-client.d.ts +19 -0
  742. package/types/devvit/plugin/media/media.twirp-client.d.ts.map +1 -0
  743. package/types/devvit/plugin/media/media.twirp-client.js +23 -0
  744. package/types/devvit/plugin/media/media.twirp.d.ts +12 -0
  745. package/types/devvit/plugin/media/media.twirp.d.ts.map +1 -0
  746. package/types/devvit/plugin/media/media.twirp.js +88 -0
  747. package/types/devvit/plugin/modlog/modlog.d.ts +1 -1
  748. package/types/devvit/plugin/modlog/modlog.js +2 -2
  749. package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts +19 -0
  750. package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts.map +1 -0
  751. package/types/devvit/plugin/modlog/modlog.twirp-client.js +23 -0
  752. package/types/devvit/plugin/modlog/modlog.twirp.d.ts +12 -0
  753. package/types/devvit/plugin/modlog/modlog.twirp.d.ts.map +1 -0
  754. package/types/devvit/plugin/modlog/modlog.twirp.js +88 -0
  755. package/types/devvit/plugin/payments/v1alpha/payments.d.ts +3 -3
  756. package/types/devvit/plugin/payments/v1alpha/payments.js +5 -5
  757. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts +25 -0
  758. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
  759. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.js +47 -0
  760. package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts +16 -0
  761. package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts.map +1 -0
  762. package/types/devvit/plugin/payments/v1alpha/payments.twirp.js +222 -0
  763. package/types/devvit/plugin/redditapi/common/common_msg.d.ts +3 -3
  764. package/types/devvit/plugin/redditapi/common/common_msg.js +6 -6
  765. package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts +1 -1
  766. package/types/devvit/plugin/redditapi/flair/flair_msg.js +3 -3
  767. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +17 -17
  768. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
  769. package/types/devvit/plugin/redditapi/flair/flair_svc.js +47 -126
  770. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts +60 -0
  771. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts.map +1 -0
  772. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.js +181 -0
  773. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts +40 -0
  774. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts.map +1 -0
  775. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.js +950 -0
  776. package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts +1 -1
  777. package/types/devvit/plugin/redditapi/graphql/graphql_msg.js +3 -3
  778. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +2 -2
  779. package/types/devvit/plugin/redditapi/graphql/graphql_svc.js +2 -2
  780. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts +22 -0
  781. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts.map +1 -0
  782. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.js +35 -0
  783. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts +14 -0
  784. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts.map +1 -0
  785. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.js +156 -0
  786. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +3 -3
  787. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +5 -5
  788. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +27 -27
  789. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  790. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +89 -388
  791. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +90 -0
  792. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -0
  793. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +301 -0
  794. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +60 -0
  795. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -0
  796. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +1610 -0
  797. package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts +2 -2
  798. package/types/devvit/plugin/redditapi/listings/listings_msg.js +4 -4
  799. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +11 -11
  800. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
  801. package/types/devvit/plugin/redditapi/listings/listings_svc.js +21 -55
  802. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts +41 -0
  803. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts.map +1 -0
  804. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.js +108 -0
  805. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts +27 -0
  806. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts.map +1 -0
  807. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.js +553 -0
  808. package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts +1 -1
  809. package/types/devvit/plugin/redditapi/moderation/moderation_msg.js +3 -3
  810. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +28 -28
  811. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
  812. package/types/devvit/plugin/redditapi/moderation/moderation_svc.js +81 -361
  813. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts +85 -0
  814. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts.map +1 -0
  815. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.js +278 -0
  816. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts +57 -0
  817. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts.map +1 -0
  818. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.js +1479 -0
  819. package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts +1 -1
  820. package/types/devvit/plugin/redditapi/modnote/modnote_msg.js +3 -3
  821. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +8 -8
  822. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
  823. package/types/devvit/plugin/redditapi/modnote/modnote_svc.js +14 -59
  824. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts +32 -0
  825. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts.map +1 -0
  826. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.js +72 -0
  827. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts +21 -0
  828. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts.map +1 -0
  829. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.js +355 -0
  830. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts +2 -2
  831. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js +4 -4
  832. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +21 -21
  833. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
  834. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js +46 -142
  835. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts +77 -0
  836. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts.map +1 -0
  837. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.js +252 -0
  838. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts +51 -0
  839. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts.map +1 -0
  840. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.js +1345 -0
  841. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts +1 -1
  842. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.js +4 -4
  843. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +3 -3
  844. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.js +3 -3
  845. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts +50 -0
  846. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts.map +1 -0
  847. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.js +144 -0
  848. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts +33 -0
  849. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts.map +1 -0
  850. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.js +751 -0
  851. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts +1 -1
  852. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js +3 -3
  853. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +14 -14
  854. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
  855. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js +34 -101
  856. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts +48 -0
  857. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts.map +1 -0
  858. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.js +133 -0
  859. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts +32 -0
  860. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts.map +1 -0
  861. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.js +686 -0
  862. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts +3 -3
  863. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.js +5 -5
  864. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +32 -32
  865. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
  866. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js +73 -243
  867. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts +100 -0
  868. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts.map +1 -0
  869. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.js +338 -0
  870. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts +67 -0
  871. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts.map +1 -0
  872. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.js +1809 -0
  873. package/types/devvit/plugin/redditapi/users/users_msg.d.ts +2 -2
  874. package/types/devvit/plugin/redditapi/users/users_msg.js +4 -4
  875. package/types/devvit/plugin/redditapi/users/users_svc.d.ts +17 -17
  876. package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
  877. package/types/devvit/plugin/redditapi/users/users_svc.js +39 -144
  878. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts +58 -0
  879. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts.map +1 -0
  880. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.js +170 -0
  881. package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts +39 -0
  882. package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts.map +1 -0
  883. package/types/devvit/plugin/redditapi/users/users_svc.twirp.js +885 -0
  884. package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts +2 -2
  885. package/types/devvit/plugin/redditapi/widgets/widgets_msg.js +4 -4
  886. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +21 -21
  887. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
  888. package/types/devvit/plugin/redditapi/widgets/widgets_svc.js +69 -298
  889. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts +71 -0
  890. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts.map +1 -0
  891. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.js +228 -0
  892. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts +47 -0
  893. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts.map +1 -0
  894. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.js +1213 -0
  895. package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts +2 -2
  896. package/types/devvit/plugin/redditapi/wiki/wiki_msg.js +4 -4
  897. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +13 -18
  898. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
  899. package/types/devvit/plugin/redditapi/wiki/wiki_svc.js +28 -79
  900. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts +47 -0
  901. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts.map +1 -0
  902. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.js +132 -0
  903. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts +31 -0
  904. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts.map +1 -0
  905. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.js +685 -0
  906. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +4 -4
  907. package/types/devvit/plugin/redditapiv2/redditapiv2.js +4 -4
  908. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts +24 -0
  909. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts.map +1 -0
  910. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.js +37 -0
  911. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts +16 -0
  912. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts.map +1 -0
  913. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.js +158 -0
  914. package/types/devvit/plugin/redis/redisapi.d.ts +3 -3
  915. package/types/devvit/plugin/redis/redisapi.js +4 -4
  916. package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts +126 -0
  917. package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts.map +1 -0
  918. package/types/devvit/plugin/redis/redisapi.twirp-client.js +445 -0
  919. package/types/devvit/plugin/redis/redisapi.twirp.d.ts +84 -0
  920. package/types/devvit/plugin/redis/redisapi.twirp.d.ts.map +1 -0
  921. package/types/devvit/plugin/redis/redisapi.twirp.js +2402 -0
  922. package/types/devvit/plugin/scheduler/scheduler.d.ts +4 -4
  923. package/types/devvit/plugin/scheduler/scheduler.js +6 -6
  924. package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts +26 -0
  925. package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts.map +1 -0
  926. package/types/devvit/plugin/scheduler/scheduler.twirp-client.js +48 -0
  927. package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts +17 -0
  928. package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts.map +1 -0
  929. package/types/devvit/plugin/scheduler/scheduler.twirp.js +223 -0
  930. package/types/devvit/plugin/settings/v1alpha/settings.d.ts +2 -2
  931. package/types/devvit/plugin/settings/v1alpha/settings.js +4 -4
  932. package/types/devvit/plugin/streambroker/streambroker.d.ts +2 -2
  933. package/types/devvit/plugin/streambroker/streambroker.js +3 -3
  934. package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts +23 -0
  935. package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts.map +1 -0
  936. package/types/devvit/plugin/streambroker/streambroker.twirp-client.js +36 -0
  937. package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts +15 -0
  938. package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts.map +1 -0
  939. package/types/devvit/plugin/streambroker/streambroker.twirp.js +157 -0
  940. package/types/devvit/plugin/timer/timer.d.ts +2 -2
  941. package/types/devvit/plugin/timer/timer.js +3 -3
  942. package/types/devvit/plugin/timer/timer.twirp-client.d.ts +20 -0
  943. package/types/devvit/plugin/timer/timer.twirp-client.d.ts.map +1 -0
  944. package/types/devvit/plugin/timer/timer.twirp-client.js +24 -0
  945. package/types/devvit/plugin/timer/timer.twirp.d.ts +13 -0
  946. package/types/devvit/plugin/timer/timer.twirp.d.ts.map +1 -0
  947. package/types/devvit/plugin/timer/timer.twirp.js +89 -0
  948. package/types/devvit/plugin/v2events/v2events.d.ts +1 -1
  949. package/types/devvit/plugin/v2events/v2events.js +2 -2
  950. package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts +19 -0
  951. package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts.map +1 -0
  952. package/types/devvit/plugin/v2events/v2events.twirp-client.js +23 -0
  953. package/types/devvit/plugin/v2events/v2events.twirp.d.ts +12 -0
  954. package/types/devvit/plugin/v2events/v2events.twirp.d.ts.map +1 -0
  955. package/types/devvit/plugin/v2events/v2events.twirp.js +88 -0
  956. package/types/devvit/reddit/comment.d.ts +2 -2
  957. package/types/devvit/reddit/comment.js +5 -5
  958. package/types/devvit/reddit/common.d.ts +1 -1
  959. package/types/devvit/reddit/common.js +3 -3
  960. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +3 -3
  961. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.js +5 -5
  962. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts +22 -0
  963. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts.map +1 -0
  964. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.js +35 -0
  965. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts +14 -0
  966. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts.map +1 -0
  967. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.js +156 -0
  968. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -4
  969. package/types/devvit/reddit/custom_post/v1alpha/custom_post.js +6 -6
  970. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts +26 -0
  971. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts.map +1 -0
  972. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.js +48 -0
  973. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts +17 -0
  974. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts.map +1 -0
  975. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.js +223 -0
  976. package/types/devvit/reddit/post.d.ts +2 -2
  977. package/types/devvit/reddit/post.js +5 -5
  978. package/types/devvit/reddit/subreddit.d.ts +2 -2
  979. package/types/devvit/reddit/subreddit.js +4 -4
  980. package/types/devvit/reddit/user.d.ts +2 -2
  981. package/types/devvit/reddit/user.js +4 -4
  982. package/types/devvit/reddit/v2alpha/commentv2.d.ts +1 -1
  983. package/types/devvit/reddit/v2alpha/commentv2.js +2 -2
  984. package/types/devvit/reddit/v2alpha/flair.d.ts +1 -1
  985. package/types/devvit/reddit/v2alpha/flair.js +2 -2
  986. package/types/devvit/reddit/v2alpha/modaction.d.ts +5 -5
  987. package/types/devvit/reddit/v2alpha/modaction.js +7 -7
  988. package/types/devvit/reddit/v2alpha/modmail.d.ts +3 -3
  989. package/types/devvit/reddit/v2alpha/modmail.js +5 -5
  990. package/types/devvit/reddit/v2alpha/postv2.d.ts +2 -2
  991. package/types/devvit/reddit/v2alpha/postv2.js +3 -3
  992. package/types/devvit/reddit/v2alpha/subredditv2.d.ts +1 -1
  993. package/types/devvit/reddit/v2alpha/subredditv2.js +2 -2
  994. package/types/devvit/reddit/v2alpha/userv2.d.ts +2 -2
  995. package/types/devvit/reddit/v2alpha/userv2.js +3 -3
  996. package/types/devvit/remote_logger/remote_logger.d.ts +2 -2
  997. package/types/devvit/remote_logger/remote_logger.js +4 -4
  998. package/types/devvit/runtime/actor/bootstrap.d.ts +3 -3
  999. package/types/devvit/runtime/actor/bootstrap.js +3 -3
  1000. package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts +23 -0
  1001. package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts.map +1 -0
  1002. package/types/devvit/runtime/actor/bootstrap.twirp-client.js +36 -0
  1003. package/types/devvit/runtime/actor/bootstrap.twirp.d.ts +15 -0
  1004. package/types/devvit/runtime/actor/bootstrap.twirp.d.ts.map +1 -0
  1005. package/types/devvit/runtime/actor/bootstrap.twirp.js +157 -0
  1006. package/types/devvit/runtime/actor/echo.d.ts +2 -2
  1007. package/types/devvit/runtime/actor/echo.js +2 -2
  1008. package/types/devvit/runtime/actor/echo.twirp-client.d.ts +19 -0
  1009. package/types/devvit/runtime/actor/echo.twirp-client.d.ts.map +1 -0
  1010. package/types/devvit/runtime/actor/echo.twirp-client.js +23 -0
  1011. package/types/devvit/runtime/actor/echo.twirp.d.ts +12 -0
  1012. package/types/devvit/runtime/actor/echo.twirp.d.ts.map +1 -0
  1013. package/types/devvit/runtime/actor/echo.twirp.js +88 -0
  1014. package/types/devvit/runtime/actor/runtime.d.ts +3 -3
  1015. package/types/devvit/runtime/actor/runtime.js +4 -4
  1016. package/types/devvit/runtime/actor/runtime.twirp-client.d.ts +24 -0
  1017. package/types/devvit/runtime/actor/runtime.twirp-client.d.ts.map +1 -0
  1018. package/types/devvit/runtime/actor/runtime.twirp-client.js +37 -0
  1019. package/types/devvit/runtime/actor/runtime.twirp.d.ts +16 -0
  1020. package/types/devvit/runtime/actor/runtime.twirp.d.ts.map +1 -0
  1021. package/types/devvit/runtime/actor/runtime.twirp.js +158 -0
  1022. package/types/devvit/runtime/actor/supervisor.d.ts +4 -4
  1023. package/types/devvit/runtime/actor/supervisor.js +5 -5
  1024. package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts +28 -0
  1025. package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts.map +1 -0
  1026. package/types/devvit/runtime/actor/supervisor.twirp-client.js +50 -0
  1027. package/types/devvit/runtime/actor/supervisor.twirp.d.ts +19 -0
  1028. package/types/devvit/runtime/actor/supervisor.twirp.d.ts.map +1 -0
  1029. package/types/devvit/runtime/actor/supervisor.twirp.js +225 -0
  1030. package/types/devvit/runtime/actor/v1alpha/health.d.ts +2 -2
  1031. package/types/devvit/runtime/actor/v1alpha/health.js +4 -4
  1032. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts +20 -0
  1033. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts.map +1 -0
  1034. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.js +24 -0
  1035. package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts +13 -0
  1036. package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts.map +1 -0
  1037. package/types/devvit/runtime/actor/v1alpha/health.twirp.js +89 -0
  1038. package/types/devvit/runtime/bundle.d.ts +2 -2
  1039. package/types/devvit/runtime/bundle.js +5 -5
  1040. package/types/devvit/runtime/envelope.d.ts +2 -2
  1041. package/types/devvit/runtime/envelope.js +4 -4
  1042. package/types/devvit/runtime/runtime_common.d.ts +1 -1
  1043. package/types/devvit/runtime/runtime_common.js +3 -3
  1044. package/types/devvit/runtime/serializable.d.ts +1 -1
  1045. package/types/devvit/runtime/serializable.js +2 -2
  1046. package/types/devvit/service/bundle_service.d.ts +3 -3
  1047. package/types/devvit/service/bundle_service.js +4 -4
  1048. package/types/devvit/service/bundle_service.twirp-client.d.ts +24 -0
  1049. package/types/devvit/service/bundle_service.twirp-client.d.ts.map +1 -0
  1050. package/types/devvit/service/bundle_service.twirp-client.js +37 -0
  1051. package/types/devvit/service/bundle_service.twirp.d.ts +16 -0
  1052. package/types/devvit/service/bundle_service.twirp.d.ts.map +1 -0
  1053. package/types/devvit/service/bundle_service.twirp.js +158 -0
  1054. package/types/devvit/service/envelope_service.d.ts +3 -3
  1055. package/types/devvit/service/envelope_service.js +3 -3
  1056. package/types/devvit/service/envelope_service.twirp-client.d.ts +20 -0
  1057. package/types/devvit/service/envelope_service.twirp-client.d.ts.map +1 -0
  1058. package/types/devvit/service/envelope_service.twirp-client.js +24 -0
  1059. package/types/devvit/service/envelope_service.twirp.d.ts +13 -0
  1060. package/types/devvit/service/envelope_service.twirp.d.ts.map +1 -0
  1061. package/types/devvit/service/envelope_service.twirp.js +89 -0
  1062. package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.d.ts +4 -4
  1063. package/types/devvit/triggers/v1alpha/triggers.d.ts.map +1 -0
  1064. package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.js +6 -6
  1065. package/types/devvit/ui/block_kit/v1beta/attributes.d.ts +2 -2
  1066. package/types/devvit/ui/block_kit/v1beta/attributes.js +4 -4
  1067. package/types/devvit/ui/block_kit/v1beta/block.d.ts +3 -3
  1068. package/types/devvit/ui/block_kit/v1beta/block.js +5 -5
  1069. package/types/devvit/ui/block_kit/v1beta/rendering.d.ts +3 -3
  1070. package/types/devvit/ui/block_kit/v1beta/rendering.js +5 -5
  1071. package/types/devvit/ui/block_kit/v1beta/ui.d.ts +5 -5
  1072. package/types/devvit/ui/block_kit/v1beta/ui.js +7 -7
  1073. package/types/devvit/ui/common/v1alpha/common.d.ts +1 -1
  1074. package/types/devvit/ui/common/v1alpha/common.js +2 -2
  1075. package/types/devvit/ui/effects/v1alpha/create_order.d.ts +1 -1
  1076. package/types/devvit/ui/effects/v1alpha/create_order.js +2 -2
  1077. package/types/devvit/ui/effects/v1alpha/effect.d.ts +9 -9
  1078. package/types/devvit/ui/effects/v1alpha/effect.js +10 -10
  1079. package/types/devvit/ui/effects/v1alpha/interval.d.ts +2 -2
  1080. package/types/devvit/ui/effects/v1alpha/interval.js +4 -4
  1081. package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts +1 -1
  1082. package/types/devvit/ui/effects/v1alpha/navigate_to_url.js +2 -2
  1083. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts +2 -2
  1084. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.js +3 -3
  1085. package/types/devvit/ui/effects/v1alpha/reload_part.d.ts +1 -1
  1086. package/types/devvit/ui/effects/v1alpha/reload_part.js +2 -2
  1087. package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts +1 -1
  1088. package/types/devvit/ui/effects/v1alpha/rerender_ui.js +2 -2
  1089. package/types/devvit/ui/effects/v1alpha/show_form.d.ts +3 -3
  1090. package/types/devvit/ui/effects/v1alpha/show_form.js +4 -4
  1091. package/types/devvit/ui/effects/v1alpha/show_toast.d.ts +2 -2
  1092. package/types/devvit/ui/effects/v1alpha/show_toast.js +3 -3
  1093. package/types/devvit/ui/events/v1alpha/event.d.ts +5 -5
  1094. package/types/devvit/ui/events/v1alpha/event.js +8 -8
  1095. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +3 -3
  1096. package/types/devvit/ui/events/v1alpha/handle_ui.js +5 -5
  1097. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts +19 -0
  1098. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts.map +1 -0
  1099. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.js +23 -0
  1100. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts +12 -0
  1101. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts.map +1 -0
  1102. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.js +88 -0
  1103. package/types/devvit/ui/form_builder/v1alpha/field.d.ts +3 -3
  1104. package/types/devvit/ui/form_builder/v1alpha/field.js +4 -4
  1105. package/types/devvit/ui/form_builder/v1alpha/form.d.ts +2 -2
  1106. package/types/devvit/ui/form_builder/v1alpha/form.js +3 -3
  1107. package/types/devvit/ui/form_builder/v1alpha/value.d.ts +2 -2
  1108. package/types/devvit/ui/form_builder/v1alpha/value.js +3 -3
  1109. package/types/devvit/ui/toast/toast.d.ts +1 -1
  1110. package/types/devvit/ui/toast/toast.js +2 -2
  1111. package/types/devvit/uuid.d.ts +1 -1
  1112. package/types/devvit/uuid.js +2 -2
  1113. package/types/google/protobuf/any.d.ts +5 -10
  1114. package/types/google/protobuf/any.d.ts.map +1 -1
  1115. package/types/google/protobuf/any.js +2 -2
  1116. package/types/google/protobuf/descriptor.d.ts +39 -435
  1117. package/types/google/protobuf/descriptor.d.ts.map +1 -1
  1118. package/types/google/protobuf/descriptor.js +101 -1605
  1119. package/types/google/protobuf/duration.d.ts +1 -1
  1120. package/types/google/protobuf/duration.js +2 -2
  1121. package/types/google/protobuf/empty.d.ts +1 -1
  1122. package/types/google/protobuf/empty.js +2 -2
  1123. package/types/google/protobuf/struct.d.ts +2 -2
  1124. package/types/google/protobuf/struct.js +3 -3
  1125. package/types/google/protobuf/timestamp.d.ts +2 -2
  1126. package/types/google/protobuf/timestamp.js +2 -2
  1127. package/types/google/protobuf/wrappers.d.ts +1 -1
  1128. package/types/google/protobuf/wrappers.js +2 -2
  1129. package/types/typeRegistry.d.ts +1 -1
  1130. package/schema/buf.strict.yaml +0 -7
  1131. package/schema/buf.yaml +0 -8
  1132. package/types/devvit/data/api/admin/v1alpha/audit.d.ts +0 -159
  1133. package/types/devvit/data/api/admin/v1alpha/audit.d.ts.map +0 -1
  1134. package/types/devvit/data/api/admin/v1alpha/audit.js +0 -776
  1135. package/types/devvit/data/api/admin/v1alpha/auth.d.ts +0 -127
  1136. package/types/devvit/data/api/admin/v1alpha/auth.d.ts.map +0 -1
  1137. package/types/devvit/data/api/admin/v1alpha/auth.js +0 -599
  1138. package/types/devvit/data/api/admin/v1alpha/organization.d.ts +0 -122
  1139. package/types/devvit/data/api/admin/v1alpha/organization.d.ts.map +0 -1
  1140. package/types/devvit/data/api/admin/v1alpha/organization.js +0 -522
  1141. package/types/devvit/data/api/admin/v1alpha/service.d.ts +0 -855
  1142. package/types/devvit/data/api/admin/v1alpha/service.d.ts.map +0 -1
  1143. package/types/devvit/data/api/admin/v1alpha/service.js +0 -254
  1144. package/types/devvit/data/api/admin/v1alpha/subscription.d.ts +0 -167
  1145. package/types/devvit/data/api/admin/v1alpha/subscription.d.ts.map +0 -1
  1146. package/types/devvit/data/api/admin/v1alpha/subscription.js +0 -885
  1147. package/types/devvit/data/api/admin/v1alpha/ui.d.ts +0 -52
  1148. package/types/devvit/data/api/admin/v1alpha/ui.d.ts.map +0 -1
  1149. package/types/devvit/data/api/admin/v1alpha/ui.js +0 -198
  1150. package/types/devvit/data/api/v1alpha/filter.d.ts +0 -160
  1151. package/types/devvit/data/api/v1alpha/filter.d.ts.map +0 -1
  1152. package/types/devvit/data/api/v1alpha/filter.js +0 -983
  1153. package/types/devvit/data/api/v1alpha/intake.d.ts +0 -85
  1154. package/types/devvit/data/api/v1alpha/intake.d.ts.map +0 -1
  1155. package/types/devvit/data/api/v1alpha/intake.js +0 -160
  1156. package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +0 -1
  1157. /package/schema/{buf → .snootobuf/deps/buf}/validate/expression.proto +0 -0
  1158. /package/schema/{buf → .snootobuf/deps/buf}/validate/priv/private.proto +0 -0
  1159. /package/schema/{buf → .snootobuf/deps/buf}/validate/validate.proto +0 -0
  1160. /package/schema/{google → .snootobuf/deps/google}/api/annotations.proto +0 -0
  1161. /package/schema/{openapi → .snootobuf/deps/openapi}/helper.proto +0 -0
@@ -0,0 +1,4766 @@
1
+ // @generated by protobuf-ts 2.9.3
2
+ // @generated from protobuf file "devvit/plugin/redditapi/widgets/widgets_msg.proto" (package "devvit.plugin.redditapi.widgets", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ import { AuthorFlairRichText } from "../../../reddit/common";
14
+ import { Int64Value } from "../../../../google/protobuf/wrappers";
15
+ import { BoolValue } from "../../../../google/protobuf/wrappers";
16
+ import { Int32Value } from "../../../../google/protobuf/wrappers";
17
+ import { StringValue } from "../../../../google/protobuf/wrappers";
18
+ /**
19
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.WidgetStyles
20
+ */
21
+ export interface WidgetStyles {
22
+ /**
23
+ * @generated from protobuf field: google.protobuf.StringValue background_color = 1;
24
+ */
25
+ backgroundColor?: StringValue;
26
+ /**
27
+ * @generated from protobuf field: google.protobuf.StringValue header_color = 2;
28
+ */
29
+ headerColor?: StringValue;
30
+ }
31
+ /**
32
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.WidgetImage
33
+ */
34
+ export interface WidgetImage {
35
+ /**
36
+ * @generated from protobuf field: string url = 1;
37
+ */
38
+ url: string;
39
+ /**
40
+ * * required by can be an empty string
41
+ *
42
+ * @generated from protobuf field: string link_url = 2;
43
+ */
44
+ linkUrl: string;
45
+ /**
46
+ * @generated from protobuf field: int32 height = 3;
47
+ */
48
+ height: number;
49
+ /**
50
+ * @generated from protobuf field: int32 width = 4;
51
+ */
52
+ width: number;
53
+ }
54
+ /**
55
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.ImageWidget
56
+ */
57
+ export interface ImageWidget {
58
+ /**
59
+ * @generated from protobuf field: string id = 1;
60
+ */
61
+ id: string;
62
+ /**
63
+ * @generated from protobuf field: string kind = 2;
64
+ */
65
+ kind: string;
66
+ /**
67
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage data = 3;
68
+ */
69
+ data: WidgetImage[];
70
+ /**
71
+ * @generated from protobuf field: string short_name = 4;
72
+ */
73
+ shortName: string;
74
+ /**
75
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
76
+ */
77
+ styles?: WidgetStyles;
78
+ /**
79
+ * @generated from protobuf field: google.protobuf.StringValue subreddit = 6;
80
+ */
81
+ subreddit?: StringValue;
82
+ }
83
+ /**
84
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddImageWidgetRequest
85
+ */
86
+ export interface AddImageWidgetRequest {
87
+ /**
88
+ * @generated from protobuf field: string subreddit = 1;
89
+ */
90
+ subreddit: string;
91
+ /**
92
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage data = 2;
93
+ */
94
+ data: WidgetImage[];
95
+ /**
96
+ * @generated from protobuf field: string short_name = 3;
97
+ */
98
+ shortName: string;
99
+ /**
100
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 4;
101
+ */
102
+ styles?: WidgetStyles;
103
+ }
104
+ /**
105
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateImageWidgetRequest
106
+ */
107
+ export interface UpdateImageWidgetRequest {
108
+ /**
109
+ * @generated from protobuf field: string subreddit = 1;
110
+ */
111
+ subreddit: string;
112
+ /**
113
+ * @generated from protobuf field: string id = 2;
114
+ */
115
+ id: string;
116
+ /**
117
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage data = 3;
118
+ */
119
+ data: WidgetImage[];
120
+ /**
121
+ * @generated from protobuf field: string short_name = 4;
122
+ */
123
+ shortName: string;
124
+ /**
125
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
126
+ */
127
+ styles?: WidgetStyles;
128
+ }
129
+ /**
130
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration
131
+ */
132
+ export interface CalendarWidgetConfiguration {
133
+ /**
134
+ * @generated from protobuf field: int32 num_events = 1;
135
+ */
136
+ numEvents: number;
137
+ /**
138
+ * @generated from protobuf field: bool show_date = 2;
139
+ */
140
+ showDate: boolean;
141
+ /**
142
+ * @generated from protobuf field: bool show_description = 3;
143
+ */
144
+ showDescription: boolean;
145
+ /**
146
+ * @generated from protobuf field: bool show_location = 4;
147
+ */
148
+ showLocation: boolean;
149
+ /**
150
+ * @generated from protobuf field: bool show_time = 5;
151
+ */
152
+ showTime: boolean;
153
+ /**
154
+ * @generated from protobuf field: bool show_title = 6;
155
+ */
156
+ showTitle: boolean;
157
+ }
158
+ /**
159
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.CalendarWidget
160
+ */
161
+ export interface CalendarWidget {
162
+ /**
163
+ * @generated from protobuf field: string id = 1;
164
+ */
165
+ id: string;
166
+ /**
167
+ * @generated from protobuf field: string kind = 2;
168
+ */
169
+ kind: string;
170
+ /**
171
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 3;
172
+ */
173
+ configuration?: CalendarWidgetConfiguration;
174
+ /**
175
+ * @generated from protobuf field: string google_calendar_id = 4;
176
+ */
177
+ googleCalendarId: string;
178
+ /**
179
+ * @generated from protobuf field: bool requires_sync = 5;
180
+ */
181
+ requiresSync: boolean;
182
+ /**
183
+ * @generated from protobuf field: string short_name = 6;
184
+ */
185
+ shortName: string;
186
+ /**
187
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 7;
188
+ */
189
+ styles?: WidgetStyles;
190
+ }
191
+ /**
192
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddCalendarWidgetRequest
193
+ */
194
+ export interface AddCalendarWidgetRequest {
195
+ /**
196
+ * @generated from protobuf field: string subreddit = 1;
197
+ */
198
+ subreddit: string;
199
+ /**
200
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 2;
201
+ */
202
+ configuration?: CalendarWidgetConfiguration;
203
+ /**
204
+ * @generated from protobuf field: string google_calendar_id = 3;
205
+ */
206
+ googleCalendarId: string;
207
+ /**
208
+ * @generated from protobuf field: bool requires_sync = 4;
209
+ */
210
+ requiresSync: boolean;
211
+ /**
212
+ * @generated from protobuf field: string short_name = 5;
213
+ */
214
+ shortName: string;
215
+ /**
216
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 6;
217
+ */
218
+ styles?: WidgetStyles;
219
+ }
220
+ /**
221
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateCalendarWidgetRequest
222
+ */
223
+ export interface UpdateCalendarWidgetRequest {
224
+ /**
225
+ * @generated from protobuf field: string subreddit = 1;
226
+ */
227
+ subreddit: string;
228
+ /**
229
+ * @generated from protobuf field: string id = 2;
230
+ */
231
+ id: string;
232
+ /**
233
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 3;
234
+ */
235
+ configuration?: CalendarWidgetConfiguration;
236
+ /**
237
+ * @generated from protobuf field: string google_calendar_id = 4;
238
+ */
239
+ googleCalendarId: string;
240
+ /**
241
+ * @generated from protobuf field: bool requires_sync = 5;
242
+ */
243
+ requiresSync: boolean;
244
+ /**
245
+ * @generated from protobuf field: string short_name = 6;
246
+ */
247
+ shortName: string;
248
+ /**
249
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 7;
250
+ */
251
+ styles?: WidgetStyles;
252
+ }
253
+ /**
254
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.TextAreaWidget
255
+ */
256
+ export interface TextAreaWidget {
257
+ /**
258
+ * @generated from protobuf field: string id = 1;
259
+ */
260
+ id: string;
261
+ /**
262
+ * @generated from protobuf field: string kind = 2;
263
+ */
264
+ kind: string;
265
+ /**
266
+ * @generated from protobuf field: string short_name = 3;
267
+ */
268
+ shortName: string;
269
+ /**
270
+ * @generated from protobuf field: string text = 4;
271
+ */
272
+ text: string;
273
+ /**
274
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
275
+ */
276
+ styles?: WidgetStyles;
277
+ }
278
+ /**
279
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddTextAreaWidgetRequest
280
+ */
281
+ export interface AddTextAreaWidgetRequest {
282
+ /**
283
+ * @generated from protobuf field: string subreddit = 1;
284
+ */
285
+ subreddit: string;
286
+ /**
287
+ * @generated from protobuf field: string short_name = 2;
288
+ */
289
+ shortName: string;
290
+ /**
291
+ * @generated from protobuf field: string text = 3;
292
+ */
293
+ text: string;
294
+ /**
295
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 4;
296
+ */
297
+ styles?: WidgetStyles;
298
+ }
299
+ /**
300
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateTextAreaWidgetRequest
301
+ */
302
+ export interface UpdateTextAreaWidgetRequest {
303
+ /**
304
+ * @generated from protobuf field: string subreddit = 1;
305
+ */
306
+ subreddit: string;
307
+ /**
308
+ * @generated from protobuf field: string id = 2;
309
+ */
310
+ id: string;
311
+ /**
312
+ * @generated from protobuf field: string short_name = 3;
313
+ */
314
+ shortName: string;
315
+ /**
316
+ * @generated from protobuf field: string text = 4;
317
+ */
318
+ text: string;
319
+ /**
320
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
321
+ */
322
+ styles?: WidgetStyles;
323
+ }
324
+ /**
325
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.WidgetButton
326
+ */
327
+ export interface WidgetButton {
328
+ /**
329
+ * @generated from protobuf field: string kind = 1;
330
+ */
331
+ kind: string;
332
+ /**
333
+ * @generated from protobuf field: string text = 2;
334
+ */
335
+ text: string;
336
+ /**
337
+ * @generated from protobuf field: google.protobuf.StringValue url = 3;
338
+ */
339
+ url?: StringValue;
340
+ /**
341
+ * @generated from protobuf field: google.protobuf.StringValue image_url = 4;
342
+ */
343
+ imageUrl?: StringValue;
344
+ /**
345
+ * @generated from protobuf field: google.protobuf.StringValue link_url = 5;
346
+ */
347
+ linkUrl?: StringValue;
348
+ /**
349
+ * @generated from protobuf field: google.protobuf.StringValue color = 6;
350
+ */
351
+ color?: StringValue;
352
+ /**
353
+ * @generated from protobuf field: google.protobuf.StringValue fill_color = 7;
354
+ */
355
+ fillColor?: StringValue;
356
+ /**
357
+ * @generated from protobuf field: google.protobuf.StringValue text_color = 8;
358
+ */
359
+ textColor?: StringValue;
360
+ /**
361
+ * @generated from protobuf field: google.protobuf.Int32Value height = 9;
362
+ */
363
+ height?: Int32Value;
364
+ /**
365
+ * @generated from protobuf field: google.protobuf.Int32Value width = 10;
366
+ */
367
+ width?: Int32Value;
368
+ /**
369
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetButton.HoverState hover_state = 11;
370
+ */
371
+ hoverState?: WidgetButton_HoverState;
372
+ }
373
+ /**
374
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.WidgetButton.HoverState
375
+ */
376
+ export interface WidgetButton_HoverState {
377
+ /**
378
+ * @generated from protobuf field: string kind = 1;
379
+ */
380
+ kind: string;
381
+ /**
382
+ * @generated from protobuf field: google.protobuf.StringValue color = 2;
383
+ */
384
+ color?: StringValue;
385
+ /**
386
+ * @generated from protobuf field: google.protobuf.StringValue fill_color = 3;
387
+ */
388
+ fillColor?: StringValue;
389
+ /**
390
+ * @generated from protobuf field: google.protobuf.StringValue text = 4;
391
+ */
392
+ text?: StringValue;
393
+ /**
394
+ * @generated from protobuf field: google.protobuf.StringValue text_color = 5;
395
+ */
396
+ textColor?: StringValue;
397
+ /**
398
+ * @generated from protobuf field: google.protobuf.StringValue image_url = 6;
399
+ */
400
+ imageUrl?: StringValue;
401
+ /**
402
+ * @generated from protobuf field: google.protobuf.Int32Value height = 7;
403
+ */
404
+ height?: Int32Value;
405
+ /**
406
+ * @generated from protobuf field: google.protobuf.Int32Value width = 8;
407
+ */
408
+ width?: Int32Value;
409
+ }
410
+ /**
411
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.ButtonWidget
412
+ */
413
+ export interface ButtonWidget {
414
+ /**
415
+ * @generated from protobuf field: string id = 1;
416
+ */
417
+ id: string;
418
+ /**
419
+ * @generated from protobuf field: string kind = 2;
420
+ */
421
+ kind: string;
422
+ /**
423
+ * @generated from protobuf field: string short_name = 3;
424
+ */
425
+ shortName: string;
426
+ /**
427
+ * @generated from protobuf field: string description = 4;
428
+ */
429
+ description: string;
430
+ /**
431
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 5;
432
+ */
433
+ buttons: WidgetButton[];
434
+ /**
435
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 6;
436
+ */
437
+ styles?: WidgetStyles;
438
+ }
439
+ /**
440
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddButtonWidgetRequest
441
+ */
442
+ export interface AddButtonWidgetRequest {
443
+ /**
444
+ * @generated from protobuf field: string subreddit = 1;
445
+ */
446
+ subreddit: string;
447
+ /**
448
+ * @generated from protobuf field: string short_name = 2;
449
+ */
450
+ shortName: string;
451
+ /**
452
+ * @generated from protobuf field: string description = 3;
453
+ */
454
+ description: string;
455
+ /**
456
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 4;
457
+ */
458
+ buttons: WidgetButton[];
459
+ /**
460
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
461
+ */
462
+ styles?: WidgetStyles;
463
+ }
464
+ /**
465
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateButtonWidgetRequest
466
+ */
467
+ export interface UpdateButtonWidgetRequest {
468
+ /**
469
+ * @generated from protobuf field: string subreddit = 1;
470
+ */
471
+ subreddit: string;
472
+ /**
473
+ * @generated from protobuf field: string id = 2;
474
+ */
475
+ id: string;
476
+ /**
477
+ * @generated from protobuf field: string short_name = 3;
478
+ */
479
+ shortName: string;
480
+ /**
481
+ * @generated from protobuf field: string description = 4;
482
+ */
483
+ description: string;
484
+ /**
485
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 5;
486
+ */
487
+ buttons: WidgetButton[];
488
+ /**
489
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 6;
490
+ */
491
+ styles?: WidgetStyles;
492
+ }
493
+ /**
494
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.CommunityListWidget
495
+ */
496
+ export interface CommunityListWidget {
497
+ /**
498
+ * @generated from protobuf field: string id = 1;
499
+ */
500
+ id: string;
501
+ /**
502
+ * @generated from protobuf field: string kind = 2;
503
+ */
504
+ kind: string;
505
+ /**
506
+ * @generated from protobuf field: string short_name = 3;
507
+ */
508
+ shortName: string;
509
+ /**
510
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.CommunityListWidget.CommunityData data = 4;
511
+ */
512
+ data: CommunityListWidget_CommunityData[];
513
+ /**
514
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
515
+ */
516
+ styles?: WidgetStyles;
517
+ }
518
+ /**
519
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.CommunityListWidget.CommunityData
520
+ */
521
+ export interface CommunityListWidget_CommunityData {
522
+ /**
523
+ * @generated from protobuf field: string community_icon = 1;
524
+ */
525
+ communityIcon: string;
526
+ /**
527
+ * @generated from protobuf field: string icon_url = 2;
528
+ */
529
+ iconUrl: string;
530
+ /**
531
+ * @generated from protobuf field: bool is_nsfw = 3;
532
+ */
533
+ isNsfw: boolean;
534
+ /**
535
+ * @generated from protobuf field: bool is_subscribed = 4;
536
+ */
537
+ isSubscribed: boolean;
538
+ /**
539
+ * @generated from protobuf field: string name = 5;
540
+ */
541
+ name: string;
542
+ /**
543
+ * @generated from protobuf field: string prefixed_name = 6;
544
+ */
545
+ prefixedName: string;
546
+ /**
547
+ * @generated from protobuf field: string primary_color = 7;
548
+ */
549
+ primaryColor: string;
550
+ /**
551
+ * @generated from protobuf field: int32 subscribers = 8;
552
+ */
553
+ subscribers: number;
554
+ /**
555
+ * @generated from protobuf field: string type = 9;
556
+ */
557
+ type: string;
558
+ }
559
+ /**
560
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddCommunityListWidgetRequest
561
+ */
562
+ export interface AddCommunityListWidgetRequest {
563
+ /**
564
+ * @generated from protobuf field: string subreddit = 1;
565
+ */
566
+ subreddit: string;
567
+ /**
568
+ * @generated from protobuf field: string short_name = 2;
569
+ */
570
+ shortName: string;
571
+ /**
572
+ * @generated from protobuf field: repeated string data = 3;
573
+ */
574
+ data: string[];
575
+ /**
576
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 4;
577
+ */
578
+ styles?: WidgetStyles;
579
+ }
580
+ /**
581
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetRequest
582
+ */
583
+ export interface UpdateCommunityListWidgetRequest {
584
+ /**
585
+ * @generated from protobuf field: string subreddit = 1;
586
+ */
587
+ subreddit: string;
588
+ /**
589
+ * @generated from protobuf field: string id = 2;
590
+ */
591
+ id: string;
592
+ /**
593
+ * @generated from protobuf field: string short_name = 3;
594
+ */
595
+ shortName: string;
596
+ /**
597
+ * @generated from protobuf field: repeated string data = 4;
598
+ */
599
+ data: string[];
600
+ /**
601
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
602
+ */
603
+ styles?: WidgetStyles;
604
+ }
605
+ /**
606
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetResponse
607
+ */
608
+ export interface UpdateCommunityListWidgetResponse {
609
+ /**
610
+ * @generated from protobuf field: string kind = 1;
611
+ */
612
+ kind: string;
613
+ /**
614
+ * @generated from protobuf field: string short_name = 2;
615
+ */
616
+ shortName: string;
617
+ /**
618
+ * @generated from protobuf field: repeated string data = 3;
619
+ */
620
+ data: string[];
621
+ /**
622
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 4;
623
+ */
624
+ styles?: WidgetStyles;
625
+ }
626
+ /**
627
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.PostFlairWidget
628
+ */
629
+ export interface PostFlairWidget {
630
+ /**
631
+ * @generated from protobuf field: string id = 1;
632
+ */
633
+ id: string;
634
+ /**
635
+ * @generated from protobuf field: string kind = 2;
636
+ */
637
+ kind: string;
638
+ /**
639
+ * @generated from protobuf field: string display = 3;
640
+ */
641
+ display: string;
642
+ /**
643
+ * @generated from protobuf field: repeated string order = 4;
644
+ */
645
+ order: string[];
646
+ /**
647
+ * @generated from protobuf field: string short_name = 5;
648
+ */
649
+ shortName: string;
650
+ /**
651
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 6;
652
+ */
653
+ styles?: WidgetStyles;
654
+ /**
655
+ * @generated from protobuf field: google.protobuf.StringValue subreddit = 7;
656
+ */
657
+ subreddit?: StringValue;
658
+ }
659
+ /**
660
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddPostFlairWidgetRequest
661
+ */
662
+ export interface AddPostFlairWidgetRequest {
663
+ /**
664
+ * @generated from protobuf field: string subreddit = 1;
665
+ */
666
+ subreddit: string;
667
+ /**
668
+ * @generated from protobuf field: string display = 2;
669
+ */
670
+ display: string;
671
+ /**
672
+ * @generated from protobuf field: repeated string order = 3;
673
+ */
674
+ order: string[];
675
+ /**
676
+ * @generated from protobuf field: string short_name = 4;
677
+ */
678
+ shortName: string;
679
+ /**
680
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 5;
681
+ */
682
+ styles?: WidgetStyles;
683
+ }
684
+ /**
685
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdatePostFlairWidgetRequest
686
+ */
687
+ export interface UpdatePostFlairWidgetRequest {
688
+ /**
689
+ * @generated from protobuf field: string subreddit = 1;
690
+ */
691
+ subreddit: string;
692
+ /**
693
+ * @generated from protobuf field: string id = 2;
694
+ */
695
+ id: string;
696
+ /**
697
+ * @generated from protobuf field: string display = 3;
698
+ */
699
+ display: string;
700
+ /**
701
+ * @generated from protobuf field: repeated string order = 4;
702
+ */
703
+ order: string[];
704
+ /**
705
+ * @generated from protobuf field: string short_name = 5;
706
+ */
707
+ shortName: string;
708
+ /**
709
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 6;
710
+ */
711
+ styles?: WidgetStyles;
712
+ }
713
+ /**
714
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.DeleteWidgetRequest
715
+ */
716
+ export interface DeleteWidgetRequest {
717
+ /**
718
+ * @generated from protobuf field: string id = 1;
719
+ */
720
+ id: string;
721
+ /**
722
+ * @generated from protobuf field: string subreddit = 2;
723
+ */
724
+ subreddit: string;
725
+ }
726
+ /**
727
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsRequest
728
+ */
729
+ export interface GetWidgetsRequest {
730
+ /**
731
+ * @generated from protobuf field: string subreddit = 1;
732
+ */
733
+ subreddit: string;
734
+ /**
735
+ * @generated from protobuf field: google.protobuf.BoolValue progressive_images = 2;
736
+ */
737
+ progressiveImages?: BoolValue;
738
+ }
739
+ /**
740
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse
741
+ */
742
+ export interface GetWidgetsResponse {
743
+ /**
744
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.GetWidgetsResponse.Layout layout = 1;
745
+ */
746
+ layout?: GetWidgetsResponse_Layout;
747
+ /**
748
+ * @generated from protobuf field: map<string, devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem> items = 2;
749
+ */
750
+ items: {
751
+ [key: string]: GetWidgetsResponse_WidgetItem;
752
+ };
753
+ }
754
+ /**
755
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering
756
+ */
757
+ export interface GetWidgetsResponse_WidgetOrdering {
758
+ /**
759
+ * @generated from protobuf field: repeated string order = 1;
760
+ */
761
+ order: string[];
762
+ }
763
+ /**
764
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.Layout
765
+ */
766
+ export interface GetWidgetsResponse_Layout {
767
+ /**
768
+ * @generated from protobuf field: string id_card_widget = 1;
769
+ */
770
+ idCardWidget: string;
771
+ /**
772
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering topbar = 2;
773
+ */
774
+ topbar?: GetWidgetsResponse_WidgetOrdering;
775
+ /**
776
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering sidebar = 3;
777
+ */
778
+ sidebar?: GetWidgetsResponse_WidgetOrdering;
779
+ /**
780
+ * @generated from protobuf field: string moderator_widget = 4;
781
+ */
782
+ moderatorWidget: string;
783
+ }
784
+ /**
785
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem
786
+ */
787
+ export interface GetWidgetsResponse_WidgetItem {
788
+ /**
789
+ * @generated from protobuf field: string id = 1;
790
+ */
791
+ id: string;
792
+ /**
793
+ * @generated from protobuf field: string kind = 2;
794
+ */
795
+ kind: string;
796
+ /**
797
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 3;
798
+ */
799
+ styles?: WidgetStyles;
800
+ /**
801
+ * @generated from protobuf field: string short_name = 4;
802
+ */
803
+ shortName: string;
804
+ /**
805
+ * @generated from protobuf field: google.protobuf.StringValue description = 5;
806
+ */
807
+ description?: StringValue;
808
+ /**
809
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Data data = 6;
810
+ */
811
+ data: GetWidgetsResponse_WidgetItem_Data[];
812
+ /**
813
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 7;
814
+ */
815
+ buttons: WidgetButton[];
816
+ /**
817
+ * @generated from protobuf field: google.protobuf.Int64Value subscribers_count = 8;
818
+ */
819
+ subscribersCount?: Int64Value;
820
+ /**
821
+ * @generated from protobuf field: google.protobuf.StringValue currently_viewing_text = 9;
822
+ */
823
+ currentlyViewingText?: StringValue;
824
+ /**
825
+ * @generated from protobuf field: google.protobuf.Int64Value currently_viewing_count = 10;
826
+ */
827
+ currentlyViewingCount?: Int64Value;
828
+ /**
829
+ * @generated from protobuf field: google.protobuf.StringValue subscribers_text = 11;
830
+ */
831
+ subscribersText?: StringValue;
832
+ /**
833
+ * @generated from protobuf field: google.protobuf.BoolValue show_wiki = 12;
834
+ */
835
+ showWiki?: BoolValue;
836
+ /**
837
+ * @generated from protobuf field: map<string, devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.PostFlairTemplate> templates = 13;
838
+ */
839
+ templates: {
840
+ [key: string]: GetWidgetsResponse_WidgetItem_PostFlairTemplate;
841
+ };
842
+ /**
843
+ * @generated from protobuf field: google.protobuf.StringValue display = 14;
844
+ */
845
+ display?: StringValue;
846
+ /**
847
+ * @generated from protobuf field: repeated string order = 15;
848
+ */
849
+ order: string[];
850
+ /**
851
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Moderator mods = 16;
852
+ */
853
+ mods: GetWidgetsResponse_WidgetItem_Moderator[];
854
+ /**
855
+ * @generated from protobuf field: google.protobuf.Int64Value total_mods = 17;
856
+ */
857
+ totalMods?: Int64Value;
858
+ /**
859
+ * @generated from protobuf field: google.protobuf.StringValue google_calendar_id = 18;
860
+ */
861
+ googleCalendarId?: StringValue;
862
+ /**
863
+ * @generated from protobuf field: google.protobuf.BoolValue requires_sync = 19;
864
+ */
865
+ requiresSync?: BoolValue;
866
+ /**
867
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 20;
868
+ */
869
+ configuration?: CalendarWidgetConfiguration;
870
+ /**
871
+ * @generated from protobuf field: google.protobuf.StringValue text = 21;
872
+ */
873
+ text?: StringValue;
874
+ /**
875
+ * @generated from protobuf field: google.protobuf.StringValue css = 22;
876
+ */
877
+ css?: StringValue;
878
+ /**
879
+ * @generated from protobuf field: google.protobuf.StringValue stylesheet_url = 23;
880
+ */
881
+ stylesheetUrl?: StringValue;
882
+ /**
883
+ * @generated from protobuf field: google.protobuf.Int64Value height = 24;
884
+ */
885
+ height?: Int64Value;
886
+ /**
887
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 25;
888
+ */
889
+ imageData: WidgetImage[];
890
+ }
891
+ /**
892
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Data
893
+ */
894
+ export interface GetWidgetsResponse_WidgetItem_Data {
895
+ /**
896
+ * @generated from protobuf field: google.protobuf.StringValue url = 1;
897
+ */
898
+ url?: StringValue;
899
+ /**
900
+ * @generated from protobuf field: google.protobuf.StringValue link_url = 2;
901
+ */
902
+ linkUrl?: StringValue;
903
+ /**
904
+ * @generated from protobuf field: google.protobuf.Int32Value height = 3;
905
+ */
906
+ height?: Int32Value;
907
+ /**
908
+ * @generated from protobuf field: google.protobuf.Int32Value width = 4;
909
+ */
910
+ width?: Int32Value;
911
+ /**
912
+ * @generated from protobuf field: google.protobuf.StringValue icon_url = 5;
913
+ */
914
+ iconUrl?: StringValue;
915
+ /**
916
+ * @generated from protobuf field: google.protobuf.StringValue name = 6;
917
+ */
918
+ name?: StringValue;
919
+ /**
920
+ * @generated from protobuf field: google.protobuf.StringValue prefixed_name = 7;
921
+ */
922
+ prefixedName?: StringValue;
923
+ /**
924
+ * @generated from protobuf field: google.protobuf.BoolValue is_subscribed = 8;
925
+ */
926
+ isSubscribed?: BoolValue;
927
+ /**
928
+ * @generated from protobuf field: google.protobuf.StringValue type = 9;
929
+ */
930
+ type?: StringValue;
931
+ /**
932
+ * @generated from protobuf field: google.protobuf.Int64Value subscribers = 10;
933
+ */
934
+ subscribers?: Int64Value;
935
+ /**
936
+ * @generated from protobuf field: google.protobuf.StringValue community_icon = 11;
937
+ */
938
+ communityIcon?: StringValue;
939
+ /**
940
+ * @generated from protobuf field: google.protobuf.BoolValue is_nsfw = 12;
941
+ */
942
+ isNsfw?: BoolValue;
943
+ /**
944
+ * @generated from protobuf field: google.protobuf.StringValue text = 13;
945
+ */
946
+ text?: StringValue;
947
+ /**
948
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.MenuWidgetItem children = 14;
949
+ */
950
+ children: MenuWidgetItem[];
951
+ }
952
+ /**
953
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Moderator
954
+ */
955
+ export interface GetWidgetsResponse_WidgetItem_Moderator {
956
+ /**
957
+ * @generated from protobuf field: string name = 1;
958
+ */
959
+ name: string;
960
+ /**
961
+ * @generated from protobuf field: string author_flair_type = 2;
962
+ */
963
+ authorFlairType: string;
964
+ /**
965
+ * @generated from protobuf field: string author_flair_text_color = 3;
966
+ */
967
+ authorFlairTextColor: string;
968
+ /**
969
+ * @generated from protobuf field: string author_flair_background_color = 4;
970
+ */
971
+ authorFlairBackgroundColor: string;
972
+ /**
973
+ * @generated from protobuf field: string author_falir_text = 5;
974
+ */
975
+ authorFalirText: string;
976
+ /**
977
+ * @generated from protobuf field: repeated devvit.reddit.AuthorFlairRichText author_flair_richtext = 6;
978
+ */
979
+ authorFlairRichtext: AuthorFlairRichText[];
980
+ }
981
+ /**
982
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.PostFlairTemplate
983
+ */
984
+ export interface GetWidgetsResponse_WidgetItem_PostFlairTemplate {
985
+ /**
986
+ * @generated from protobuf field: string text = 1;
987
+ */
988
+ text: string;
989
+ /**
990
+ * @generated from protobuf field: repeated devvit.reddit.AuthorFlairRichText richtext = 2;
991
+ */
992
+ richtext: AuthorFlairRichText[];
993
+ /**
994
+ * @generated from protobuf field: string background_color = 3;
995
+ */
996
+ backgroundColor: string;
997
+ /**
998
+ * @generated from protobuf field: string template_id = 4;
999
+ */
1000
+ templateId: string;
1001
+ /**
1002
+ * @generated from protobuf field: string text_color = 5;
1003
+ */
1004
+ textColor: string;
1005
+ /**
1006
+ * @generated from protobuf field: string type = 6;
1007
+ */
1008
+ type: string;
1009
+ }
1010
+ /**
1011
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.MenuWidgetItem
1012
+ */
1013
+ export interface MenuWidgetItem {
1014
+ /**
1015
+ * @generated from protobuf field: google.protobuf.StringValue text = 1;
1016
+ */
1017
+ text?: StringValue;
1018
+ /**
1019
+ * @generated from protobuf field: google.protobuf.StringValue url = 2;
1020
+ */
1021
+ url?: StringValue;
1022
+ /**
1023
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.MenuWidgetItem children = 3;
1024
+ */
1025
+ children: MenuWidgetItem[];
1026
+ }
1027
+ /**
1028
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.OrderWidgetsRequest
1029
+ */
1030
+ export interface OrderWidgetsRequest {
1031
+ /**
1032
+ * @generated from protobuf field: string subreddit = 1;
1033
+ */
1034
+ subreddit: string;
1035
+ /**
1036
+ * @generated from protobuf field: repeated string order = 2;
1037
+ */
1038
+ order: string[];
1039
+ }
1040
+ /**
1041
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseRequest
1042
+ */
1043
+ export interface GetWidgetImageUploadLeaseRequest {
1044
+ /**
1045
+ * @generated from protobuf field: string subreddit = 1;
1046
+ */
1047
+ subreddit: string;
1048
+ /**
1049
+ * @generated from protobuf field: string filepath = 2;
1050
+ */
1051
+ filepath: string;
1052
+ /**
1053
+ * @generated from protobuf field: string mimetype = 3;
1054
+ */
1055
+ mimetype: string;
1056
+ }
1057
+ /**
1058
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse
1059
+ */
1060
+ export interface GetWidgetImageUploadLeaseResponse {
1061
+ /**
1062
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease s3_upload_lease = 1;
1063
+ */
1064
+ s3UploadLease?: GetWidgetImageUploadLeaseResponse_S3UploadLease;
1065
+ /**
1066
+ * @generated from protobuf field: string websocket_url = 2;
1067
+ */
1068
+ websocketUrl: string;
1069
+ }
1070
+ /**
1071
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease
1072
+ */
1073
+ export interface GetWidgetImageUploadLeaseResponse_S3UploadLease {
1074
+ /**
1075
+ * @generated from protobuf field: string action = 1;
1076
+ */
1077
+ action: string;
1078
+ /**
1079
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease.NameValuePair fields = 2;
1080
+ */
1081
+ fields: GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair[];
1082
+ }
1083
+ /**
1084
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease.NameValuePair
1085
+ */
1086
+ export interface GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair {
1087
+ /**
1088
+ * @generated from protobuf field: string name = 1;
1089
+ */
1090
+ name: string;
1091
+ /**
1092
+ * @generated from protobuf field: string value = 2;
1093
+ */
1094
+ value: string;
1095
+ }
1096
+ /**
1097
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.CustomWidget
1098
+ */
1099
+ export interface CustomWidget {
1100
+ /**
1101
+ * @generated from protobuf field: string id = 1;
1102
+ */
1103
+ id: string;
1104
+ /**
1105
+ * @generated from protobuf field: string kind = 2;
1106
+ */
1107
+ kind: string;
1108
+ /**
1109
+ * @generated from protobuf field: string short_name = 3;
1110
+ */
1111
+ shortName: string;
1112
+ /**
1113
+ * @generated from protobuf field: string text = 4;
1114
+ */
1115
+ text: string;
1116
+ /**
1117
+ * @generated from protobuf field: int32 height = 6;
1118
+ */
1119
+ height: number;
1120
+ /**
1121
+ * @generated from protobuf field: string css = 7;
1122
+ */
1123
+ css: string;
1124
+ /**
1125
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 8;
1126
+ */
1127
+ imageData: WidgetImage[];
1128
+ /**
1129
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 9;
1130
+ */
1131
+ styles?: WidgetStyles;
1132
+ }
1133
+ /**
1134
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.AddCustomWidgetRequest
1135
+ */
1136
+ export interface AddCustomWidgetRequest {
1137
+ /**
1138
+ * @generated from protobuf field: string subreddit = 1;
1139
+ */
1140
+ subreddit: string;
1141
+ /**
1142
+ * @generated from protobuf field: string short_name = 2;
1143
+ */
1144
+ shortName: string;
1145
+ /**
1146
+ * @generated from protobuf field: string text = 3;
1147
+ */
1148
+ text: string;
1149
+ /**
1150
+ * @generated from protobuf field: int32 height = 4;
1151
+ */
1152
+ height: number;
1153
+ /**
1154
+ * @generated from protobuf field: string css = 5;
1155
+ */
1156
+ css: string;
1157
+ /**
1158
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 6;
1159
+ */
1160
+ imageData: WidgetImage[];
1161
+ /**
1162
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 7;
1163
+ */
1164
+ styles?: WidgetStyles;
1165
+ }
1166
+ /**
1167
+ * @generated from protobuf message devvit.plugin.redditapi.widgets.UpdateCustomWidgetRequest
1168
+ */
1169
+ export interface UpdateCustomWidgetRequest {
1170
+ /**
1171
+ * @generated from protobuf field: string subreddit = 1;
1172
+ */
1173
+ subreddit: string;
1174
+ /**
1175
+ * @generated from protobuf field: string id = 2;
1176
+ */
1177
+ id: string;
1178
+ /**
1179
+ * @generated from protobuf field: string short_name = 3;
1180
+ */
1181
+ shortName: string;
1182
+ /**
1183
+ * @generated from protobuf field: string text = 4;
1184
+ */
1185
+ text: string;
1186
+ /**
1187
+ * @generated from protobuf field: int32 height = 5;
1188
+ */
1189
+ height: number;
1190
+ /**
1191
+ * @generated from protobuf field: string css = 6;
1192
+ */
1193
+ css: string;
1194
+ /**
1195
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 7;
1196
+ */
1197
+ imageData: WidgetImage[];
1198
+ /**
1199
+ * @generated from protobuf field: devvit.plugin.redditapi.widgets.WidgetStyles styles = 8;
1200
+ */
1201
+ styles?: WidgetStyles;
1202
+ }
1203
+ // @generated message type with reflection information, may provide speed optimized methods
1204
+ class WidgetStyles$Type extends MessageType<WidgetStyles> {
1205
+ constructor() {
1206
+ super("devvit.plugin.redditapi.widgets.WidgetStyles", [
1207
+ { no: 1, name: "background_color", kind: "message", T: () => StringValue },
1208
+ { no: 2, name: "header_color", kind: "message", T: () => StringValue }
1209
+ ]);
1210
+ }
1211
+ create(value?: PartialMessage<WidgetStyles>): WidgetStyles {
1212
+ const message = globalThis.Object.create((this.messagePrototype!));
1213
+ if (value !== undefined)
1214
+ reflectionMergePartial<WidgetStyles>(this, message, value);
1215
+ return message;
1216
+ }
1217
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WidgetStyles): WidgetStyles {
1218
+ let message = target ?? this.create(), end = reader.pos + length;
1219
+ while (reader.pos < end) {
1220
+ let [fieldNo, wireType] = reader.tag();
1221
+ switch (fieldNo) {
1222
+ case /* google.protobuf.StringValue background_color */ 1:
1223
+ message.backgroundColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.backgroundColor);
1224
+ break;
1225
+ case /* google.protobuf.StringValue header_color */ 2:
1226
+ message.headerColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.headerColor);
1227
+ break;
1228
+ default:
1229
+ let u = options.readUnknownField;
1230
+ if (u === "throw")
1231
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1232
+ let d = reader.skip(wireType);
1233
+ if (u !== false)
1234
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1235
+ }
1236
+ }
1237
+ return message;
1238
+ }
1239
+ internalBinaryWrite(message: WidgetStyles, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1240
+ /* google.protobuf.StringValue background_color = 1; */
1241
+ if (message.backgroundColor)
1242
+ StringValue.internalBinaryWrite(message.backgroundColor, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1243
+ /* google.protobuf.StringValue header_color = 2; */
1244
+ if (message.headerColor)
1245
+ StringValue.internalBinaryWrite(message.headerColor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1246
+ let u = options.writeUnknownFields;
1247
+ if (u !== false)
1248
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1249
+ return writer;
1250
+ }
1251
+ }
1252
+ /**
1253
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.WidgetStyles
1254
+ */
1255
+ export const WidgetStyles = new WidgetStyles$Type();
1256
+ // @generated message type with reflection information, may provide speed optimized methods
1257
+ class WidgetImage$Type extends MessageType<WidgetImage> {
1258
+ constructor() {
1259
+ super("devvit.plugin.redditapi.widgets.WidgetImage", [
1260
+ { no: 1, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1261
+ { no: 2, name: "link_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1262
+ { no: 3, name: "height", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1263
+ { no: 4, name: "width", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
1264
+ ]);
1265
+ }
1266
+ create(value?: PartialMessage<WidgetImage>): WidgetImage {
1267
+ const message = globalThis.Object.create((this.messagePrototype!));
1268
+ message.url = "";
1269
+ message.linkUrl = "";
1270
+ message.height = 0;
1271
+ message.width = 0;
1272
+ if (value !== undefined)
1273
+ reflectionMergePartial<WidgetImage>(this, message, value);
1274
+ return message;
1275
+ }
1276
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WidgetImage): WidgetImage {
1277
+ let message = target ?? this.create(), end = reader.pos + length;
1278
+ while (reader.pos < end) {
1279
+ let [fieldNo, wireType] = reader.tag();
1280
+ switch (fieldNo) {
1281
+ case /* string url */ 1:
1282
+ message.url = reader.string();
1283
+ break;
1284
+ case /* string link_url */ 2:
1285
+ message.linkUrl = reader.string();
1286
+ break;
1287
+ case /* int32 height */ 3:
1288
+ message.height = reader.int32();
1289
+ break;
1290
+ case /* int32 width */ 4:
1291
+ message.width = reader.int32();
1292
+ break;
1293
+ default:
1294
+ let u = options.readUnknownField;
1295
+ if (u === "throw")
1296
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1297
+ let d = reader.skip(wireType);
1298
+ if (u !== false)
1299
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1300
+ }
1301
+ }
1302
+ return message;
1303
+ }
1304
+ internalBinaryWrite(message: WidgetImage, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1305
+ /* string url = 1; */
1306
+ if (message.url !== "")
1307
+ writer.tag(1, WireType.LengthDelimited).string(message.url);
1308
+ /* string link_url = 2; */
1309
+ if (message.linkUrl !== "")
1310
+ writer.tag(2, WireType.LengthDelimited).string(message.linkUrl);
1311
+ /* int32 height = 3; */
1312
+ if (message.height !== 0)
1313
+ writer.tag(3, WireType.Varint).int32(message.height);
1314
+ /* int32 width = 4; */
1315
+ if (message.width !== 0)
1316
+ writer.tag(4, WireType.Varint).int32(message.width);
1317
+ let u = options.writeUnknownFields;
1318
+ if (u !== false)
1319
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1320
+ return writer;
1321
+ }
1322
+ }
1323
+ /**
1324
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.WidgetImage
1325
+ */
1326
+ export const WidgetImage = new WidgetImage$Type();
1327
+ // @generated message type with reflection information, may provide speed optimized methods
1328
+ class ImageWidget$Type extends MessageType<ImageWidget> {
1329
+ constructor() {
1330
+ super("devvit.plugin.redditapi.widgets.ImageWidget", [
1331
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1332
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1333
+ { no: 3, name: "data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage },
1334
+ { no: 4, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1335
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles },
1336
+ { no: 6, name: "subreddit", kind: "message", T: () => StringValue }
1337
+ ]);
1338
+ }
1339
+ create(value?: PartialMessage<ImageWidget>): ImageWidget {
1340
+ const message = globalThis.Object.create((this.messagePrototype!));
1341
+ message.id = "";
1342
+ message.kind = "";
1343
+ message.data = [];
1344
+ message.shortName = "";
1345
+ if (value !== undefined)
1346
+ reflectionMergePartial<ImageWidget>(this, message, value);
1347
+ return message;
1348
+ }
1349
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImageWidget): ImageWidget {
1350
+ let message = target ?? this.create(), end = reader.pos + length;
1351
+ while (reader.pos < end) {
1352
+ let [fieldNo, wireType] = reader.tag();
1353
+ switch (fieldNo) {
1354
+ case /* string id */ 1:
1355
+ message.id = reader.string();
1356
+ break;
1357
+ case /* string kind */ 2:
1358
+ message.kind = reader.string();
1359
+ break;
1360
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage data */ 3:
1361
+ message.data.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
1362
+ break;
1363
+ case /* string short_name */ 4:
1364
+ message.shortName = reader.string();
1365
+ break;
1366
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
1367
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1368
+ break;
1369
+ case /* google.protobuf.StringValue subreddit */ 6:
1370
+ message.subreddit = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subreddit);
1371
+ break;
1372
+ default:
1373
+ let u = options.readUnknownField;
1374
+ if (u === "throw")
1375
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1376
+ let d = reader.skip(wireType);
1377
+ if (u !== false)
1378
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1379
+ }
1380
+ }
1381
+ return message;
1382
+ }
1383
+ internalBinaryWrite(message: ImageWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1384
+ /* string id = 1; */
1385
+ if (message.id !== "")
1386
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1387
+ /* string kind = 2; */
1388
+ if (message.kind !== "")
1389
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
1390
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage data = 3; */
1391
+ for (let i = 0; i < message.data.length; i++)
1392
+ WidgetImage.internalBinaryWrite(message.data[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1393
+ /* string short_name = 4; */
1394
+ if (message.shortName !== "")
1395
+ writer.tag(4, WireType.LengthDelimited).string(message.shortName);
1396
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
1397
+ if (message.styles)
1398
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1399
+ /* google.protobuf.StringValue subreddit = 6; */
1400
+ if (message.subreddit)
1401
+ StringValue.internalBinaryWrite(message.subreddit, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
1402
+ let u = options.writeUnknownFields;
1403
+ if (u !== false)
1404
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1405
+ return writer;
1406
+ }
1407
+ }
1408
+ /**
1409
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.ImageWidget
1410
+ */
1411
+ export const ImageWidget = new ImageWidget$Type();
1412
+ // @generated message type with reflection information, may provide speed optimized methods
1413
+ class AddImageWidgetRequest$Type extends MessageType<AddImageWidgetRequest> {
1414
+ constructor() {
1415
+ super("devvit.plugin.redditapi.widgets.AddImageWidgetRequest", [
1416
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1417
+ { no: 2, name: "data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage },
1418
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1419
+ { no: 4, name: "styles", kind: "message", T: () => WidgetStyles }
1420
+ ]);
1421
+ }
1422
+ create(value?: PartialMessage<AddImageWidgetRequest>): AddImageWidgetRequest {
1423
+ const message = globalThis.Object.create((this.messagePrototype!));
1424
+ message.subreddit = "";
1425
+ message.data = [];
1426
+ message.shortName = "";
1427
+ if (value !== undefined)
1428
+ reflectionMergePartial<AddImageWidgetRequest>(this, message, value);
1429
+ return message;
1430
+ }
1431
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddImageWidgetRequest): AddImageWidgetRequest {
1432
+ let message = target ?? this.create(), end = reader.pos + length;
1433
+ while (reader.pos < end) {
1434
+ let [fieldNo, wireType] = reader.tag();
1435
+ switch (fieldNo) {
1436
+ case /* string subreddit */ 1:
1437
+ message.subreddit = reader.string();
1438
+ break;
1439
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage data */ 2:
1440
+ message.data.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
1441
+ break;
1442
+ case /* string short_name */ 3:
1443
+ message.shortName = reader.string();
1444
+ break;
1445
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 4:
1446
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1447
+ break;
1448
+ default:
1449
+ let u = options.readUnknownField;
1450
+ if (u === "throw")
1451
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1452
+ let d = reader.skip(wireType);
1453
+ if (u !== false)
1454
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1455
+ }
1456
+ }
1457
+ return message;
1458
+ }
1459
+ internalBinaryWrite(message: AddImageWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1460
+ /* string subreddit = 1; */
1461
+ if (message.subreddit !== "")
1462
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
1463
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage data = 2; */
1464
+ for (let i = 0; i < message.data.length; i++)
1465
+ WidgetImage.internalBinaryWrite(message.data[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1466
+ /* string short_name = 3; */
1467
+ if (message.shortName !== "")
1468
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
1469
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 4; */
1470
+ if (message.styles)
1471
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1472
+ let u = options.writeUnknownFields;
1473
+ if (u !== false)
1474
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1475
+ return writer;
1476
+ }
1477
+ }
1478
+ /**
1479
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddImageWidgetRequest
1480
+ */
1481
+ export const AddImageWidgetRequest = new AddImageWidgetRequest$Type();
1482
+ // @generated message type with reflection information, may provide speed optimized methods
1483
+ class UpdateImageWidgetRequest$Type extends MessageType<UpdateImageWidgetRequest> {
1484
+ constructor() {
1485
+ super("devvit.plugin.redditapi.widgets.UpdateImageWidgetRequest", [
1486
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1487
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1488
+ { no: 3, name: "data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage },
1489
+ { no: 4, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1490
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
1491
+ ]);
1492
+ }
1493
+ create(value?: PartialMessage<UpdateImageWidgetRequest>): UpdateImageWidgetRequest {
1494
+ const message = globalThis.Object.create((this.messagePrototype!));
1495
+ message.subreddit = "";
1496
+ message.id = "";
1497
+ message.data = [];
1498
+ message.shortName = "";
1499
+ if (value !== undefined)
1500
+ reflectionMergePartial<UpdateImageWidgetRequest>(this, message, value);
1501
+ return message;
1502
+ }
1503
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateImageWidgetRequest): UpdateImageWidgetRequest {
1504
+ let message = target ?? this.create(), end = reader.pos + length;
1505
+ while (reader.pos < end) {
1506
+ let [fieldNo, wireType] = reader.tag();
1507
+ switch (fieldNo) {
1508
+ case /* string subreddit */ 1:
1509
+ message.subreddit = reader.string();
1510
+ break;
1511
+ case /* string id */ 2:
1512
+ message.id = reader.string();
1513
+ break;
1514
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage data */ 3:
1515
+ message.data.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
1516
+ break;
1517
+ case /* string short_name */ 4:
1518
+ message.shortName = reader.string();
1519
+ break;
1520
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
1521
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1522
+ break;
1523
+ default:
1524
+ let u = options.readUnknownField;
1525
+ if (u === "throw")
1526
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1527
+ let d = reader.skip(wireType);
1528
+ if (u !== false)
1529
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1530
+ }
1531
+ }
1532
+ return message;
1533
+ }
1534
+ internalBinaryWrite(message: UpdateImageWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1535
+ /* string subreddit = 1; */
1536
+ if (message.subreddit !== "")
1537
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
1538
+ /* string id = 2; */
1539
+ if (message.id !== "")
1540
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
1541
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage data = 3; */
1542
+ for (let i = 0; i < message.data.length; i++)
1543
+ WidgetImage.internalBinaryWrite(message.data[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1544
+ /* string short_name = 4; */
1545
+ if (message.shortName !== "")
1546
+ writer.tag(4, WireType.LengthDelimited).string(message.shortName);
1547
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
1548
+ if (message.styles)
1549
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1550
+ let u = options.writeUnknownFields;
1551
+ if (u !== false)
1552
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1553
+ return writer;
1554
+ }
1555
+ }
1556
+ /**
1557
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateImageWidgetRequest
1558
+ */
1559
+ export const UpdateImageWidgetRequest = new UpdateImageWidgetRequest$Type();
1560
+ // @generated message type with reflection information, may provide speed optimized methods
1561
+ class CalendarWidgetConfiguration$Type extends MessageType<CalendarWidgetConfiguration> {
1562
+ constructor() {
1563
+ super("devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration", [
1564
+ { no: 1, name: "num_events", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1565
+ { no: 2, name: "show_date", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1566
+ { no: 3, name: "show_description", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1567
+ { no: 4, name: "show_location", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1568
+ { no: 5, name: "show_time", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1569
+ { no: 6, name: "show_title", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
1570
+ ]);
1571
+ }
1572
+ create(value?: PartialMessage<CalendarWidgetConfiguration>): CalendarWidgetConfiguration {
1573
+ const message = globalThis.Object.create((this.messagePrototype!));
1574
+ message.numEvents = 0;
1575
+ message.showDate = false;
1576
+ message.showDescription = false;
1577
+ message.showLocation = false;
1578
+ message.showTime = false;
1579
+ message.showTitle = false;
1580
+ if (value !== undefined)
1581
+ reflectionMergePartial<CalendarWidgetConfiguration>(this, message, value);
1582
+ return message;
1583
+ }
1584
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarWidgetConfiguration): CalendarWidgetConfiguration {
1585
+ let message = target ?? this.create(), end = reader.pos + length;
1586
+ while (reader.pos < end) {
1587
+ let [fieldNo, wireType] = reader.tag();
1588
+ switch (fieldNo) {
1589
+ case /* int32 num_events */ 1:
1590
+ message.numEvents = reader.int32();
1591
+ break;
1592
+ case /* bool show_date */ 2:
1593
+ message.showDate = reader.bool();
1594
+ break;
1595
+ case /* bool show_description */ 3:
1596
+ message.showDescription = reader.bool();
1597
+ break;
1598
+ case /* bool show_location */ 4:
1599
+ message.showLocation = reader.bool();
1600
+ break;
1601
+ case /* bool show_time */ 5:
1602
+ message.showTime = reader.bool();
1603
+ break;
1604
+ case /* bool show_title */ 6:
1605
+ message.showTitle = reader.bool();
1606
+ break;
1607
+ default:
1608
+ let u = options.readUnknownField;
1609
+ if (u === "throw")
1610
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1611
+ let d = reader.skip(wireType);
1612
+ if (u !== false)
1613
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1614
+ }
1615
+ }
1616
+ return message;
1617
+ }
1618
+ internalBinaryWrite(message: CalendarWidgetConfiguration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1619
+ /* int32 num_events = 1; */
1620
+ if (message.numEvents !== 0)
1621
+ writer.tag(1, WireType.Varint).int32(message.numEvents);
1622
+ /* bool show_date = 2; */
1623
+ if (message.showDate !== false)
1624
+ writer.tag(2, WireType.Varint).bool(message.showDate);
1625
+ /* bool show_description = 3; */
1626
+ if (message.showDescription !== false)
1627
+ writer.tag(3, WireType.Varint).bool(message.showDescription);
1628
+ /* bool show_location = 4; */
1629
+ if (message.showLocation !== false)
1630
+ writer.tag(4, WireType.Varint).bool(message.showLocation);
1631
+ /* bool show_time = 5; */
1632
+ if (message.showTime !== false)
1633
+ writer.tag(5, WireType.Varint).bool(message.showTime);
1634
+ /* bool show_title = 6; */
1635
+ if (message.showTitle !== false)
1636
+ writer.tag(6, WireType.Varint).bool(message.showTitle);
1637
+ let u = options.writeUnknownFields;
1638
+ if (u !== false)
1639
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1640
+ return writer;
1641
+ }
1642
+ }
1643
+ /**
1644
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration
1645
+ */
1646
+ export const CalendarWidgetConfiguration = new CalendarWidgetConfiguration$Type();
1647
+ // @generated message type with reflection information, may provide speed optimized methods
1648
+ class CalendarWidget$Type extends MessageType<CalendarWidget> {
1649
+ constructor() {
1650
+ super("devvit.plugin.redditapi.widgets.CalendarWidget", [
1651
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1652
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1653
+ { no: 3, name: "configuration", kind: "message", T: () => CalendarWidgetConfiguration },
1654
+ { no: 4, name: "google_calendar_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1655
+ { no: 5, name: "requires_sync", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1656
+ { no: 6, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1657
+ { no: 7, name: "styles", kind: "message", T: () => WidgetStyles }
1658
+ ]);
1659
+ }
1660
+ create(value?: PartialMessage<CalendarWidget>): CalendarWidget {
1661
+ const message = globalThis.Object.create((this.messagePrototype!));
1662
+ message.id = "";
1663
+ message.kind = "";
1664
+ message.googleCalendarId = "";
1665
+ message.requiresSync = false;
1666
+ message.shortName = "";
1667
+ if (value !== undefined)
1668
+ reflectionMergePartial<CalendarWidget>(this, message, value);
1669
+ return message;
1670
+ }
1671
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CalendarWidget): CalendarWidget {
1672
+ let message = target ?? this.create(), end = reader.pos + length;
1673
+ while (reader.pos < end) {
1674
+ let [fieldNo, wireType] = reader.tag();
1675
+ switch (fieldNo) {
1676
+ case /* string id */ 1:
1677
+ message.id = reader.string();
1678
+ break;
1679
+ case /* string kind */ 2:
1680
+ message.kind = reader.string();
1681
+ break;
1682
+ case /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration */ 3:
1683
+ message.configuration = CalendarWidgetConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
1684
+ break;
1685
+ case /* string google_calendar_id */ 4:
1686
+ message.googleCalendarId = reader.string();
1687
+ break;
1688
+ case /* bool requires_sync */ 5:
1689
+ message.requiresSync = reader.bool();
1690
+ break;
1691
+ case /* string short_name */ 6:
1692
+ message.shortName = reader.string();
1693
+ break;
1694
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 7:
1695
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1696
+ break;
1697
+ default:
1698
+ let u = options.readUnknownField;
1699
+ if (u === "throw")
1700
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1701
+ let d = reader.skip(wireType);
1702
+ if (u !== false)
1703
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1704
+ }
1705
+ }
1706
+ return message;
1707
+ }
1708
+ internalBinaryWrite(message: CalendarWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1709
+ /* string id = 1; */
1710
+ if (message.id !== "")
1711
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1712
+ /* string kind = 2; */
1713
+ if (message.kind !== "")
1714
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
1715
+ /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 3; */
1716
+ if (message.configuration)
1717
+ CalendarWidgetConfiguration.internalBinaryWrite(message.configuration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1718
+ /* string google_calendar_id = 4; */
1719
+ if (message.googleCalendarId !== "")
1720
+ writer.tag(4, WireType.LengthDelimited).string(message.googleCalendarId);
1721
+ /* bool requires_sync = 5; */
1722
+ if (message.requiresSync !== false)
1723
+ writer.tag(5, WireType.Varint).bool(message.requiresSync);
1724
+ /* string short_name = 6; */
1725
+ if (message.shortName !== "")
1726
+ writer.tag(6, WireType.LengthDelimited).string(message.shortName);
1727
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 7; */
1728
+ if (message.styles)
1729
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
1730
+ let u = options.writeUnknownFields;
1731
+ if (u !== false)
1732
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1733
+ return writer;
1734
+ }
1735
+ }
1736
+ /**
1737
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.CalendarWidget
1738
+ */
1739
+ export const CalendarWidget = new CalendarWidget$Type();
1740
+ // @generated message type with reflection information, may provide speed optimized methods
1741
+ class AddCalendarWidgetRequest$Type extends MessageType<AddCalendarWidgetRequest> {
1742
+ constructor() {
1743
+ super("devvit.plugin.redditapi.widgets.AddCalendarWidgetRequest", [
1744
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1745
+ { no: 2, name: "configuration", kind: "message", T: () => CalendarWidgetConfiguration },
1746
+ { no: 3, name: "google_calendar_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1747
+ { no: 4, name: "requires_sync", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1748
+ { no: 5, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1749
+ { no: 6, name: "styles", kind: "message", T: () => WidgetStyles }
1750
+ ]);
1751
+ }
1752
+ create(value?: PartialMessage<AddCalendarWidgetRequest>): AddCalendarWidgetRequest {
1753
+ const message = globalThis.Object.create((this.messagePrototype!));
1754
+ message.subreddit = "";
1755
+ message.googleCalendarId = "";
1756
+ message.requiresSync = false;
1757
+ message.shortName = "";
1758
+ if (value !== undefined)
1759
+ reflectionMergePartial<AddCalendarWidgetRequest>(this, message, value);
1760
+ return message;
1761
+ }
1762
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddCalendarWidgetRequest): AddCalendarWidgetRequest {
1763
+ let message = target ?? this.create(), end = reader.pos + length;
1764
+ while (reader.pos < end) {
1765
+ let [fieldNo, wireType] = reader.tag();
1766
+ switch (fieldNo) {
1767
+ case /* string subreddit */ 1:
1768
+ message.subreddit = reader.string();
1769
+ break;
1770
+ case /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration */ 2:
1771
+ message.configuration = CalendarWidgetConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
1772
+ break;
1773
+ case /* string google_calendar_id */ 3:
1774
+ message.googleCalendarId = reader.string();
1775
+ break;
1776
+ case /* bool requires_sync */ 4:
1777
+ message.requiresSync = reader.bool();
1778
+ break;
1779
+ case /* string short_name */ 5:
1780
+ message.shortName = reader.string();
1781
+ break;
1782
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 6:
1783
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1784
+ break;
1785
+ default:
1786
+ let u = options.readUnknownField;
1787
+ if (u === "throw")
1788
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1789
+ let d = reader.skip(wireType);
1790
+ if (u !== false)
1791
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1792
+ }
1793
+ }
1794
+ return message;
1795
+ }
1796
+ internalBinaryWrite(message: AddCalendarWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1797
+ /* string subreddit = 1; */
1798
+ if (message.subreddit !== "")
1799
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
1800
+ /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 2; */
1801
+ if (message.configuration)
1802
+ CalendarWidgetConfiguration.internalBinaryWrite(message.configuration, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1803
+ /* string google_calendar_id = 3; */
1804
+ if (message.googleCalendarId !== "")
1805
+ writer.tag(3, WireType.LengthDelimited).string(message.googleCalendarId);
1806
+ /* bool requires_sync = 4; */
1807
+ if (message.requiresSync !== false)
1808
+ writer.tag(4, WireType.Varint).bool(message.requiresSync);
1809
+ /* string short_name = 5; */
1810
+ if (message.shortName !== "")
1811
+ writer.tag(5, WireType.LengthDelimited).string(message.shortName);
1812
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 6; */
1813
+ if (message.styles)
1814
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
1815
+ let u = options.writeUnknownFields;
1816
+ if (u !== false)
1817
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1818
+ return writer;
1819
+ }
1820
+ }
1821
+ /**
1822
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddCalendarWidgetRequest
1823
+ */
1824
+ export const AddCalendarWidgetRequest = new AddCalendarWidgetRequest$Type();
1825
+ // @generated message type with reflection information, may provide speed optimized methods
1826
+ class UpdateCalendarWidgetRequest$Type extends MessageType<UpdateCalendarWidgetRequest> {
1827
+ constructor() {
1828
+ super("devvit.plugin.redditapi.widgets.UpdateCalendarWidgetRequest", [
1829
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1830
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1831
+ { no: 3, name: "configuration", kind: "message", T: () => CalendarWidgetConfiguration },
1832
+ { no: 4, name: "google_calendar_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1833
+ { no: 5, name: "requires_sync", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1834
+ { no: 6, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1835
+ { no: 7, name: "styles", kind: "message", T: () => WidgetStyles }
1836
+ ]);
1837
+ }
1838
+ create(value?: PartialMessage<UpdateCalendarWidgetRequest>): UpdateCalendarWidgetRequest {
1839
+ const message = globalThis.Object.create((this.messagePrototype!));
1840
+ message.subreddit = "";
1841
+ message.id = "";
1842
+ message.googleCalendarId = "";
1843
+ message.requiresSync = false;
1844
+ message.shortName = "";
1845
+ if (value !== undefined)
1846
+ reflectionMergePartial<UpdateCalendarWidgetRequest>(this, message, value);
1847
+ return message;
1848
+ }
1849
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCalendarWidgetRequest): UpdateCalendarWidgetRequest {
1850
+ let message = target ?? this.create(), end = reader.pos + length;
1851
+ while (reader.pos < end) {
1852
+ let [fieldNo, wireType] = reader.tag();
1853
+ switch (fieldNo) {
1854
+ case /* string subreddit */ 1:
1855
+ message.subreddit = reader.string();
1856
+ break;
1857
+ case /* string id */ 2:
1858
+ message.id = reader.string();
1859
+ break;
1860
+ case /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration */ 3:
1861
+ message.configuration = CalendarWidgetConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
1862
+ break;
1863
+ case /* string google_calendar_id */ 4:
1864
+ message.googleCalendarId = reader.string();
1865
+ break;
1866
+ case /* bool requires_sync */ 5:
1867
+ message.requiresSync = reader.bool();
1868
+ break;
1869
+ case /* string short_name */ 6:
1870
+ message.shortName = reader.string();
1871
+ break;
1872
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 7:
1873
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1874
+ break;
1875
+ default:
1876
+ let u = options.readUnknownField;
1877
+ if (u === "throw")
1878
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1879
+ let d = reader.skip(wireType);
1880
+ if (u !== false)
1881
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1882
+ }
1883
+ }
1884
+ return message;
1885
+ }
1886
+ internalBinaryWrite(message: UpdateCalendarWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1887
+ /* string subreddit = 1; */
1888
+ if (message.subreddit !== "")
1889
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
1890
+ /* string id = 2; */
1891
+ if (message.id !== "")
1892
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
1893
+ /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 3; */
1894
+ if (message.configuration)
1895
+ CalendarWidgetConfiguration.internalBinaryWrite(message.configuration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1896
+ /* string google_calendar_id = 4; */
1897
+ if (message.googleCalendarId !== "")
1898
+ writer.tag(4, WireType.LengthDelimited).string(message.googleCalendarId);
1899
+ /* bool requires_sync = 5; */
1900
+ if (message.requiresSync !== false)
1901
+ writer.tag(5, WireType.Varint).bool(message.requiresSync);
1902
+ /* string short_name = 6; */
1903
+ if (message.shortName !== "")
1904
+ writer.tag(6, WireType.LengthDelimited).string(message.shortName);
1905
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 7; */
1906
+ if (message.styles)
1907
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
1908
+ let u = options.writeUnknownFields;
1909
+ if (u !== false)
1910
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1911
+ return writer;
1912
+ }
1913
+ }
1914
+ /**
1915
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateCalendarWidgetRequest
1916
+ */
1917
+ export const UpdateCalendarWidgetRequest = new UpdateCalendarWidgetRequest$Type();
1918
+ // @generated message type with reflection information, may provide speed optimized methods
1919
+ class TextAreaWidget$Type extends MessageType<TextAreaWidget> {
1920
+ constructor() {
1921
+ super("devvit.plugin.redditapi.widgets.TextAreaWidget", [
1922
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1923
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1924
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1925
+ { no: 4, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1926
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
1927
+ ]);
1928
+ }
1929
+ create(value?: PartialMessage<TextAreaWidget>): TextAreaWidget {
1930
+ const message = globalThis.Object.create((this.messagePrototype!));
1931
+ message.id = "";
1932
+ message.kind = "";
1933
+ message.shortName = "";
1934
+ message.text = "";
1935
+ if (value !== undefined)
1936
+ reflectionMergePartial<TextAreaWidget>(this, message, value);
1937
+ return message;
1938
+ }
1939
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TextAreaWidget): TextAreaWidget {
1940
+ let message = target ?? this.create(), end = reader.pos + length;
1941
+ while (reader.pos < end) {
1942
+ let [fieldNo, wireType] = reader.tag();
1943
+ switch (fieldNo) {
1944
+ case /* string id */ 1:
1945
+ message.id = reader.string();
1946
+ break;
1947
+ case /* string kind */ 2:
1948
+ message.kind = reader.string();
1949
+ break;
1950
+ case /* string short_name */ 3:
1951
+ message.shortName = reader.string();
1952
+ break;
1953
+ case /* string text */ 4:
1954
+ message.text = reader.string();
1955
+ break;
1956
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
1957
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
1958
+ break;
1959
+ default:
1960
+ let u = options.readUnknownField;
1961
+ if (u === "throw")
1962
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1963
+ let d = reader.skip(wireType);
1964
+ if (u !== false)
1965
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1966
+ }
1967
+ }
1968
+ return message;
1969
+ }
1970
+ internalBinaryWrite(message: TextAreaWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1971
+ /* string id = 1; */
1972
+ if (message.id !== "")
1973
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
1974
+ /* string kind = 2; */
1975
+ if (message.kind !== "")
1976
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
1977
+ /* string short_name = 3; */
1978
+ if (message.shortName !== "")
1979
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
1980
+ /* string text = 4; */
1981
+ if (message.text !== "")
1982
+ writer.tag(4, WireType.LengthDelimited).string(message.text);
1983
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
1984
+ if (message.styles)
1985
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
1986
+ let u = options.writeUnknownFields;
1987
+ if (u !== false)
1988
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1989
+ return writer;
1990
+ }
1991
+ }
1992
+ /**
1993
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.TextAreaWidget
1994
+ */
1995
+ export const TextAreaWidget = new TextAreaWidget$Type();
1996
+ // @generated message type with reflection information, may provide speed optimized methods
1997
+ class AddTextAreaWidgetRequest$Type extends MessageType<AddTextAreaWidgetRequest> {
1998
+ constructor() {
1999
+ super("devvit.plugin.redditapi.widgets.AddTextAreaWidgetRequest", [
2000
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2001
+ { no: 2, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2002
+ { no: 3, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2003
+ { no: 4, name: "styles", kind: "message", T: () => WidgetStyles }
2004
+ ]);
2005
+ }
2006
+ create(value?: PartialMessage<AddTextAreaWidgetRequest>): AddTextAreaWidgetRequest {
2007
+ const message = globalThis.Object.create((this.messagePrototype!));
2008
+ message.subreddit = "";
2009
+ message.shortName = "";
2010
+ message.text = "";
2011
+ if (value !== undefined)
2012
+ reflectionMergePartial<AddTextAreaWidgetRequest>(this, message, value);
2013
+ return message;
2014
+ }
2015
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddTextAreaWidgetRequest): AddTextAreaWidgetRequest {
2016
+ let message = target ?? this.create(), end = reader.pos + length;
2017
+ while (reader.pos < end) {
2018
+ let [fieldNo, wireType] = reader.tag();
2019
+ switch (fieldNo) {
2020
+ case /* string subreddit */ 1:
2021
+ message.subreddit = reader.string();
2022
+ break;
2023
+ case /* string short_name */ 2:
2024
+ message.shortName = reader.string();
2025
+ break;
2026
+ case /* string text */ 3:
2027
+ message.text = reader.string();
2028
+ break;
2029
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 4:
2030
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2031
+ break;
2032
+ default:
2033
+ let u = options.readUnknownField;
2034
+ if (u === "throw")
2035
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2036
+ let d = reader.skip(wireType);
2037
+ if (u !== false)
2038
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2039
+ }
2040
+ }
2041
+ return message;
2042
+ }
2043
+ internalBinaryWrite(message: AddTextAreaWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2044
+ /* string subreddit = 1; */
2045
+ if (message.subreddit !== "")
2046
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
2047
+ /* string short_name = 2; */
2048
+ if (message.shortName !== "")
2049
+ writer.tag(2, WireType.LengthDelimited).string(message.shortName);
2050
+ /* string text = 3; */
2051
+ if (message.text !== "")
2052
+ writer.tag(3, WireType.LengthDelimited).string(message.text);
2053
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 4; */
2054
+ if (message.styles)
2055
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2056
+ let u = options.writeUnknownFields;
2057
+ if (u !== false)
2058
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2059
+ return writer;
2060
+ }
2061
+ }
2062
+ /**
2063
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddTextAreaWidgetRequest
2064
+ */
2065
+ export const AddTextAreaWidgetRequest = new AddTextAreaWidgetRequest$Type();
2066
+ // @generated message type with reflection information, may provide speed optimized methods
2067
+ class UpdateTextAreaWidgetRequest$Type extends MessageType<UpdateTextAreaWidgetRequest> {
2068
+ constructor() {
2069
+ super("devvit.plugin.redditapi.widgets.UpdateTextAreaWidgetRequest", [
2070
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2071
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2072
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2073
+ { no: 4, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2074
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
2075
+ ]);
2076
+ }
2077
+ create(value?: PartialMessage<UpdateTextAreaWidgetRequest>): UpdateTextAreaWidgetRequest {
2078
+ const message = globalThis.Object.create((this.messagePrototype!));
2079
+ message.subreddit = "";
2080
+ message.id = "";
2081
+ message.shortName = "";
2082
+ message.text = "";
2083
+ if (value !== undefined)
2084
+ reflectionMergePartial<UpdateTextAreaWidgetRequest>(this, message, value);
2085
+ return message;
2086
+ }
2087
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateTextAreaWidgetRequest): UpdateTextAreaWidgetRequest {
2088
+ let message = target ?? this.create(), end = reader.pos + length;
2089
+ while (reader.pos < end) {
2090
+ let [fieldNo, wireType] = reader.tag();
2091
+ switch (fieldNo) {
2092
+ case /* string subreddit */ 1:
2093
+ message.subreddit = reader.string();
2094
+ break;
2095
+ case /* string id */ 2:
2096
+ message.id = reader.string();
2097
+ break;
2098
+ case /* string short_name */ 3:
2099
+ message.shortName = reader.string();
2100
+ break;
2101
+ case /* string text */ 4:
2102
+ message.text = reader.string();
2103
+ break;
2104
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
2105
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2106
+ break;
2107
+ default:
2108
+ let u = options.readUnknownField;
2109
+ if (u === "throw")
2110
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2111
+ let d = reader.skip(wireType);
2112
+ if (u !== false)
2113
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2114
+ }
2115
+ }
2116
+ return message;
2117
+ }
2118
+ internalBinaryWrite(message: UpdateTextAreaWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2119
+ /* string subreddit = 1; */
2120
+ if (message.subreddit !== "")
2121
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
2122
+ /* string id = 2; */
2123
+ if (message.id !== "")
2124
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
2125
+ /* string short_name = 3; */
2126
+ if (message.shortName !== "")
2127
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
2128
+ /* string text = 4; */
2129
+ if (message.text !== "")
2130
+ writer.tag(4, WireType.LengthDelimited).string(message.text);
2131
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
2132
+ if (message.styles)
2133
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2134
+ let u = options.writeUnknownFields;
2135
+ if (u !== false)
2136
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2137
+ return writer;
2138
+ }
2139
+ }
2140
+ /**
2141
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateTextAreaWidgetRequest
2142
+ */
2143
+ export const UpdateTextAreaWidgetRequest = new UpdateTextAreaWidgetRequest$Type();
2144
+ // @generated message type with reflection information, may provide speed optimized methods
2145
+ class WidgetButton$Type extends MessageType<WidgetButton> {
2146
+ constructor() {
2147
+ super("devvit.plugin.redditapi.widgets.WidgetButton", [
2148
+ { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2149
+ { no: 2, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2150
+ { no: 3, name: "url", kind: "message", T: () => StringValue },
2151
+ { no: 4, name: "image_url", kind: "message", T: () => StringValue },
2152
+ { no: 5, name: "link_url", kind: "message", T: () => StringValue },
2153
+ { no: 6, name: "color", kind: "message", T: () => StringValue },
2154
+ { no: 7, name: "fill_color", kind: "message", T: () => StringValue },
2155
+ { no: 8, name: "text_color", kind: "message", T: () => StringValue },
2156
+ { no: 9, name: "height", kind: "message", T: () => Int32Value },
2157
+ { no: 10, name: "width", kind: "message", T: () => Int32Value },
2158
+ { no: 11, name: "hover_state", kind: "message", T: () => WidgetButton_HoverState }
2159
+ ]);
2160
+ }
2161
+ create(value?: PartialMessage<WidgetButton>): WidgetButton {
2162
+ const message = globalThis.Object.create((this.messagePrototype!));
2163
+ message.kind = "";
2164
+ message.text = "";
2165
+ if (value !== undefined)
2166
+ reflectionMergePartial<WidgetButton>(this, message, value);
2167
+ return message;
2168
+ }
2169
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WidgetButton): WidgetButton {
2170
+ let message = target ?? this.create(), end = reader.pos + length;
2171
+ while (reader.pos < end) {
2172
+ let [fieldNo, wireType] = reader.tag();
2173
+ switch (fieldNo) {
2174
+ case /* string kind */ 1:
2175
+ message.kind = reader.string();
2176
+ break;
2177
+ case /* string text */ 2:
2178
+ message.text = reader.string();
2179
+ break;
2180
+ case /* google.protobuf.StringValue url */ 3:
2181
+ message.url = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.url);
2182
+ break;
2183
+ case /* google.protobuf.StringValue image_url */ 4:
2184
+ message.imageUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.imageUrl);
2185
+ break;
2186
+ case /* google.protobuf.StringValue link_url */ 5:
2187
+ message.linkUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkUrl);
2188
+ break;
2189
+ case /* google.protobuf.StringValue color */ 6:
2190
+ message.color = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.color);
2191
+ break;
2192
+ case /* google.protobuf.StringValue fill_color */ 7:
2193
+ message.fillColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.fillColor);
2194
+ break;
2195
+ case /* google.protobuf.StringValue text_color */ 8:
2196
+ message.textColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.textColor);
2197
+ break;
2198
+ case /* google.protobuf.Int32Value height */ 9:
2199
+ message.height = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.height);
2200
+ break;
2201
+ case /* google.protobuf.Int32Value width */ 10:
2202
+ message.width = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.width);
2203
+ break;
2204
+ case /* devvit.plugin.redditapi.widgets.WidgetButton.HoverState hover_state */ 11:
2205
+ message.hoverState = WidgetButton_HoverState.internalBinaryRead(reader, reader.uint32(), options, message.hoverState);
2206
+ break;
2207
+ default:
2208
+ let u = options.readUnknownField;
2209
+ if (u === "throw")
2210
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2211
+ let d = reader.skip(wireType);
2212
+ if (u !== false)
2213
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2214
+ }
2215
+ }
2216
+ return message;
2217
+ }
2218
+ internalBinaryWrite(message: WidgetButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2219
+ /* string kind = 1; */
2220
+ if (message.kind !== "")
2221
+ writer.tag(1, WireType.LengthDelimited).string(message.kind);
2222
+ /* string text = 2; */
2223
+ if (message.text !== "")
2224
+ writer.tag(2, WireType.LengthDelimited).string(message.text);
2225
+ /* google.protobuf.StringValue url = 3; */
2226
+ if (message.url)
2227
+ StringValue.internalBinaryWrite(message.url, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2228
+ /* google.protobuf.StringValue image_url = 4; */
2229
+ if (message.imageUrl)
2230
+ StringValue.internalBinaryWrite(message.imageUrl, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2231
+ /* google.protobuf.StringValue link_url = 5; */
2232
+ if (message.linkUrl)
2233
+ StringValue.internalBinaryWrite(message.linkUrl, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2234
+ /* google.protobuf.StringValue color = 6; */
2235
+ if (message.color)
2236
+ StringValue.internalBinaryWrite(message.color, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2237
+ /* google.protobuf.StringValue fill_color = 7; */
2238
+ if (message.fillColor)
2239
+ StringValue.internalBinaryWrite(message.fillColor, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2240
+ /* google.protobuf.StringValue text_color = 8; */
2241
+ if (message.textColor)
2242
+ StringValue.internalBinaryWrite(message.textColor, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2243
+ /* google.protobuf.Int32Value height = 9; */
2244
+ if (message.height)
2245
+ Int32Value.internalBinaryWrite(message.height, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
2246
+ /* google.protobuf.Int32Value width = 10; */
2247
+ if (message.width)
2248
+ Int32Value.internalBinaryWrite(message.width, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
2249
+ /* devvit.plugin.redditapi.widgets.WidgetButton.HoverState hover_state = 11; */
2250
+ if (message.hoverState)
2251
+ WidgetButton_HoverState.internalBinaryWrite(message.hoverState, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
2252
+ let u = options.writeUnknownFields;
2253
+ if (u !== false)
2254
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2255
+ return writer;
2256
+ }
2257
+ }
2258
+ /**
2259
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.WidgetButton
2260
+ */
2261
+ export const WidgetButton = new WidgetButton$Type();
2262
+ // @generated message type with reflection information, may provide speed optimized methods
2263
+ class WidgetButton_HoverState$Type extends MessageType<WidgetButton_HoverState> {
2264
+ constructor() {
2265
+ super("devvit.plugin.redditapi.widgets.WidgetButton.HoverState", [
2266
+ { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2267
+ { no: 2, name: "color", kind: "message", T: () => StringValue },
2268
+ { no: 3, name: "fill_color", kind: "message", T: () => StringValue },
2269
+ { no: 4, name: "text", kind: "message", T: () => StringValue },
2270
+ { no: 5, name: "text_color", kind: "message", T: () => StringValue },
2271
+ { no: 6, name: "image_url", kind: "message", T: () => StringValue },
2272
+ { no: 7, name: "height", kind: "message", T: () => Int32Value },
2273
+ { no: 8, name: "width", kind: "message", T: () => Int32Value }
2274
+ ]);
2275
+ }
2276
+ create(value?: PartialMessage<WidgetButton_HoverState>): WidgetButton_HoverState {
2277
+ const message = globalThis.Object.create((this.messagePrototype!));
2278
+ message.kind = "";
2279
+ if (value !== undefined)
2280
+ reflectionMergePartial<WidgetButton_HoverState>(this, message, value);
2281
+ return message;
2282
+ }
2283
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WidgetButton_HoverState): WidgetButton_HoverState {
2284
+ let message = target ?? this.create(), end = reader.pos + length;
2285
+ while (reader.pos < end) {
2286
+ let [fieldNo, wireType] = reader.tag();
2287
+ switch (fieldNo) {
2288
+ case /* string kind */ 1:
2289
+ message.kind = reader.string();
2290
+ break;
2291
+ case /* google.protobuf.StringValue color */ 2:
2292
+ message.color = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.color);
2293
+ break;
2294
+ case /* google.protobuf.StringValue fill_color */ 3:
2295
+ message.fillColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.fillColor);
2296
+ break;
2297
+ case /* google.protobuf.StringValue text */ 4:
2298
+ message.text = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.text);
2299
+ break;
2300
+ case /* google.protobuf.StringValue text_color */ 5:
2301
+ message.textColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.textColor);
2302
+ break;
2303
+ case /* google.protobuf.StringValue image_url */ 6:
2304
+ message.imageUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.imageUrl);
2305
+ break;
2306
+ case /* google.protobuf.Int32Value height */ 7:
2307
+ message.height = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.height);
2308
+ break;
2309
+ case /* google.protobuf.Int32Value width */ 8:
2310
+ message.width = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.width);
2311
+ break;
2312
+ default:
2313
+ let u = options.readUnknownField;
2314
+ if (u === "throw")
2315
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2316
+ let d = reader.skip(wireType);
2317
+ if (u !== false)
2318
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2319
+ }
2320
+ }
2321
+ return message;
2322
+ }
2323
+ internalBinaryWrite(message: WidgetButton_HoverState, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2324
+ /* string kind = 1; */
2325
+ if (message.kind !== "")
2326
+ writer.tag(1, WireType.LengthDelimited).string(message.kind);
2327
+ /* google.protobuf.StringValue color = 2; */
2328
+ if (message.color)
2329
+ StringValue.internalBinaryWrite(message.color, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2330
+ /* google.protobuf.StringValue fill_color = 3; */
2331
+ if (message.fillColor)
2332
+ StringValue.internalBinaryWrite(message.fillColor, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2333
+ /* google.protobuf.StringValue text = 4; */
2334
+ if (message.text)
2335
+ StringValue.internalBinaryWrite(message.text, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2336
+ /* google.protobuf.StringValue text_color = 5; */
2337
+ if (message.textColor)
2338
+ StringValue.internalBinaryWrite(message.textColor, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2339
+ /* google.protobuf.StringValue image_url = 6; */
2340
+ if (message.imageUrl)
2341
+ StringValue.internalBinaryWrite(message.imageUrl, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2342
+ /* google.protobuf.Int32Value height = 7; */
2343
+ if (message.height)
2344
+ Int32Value.internalBinaryWrite(message.height, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2345
+ /* google.protobuf.Int32Value width = 8; */
2346
+ if (message.width)
2347
+ Int32Value.internalBinaryWrite(message.width, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2348
+ let u = options.writeUnknownFields;
2349
+ if (u !== false)
2350
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2351
+ return writer;
2352
+ }
2353
+ }
2354
+ /**
2355
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.WidgetButton.HoverState
2356
+ */
2357
+ export const WidgetButton_HoverState = new WidgetButton_HoverState$Type();
2358
+ // @generated message type with reflection information, may provide speed optimized methods
2359
+ class ButtonWidget$Type extends MessageType<ButtonWidget> {
2360
+ constructor() {
2361
+ super("devvit.plugin.redditapi.widgets.ButtonWidget", [
2362
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2363
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2364
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2365
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2366
+ { no: 5, name: "buttons", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetButton },
2367
+ { no: 6, name: "styles", kind: "message", T: () => WidgetStyles }
2368
+ ]);
2369
+ }
2370
+ create(value?: PartialMessage<ButtonWidget>): ButtonWidget {
2371
+ const message = globalThis.Object.create((this.messagePrototype!));
2372
+ message.id = "";
2373
+ message.kind = "";
2374
+ message.shortName = "";
2375
+ message.description = "";
2376
+ message.buttons = [];
2377
+ if (value !== undefined)
2378
+ reflectionMergePartial<ButtonWidget>(this, message, value);
2379
+ return message;
2380
+ }
2381
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ButtonWidget): ButtonWidget {
2382
+ let message = target ?? this.create(), end = reader.pos + length;
2383
+ while (reader.pos < end) {
2384
+ let [fieldNo, wireType] = reader.tag();
2385
+ switch (fieldNo) {
2386
+ case /* string id */ 1:
2387
+ message.id = reader.string();
2388
+ break;
2389
+ case /* string kind */ 2:
2390
+ message.kind = reader.string();
2391
+ break;
2392
+ case /* string short_name */ 3:
2393
+ message.shortName = reader.string();
2394
+ break;
2395
+ case /* string description */ 4:
2396
+ message.description = reader.string();
2397
+ break;
2398
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons */ 5:
2399
+ message.buttons.push(WidgetButton.internalBinaryRead(reader, reader.uint32(), options));
2400
+ break;
2401
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 6:
2402
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2403
+ break;
2404
+ default:
2405
+ let u = options.readUnknownField;
2406
+ if (u === "throw")
2407
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2408
+ let d = reader.skip(wireType);
2409
+ if (u !== false)
2410
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2411
+ }
2412
+ }
2413
+ return message;
2414
+ }
2415
+ internalBinaryWrite(message: ButtonWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2416
+ /* string id = 1; */
2417
+ if (message.id !== "")
2418
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
2419
+ /* string kind = 2; */
2420
+ if (message.kind !== "")
2421
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
2422
+ /* string short_name = 3; */
2423
+ if (message.shortName !== "")
2424
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
2425
+ /* string description = 4; */
2426
+ if (message.description !== "")
2427
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
2428
+ /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 5; */
2429
+ for (let i = 0; i < message.buttons.length; i++)
2430
+ WidgetButton.internalBinaryWrite(message.buttons[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2431
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 6; */
2432
+ if (message.styles)
2433
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2434
+ let u = options.writeUnknownFields;
2435
+ if (u !== false)
2436
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2437
+ return writer;
2438
+ }
2439
+ }
2440
+ /**
2441
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.ButtonWidget
2442
+ */
2443
+ export const ButtonWidget = new ButtonWidget$Type();
2444
+ // @generated message type with reflection information, may provide speed optimized methods
2445
+ class AddButtonWidgetRequest$Type extends MessageType<AddButtonWidgetRequest> {
2446
+ constructor() {
2447
+ super("devvit.plugin.redditapi.widgets.AddButtonWidgetRequest", [
2448
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2449
+ { no: 2, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2450
+ { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2451
+ { no: 4, name: "buttons", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetButton },
2452
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
2453
+ ]);
2454
+ }
2455
+ create(value?: PartialMessage<AddButtonWidgetRequest>): AddButtonWidgetRequest {
2456
+ const message = globalThis.Object.create((this.messagePrototype!));
2457
+ message.subreddit = "";
2458
+ message.shortName = "";
2459
+ message.description = "";
2460
+ message.buttons = [];
2461
+ if (value !== undefined)
2462
+ reflectionMergePartial<AddButtonWidgetRequest>(this, message, value);
2463
+ return message;
2464
+ }
2465
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddButtonWidgetRequest): AddButtonWidgetRequest {
2466
+ let message = target ?? this.create(), end = reader.pos + length;
2467
+ while (reader.pos < end) {
2468
+ let [fieldNo, wireType] = reader.tag();
2469
+ switch (fieldNo) {
2470
+ case /* string subreddit */ 1:
2471
+ message.subreddit = reader.string();
2472
+ break;
2473
+ case /* string short_name */ 2:
2474
+ message.shortName = reader.string();
2475
+ break;
2476
+ case /* string description */ 3:
2477
+ message.description = reader.string();
2478
+ break;
2479
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons */ 4:
2480
+ message.buttons.push(WidgetButton.internalBinaryRead(reader, reader.uint32(), options));
2481
+ break;
2482
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
2483
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2484
+ break;
2485
+ default:
2486
+ let u = options.readUnknownField;
2487
+ if (u === "throw")
2488
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2489
+ let d = reader.skip(wireType);
2490
+ if (u !== false)
2491
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2492
+ }
2493
+ }
2494
+ return message;
2495
+ }
2496
+ internalBinaryWrite(message: AddButtonWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2497
+ /* string subreddit = 1; */
2498
+ if (message.subreddit !== "")
2499
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
2500
+ /* string short_name = 2; */
2501
+ if (message.shortName !== "")
2502
+ writer.tag(2, WireType.LengthDelimited).string(message.shortName);
2503
+ /* string description = 3; */
2504
+ if (message.description !== "")
2505
+ writer.tag(3, WireType.LengthDelimited).string(message.description);
2506
+ /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 4; */
2507
+ for (let i = 0; i < message.buttons.length; i++)
2508
+ WidgetButton.internalBinaryWrite(message.buttons[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2509
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
2510
+ if (message.styles)
2511
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2512
+ let u = options.writeUnknownFields;
2513
+ if (u !== false)
2514
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2515
+ return writer;
2516
+ }
2517
+ }
2518
+ /**
2519
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddButtonWidgetRequest
2520
+ */
2521
+ export const AddButtonWidgetRequest = new AddButtonWidgetRequest$Type();
2522
+ // @generated message type with reflection information, may provide speed optimized methods
2523
+ class UpdateButtonWidgetRequest$Type extends MessageType<UpdateButtonWidgetRequest> {
2524
+ constructor() {
2525
+ super("devvit.plugin.redditapi.widgets.UpdateButtonWidgetRequest", [
2526
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2527
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2528
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2529
+ { no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2530
+ { no: 5, name: "buttons", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetButton },
2531
+ { no: 6, name: "styles", kind: "message", T: () => WidgetStyles }
2532
+ ]);
2533
+ }
2534
+ create(value?: PartialMessage<UpdateButtonWidgetRequest>): UpdateButtonWidgetRequest {
2535
+ const message = globalThis.Object.create((this.messagePrototype!));
2536
+ message.subreddit = "";
2537
+ message.id = "";
2538
+ message.shortName = "";
2539
+ message.description = "";
2540
+ message.buttons = [];
2541
+ if (value !== undefined)
2542
+ reflectionMergePartial<UpdateButtonWidgetRequest>(this, message, value);
2543
+ return message;
2544
+ }
2545
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateButtonWidgetRequest): UpdateButtonWidgetRequest {
2546
+ let message = target ?? this.create(), end = reader.pos + length;
2547
+ while (reader.pos < end) {
2548
+ let [fieldNo, wireType] = reader.tag();
2549
+ switch (fieldNo) {
2550
+ case /* string subreddit */ 1:
2551
+ message.subreddit = reader.string();
2552
+ break;
2553
+ case /* string id */ 2:
2554
+ message.id = reader.string();
2555
+ break;
2556
+ case /* string short_name */ 3:
2557
+ message.shortName = reader.string();
2558
+ break;
2559
+ case /* string description */ 4:
2560
+ message.description = reader.string();
2561
+ break;
2562
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons */ 5:
2563
+ message.buttons.push(WidgetButton.internalBinaryRead(reader, reader.uint32(), options));
2564
+ break;
2565
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 6:
2566
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2567
+ break;
2568
+ default:
2569
+ let u = options.readUnknownField;
2570
+ if (u === "throw")
2571
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2572
+ let d = reader.skip(wireType);
2573
+ if (u !== false)
2574
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2575
+ }
2576
+ }
2577
+ return message;
2578
+ }
2579
+ internalBinaryWrite(message: UpdateButtonWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2580
+ /* string subreddit = 1; */
2581
+ if (message.subreddit !== "")
2582
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
2583
+ /* string id = 2; */
2584
+ if (message.id !== "")
2585
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
2586
+ /* string short_name = 3; */
2587
+ if (message.shortName !== "")
2588
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
2589
+ /* string description = 4; */
2590
+ if (message.description !== "")
2591
+ writer.tag(4, WireType.LengthDelimited).string(message.description);
2592
+ /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 5; */
2593
+ for (let i = 0; i < message.buttons.length; i++)
2594
+ WidgetButton.internalBinaryWrite(message.buttons[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2595
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 6; */
2596
+ if (message.styles)
2597
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2598
+ let u = options.writeUnknownFields;
2599
+ if (u !== false)
2600
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2601
+ return writer;
2602
+ }
2603
+ }
2604
+ /**
2605
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateButtonWidgetRequest
2606
+ */
2607
+ export const UpdateButtonWidgetRequest = new UpdateButtonWidgetRequest$Type();
2608
+ // @generated message type with reflection information, may provide speed optimized methods
2609
+ class CommunityListWidget$Type extends MessageType<CommunityListWidget> {
2610
+ constructor() {
2611
+ super("devvit.plugin.redditapi.widgets.CommunityListWidget", [
2612
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2613
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2614
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2615
+ { no: 4, name: "data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => CommunityListWidget_CommunityData },
2616
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
2617
+ ]);
2618
+ }
2619
+ create(value?: PartialMessage<CommunityListWidget>): CommunityListWidget {
2620
+ const message = globalThis.Object.create((this.messagePrototype!));
2621
+ message.id = "";
2622
+ message.kind = "";
2623
+ message.shortName = "";
2624
+ message.data = [];
2625
+ if (value !== undefined)
2626
+ reflectionMergePartial<CommunityListWidget>(this, message, value);
2627
+ return message;
2628
+ }
2629
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CommunityListWidget): CommunityListWidget {
2630
+ let message = target ?? this.create(), end = reader.pos + length;
2631
+ while (reader.pos < end) {
2632
+ let [fieldNo, wireType] = reader.tag();
2633
+ switch (fieldNo) {
2634
+ case /* string id */ 1:
2635
+ message.id = reader.string();
2636
+ break;
2637
+ case /* string kind */ 2:
2638
+ message.kind = reader.string();
2639
+ break;
2640
+ case /* string short_name */ 3:
2641
+ message.shortName = reader.string();
2642
+ break;
2643
+ case /* repeated devvit.plugin.redditapi.widgets.CommunityListWidget.CommunityData data */ 4:
2644
+ message.data.push(CommunityListWidget_CommunityData.internalBinaryRead(reader, reader.uint32(), options));
2645
+ break;
2646
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
2647
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2648
+ break;
2649
+ default:
2650
+ let u = options.readUnknownField;
2651
+ if (u === "throw")
2652
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2653
+ let d = reader.skip(wireType);
2654
+ if (u !== false)
2655
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2656
+ }
2657
+ }
2658
+ return message;
2659
+ }
2660
+ internalBinaryWrite(message: CommunityListWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2661
+ /* string id = 1; */
2662
+ if (message.id !== "")
2663
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
2664
+ /* string kind = 2; */
2665
+ if (message.kind !== "")
2666
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
2667
+ /* string short_name = 3; */
2668
+ if (message.shortName !== "")
2669
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
2670
+ /* repeated devvit.plugin.redditapi.widgets.CommunityListWidget.CommunityData data = 4; */
2671
+ for (let i = 0; i < message.data.length; i++)
2672
+ CommunityListWidget_CommunityData.internalBinaryWrite(message.data[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2673
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
2674
+ if (message.styles)
2675
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2676
+ let u = options.writeUnknownFields;
2677
+ if (u !== false)
2678
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2679
+ return writer;
2680
+ }
2681
+ }
2682
+ /**
2683
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.CommunityListWidget
2684
+ */
2685
+ export const CommunityListWidget = new CommunityListWidget$Type();
2686
+ // @generated message type with reflection information, may provide speed optimized methods
2687
+ class CommunityListWidget_CommunityData$Type extends MessageType<CommunityListWidget_CommunityData> {
2688
+ constructor() {
2689
+ super("devvit.plugin.redditapi.widgets.CommunityListWidget.CommunityData", [
2690
+ { no: 1, name: "community_icon", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2691
+ { no: 2, name: "icon_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2692
+ { no: 3, name: "is_nsfw", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2693
+ { no: 4, name: "is_subscribed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
2694
+ { no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2695
+ { no: 6, name: "prefixed_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2696
+ { no: 7, name: "primary_color", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2697
+ { no: 8, name: "subscribers", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2698
+ { no: 9, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2699
+ ]);
2700
+ }
2701
+ create(value?: PartialMessage<CommunityListWidget_CommunityData>): CommunityListWidget_CommunityData {
2702
+ const message = globalThis.Object.create((this.messagePrototype!));
2703
+ message.communityIcon = "";
2704
+ message.iconUrl = "";
2705
+ message.isNsfw = false;
2706
+ message.isSubscribed = false;
2707
+ message.name = "";
2708
+ message.prefixedName = "";
2709
+ message.primaryColor = "";
2710
+ message.subscribers = 0;
2711
+ message.type = "";
2712
+ if (value !== undefined)
2713
+ reflectionMergePartial<CommunityListWidget_CommunityData>(this, message, value);
2714
+ return message;
2715
+ }
2716
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CommunityListWidget_CommunityData): CommunityListWidget_CommunityData {
2717
+ let message = target ?? this.create(), end = reader.pos + length;
2718
+ while (reader.pos < end) {
2719
+ let [fieldNo, wireType] = reader.tag();
2720
+ switch (fieldNo) {
2721
+ case /* string community_icon */ 1:
2722
+ message.communityIcon = reader.string();
2723
+ break;
2724
+ case /* string icon_url */ 2:
2725
+ message.iconUrl = reader.string();
2726
+ break;
2727
+ case /* bool is_nsfw */ 3:
2728
+ message.isNsfw = reader.bool();
2729
+ break;
2730
+ case /* bool is_subscribed */ 4:
2731
+ message.isSubscribed = reader.bool();
2732
+ break;
2733
+ case /* string name */ 5:
2734
+ message.name = reader.string();
2735
+ break;
2736
+ case /* string prefixed_name */ 6:
2737
+ message.prefixedName = reader.string();
2738
+ break;
2739
+ case /* string primary_color */ 7:
2740
+ message.primaryColor = reader.string();
2741
+ break;
2742
+ case /* int32 subscribers */ 8:
2743
+ message.subscribers = reader.int32();
2744
+ break;
2745
+ case /* string type */ 9:
2746
+ message.type = reader.string();
2747
+ break;
2748
+ default:
2749
+ let u = options.readUnknownField;
2750
+ if (u === "throw")
2751
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2752
+ let d = reader.skip(wireType);
2753
+ if (u !== false)
2754
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2755
+ }
2756
+ }
2757
+ return message;
2758
+ }
2759
+ internalBinaryWrite(message: CommunityListWidget_CommunityData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2760
+ /* string community_icon = 1; */
2761
+ if (message.communityIcon !== "")
2762
+ writer.tag(1, WireType.LengthDelimited).string(message.communityIcon);
2763
+ /* string icon_url = 2; */
2764
+ if (message.iconUrl !== "")
2765
+ writer.tag(2, WireType.LengthDelimited).string(message.iconUrl);
2766
+ /* bool is_nsfw = 3; */
2767
+ if (message.isNsfw !== false)
2768
+ writer.tag(3, WireType.Varint).bool(message.isNsfw);
2769
+ /* bool is_subscribed = 4; */
2770
+ if (message.isSubscribed !== false)
2771
+ writer.tag(4, WireType.Varint).bool(message.isSubscribed);
2772
+ /* string name = 5; */
2773
+ if (message.name !== "")
2774
+ writer.tag(5, WireType.LengthDelimited).string(message.name);
2775
+ /* string prefixed_name = 6; */
2776
+ if (message.prefixedName !== "")
2777
+ writer.tag(6, WireType.LengthDelimited).string(message.prefixedName);
2778
+ /* string primary_color = 7; */
2779
+ if (message.primaryColor !== "")
2780
+ writer.tag(7, WireType.LengthDelimited).string(message.primaryColor);
2781
+ /* int32 subscribers = 8; */
2782
+ if (message.subscribers !== 0)
2783
+ writer.tag(8, WireType.Varint).int32(message.subscribers);
2784
+ /* string type = 9; */
2785
+ if (message.type !== "")
2786
+ writer.tag(9, WireType.LengthDelimited).string(message.type);
2787
+ let u = options.writeUnknownFields;
2788
+ if (u !== false)
2789
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2790
+ return writer;
2791
+ }
2792
+ }
2793
+ /**
2794
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.CommunityListWidget.CommunityData
2795
+ */
2796
+ export const CommunityListWidget_CommunityData = new CommunityListWidget_CommunityData$Type();
2797
+ // @generated message type with reflection information, may provide speed optimized methods
2798
+ class AddCommunityListWidgetRequest$Type extends MessageType<AddCommunityListWidgetRequest> {
2799
+ constructor() {
2800
+ super("devvit.plugin.redditapi.widgets.AddCommunityListWidgetRequest", [
2801
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2802
+ { no: 2, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2803
+ { no: 3, name: "data", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2804
+ { no: 4, name: "styles", kind: "message", T: () => WidgetStyles }
2805
+ ]);
2806
+ }
2807
+ create(value?: PartialMessage<AddCommunityListWidgetRequest>): AddCommunityListWidgetRequest {
2808
+ const message = globalThis.Object.create((this.messagePrototype!));
2809
+ message.subreddit = "";
2810
+ message.shortName = "";
2811
+ message.data = [];
2812
+ if (value !== undefined)
2813
+ reflectionMergePartial<AddCommunityListWidgetRequest>(this, message, value);
2814
+ return message;
2815
+ }
2816
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddCommunityListWidgetRequest): AddCommunityListWidgetRequest {
2817
+ let message = target ?? this.create(), end = reader.pos + length;
2818
+ while (reader.pos < end) {
2819
+ let [fieldNo, wireType] = reader.tag();
2820
+ switch (fieldNo) {
2821
+ case /* string subreddit */ 1:
2822
+ message.subreddit = reader.string();
2823
+ break;
2824
+ case /* string short_name */ 2:
2825
+ message.shortName = reader.string();
2826
+ break;
2827
+ case /* repeated string data */ 3:
2828
+ message.data.push(reader.string());
2829
+ break;
2830
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 4:
2831
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2832
+ break;
2833
+ default:
2834
+ let u = options.readUnknownField;
2835
+ if (u === "throw")
2836
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2837
+ let d = reader.skip(wireType);
2838
+ if (u !== false)
2839
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2840
+ }
2841
+ }
2842
+ return message;
2843
+ }
2844
+ internalBinaryWrite(message: AddCommunityListWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2845
+ /* string subreddit = 1; */
2846
+ if (message.subreddit !== "")
2847
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
2848
+ /* string short_name = 2; */
2849
+ if (message.shortName !== "")
2850
+ writer.tag(2, WireType.LengthDelimited).string(message.shortName);
2851
+ /* repeated string data = 3; */
2852
+ for (let i = 0; i < message.data.length; i++)
2853
+ writer.tag(3, WireType.LengthDelimited).string(message.data[i]);
2854
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 4; */
2855
+ if (message.styles)
2856
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2857
+ let u = options.writeUnknownFields;
2858
+ if (u !== false)
2859
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2860
+ return writer;
2861
+ }
2862
+ }
2863
+ /**
2864
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddCommunityListWidgetRequest
2865
+ */
2866
+ export const AddCommunityListWidgetRequest = new AddCommunityListWidgetRequest$Type();
2867
+ // @generated message type with reflection information, may provide speed optimized methods
2868
+ class UpdateCommunityListWidgetRequest$Type extends MessageType<UpdateCommunityListWidgetRequest> {
2869
+ constructor() {
2870
+ super("devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetRequest", [
2871
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2872
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2873
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2874
+ { no: 4, name: "data", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2875
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
2876
+ ]);
2877
+ }
2878
+ create(value?: PartialMessage<UpdateCommunityListWidgetRequest>): UpdateCommunityListWidgetRequest {
2879
+ const message = globalThis.Object.create((this.messagePrototype!));
2880
+ message.subreddit = "";
2881
+ message.id = "";
2882
+ message.shortName = "";
2883
+ message.data = [];
2884
+ if (value !== undefined)
2885
+ reflectionMergePartial<UpdateCommunityListWidgetRequest>(this, message, value);
2886
+ return message;
2887
+ }
2888
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommunityListWidgetRequest): UpdateCommunityListWidgetRequest {
2889
+ let message = target ?? this.create(), end = reader.pos + length;
2890
+ while (reader.pos < end) {
2891
+ let [fieldNo, wireType] = reader.tag();
2892
+ switch (fieldNo) {
2893
+ case /* string subreddit */ 1:
2894
+ message.subreddit = reader.string();
2895
+ break;
2896
+ case /* string id */ 2:
2897
+ message.id = reader.string();
2898
+ break;
2899
+ case /* string short_name */ 3:
2900
+ message.shortName = reader.string();
2901
+ break;
2902
+ case /* repeated string data */ 4:
2903
+ message.data.push(reader.string());
2904
+ break;
2905
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
2906
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2907
+ break;
2908
+ default:
2909
+ let u = options.readUnknownField;
2910
+ if (u === "throw")
2911
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2912
+ let d = reader.skip(wireType);
2913
+ if (u !== false)
2914
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2915
+ }
2916
+ }
2917
+ return message;
2918
+ }
2919
+ internalBinaryWrite(message: UpdateCommunityListWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2920
+ /* string subreddit = 1; */
2921
+ if (message.subreddit !== "")
2922
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
2923
+ /* string id = 2; */
2924
+ if (message.id !== "")
2925
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
2926
+ /* string short_name = 3; */
2927
+ if (message.shortName !== "")
2928
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
2929
+ /* repeated string data = 4; */
2930
+ for (let i = 0; i < message.data.length; i++)
2931
+ writer.tag(4, WireType.LengthDelimited).string(message.data[i]);
2932
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
2933
+ if (message.styles)
2934
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2935
+ let u = options.writeUnknownFields;
2936
+ if (u !== false)
2937
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2938
+ return writer;
2939
+ }
2940
+ }
2941
+ /**
2942
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetRequest
2943
+ */
2944
+ export const UpdateCommunityListWidgetRequest = new UpdateCommunityListWidgetRequest$Type();
2945
+ // @generated message type with reflection information, may provide speed optimized methods
2946
+ class UpdateCommunityListWidgetResponse$Type extends MessageType<UpdateCommunityListWidgetResponse> {
2947
+ constructor() {
2948
+ super("devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetResponse", [
2949
+ { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2950
+ { no: 2, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2951
+ { no: 3, name: "data", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2952
+ { no: 4, name: "styles", kind: "message", T: () => WidgetStyles }
2953
+ ]);
2954
+ }
2955
+ create(value?: PartialMessage<UpdateCommunityListWidgetResponse>): UpdateCommunityListWidgetResponse {
2956
+ const message = globalThis.Object.create((this.messagePrototype!));
2957
+ message.kind = "";
2958
+ message.shortName = "";
2959
+ message.data = [];
2960
+ if (value !== undefined)
2961
+ reflectionMergePartial<UpdateCommunityListWidgetResponse>(this, message, value);
2962
+ return message;
2963
+ }
2964
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCommunityListWidgetResponse): UpdateCommunityListWidgetResponse {
2965
+ let message = target ?? this.create(), end = reader.pos + length;
2966
+ while (reader.pos < end) {
2967
+ let [fieldNo, wireType] = reader.tag();
2968
+ switch (fieldNo) {
2969
+ case /* string kind */ 1:
2970
+ message.kind = reader.string();
2971
+ break;
2972
+ case /* string short_name */ 2:
2973
+ message.shortName = reader.string();
2974
+ break;
2975
+ case /* repeated string data */ 3:
2976
+ message.data.push(reader.string());
2977
+ break;
2978
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 4:
2979
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
2980
+ break;
2981
+ default:
2982
+ let u = options.readUnknownField;
2983
+ if (u === "throw")
2984
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2985
+ let d = reader.skip(wireType);
2986
+ if (u !== false)
2987
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2988
+ }
2989
+ }
2990
+ return message;
2991
+ }
2992
+ internalBinaryWrite(message: UpdateCommunityListWidgetResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2993
+ /* string kind = 1; */
2994
+ if (message.kind !== "")
2995
+ writer.tag(1, WireType.LengthDelimited).string(message.kind);
2996
+ /* string short_name = 2; */
2997
+ if (message.shortName !== "")
2998
+ writer.tag(2, WireType.LengthDelimited).string(message.shortName);
2999
+ /* repeated string data = 3; */
3000
+ for (let i = 0; i < message.data.length; i++)
3001
+ writer.tag(3, WireType.LengthDelimited).string(message.data[i]);
3002
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 4; */
3003
+ if (message.styles)
3004
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3005
+ let u = options.writeUnknownFields;
3006
+ if (u !== false)
3007
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3008
+ return writer;
3009
+ }
3010
+ }
3011
+ /**
3012
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateCommunityListWidgetResponse
3013
+ */
3014
+ export const UpdateCommunityListWidgetResponse = new UpdateCommunityListWidgetResponse$Type();
3015
+ // @generated message type with reflection information, may provide speed optimized methods
3016
+ class PostFlairWidget$Type extends MessageType<PostFlairWidget> {
3017
+ constructor() {
3018
+ super("devvit.plugin.redditapi.widgets.PostFlairWidget", [
3019
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3020
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3021
+ { no: 3, name: "display", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3022
+ { no: 4, name: "order", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
3023
+ { no: 5, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3024
+ { no: 6, name: "styles", kind: "message", T: () => WidgetStyles },
3025
+ { no: 7, name: "subreddit", kind: "message", T: () => StringValue }
3026
+ ]);
3027
+ }
3028
+ create(value?: PartialMessage<PostFlairWidget>): PostFlairWidget {
3029
+ const message = globalThis.Object.create((this.messagePrototype!));
3030
+ message.id = "";
3031
+ message.kind = "";
3032
+ message.display = "";
3033
+ message.order = [];
3034
+ message.shortName = "";
3035
+ if (value !== undefined)
3036
+ reflectionMergePartial<PostFlairWidget>(this, message, value);
3037
+ return message;
3038
+ }
3039
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PostFlairWidget): PostFlairWidget {
3040
+ let message = target ?? this.create(), end = reader.pos + length;
3041
+ while (reader.pos < end) {
3042
+ let [fieldNo, wireType] = reader.tag();
3043
+ switch (fieldNo) {
3044
+ case /* string id */ 1:
3045
+ message.id = reader.string();
3046
+ break;
3047
+ case /* string kind */ 2:
3048
+ message.kind = reader.string();
3049
+ break;
3050
+ case /* string display */ 3:
3051
+ message.display = reader.string();
3052
+ break;
3053
+ case /* repeated string order */ 4:
3054
+ message.order.push(reader.string());
3055
+ break;
3056
+ case /* string short_name */ 5:
3057
+ message.shortName = reader.string();
3058
+ break;
3059
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 6:
3060
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
3061
+ break;
3062
+ case /* google.protobuf.StringValue subreddit */ 7:
3063
+ message.subreddit = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subreddit);
3064
+ break;
3065
+ default:
3066
+ let u = options.readUnknownField;
3067
+ if (u === "throw")
3068
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3069
+ let d = reader.skip(wireType);
3070
+ if (u !== false)
3071
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3072
+ }
3073
+ }
3074
+ return message;
3075
+ }
3076
+ internalBinaryWrite(message: PostFlairWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3077
+ /* string id = 1; */
3078
+ if (message.id !== "")
3079
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
3080
+ /* string kind = 2; */
3081
+ if (message.kind !== "")
3082
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
3083
+ /* string display = 3; */
3084
+ if (message.display !== "")
3085
+ writer.tag(3, WireType.LengthDelimited).string(message.display);
3086
+ /* repeated string order = 4; */
3087
+ for (let i = 0; i < message.order.length; i++)
3088
+ writer.tag(4, WireType.LengthDelimited).string(message.order[i]);
3089
+ /* string short_name = 5; */
3090
+ if (message.shortName !== "")
3091
+ writer.tag(5, WireType.LengthDelimited).string(message.shortName);
3092
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 6; */
3093
+ if (message.styles)
3094
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
3095
+ /* google.protobuf.StringValue subreddit = 7; */
3096
+ if (message.subreddit)
3097
+ StringValue.internalBinaryWrite(message.subreddit, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3098
+ let u = options.writeUnknownFields;
3099
+ if (u !== false)
3100
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3101
+ return writer;
3102
+ }
3103
+ }
3104
+ /**
3105
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.PostFlairWidget
3106
+ */
3107
+ export const PostFlairWidget = new PostFlairWidget$Type();
3108
+ // @generated message type with reflection information, may provide speed optimized methods
3109
+ class AddPostFlairWidgetRequest$Type extends MessageType<AddPostFlairWidgetRequest> {
3110
+ constructor() {
3111
+ super("devvit.plugin.redditapi.widgets.AddPostFlairWidgetRequest", [
3112
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3113
+ { no: 2, name: "display", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3114
+ { no: 3, name: "order", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
3115
+ { no: 4, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3116
+ { no: 5, name: "styles", kind: "message", T: () => WidgetStyles }
3117
+ ]);
3118
+ }
3119
+ create(value?: PartialMessage<AddPostFlairWidgetRequest>): AddPostFlairWidgetRequest {
3120
+ const message = globalThis.Object.create((this.messagePrototype!));
3121
+ message.subreddit = "";
3122
+ message.display = "";
3123
+ message.order = [];
3124
+ message.shortName = "";
3125
+ if (value !== undefined)
3126
+ reflectionMergePartial<AddPostFlairWidgetRequest>(this, message, value);
3127
+ return message;
3128
+ }
3129
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddPostFlairWidgetRequest): AddPostFlairWidgetRequest {
3130
+ let message = target ?? this.create(), end = reader.pos + length;
3131
+ while (reader.pos < end) {
3132
+ let [fieldNo, wireType] = reader.tag();
3133
+ switch (fieldNo) {
3134
+ case /* string subreddit */ 1:
3135
+ message.subreddit = reader.string();
3136
+ break;
3137
+ case /* string display */ 2:
3138
+ message.display = reader.string();
3139
+ break;
3140
+ case /* repeated string order */ 3:
3141
+ message.order.push(reader.string());
3142
+ break;
3143
+ case /* string short_name */ 4:
3144
+ message.shortName = reader.string();
3145
+ break;
3146
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 5:
3147
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
3148
+ break;
3149
+ default:
3150
+ let u = options.readUnknownField;
3151
+ if (u === "throw")
3152
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3153
+ let d = reader.skip(wireType);
3154
+ if (u !== false)
3155
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3156
+ }
3157
+ }
3158
+ return message;
3159
+ }
3160
+ internalBinaryWrite(message: AddPostFlairWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3161
+ /* string subreddit = 1; */
3162
+ if (message.subreddit !== "")
3163
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
3164
+ /* string display = 2; */
3165
+ if (message.display !== "")
3166
+ writer.tag(2, WireType.LengthDelimited).string(message.display);
3167
+ /* repeated string order = 3; */
3168
+ for (let i = 0; i < message.order.length; i++)
3169
+ writer.tag(3, WireType.LengthDelimited).string(message.order[i]);
3170
+ /* string short_name = 4; */
3171
+ if (message.shortName !== "")
3172
+ writer.tag(4, WireType.LengthDelimited).string(message.shortName);
3173
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 5; */
3174
+ if (message.styles)
3175
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
3176
+ let u = options.writeUnknownFields;
3177
+ if (u !== false)
3178
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3179
+ return writer;
3180
+ }
3181
+ }
3182
+ /**
3183
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddPostFlairWidgetRequest
3184
+ */
3185
+ export const AddPostFlairWidgetRequest = new AddPostFlairWidgetRequest$Type();
3186
+ // @generated message type with reflection information, may provide speed optimized methods
3187
+ class UpdatePostFlairWidgetRequest$Type extends MessageType<UpdatePostFlairWidgetRequest> {
3188
+ constructor() {
3189
+ super("devvit.plugin.redditapi.widgets.UpdatePostFlairWidgetRequest", [
3190
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3191
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3192
+ { no: 3, name: "display", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3193
+ { no: 4, name: "order", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
3194
+ { no: 5, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3195
+ { no: 6, name: "styles", kind: "message", T: () => WidgetStyles }
3196
+ ]);
3197
+ }
3198
+ create(value?: PartialMessage<UpdatePostFlairWidgetRequest>): UpdatePostFlairWidgetRequest {
3199
+ const message = globalThis.Object.create((this.messagePrototype!));
3200
+ message.subreddit = "";
3201
+ message.id = "";
3202
+ message.display = "";
3203
+ message.order = [];
3204
+ message.shortName = "";
3205
+ if (value !== undefined)
3206
+ reflectionMergePartial<UpdatePostFlairWidgetRequest>(this, message, value);
3207
+ return message;
3208
+ }
3209
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdatePostFlairWidgetRequest): UpdatePostFlairWidgetRequest {
3210
+ let message = target ?? this.create(), end = reader.pos + length;
3211
+ while (reader.pos < end) {
3212
+ let [fieldNo, wireType] = reader.tag();
3213
+ switch (fieldNo) {
3214
+ case /* string subreddit */ 1:
3215
+ message.subreddit = reader.string();
3216
+ break;
3217
+ case /* string id */ 2:
3218
+ message.id = reader.string();
3219
+ break;
3220
+ case /* string display */ 3:
3221
+ message.display = reader.string();
3222
+ break;
3223
+ case /* repeated string order */ 4:
3224
+ message.order.push(reader.string());
3225
+ break;
3226
+ case /* string short_name */ 5:
3227
+ message.shortName = reader.string();
3228
+ break;
3229
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 6:
3230
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
3231
+ break;
3232
+ default:
3233
+ let u = options.readUnknownField;
3234
+ if (u === "throw")
3235
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3236
+ let d = reader.skip(wireType);
3237
+ if (u !== false)
3238
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3239
+ }
3240
+ }
3241
+ return message;
3242
+ }
3243
+ internalBinaryWrite(message: UpdatePostFlairWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3244
+ /* string subreddit = 1; */
3245
+ if (message.subreddit !== "")
3246
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
3247
+ /* string id = 2; */
3248
+ if (message.id !== "")
3249
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
3250
+ /* string display = 3; */
3251
+ if (message.display !== "")
3252
+ writer.tag(3, WireType.LengthDelimited).string(message.display);
3253
+ /* repeated string order = 4; */
3254
+ for (let i = 0; i < message.order.length; i++)
3255
+ writer.tag(4, WireType.LengthDelimited).string(message.order[i]);
3256
+ /* string short_name = 5; */
3257
+ if (message.shortName !== "")
3258
+ writer.tag(5, WireType.LengthDelimited).string(message.shortName);
3259
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 6; */
3260
+ if (message.styles)
3261
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
3262
+ let u = options.writeUnknownFields;
3263
+ if (u !== false)
3264
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3265
+ return writer;
3266
+ }
3267
+ }
3268
+ /**
3269
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdatePostFlairWidgetRequest
3270
+ */
3271
+ export const UpdatePostFlairWidgetRequest = new UpdatePostFlairWidgetRequest$Type();
3272
+ // @generated message type with reflection information, may provide speed optimized methods
3273
+ class DeleteWidgetRequest$Type extends MessageType<DeleteWidgetRequest> {
3274
+ constructor() {
3275
+ super("devvit.plugin.redditapi.widgets.DeleteWidgetRequest", [
3276
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3277
+ { no: 2, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3278
+ ]);
3279
+ }
3280
+ create(value?: PartialMessage<DeleteWidgetRequest>): DeleteWidgetRequest {
3281
+ const message = globalThis.Object.create((this.messagePrototype!));
3282
+ message.id = "";
3283
+ message.subreddit = "";
3284
+ if (value !== undefined)
3285
+ reflectionMergePartial<DeleteWidgetRequest>(this, message, value);
3286
+ return message;
3287
+ }
3288
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteWidgetRequest): DeleteWidgetRequest {
3289
+ let message = target ?? this.create(), end = reader.pos + length;
3290
+ while (reader.pos < end) {
3291
+ let [fieldNo, wireType] = reader.tag();
3292
+ switch (fieldNo) {
3293
+ case /* string id */ 1:
3294
+ message.id = reader.string();
3295
+ break;
3296
+ case /* string subreddit */ 2:
3297
+ message.subreddit = reader.string();
3298
+ break;
3299
+ default:
3300
+ let u = options.readUnknownField;
3301
+ if (u === "throw")
3302
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3303
+ let d = reader.skip(wireType);
3304
+ if (u !== false)
3305
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3306
+ }
3307
+ }
3308
+ return message;
3309
+ }
3310
+ internalBinaryWrite(message: DeleteWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3311
+ /* string id = 1; */
3312
+ if (message.id !== "")
3313
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
3314
+ /* string subreddit = 2; */
3315
+ if (message.subreddit !== "")
3316
+ writer.tag(2, WireType.LengthDelimited).string(message.subreddit);
3317
+ let u = options.writeUnknownFields;
3318
+ if (u !== false)
3319
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3320
+ return writer;
3321
+ }
3322
+ }
3323
+ /**
3324
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.DeleteWidgetRequest
3325
+ */
3326
+ export const DeleteWidgetRequest = new DeleteWidgetRequest$Type();
3327
+ // @generated message type with reflection information, may provide speed optimized methods
3328
+ class GetWidgetsRequest$Type extends MessageType<GetWidgetsRequest> {
3329
+ constructor() {
3330
+ super("devvit.plugin.redditapi.widgets.GetWidgetsRequest", [
3331
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3332
+ { no: 2, name: "progressive_images", kind: "message", T: () => BoolValue }
3333
+ ]);
3334
+ }
3335
+ create(value?: PartialMessage<GetWidgetsRequest>): GetWidgetsRequest {
3336
+ const message = globalThis.Object.create((this.messagePrototype!));
3337
+ message.subreddit = "";
3338
+ if (value !== undefined)
3339
+ reflectionMergePartial<GetWidgetsRequest>(this, message, value);
3340
+ return message;
3341
+ }
3342
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsRequest): GetWidgetsRequest {
3343
+ let message = target ?? this.create(), end = reader.pos + length;
3344
+ while (reader.pos < end) {
3345
+ let [fieldNo, wireType] = reader.tag();
3346
+ switch (fieldNo) {
3347
+ case /* string subreddit */ 1:
3348
+ message.subreddit = reader.string();
3349
+ break;
3350
+ case /* google.protobuf.BoolValue progressive_images */ 2:
3351
+ message.progressiveImages = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.progressiveImages);
3352
+ break;
3353
+ default:
3354
+ let u = options.readUnknownField;
3355
+ if (u === "throw")
3356
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3357
+ let d = reader.skip(wireType);
3358
+ if (u !== false)
3359
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3360
+ }
3361
+ }
3362
+ return message;
3363
+ }
3364
+ internalBinaryWrite(message: GetWidgetsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3365
+ /* string subreddit = 1; */
3366
+ if (message.subreddit !== "")
3367
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
3368
+ /* google.protobuf.BoolValue progressive_images = 2; */
3369
+ if (message.progressiveImages)
3370
+ BoolValue.internalBinaryWrite(message.progressiveImages, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3371
+ let u = options.writeUnknownFields;
3372
+ if (u !== false)
3373
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3374
+ return writer;
3375
+ }
3376
+ }
3377
+ /**
3378
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsRequest
3379
+ */
3380
+ export const GetWidgetsRequest = new GetWidgetsRequest$Type();
3381
+ // @generated message type with reflection information, may provide speed optimized methods
3382
+ class GetWidgetsResponse$Type extends MessageType<GetWidgetsResponse> {
3383
+ constructor() {
3384
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse", [
3385
+ { no: 1, name: "layout", kind: "message", T: () => GetWidgetsResponse_Layout },
3386
+ { no: 2, name: "items", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => GetWidgetsResponse_WidgetItem } }
3387
+ ]);
3388
+ }
3389
+ create(value?: PartialMessage<GetWidgetsResponse>): GetWidgetsResponse {
3390
+ const message = globalThis.Object.create((this.messagePrototype!));
3391
+ message.items = {};
3392
+ if (value !== undefined)
3393
+ reflectionMergePartial<GetWidgetsResponse>(this, message, value);
3394
+ return message;
3395
+ }
3396
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse): GetWidgetsResponse {
3397
+ let message = target ?? this.create(), end = reader.pos + length;
3398
+ while (reader.pos < end) {
3399
+ let [fieldNo, wireType] = reader.tag();
3400
+ switch (fieldNo) {
3401
+ case /* devvit.plugin.redditapi.widgets.GetWidgetsResponse.Layout layout */ 1:
3402
+ message.layout = GetWidgetsResponse_Layout.internalBinaryRead(reader, reader.uint32(), options, message.layout);
3403
+ break;
3404
+ case /* map<string, devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem> items */ 2:
3405
+ this.binaryReadMap2(message.items, reader, options);
3406
+ break;
3407
+ default:
3408
+ let u = options.readUnknownField;
3409
+ if (u === "throw")
3410
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3411
+ let d = reader.skip(wireType);
3412
+ if (u !== false)
3413
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3414
+ }
3415
+ }
3416
+ return message;
3417
+ }
3418
+ private binaryReadMap2(map: GetWidgetsResponse["items"], reader: IBinaryReader, options: BinaryReadOptions): void {
3419
+ let len = reader.uint32(), end = reader.pos + len, key: keyof GetWidgetsResponse["items"] | undefined, val: GetWidgetsResponse["items"][any] | undefined;
3420
+ while (reader.pos < end) {
3421
+ let [fieldNo, wireType] = reader.tag();
3422
+ switch (fieldNo) {
3423
+ case 1:
3424
+ key = reader.string();
3425
+ break;
3426
+ case 2:
3427
+ val = GetWidgetsResponse_WidgetItem.internalBinaryRead(reader, reader.uint32(), options);
3428
+ break;
3429
+ default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.widgets.GetWidgetsResponse.items");
3430
+ }
3431
+ }
3432
+ map[key ?? ""] = val ?? GetWidgetsResponse_WidgetItem.create();
3433
+ }
3434
+ internalBinaryWrite(message: GetWidgetsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3435
+ /* devvit.plugin.redditapi.widgets.GetWidgetsResponse.Layout layout = 1; */
3436
+ if (message.layout)
3437
+ GetWidgetsResponse_Layout.internalBinaryWrite(message.layout, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3438
+ /* map<string, devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem> items = 2; */
3439
+ for (let k of globalThis.Object.keys(message.items)) {
3440
+ writer.tag(2, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
3441
+ writer.tag(2, WireType.LengthDelimited).fork();
3442
+ GetWidgetsResponse_WidgetItem.internalBinaryWrite(message.items[k], writer, options);
3443
+ writer.join().join();
3444
+ }
3445
+ let u = options.writeUnknownFields;
3446
+ if (u !== false)
3447
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3448
+ return writer;
3449
+ }
3450
+ }
3451
+ /**
3452
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse
3453
+ */
3454
+ export const GetWidgetsResponse = new GetWidgetsResponse$Type();
3455
+ // @generated message type with reflection information, may provide speed optimized methods
3456
+ class GetWidgetsResponse_WidgetOrdering$Type extends MessageType<GetWidgetsResponse_WidgetOrdering> {
3457
+ constructor() {
3458
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering", [
3459
+ { no: 1, name: "order", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
3460
+ ]);
3461
+ }
3462
+ create(value?: PartialMessage<GetWidgetsResponse_WidgetOrdering>): GetWidgetsResponse_WidgetOrdering {
3463
+ const message = globalThis.Object.create((this.messagePrototype!));
3464
+ message.order = [];
3465
+ if (value !== undefined)
3466
+ reflectionMergePartial<GetWidgetsResponse_WidgetOrdering>(this, message, value);
3467
+ return message;
3468
+ }
3469
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse_WidgetOrdering): GetWidgetsResponse_WidgetOrdering {
3470
+ let message = target ?? this.create(), end = reader.pos + length;
3471
+ while (reader.pos < end) {
3472
+ let [fieldNo, wireType] = reader.tag();
3473
+ switch (fieldNo) {
3474
+ case /* repeated string order */ 1:
3475
+ message.order.push(reader.string());
3476
+ break;
3477
+ default:
3478
+ let u = options.readUnknownField;
3479
+ if (u === "throw")
3480
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3481
+ let d = reader.skip(wireType);
3482
+ if (u !== false)
3483
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3484
+ }
3485
+ }
3486
+ return message;
3487
+ }
3488
+ internalBinaryWrite(message: GetWidgetsResponse_WidgetOrdering, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3489
+ /* repeated string order = 1; */
3490
+ for (let i = 0; i < message.order.length; i++)
3491
+ writer.tag(1, WireType.LengthDelimited).string(message.order[i]);
3492
+ let u = options.writeUnknownFields;
3493
+ if (u !== false)
3494
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3495
+ return writer;
3496
+ }
3497
+ }
3498
+ /**
3499
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering
3500
+ */
3501
+ export const GetWidgetsResponse_WidgetOrdering = new GetWidgetsResponse_WidgetOrdering$Type();
3502
+ // @generated message type with reflection information, may provide speed optimized methods
3503
+ class GetWidgetsResponse_Layout$Type extends MessageType<GetWidgetsResponse_Layout> {
3504
+ constructor() {
3505
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse.Layout", [
3506
+ { no: 1, name: "id_card_widget", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3507
+ { no: 2, name: "topbar", kind: "message", T: () => GetWidgetsResponse_WidgetOrdering },
3508
+ { no: 3, name: "sidebar", kind: "message", T: () => GetWidgetsResponse_WidgetOrdering },
3509
+ { no: 4, name: "moderator_widget", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3510
+ ]);
3511
+ }
3512
+ create(value?: PartialMessage<GetWidgetsResponse_Layout>): GetWidgetsResponse_Layout {
3513
+ const message = globalThis.Object.create((this.messagePrototype!));
3514
+ message.idCardWidget = "";
3515
+ message.moderatorWidget = "";
3516
+ if (value !== undefined)
3517
+ reflectionMergePartial<GetWidgetsResponse_Layout>(this, message, value);
3518
+ return message;
3519
+ }
3520
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse_Layout): GetWidgetsResponse_Layout {
3521
+ let message = target ?? this.create(), end = reader.pos + length;
3522
+ while (reader.pos < end) {
3523
+ let [fieldNo, wireType] = reader.tag();
3524
+ switch (fieldNo) {
3525
+ case /* string id_card_widget */ 1:
3526
+ message.idCardWidget = reader.string();
3527
+ break;
3528
+ case /* devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering topbar */ 2:
3529
+ message.topbar = GetWidgetsResponse_WidgetOrdering.internalBinaryRead(reader, reader.uint32(), options, message.topbar);
3530
+ break;
3531
+ case /* devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering sidebar */ 3:
3532
+ message.sidebar = GetWidgetsResponse_WidgetOrdering.internalBinaryRead(reader, reader.uint32(), options, message.sidebar);
3533
+ break;
3534
+ case /* string moderator_widget */ 4:
3535
+ message.moderatorWidget = reader.string();
3536
+ break;
3537
+ default:
3538
+ let u = options.readUnknownField;
3539
+ if (u === "throw")
3540
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3541
+ let d = reader.skip(wireType);
3542
+ if (u !== false)
3543
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3544
+ }
3545
+ }
3546
+ return message;
3547
+ }
3548
+ internalBinaryWrite(message: GetWidgetsResponse_Layout, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3549
+ /* string id_card_widget = 1; */
3550
+ if (message.idCardWidget !== "")
3551
+ writer.tag(1, WireType.LengthDelimited).string(message.idCardWidget);
3552
+ /* devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering topbar = 2; */
3553
+ if (message.topbar)
3554
+ GetWidgetsResponse_WidgetOrdering.internalBinaryWrite(message.topbar, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3555
+ /* devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetOrdering sidebar = 3; */
3556
+ if (message.sidebar)
3557
+ GetWidgetsResponse_WidgetOrdering.internalBinaryWrite(message.sidebar, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3558
+ /* string moderator_widget = 4; */
3559
+ if (message.moderatorWidget !== "")
3560
+ writer.tag(4, WireType.LengthDelimited).string(message.moderatorWidget);
3561
+ let u = options.writeUnknownFields;
3562
+ if (u !== false)
3563
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3564
+ return writer;
3565
+ }
3566
+ }
3567
+ /**
3568
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.Layout
3569
+ */
3570
+ export const GetWidgetsResponse_Layout = new GetWidgetsResponse_Layout$Type();
3571
+ // @generated message type with reflection information, may provide speed optimized methods
3572
+ class GetWidgetsResponse_WidgetItem$Type extends MessageType<GetWidgetsResponse_WidgetItem> {
3573
+ constructor() {
3574
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem", [
3575
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3576
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3577
+ { no: 3, name: "styles", kind: "message", T: () => WidgetStyles },
3578
+ { no: 4, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3579
+ { no: 5, name: "description", kind: "message", T: () => StringValue },
3580
+ { no: 6, name: "data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => GetWidgetsResponse_WidgetItem_Data },
3581
+ { no: 7, name: "buttons", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetButton },
3582
+ { no: 8, name: "subscribers_count", kind: "message", T: () => Int64Value },
3583
+ { no: 9, name: "currently_viewing_text", kind: "message", T: () => StringValue },
3584
+ { no: 10, name: "currently_viewing_count", kind: "message", T: () => Int64Value },
3585
+ { no: 11, name: "subscribers_text", kind: "message", T: () => StringValue },
3586
+ { no: 12, name: "show_wiki", kind: "message", T: () => BoolValue },
3587
+ { no: 13, name: "templates", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "message", T: () => GetWidgetsResponse_WidgetItem_PostFlairTemplate } },
3588
+ { no: 14, name: "display", kind: "message", T: () => StringValue },
3589
+ { no: 15, name: "order", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
3590
+ { no: 16, name: "mods", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => GetWidgetsResponse_WidgetItem_Moderator },
3591
+ { no: 17, name: "total_mods", kind: "message", T: () => Int64Value },
3592
+ { no: 18, name: "google_calendar_id", kind: "message", T: () => StringValue },
3593
+ { no: 19, name: "requires_sync", kind: "message", T: () => BoolValue },
3594
+ { no: 20, name: "configuration", kind: "message", T: () => CalendarWidgetConfiguration },
3595
+ { no: 21, name: "text", kind: "message", T: () => StringValue },
3596
+ { no: 22, name: "css", kind: "message", T: () => StringValue },
3597
+ { no: 23, name: "stylesheet_url", kind: "message", T: () => StringValue },
3598
+ { no: 24, name: "height", kind: "message", T: () => Int64Value },
3599
+ { no: 25, name: "image_data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage }
3600
+ ]);
3601
+ }
3602
+ create(value?: PartialMessage<GetWidgetsResponse_WidgetItem>): GetWidgetsResponse_WidgetItem {
3603
+ const message = globalThis.Object.create((this.messagePrototype!));
3604
+ message.id = "";
3605
+ message.kind = "";
3606
+ message.shortName = "";
3607
+ message.data = [];
3608
+ message.buttons = [];
3609
+ message.templates = {};
3610
+ message.order = [];
3611
+ message.mods = [];
3612
+ message.imageData = [];
3613
+ if (value !== undefined)
3614
+ reflectionMergePartial<GetWidgetsResponse_WidgetItem>(this, message, value);
3615
+ return message;
3616
+ }
3617
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse_WidgetItem): GetWidgetsResponse_WidgetItem {
3618
+ let message = target ?? this.create(), end = reader.pos + length;
3619
+ while (reader.pos < end) {
3620
+ let [fieldNo, wireType] = reader.tag();
3621
+ switch (fieldNo) {
3622
+ case /* string id */ 1:
3623
+ message.id = reader.string();
3624
+ break;
3625
+ case /* string kind */ 2:
3626
+ message.kind = reader.string();
3627
+ break;
3628
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 3:
3629
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
3630
+ break;
3631
+ case /* string short_name */ 4:
3632
+ message.shortName = reader.string();
3633
+ break;
3634
+ case /* google.protobuf.StringValue description */ 5:
3635
+ message.description = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.description);
3636
+ break;
3637
+ case /* repeated devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Data data */ 6:
3638
+ message.data.push(GetWidgetsResponse_WidgetItem_Data.internalBinaryRead(reader, reader.uint32(), options));
3639
+ break;
3640
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons */ 7:
3641
+ message.buttons.push(WidgetButton.internalBinaryRead(reader, reader.uint32(), options));
3642
+ break;
3643
+ case /* google.protobuf.Int64Value subscribers_count */ 8:
3644
+ message.subscribersCount = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.subscribersCount);
3645
+ break;
3646
+ case /* google.protobuf.StringValue currently_viewing_text */ 9:
3647
+ message.currentlyViewingText = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.currentlyViewingText);
3648
+ break;
3649
+ case /* google.protobuf.Int64Value currently_viewing_count */ 10:
3650
+ message.currentlyViewingCount = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.currentlyViewingCount);
3651
+ break;
3652
+ case /* google.protobuf.StringValue subscribers_text */ 11:
3653
+ message.subscribersText = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subscribersText);
3654
+ break;
3655
+ case /* google.protobuf.BoolValue show_wiki */ 12:
3656
+ message.showWiki = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.showWiki);
3657
+ break;
3658
+ case /* map<string, devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.PostFlairTemplate> templates */ 13:
3659
+ this.binaryReadMap13(message.templates, reader, options);
3660
+ break;
3661
+ case /* google.protobuf.StringValue display */ 14:
3662
+ message.display = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.display);
3663
+ break;
3664
+ case /* repeated string order */ 15:
3665
+ message.order.push(reader.string());
3666
+ break;
3667
+ case /* repeated devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Moderator mods */ 16:
3668
+ message.mods.push(GetWidgetsResponse_WidgetItem_Moderator.internalBinaryRead(reader, reader.uint32(), options));
3669
+ break;
3670
+ case /* google.protobuf.Int64Value total_mods */ 17:
3671
+ message.totalMods = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.totalMods);
3672
+ break;
3673
+ case /* google.protobuf.StringValue google_calendar_id */ 18:
3674
+ message.googleCalendarId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.googleCalendarId);
3675
+ break;
3676
+ case /* google.protobuf.BoolValue requires_sync */ 19:
3677
+ message.requiresSync = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.requiresSync);
3678
+ break;
3679
+ case /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration */ 20:
3680
+ message.configuration = CalendarWidgetConfiguration.internalBinaryRead(reader, reader.uint32(), options, message.configuration);
3681
+ break;
3682
+ case /* google.protobuf.StringValue text */ 21:
3683
+ message.text = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.text);
3684
+ break;
3685
+ case /* google.protobuf.StringValue css */ 22:
3686
+ message.css = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.css);
3687
+ break;
3688
+ case /* google.protobuf.StringValue stylesheet_url */ 23:
3689
+ message.stylesheetUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.stylesheetUrl);
3690
+ break;
3691
+ case /* google.protobuf.Int64Value height */ 24:
3692
+ message.height = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.height);
3693
+ break;
3694
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data */ 25:
3695
+ message.imageData.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
3696
+ break;
3697
+ default:
3698
+ let u = options.readUnknownField;
3699
+ if (u === "throw")
3700
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3701
+ let d = reader.skip(wireType);
3702
+ if (u !== false)
3703
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3704
+ }
3705
+ }
3706
+ return message;
3707
+ }
3708
+ private binaryReadMap13(map: GetWidgetsResponse_WidgetItem["templates"], reader: IBinaryReader, options: BinaryReadOptions): void {
3709
+ let len = reader.uint32(), end = reader.pos + len, key: keyof GetWidgetsResponse_WidgetItem["templates"] | undefined, val: GetWidgetsResponse_WidgetItem["templates"][any] | undefined;
3710
+ while (reader.pos < end) {
3711
+ let [fieldNo, wireType] = reader.tag();
3712
+ switch (fieldNo) {
3713
+ case 1:
3714
+ key = reader.string();
3715
+ break;
3716
+ case 2:
3717
+ val = GetWidgetsResponse_WidgetItem_PostFlairTemplate.internalBinaryRead(reader, reader.uint32(), options);
3718
+ break;
3719
+ default: throw new globalThis.Error("unknown map entry field for field devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.templates");
3720
+ }
3721
+ }
3722
+ map[key ?? ""] = val ?? GetWidgetsResponse_WidgetItem_PostFlairTemplate.create();
3723
+ }
3724
+ internalBinaryWrite(message: GetWidgetsResponse_WidgetItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3725
+ /* string id = 1; */
3726
+ if (message.id !== "")
3727
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
3728
+ /* string kind = 2; */
3729
+ if (message.kind !== "")
3730
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
3731
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 3; */
3732
+ if (message.styles)
3733
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3734
+ /* string short_name = 4; */
3735
+ if (message.shortName !== "")
3736
+ writer.tag(4, WireType.LengthDelimited).string(message.shortName);
3737
+ /* google.protobuf.StringValue description = 5; */
3738
+ if (message.description)
3739
+ StringValue.internalBinaryWrite(message.description, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
3740
+ /* repeated devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Data data = 6; */
3741
+ for (let i = 0; i < message.data.length; i++)
3742
+ GetWidgetsResponse_WidgetItem_Data.internalBinaryWrite(message.data[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
3743
+ /* repeated devvit.plugin.redditapi.widgets.WidgetButton buttons = 7; */
3744
+ for (let i = 0; i < message.buttons.length; i++)
3745
+ WidgetButton.internalBinaryWrite(message.buttons[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3746
+ /* google.protobuf.Int64Value subscribers_count = 8; */
3747
+ if (message.subscribersCount)
3748
+ Int64Value.internalBinaryWrite(message.subscribersCount, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
3749
+ /* google.protobuf.StringValue currently_viewing_text = 9; */
3750
+ if (message.currentlyViewingText)
3751
+ StringValue.internalBinaryWrite(message.currentlyViewingText, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
3752
+ /* google.protobuf.Int64Value currently_viewing_count = 10; */
3753
+ if (message.currentlyViewingCount)
3754
+ Int64Value.internalBinaryWrite(message.currentlyViewingCount, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
3755
+ /* google.protobuf.StringValue subscribers_text = 11; */
3756
+ if (message.subscribersText)
3757
+ StringValue.internalBinaryWrite(message.subscribersText, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
3758
+ /* google.protobuf.BoolValue show_wiki = 12; */
3759
+ if (message.showWiki)
3760
+ BoolValue.internalBinaryWrite(message.showWiki, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
3761
+ /* map<string, devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.PostFlairTemplate> templates = 13; */
3762
+ for (let k of globalThis.Object.keys(message.templates)) {
3763
+ writer.tag(13, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k);
3764
+ writer.tag(2, WireType.LengthDelimited).fork();
3765
+ GetWidgetsResponse_WidgetItem_PostFlairTemplate.internalBinaryWrite(message.templates[k], writer, options);
3766
+ writer.join().join();
3767
+ }
3768
+ /* google.protobuf.StringValue display = 14; */
3769
+ if (message.display)
3770
+ StringValue.internalBinaryWrite(message.display, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
3771
+ /* repeated string order = 15; */
3772
+ for (let i = 0; i < message.order.length; i++)
3773
+ writer.tag(15, WireType.LengthDelimited).string(message.order[i]);
3774
+ /* repeated devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Moderator mods = 16; */
3775
+ for (let i = 0; i < message.mods.length; i++)
3776
+ GetWidgetsResponse_WidgetItem_Moderator.internalBinaryWrite(message.mods[i], writer.tag(16, WireType.LengthDelimited).fork(), options).join();
3777
+ /* google.protobuf.Int64Value total_mods = 17; */
3778
+ if (message.totalMods)
3779
+ Int64Value.internalBinaryWrite(message.totalMods, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
3780
+ /* google.protobuf.StringValue google_calendar_id = 18; */
3781
+ if (message.googleCalendarId)
3782
+ StringValue.internalBinaryWrite(message.googleCalendarId, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
3783
+ /* google.protobuf.BoolValue requires_sync = 19; */
3784
+ if (message.requiresSync)
3785
+ BoolValue.internalBinaryWrite(message.requiresSync, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
3786
+ /* devvit.plugin.redditapi.widgets.CalendarWidgetConfiguration configuration = 20; */
3787
+ if (message.configuration)
3788
+ CalendarWidgetConfiguration.internalBinaryWrite(message.configuration, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
3789
+ /* google.protobuf.StringValue text = 21; */
3790
+ if (message.text)
3791
+ StringValue.internalBinaryWrite(message.text, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
3792
+ /* google.protobuf.StringValue css = 22; */
3793
+ if (message.css)
3794
+ StringValue.internalBinaryWrite(message.css, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
3795
+ /* google.protobuf.StringValue stylesheet_url = 23; */
3796
+ if (message.stylesheetUrl)
3797
+ StringValue.internalBinaryWrite(message.stylesheetUrl, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
3798
+ /* google.protobuf.Int64Value height = 24; */
3799
+ if (message.height)
3800
+ Int64Value.internalBinaryWrite(message.height, writer.tag(24, WireType.LengthDelimited).fork(), options).join();
3801
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 25; */
3802
+ for (let i = 0; i < message.imageData.length; i++)
3803
+ WidgetImage.internalBinaryWrite(message.imageData[i], writer.tag(25, WireType.LengthDelimited).fork(), options).join();
3804
+ let u = options.writeUnknownFields;
3805
+ if (u !== false)
3806
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3807
+ return writer;
3808
+ }
3809
+ }
3810
+ /**
3811
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem
3812
+ */
3813
+ export const GetWidgetsResponse_WidgetItem = new GetWidgetsResponse_WidgetItem$Type();
3814
+ // @generated message type with reflection information, may provide speed optimized methods
3815
+ class GetWidgetsResponse_WidgetItem_Data$Type extends MessageType<GetWidgetsResponse_WidgetItem_Data> {
3816
+ constructor() {
3817
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Data", [
3818
+ { no: 1, name: "url", kind: "message", T: () => StringValue },
3819
+ { no: 2, name: "link_url", kind: "message", T: () => StringValue },
3820
+ { no: 3, name: "height", kind: "message", T: () => Int32Value },
3821
+ { no: 4, name: "width", kind: "message", T: () => Int32Value },
3822
+ { no: 5, name: "icon_url", kind: "message", T: () => StringValue },
3823
+ { no: 6, name: "name", kind: "message", T: () => StringValue },
3824
+ { no: 7, name: "prefixed_name", kind: "message", T: () => StringValue },
3825
+ { no: 8, name: "is_subscribed", kind: "message", T: () => BoolValue },
3826
+ { no: 9, name: "type", kind: "message", T: () => StringValue },
3827
+ { no: 10, name: "subscribers", kind: "message", T: () => Int64Value },
3828
+ { no: 11, name: "community_icon", kind: "message", T: () => StringValue },
3829
+ { no: 12, name: "is_nsfw", kind: "message", T: () => BoolValue },
3830
+ { no: 13, name: "text", kind: "message", T: () => StringValue },
3831
+ { no: 14, name: "children", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MenuWidgetItem }
3832
+ ]);
3833
+ }
3834
+ create(value?: PartialMessage<GetWidgetsResponse_WidgetItem_Data>): GetWidgetsResponse_WidgetItem_Data {
3835
+ const message = globalThis.Object.create((this.messagePrototype!));
3836
+ message.children = [];
3837
+ if (value !== undefined)
3838
+ reflectionMergePartial<GetWidgetsResponse_WidgetItem_Data>(this, message, value);
3839
+ return message;
3840
+ }
3841
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse_WidgetItem_Data): GetWidgetsResponse_WidgetItem_Data {
3842
+ let message = target ?? this.create(), end = reader.pos + length;
3843
+ while (reader.pos < end) {
3844
+ let [fieldNo, wireType] = reader.tag();
3845
+ switch (fieldNo) {
3846
+ case /* google.protobuf.StringValue url */ 1:
3847
+ message.url = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.url);
3848
+ break;
3849
+ case /* google.protobuf.StringValue link_url */ 2:
3850
+ message.linkUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkUrl);
3851
+ break;
3852
+ case /* google.protobuf.Int32Value height */ 3:
3853
+ message.height = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.height);
3854
+ break;
3855
+ case /* google.protobuf.Int32Value width */ 4:
3856
+ message.width = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.width);
3857
+ break;
3858
+ case /* google.protobuf.StringValue icon_url */ 5:
3859
+ message.iconUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.iconUrl);
3860
+ break;
3861
+ case /* google.protobuf.StringValue name */ 6:
3862
+ message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
3863
+ break;
3864
+ case /* google.protobuf.StringValue prefixed_name */ 7:
3865
+ message.prefixedName = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.prefixedName);
3866
+ break;
3867
+ case /* google.protobuf.BoolValue is_subscribed */ 8:
3868
+ message.isSubscribed = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isSubscribed);
3869
+ break;
3870
+ case /* google.protobuf.StringValue type */ 9:
3871
+ message.type = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.type);
3872
+ break;
3873
+ case /* google.protobuf.Int64Value subscribers */ 10:
3874
+ message.subscribers = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.subscribers);
3875
+ break;
3876
+ case /* google.protobuf.StringValue community_icon */ 11:
3877
+ message.communityIcon = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.communityIcon);
3878
+ break;
3879
+ case /* google.protobuf.BoolValue is_nsfw */ 12:
3880
+ message.isNsfw = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isNsfw);
3881
+ break;
3882
+ case /* google.protobuf.StringValue text */ 13:
3883
+ message.text = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.text);
3884
+ break;
3885
+ case /* repeated devvit.plugin.redditapi.widgets.MenuWidgetItem children */ 14:
3886
+ message.children.push(MenuWidgetItem.internalBinaryRead(reader, reader.uint32(), options));
3887
+ break;
3888
+ default:
3889
+ let u = options.readUnknownField;
3890
+ if (u === "throw")
3891
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3892
+ let d = reader.skip(wireType);
3893
+ if (u !== false)
3894
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3895
+ }
3896
+ }
3897
+ return message;
3898
+ }
3899
+ internalBinaryWrite(message: GetWidgetsResponse_WidgetItem_Data, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3900
+ /* google.protobuf.StringValue url = 1; */
3901
+ if (message.url)
3902
+ StringValue.internalBinaryWrite(message.url, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3903
+ /* google.protobuf.StringValue link_url = 2; */
3904
+ if (message.linkUrl)
3905
+ StringValue.internalBinaryWrite(message.linkUrl, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3906
+ /* google.protobuf.Int32Value height = 3; */
3907
+ if (message.height)
3908
+ Int32Value.internalBinaryWrite(message.height, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3909
+ /* google.protobuf.Int32Value width = 4; */
3910
+ if (message.width)
3911
+ Int32Value.internalBinaryWrite(message.width, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3912
+ /* google.protobuf.StringValue icon_url = 5; */
3913
+ if (message.iconUrl)
3914
+ StringValue.internalBinaryWrite(message.iconUrl, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
3915
+ /* google.protobuf.StringValue name = 6; */
3916
+ if (message.name)
3917
+ StringValue.internalBinaryWrite(message.name, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
3918
+ /* google.protobuf.StringValue prefixed_name = 7; */
3919
+ if (message.prefixedName)
3920
+ StringValue.internalBinaryWrite(message.prefixedName, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3921
+ /* google.protobuf.BoolValue is_subscribed = 8; */
3922
+ if (message.isSubscribed)
3923
+ BoolValue.internalBinaryWrite(message.isSubscribed, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
3924
+ /* google.protobuf.StringValue type = 9; */
3925
+ if (message.type)
3926
+ StringValue.internalBinaryWrite(message.type, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
3927
+ /* google.protobuf.Int64Value subscribers = 10; */
3928
+ if (message.subscribers)
3929
+ Int64Value.internalBinaryWrite(message.subscribers, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
3930
+ /* google.protobuf.StringValue community_icon = 11; */
3931
+ if (message.communityIcon)
3932
+ StringValue.internalBinaryWrite(message.communityIcon, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
3933
+ /* google.protobuf.BoolValue is_nsfw = 12; */
3934
+ if (message.isNsfw)
3935
+ BoolValue.internalBinaryWrite(message.isNsfw, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
3936
+ /* google.protobuf.StringValue text = 13; */
3937
+ if (message.text)
3938
+ StringValue.internalBinaryWrite(message.text, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
3939
+ /* repeated devvit.plugin.redditapi.widgets.MenuWidgetItem children = 14; */
3940
+ for (let i = 0; i < message.children.length; i++)
3941
+ MenuWidgetItem.internalBinaryWrite(message.children[i], writer.tag(14, WireType.LengthDelimited).fork(), options).join();
3942
+ let u = options.writeUnknownFields;
3943
+ if (u !== false)
3944
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3945
+ return writer;
3946
+ }
3947
+ }
3948
+ /**
3949
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Data
3950
+ */
3951
+ export const GetWidgetsResponse_WidgetItem_Data = new GetWidgetsResponse_WidgetItem_Data$Type();
3952
+ // @generated message type with reflection information, may provide speed optimized methods
3953
+ class GetWidgetsResponse_WidgetItem_Moderator$Type extends MessageType<GetWidgetsResponse_WidgetItem_Moderator> {
3954
+ constructor() {
3955
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Moderator", [
3956
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3957
+ { no: 2, name: "author_flair_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3958
+ { no: 3, name: "author_flair_text_color", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3959
+ { no: 4, name: "author_flair_background_color", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3960
+ { no: 5, name: "author_falir_text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3961
+ { no: 6, name: "author_flair_richtext", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => AuthorFlairRichText }
3962
+ ]);
3963
+ }
3964
+ create(value?: PartialMessage<GetWidgetsResponse_WidgetItem_Moderator>): GetWidgetsResponse_WidgetItem_Moderator {
3965
+ const message = globalThis.Object.create((this.messagePrototype!));
3966
+ message.name = "";
3967
+ message.authorFlairType = "";
3968
+ message.authorFlairTextColor = "";
3969
+ message.authorFlairBackgroundColor = "";
3970
+ message.authorFalirText = "";
3971
+ message.authorFlairRichtext = [];
3972
+ if (value !== undefined)
3973
+ reflectionMergePartial<GetWidgetsResponse_WidgetItem_Moderator>(this, message, value);
3974
+ return message;
3975
+ }
3976
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse_WidgetItem_Moderator): GetWidgetsResponse_WidgetItem_Moderator {
3977
+ let message = target ?? this.create(), end = reader.pos + length;
3978
+ while (reader.pos < end) {
3979
+ let [fieldNo, wireType] = reader.tag();
3980
+ switch (fieldNo) {
3981
+ case /* string name */ 1:
3982
+ message.name = reader.string();
3983
+ break;
3984
+ case /* string author_flair_type */ 2:
3985
+ message.authorFlairType = reader.string();
3986
+ break;
3987
+ case /* string author_flair_text_color */ 3:
3988
+ message.authorFlairTextColor = reader.string();
3989
+ break;
3990
+ case /* string author_flair_background_color */ 4:
3991
+ message.authorFlairBackgroundColor = reader.string();
3992
+ break;
3993
+ case /* string author_falir_text */ 5:
3994
+ message.authorFalirText = reader.string();
3995
+ break;
3996
+ case /* repeated devvit.reddit.AuthorFlairRichText author_flair_richtext */ 6:
3997
+ message.authorFlairRichtext.push(AuthorFlairRichText.internalBinaryRead(reader, reader.uint32(), options));
3998
+ break;
3999
+ default:
4000
+ let u = options.readUnknownField;
4001
+ if (u === "throw")
4002
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4003
+ let d = reader.skip(wireType);
4004
+ if (u !== false)
4005
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4006
+ }
4007
+ }
4008
+ return message;
4009
+ }
4010
+ internalBinaryWrite(message: GetWidgetsResponse_WidgetItem_Moderator, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4011
+ /* string name = 1; */
4012
+ if (message.name !== "")
4013
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
4014
+ /* string author_flair_type = 2; */
4015
+ if (message.authorFlairType !== "")
4016
+ writer.tag(2, WireType.LengthDelimited).string(message.authorFlairType);
4017
+ /* string author_flair_text_color = 3; */
4018
+ if (message.authorFlairTextColor !== "")
4019
+ writer.tag(3, WireType.LengthDelimited).string(message.authorFlairTextColor);
4020
+ /* string author_flair_background_color = 4; */
4021
+ if (message.authorFlairBackgroundColor !== "")
4022
+ writer.tag(4, WireType.LengthDelimited).string(message.authorFlairBackgroundColor);
4023
+ /* string author_falir_text = 5; */
4024
+ if (message.authorFalirText !== "")
4025
+ writer.tag(5, WireType.LengthDelimited).string(message.authorFalirText);
4026
+ /* repeated devvit.reddit.AuthorFlairRichText author_flair_richtext = 6; */
4027
+ for (let i = 0; i < message.authorFlairRichtext.length; i++)
4028
+ AuthorFlairRichText.internalBinaryWrite(message.authorFlairRichtext[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
4029
+ let u = options.writeUnknownFields;
4030
+ if (u !== false)
4031
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4032
+ return writer;
4033
+ }
4034
+ }
4035
+ /**
4036
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.Moderator
4037
+ */
4038
+ export const GetWidgetsResponse_WidgetItem_Moderator = new GetWidgetsResponse_WidgetItem_Moderator$Type();
4039
+ // @generated message type with reflection information, may provide speed optimized methods
4040
+ class GetWidgetsResponse_WidgetItem_PostFlairTemplate$Type extends MessageType<GetWidgetsResponse_WidgetItem_PostFlairTemplate> {
4041
+ constructor() {
4042
+ super("devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.PostFlairTemplate", [
4043
+ { no: 1, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4044
+ { no: 2, name: "richtext", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => AuthorFlairRichText },
4045
+ { no: 3, name: "background_color", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4046
+ { no: 4, name: "template_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4047
+ { no: 5, name: "text_color", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4048
+ { no: 6, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4049
+ ]);
4050
+ }
4051
+ create(value?: PartialMessage<GetWidgetsResponse_WidgetItem_PostFlairTemplate>): GetWidgetsResponse_WidgetItem_PostFlairTemplate {
4052
+ const message = globalThis.Object.create((this.messagePrototype!));
4053
+ message.text = "";
4054
+ message.richtext = [];
4055
+ message.backgroundColor = "";
4056
+ message.templateId = "";
4057
+ message.textColor = "";
4058
+ message.type = "";
4059
+ if (value !== undefined)
4060
+ reflectionMergePartial<GetWidgetsResponse_WidgetItem_PostFlairTemplate>(this, message, value);
4061
+ return message;
4062
+ }
4063
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetsResponse_WidgetItem_PostFlairTemplate): GetWidgetsResponse_WidgetItem_PostFlairTemplate {
4064
+ let message = target ?? this.create(), end = reader.pos + length;
4065
+ while (reader.pos < end) {
4066
+ let [fieldNo, wireType] = reader.tag();
4067
+ switch (fieldNo) {
4068
+ case /* string text */ 1:
4069
+ message.text = reader.string();
4070
+ break;
4071
+ case /* repeated devvit.reddit.AuthorFlairRichText richtext */ 2:
4072
+ message.richtext.push(AuthorFlairRichText.internalBinaryRead(reader, reader.uint32(), options));
4073
+ break;
4074
+ case /* string background_color */ 3:
4075
+ message.backgroundColor = reader.string();
4076
+ break;
4077
+ case /* string template_id */ 4:
4078
+ message.templateId = reader.string();
4079
+ break;
4080
+ case /* string text_color */ 5:
4081
+ message.textColor = reader.string();
4082
+ break;
4083
+ case /* string type */ 6:
4084
+ message.type = reader.string();
4085
+ break;
4086
+ default:
4087
+ let u = options.readUnknownField;
4088
+ if (u === "throw")
4089
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4090
+ let d = reader.skip(wireType);
4091
+ if (u !== false)
4092
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4093
+ }
4094
+ }
4095
+ return message;
4096
+ }
4097
+ internalBinaryWrite(message: GetWidgetsResponse_WidgetItem_PostFlairTemplate, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4098
+ /* string text = 1; */
4099
+ if (message.text !== "")
4100
+ writer.tag(1, WireType.LengthDelimited).string(message.text);
4101
+ /* repeated devvit.reddit.AuthorFlairRichText richtext = 2; */
4102
+ for (let i = 0; i < message.richtext.length; i++)
4103
+ AuthorFlairRichText.internalBinaryWrite(message.richtext[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4104
+ /* string background_color = 3; */
4105
+ if (message.backgroundColor !== "")
4106
+ writer.tag(3, WireType.LengthDelimited).string(message.backgroundColor);
4107
+ /* string template_id = 4; */
4108
+ if (message.templateId !== "")
4109
+ writer.tag(4, WireType.LengthDelimited).string(message.templateId);
4110
+ /* string text_color = 5; */
4111
+ if (message.textColor !== "")
4112
+ writer.tag(5, WireType.LengthDelimited).string(message.textColor);
4113
+ /* string type = 6; */
4114
+ if (message.type !== "")
4115
+ writer.tag(6, WireType.LengthDelimited).string(message.type);
4116
+ let u = options.writeUnknownFields;
4117
+ if (u !== false)
4118
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4119
+ return writer;
4120
+ }
4121
+ }
4122
+ /**
4123
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetsResponse.WidgetItem.PostFlairTemplate
4124
+ */
4125
+ export const GetWidgetsResponse_WidgetItem_PostFlairTemplate = new GetWidgetsResponse_WidgetItem_PostFlairTemplate$Type();
4126
+ // @generated message type with reflection information, may provide speed optimized methods
4127
+ class MenuWidgetItem$Type extends MessageType<MenuWidgetItem> {
4128
+ constructor() {
4129
+ super("devvit.plugin.redditapi.widgets.MenuWidgetItem", [
4130
+ { no: 1, name: "text", kind: "message", T: () => StringValue },
4131
+ { no: 2, name: "url", kind: "message", T: () => StringValue },
4132
+ { no: 3, name: "children", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => MenuWidgetItem }
4133
+ ]);
4134
+ }
4135
+ create(value?: PartialMessage<MenuWidgetItem>): MenuWidgetItem {
4136
+ const message = globalThis.Object.create((this.messagePrototype!));
4137
+ message.children = [];
4138
+ if (value !== undefined)
4139
+ reflectionMergePartial<MenuWidgetItem>(this, message, value);
4140
+ return message;
4141
+ }
4142
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MenuWidgetItem): MenuWidgetItem {
4143
+ let message = target ?? this.create(), end = reader.pos + length;
4144
+ while (reader.pos < end) {
4145
+ let [fieldNo, wireType] = reader.tag();
4146
+ switch (fieldNo) {
4147
+ case /* google.protobuf.StringValue text */ 1:
4148
+ message.text = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.text);
4149
+ break;
4150
+ case /* google.protobuf.StringValue url */ 2:
4151
+ message.url = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.url);
4152
+ break;
4153
+ case /* repeated devvit.plugin.redditapi.widgets.MenuWidgetItem children */ 3:
4154
+ message.children.push(MenuWidgetItem.internalBinaryRead(reader, reader.uint32(), options));
4155
+ break;
4156
+ default:
4157
+ let u = options.readUnknownField;
4158
+ if (u === "throw")
4159
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4160
+ let d = reader.skip(wireType);
4161
+ if (u !== false)
4162
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4163
+ }
4164
+ }
4165
+ return message;
4166
+ }
4167
+ internalBinaryWrite(message: MenuWidgetItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4168
+ /* google.protobuf.StringValue text = 1; */
4169
+ if (message.text)
4170
+ StringValue.internalBinaryWrite(message.text, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4171
+ /* google.protobuf.StringValue url = 2; */
4172
+ if (message.url)
4173
+ StringValue.internalBinaryWrite(message.url, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4174
+ /* repeated devvit.plugin.redditapi.widgets.MenuWidgetItem children = 3; */
4175
+ for (let i = 0; i < message.children.length; i++)
4176
+ MenuWidgetItem.internalBinaryWrite(message.children[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
4177
+ let u = options.writeUnknownFields;
4178
+ if (u !== false)
4179
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4180
+ return writer;
4181
+ }
4182
+ }
4183
+ /**
4184
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.MenuWidgetItem
4185
+ */
4186
+ export const MenuWidgetItem = new MenuWidgetItem$Type();
4187
+ // @generated message type with reflection information, may provide speed optimized methods
4188
+ class OrderWidgetsRequest$Type extends MessageType<OrderWidgetsRequest> {
4189
+ constructor() {
4190
+ super("devvit.plugin.redditapi.widgets.OrderWidgetsRequest", [
4191
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4192
+ { no: 2, name: "order", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
4193
+ ]);
4194
+ }
4195
+ create(value?: PartialMessage<OrderWidgetsRequest>): OrderWidgetsRequest {
4196
+ const message = globalThis.Object.create((this.messagePrototype!));
4197
+ message.subreddit = "";
4198
+ message.order = [];
4199
+ if (value !== undefined)
4200
+ reflectionMergePartial<OrderWidgetsRequest>(this, message, value);
4201
+ return message;
4202
+ }
4203
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OrderWidgetsRequest): OrderWidgetsRequest {
4204
+ let message = target ?? this.create(), end = reader.pos + length;
4205
+ while (reader.pos < end) {
4206
+ let [fieldNo, wireType] = reader.tag();
4207
+ switch (fieldNo) {
4208
+ case /* string subreddit */ 1:
4209
+ message.subreddit = reader.string();
4210
+ break;
4211
+ case /* repeated string order */ 2:
4212
+ message.order.push(reader.string());
4213
+ break;
4214
+ default:
4215
+ let u = options.readUnknownField;
4216
+ if (u === "throw")
4217
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4218
+ let d = reader.skip(wireType);
4219
+ if (u !== false)
4220
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4221
+ }
4222
+ }
4223
+ return message;
4224
+ }
4225
+ internalBinaryWrite(message: OrderWidgetsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4226
+ /* string subreddit = 1; */
4227
+ if (message.subreddit !== "")
4228
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
4229
+ /* repeated string order = 2; */
4230
+ for (let i = 0; i < message.order.length; i++)
4231
+ writer.tag(2, WireType.LengthDelimited).string(message.order[i]);
4232
+ let u = options.writeUnknownFields;
4233
+ if (u !== false)
4234
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4235
+ return writer;
4236
+ }
4237
+ }
4238
+ /**
4239
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.OrderWidgetsRequest
4240
+ */
4241
+ export const OrderWidgetsRequest = new OrderWidgetsRequest$Type();
4242
+ // @generated message type with reflection information, may provide speed optimized methods
4243
+ class GetWidgetImageUploadLeaseRequest$Type extends MessageType<GetWidgetImageUploadLeaseRequest> {
4244
+ constructor() {
4245
+ super("devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseRequest", [
4246
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4247
+ { no: 2, name: "filepath", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4248
+ { no: 3, name: "mimetype", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4249
+ ]);
4250
+ }
4251
+ create(value?: PartialMessage<GetWidgetImageUploadLeaseRequest>): GetWidgetImageUploadLeaseRequest {
4252
+ const message = globalThis.Object.create((this.messagePrototype!));
4253
+ message.subreddit = "";
4254
+ message.filepath = "";
4255
+ message.mimetype = "";
4256
+ if (value !== undefined)
4257
+ reflectionMergePartial<GetWidgetImageUploadLeaseRequest>(this, message, value);
4258
+ return message;
4259
+ }
4260
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetImageUploadLeaseRequest): GetWidgetImageUploadLeaseRequest {
4261
+ let message = target ?? this.create(), end = reader.pos + length;
4262
+ while (reader.pos < end) {
4263
+ let [fieldNo, wireType] = reader.tag();
4264
+ switch (fieldNo) {
4265
+ case /* string subreddit */ 1:
4266
+ message.subreddit = reader.string();
4267
+ break;
4268
+ case /* string filepath */ 2:
4269
+ message.filepath = reader.string();
4270
+ break;
4271
+ case /* string mimetype */ 3:
4272
+ message.mimetype = reader.string();
4273
+ break;
4274
+ default:
4275
+ let u = options.readUnknownField;
4276
+ if (u === "throw")
4277
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4278
+ let d = reader.skip(wireType);
4279
+ if (u !== false)
4280
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4281
+ }
4282
+ }
4283
+ return message;
4284
+ }
4285
+ internalBinaryWrite(message: GetWidgetImageUploadLeaseRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4286
+ /* string subreddit = 1; */
4287
+ if (message.subreddit !== "")
4288
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
4289
+ /* string filepath = 2; */
4290
+ if (message.filepath !== "")
4291
+ writer.tag(2, WireType.LengthDelimited).string(message.filepath);
4292
+ /* string mimetype = 3; */
4293
+ if (message.mimetype !== "")
4294
+ writer.tag(3, WireType.LengthDelimited).string(message.mimetype);
4295
+ let u = options.writeUnknownFields;
4296
+ if (u !== false)
4297
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4298
+ return writer;
4299
+ }
4300
+ }
4301
+ /**
4302
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseRequest
4303
+ */
4304
+ export const GetWidgetImageUploadLeaseRequest = new GetWidgetImageUploadLeaseRequest$Type();
4305
+ // @generated message type with reflection information, may provide speed optimized methods
4306
+ class GetWidgetImageUploadLeaseResponse$Type extends MessageType<GetWidgetImageUploadLeaseResponse> {
4307
+ constructor() {
4308
+ super("devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse", [
4309
+ { no: 1, name: "s3_upload_lease", kind: "message", T: () => GetWidgetImageUploadLeaseResponse_S3UploadLease },
4310
+ { no: 2, name: "websocket_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4311
+ ]);
4312
+ }
4313
+ create(value?: PartialMessage<GetWidgetImageUploadLeaseResponse>): GetWidgetImageUploadLeaseResponse {
4314
+ const message = globalThis.Object.create((this.messagePrototype!));
4315
+ message.websocketUrl = "";
4316
+ if (value !== undefined)
4317
+ reflectionMergePartial<GetWidgetImageUploadLeaseResponse>(this, message, value);
4318
+ return message;
4319
+ }
4320
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetImageUploadLeaseResponse): GetWidgetImageUploadLeaseResponse {
4321
+ let message = target ?? this.create(), end = reader.pos + length;
4322
+ while (reader.pos < end) {
4323
+ let [fieldNo, wireType] = reader.tag();
4324
+ switch (fieldNo) {
4325
+ case /* devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease s3_upload_lease */ 1:
4326
+ message.s3UploadLease = GetWidgetImageUploadLeaseResponse_S3UploadLease.internalBinaryRead(reader, reader.uint32(), options, message.s3UploadLease);
4327
+ break;
4328
+ case /* string websocket_url */ 2:
4329
+ message.websocketUrl = reader.string();
4330
+ break;
4331
+ default:
4332
+ let u = options.readUnknownField;
4333
+ if (u === "throw")
4334
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4335
+ let d = reader.skip(wireType);
4336
+ if (u !== false)
4337
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4338
+ }
4339
+ }
4340
+ return message;
4341
+ }
4342
+ internalBinaryWrite(message: GetWidgetImageUploadLeaseResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4343
+ /* devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease s3_upload_lease = 1; */
4344
+ if (message.s3UploadLease)
4345
+ GetWidgetImageUploadLeaseResponse_S3UploadLease.internalBinaryWrite(message.s3UploadLease, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4346
+ /* string websocket_url = 2; */
4347
+ if (message.websocketUrl !== "")
4348
+ writer.tag(2, WireType.LengthDelimited).string(message.websocketUrl);
4349
+ let u = options.writeUnknownFields;
4350
+ if (u !== false)
4351
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4352
+ return writer;
4353
+ }
4354
+ }
4355
+ /**
4356
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse
4357
+ */
4358
+ export const GetWidgetImageUploadLeaseResponse = new GetWidgetImageUploadLeaseResponse$Type();
4359
+ // @generated message type with reflection information, may provide speed optimized methods
4360
+ class GetWidgetImageUploadLeaseResponse_S3UploadLease$Type extends MessageType<GetWidgetImageUploadLeaseResponse_S3UploadLease> {
4361
+ constructor() {
4362
+ super("devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease", [
4363
+ { no: 1, name: "action", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4364
+ { no: 2, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair }
4365
+ ]);
4366
+ }
4367
+ create(value?: PartialMessage<GetWidgetImageUploadLeaseResponse_S3UploadLease>): GetWidgetImageUploadLeaseResponse_S3UploadLease {
4368
+ const message = globalThis.Object.create((this.messagePrototype!));
4369
+ message.action = "";
4370
+ message.fields = [];
4371
+ if (value !== undefined)
4372
+ reflectionMergePartial<GetWidgetImageUploadLeaseResponse_S3UploadLease>(this, message, value);
4373
+ return message;
4374
+ }
4375
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetImageUploadLeaseResponse_S3UploadLease): GetWidgetImageUploadLeaseResponse_S3UploadLease {
4376
+ let message = target ?? this.create(), end = reader.pos + length;
4377
+ while (reader.pos < end) {
4378
+ let [fieldNo, wireType] = reader.tag();
4379
+ switch (fieldNo) {
4380
+ case /* string action */ 1:
4381
+ message.action = reader.string();
4382
+ break;
4383
+ case /* repeated devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease.NameValuePair fields */ 2:
4384
+ message.fields.push(GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair.internalBinaryRead(reader, reader.uint32(), options));
4385
+ break;
4386
+ default:
4387
+ let u = options.readUnknownField;
4388
+ if (u === "throw")
4389
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4390
+ let d = reader.skip(wireType);
4391
+ if (u !== false)
4392
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4393
+ }
4394
+ }
4395
+ return message;
4396
+ }
4397
+ internalBinaryWrite(message: GetWidgetImageUploadLeaseResponse_S3UploadLease, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4398
+ /* string action = 1; */
4399
+ if (message.action !== "")
4400
+ writer.tag(1, WireType.LengthDelimited).string(message.action);
4401
+ /* repeated devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease.NameValuePair fields = 2; */
4402
+ for (let i = 0; i < message.fields.length; i++)
4403
+ GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair.internalBinaryWrite(message.fields[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4404
+ let u = options.writeUnknownFields;
4405
+ if (u !== false)
4406
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4407
+ return writer;
4408
+ }
4409
+ }
4410
+ /**
4411
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease
4412
+ */
4413
+ export const GetWidgetImageUploadLeaseResponse_S3UploadLease = new GetWidgetImageUploadLeaseResponse_S3UploadLease$Type();
4414
+ // @generated message type with reflection information, may provide speed optimized methods
4415
+ class GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair$Type extends MessageType<GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair> {
4416
+ constructor() {
4417
+ super("devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease.NameValuePair", [
4418
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4419
+ { no: 2, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
4420
+ ]);
4421
+ }
4422
+ create(value?: PartialMessage<GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair>): GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair {
4423
+ const message = globalThis.Object.create((this.messagePrototype!));
4424
+ message.name = "";
4425
+ message.value = "";
4426
+ if (value !== undefined)
4427
+ reflectionMergePartial<GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair>(this, message, value);
4428
+ return message;
4429
+ }
4430
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair): GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair {
4431
+ let message = target ?? this.create(), end = reader.pos + length;
4432
+ while (reader.pos < end) {
4433
+ let [fieldNo, wireType] = reader.tag();
4434
+ switch (fieldNo) {
4435
+ case /* string name */ 1:
4436
+ message.name = reader.string();
4437
+ break;
4438
+ case /* string value */ 2:
4439
+ message.value = reader.string();
4440
+ break;
4441
+ default:
4442
+ let u = options.readUnknownField;
4443
+ if (u === "throw")
4444
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4445
+ let d = reader.skip(wireType);
4446
+ if (u !== false)
4447
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4448
+ }
4449
+ }
4450
+ return message;
4451
+ }
4452
+ internalBinaryWrite(message: GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4453
+ /* string name = 1; */
4454
+ if (message.name !== "")
4455
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
4456
+ /* string value = 2; */
4457
+ if (message.value !== "")
4458
+ writer.tag(2, WireType.LengthDelimited).string(message.value);
4459
+ let u = options.writeUnknownFields;
4460
+ if (u !== false)
4461
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4462
+ return writer;
4463
+ }
4464
+ }
4465
+ /**
4466
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.GetWidgetImageUploadLeaseResponse.S3UploadLease.NameValuePair
4467
+ */
4468
+ export const GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair = new GetWidgetImageUploadLeaseResponse_S3UploadLease_NameValuePair$Type();
4469
+ // @generated message type with reflection information, may provide speed optimized methods
4470
+ class CustomWidget$Type extends MessageType<CustomWidget> {
4471
+ constructor() {
4472
+ super("devvit.plugin.redditapi.widgets.CustomWidget", [
4473
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4474
+ { no: 2, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4475
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4476
+ { no: 4, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4477
+ { no: 6, name: "height", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
4478
+ { no: 7, name: "css", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4479
+ { no: 8, name: "image_data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage },
4480
+ { no: 9, name: "styles", kind: "message", T: () => WidgetStyles }
4481
+ ]);
4482
+ }
4483
+ create(value?: PartialMessage<CustomWidget>): CustomWidget {
4484
+ const message = globalThis.Object.create((this.messagePrototype!));
4485
+ message.id = "";
4486
+ message.kind = "";
4487
+ message.shortName = "";
4488
+ message.text = "";
4489
+ message.height = 0;
4490
+ message.css = "";
4491
+ message.imageData = [];
4492
+ if (value !== undefined)
4493
+ reflectionMergePartial<CustomWidget>(this, message, value);
4494
+ return message;
4495
+ }
4496
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomWidget): CustomWidget {
4497
+ let message = target ?? this.create(), end = reader.pos + length;
4498
+ while (reader.pos < end) {
4499
+ let [fieldNo, wireType] = reader.tag();
4500
+ switch (fieldNo) {
4501
+ case /* string id */ 1:
4502
+ message.id = reader.string();
4503
+ break;
4504
+ case /* string kind */ 2:
4505
+ message.kind = reader.string();
4506
+ break;
4507
+ case /* string short_name */ 3:
4508
+ message.shortName = reader.string();
4509
+ break;
4510
+ case /* string text */ 4:
4511
+ message.text = reader.string();
4512
+ break;
4513
+ case /* int32 height */ 6:
4514
+ message.height = reader.int32();
4515
+ break;
4516
+ case /* string css */ 7:
4517
+ message.css = reader.string();
4518
+ break;
4519
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data */ 8:
4520
+ message.imageData.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
4521
+ break;
4522
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 9:
4523
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
4524
+ break;
4525
+ default:
4526
+ let u = options.readUnknownField;
4527
+ if (u === "throw")
4528
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4529
+ let d = reader.skip(wireType);
4530
+ if (u !== false)
4531
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4532
+ }
4533
+ }
4534
+ return message;
4535
+ }
4536
+ internalBinaryWrite(message: CustomWidget, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4537
+ /* string id = 1; */
4538
+ if (message.id !== "")
4539
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
4540
+ /* string kind = 2; */
4541
+ if (message.kind !== "")
4542
+ writer.tag(2, WireType.LengthDelimited).string(message.kind);
4543
+ /* string short_name = 3; */
4544
+ if (message.shortName !== "")
4545
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
4546
+ /* string text = 4; */
4547
+ if (message.text !== "")
4548
+ writer.tag(4, WireType.LengthDelimited).string(message.text);
4549
+ /* int32 height = 6; */
4550
+ if (message.height !== 0)
4551
+ writer.tag(6, WireType.Varint).int32(message.height);
4552
+ /* string css = 7; */
4553
+ if (message.css !== "")
4554
+ writer.tag(7, WireType.LengthDelimited).string(message.css);
4555
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 8; */
4556
+ for (let i = 0; i < message.imageData.length; i++)
4557
+ WidgetImage.internalBinaryWrite(message.imageData[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
4558
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 9; */
4559
+ if (message.styles)
4560
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
4561
+ let u = options.writeUnknownFields;
4562
+ if (u !== false)
4563
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4564
+ return writer;
4565
+ }
4566
+ }
4567
+ /**
4568
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.CustomWidget
4569
+ */
4570
+ export const CustomWidget = new CustomWidget$Type();
4571
+ // @generated message type with reflection information, may provide speed optimized methods
4572
+ class AddCustomWidgetRequest$Type extends MessageType<AddCustomWidgetRequest> {
4573
+ constructor() {
4574
+ super("devvit.plugin.redditapi.widgets.AddCustomWidgetRequest", [
4575
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4576
+ { no: 2, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4577
+ { no: 3, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4578
+ { no: 4, name: "height", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
4579
+ { no: 5, name: "css", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4580
+ { no: 6, name: "image_data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage },
4581
+ { no: 7, name: "styles", kind: "message", T: () => WidgetStyles }
4582
+ ]);
4583
+ }
4584
+ create(value?: PartialMessage<AddCustomWidgetRequest>): AddCustomWidgetRequest {
4585
+ const message = globalThis.Object.create((this.messagePrototype!));
4586
+ message.subreddit = "";
4587
+ message.shortName = "";
4588
+ message.text = "";
4589
+ message.height = 0;
4590
+ message.css = "";
4591
+ message.imageData = [];
4592
+ if (value !== undefined)
4593
+ reflectionMergePartial<AddCustomWidgetRequest>(this, message, value);
4594
+ return message;
4595
+ }
4596
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddCustomWidgetRequest): AddCustomWidgetRequest {
4597
+ let message = target ?? this.create(), end = reader.pos + length;
4598
+ while (reader.pos < end) {
4599
+ let [fieldNo, wireType] = reader.tag();
4600
+ switch (fieldNo) {
4601
+ case /* string subreddit */ 1:
4602
+ message.subreddit = reader.string();
4603
+ break;
4604
+ case /* string short_name */ 2:
4605
+ message.shortName = reader.string();
4606
+ break;
4607
+ case /* string text */ 3:
4608
+ message.text = reader.string();
4609
+ break;
4610
+ case /* int32 height */ 4:
4611
+ message.height = reader.int32();
4612
+ break;
4613
+ case /* string css */ 5:
4614
+ message.css = reader.string();
4615
+ break;
4616
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data */ 6:
4617
+ message.imageData.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
4618
+ break;
4619
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 7:
4620
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
4621
+ break;
4622
+ default:
4623
+ let u = options.readUnknownField;
4624
+ if (u === "throw")
4625
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4626
+ let d = reader.skip(wireType);
4627
+ if (u !== false)
4628
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4629
+ }
4630
+ }
4631
+ return message;
4632
+ }
4633
+ internalBinaryWrite(message: AddCustomWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4634
+ /* string subreddit = 1; */
4635
+ if (message.subreddit !== "")
4636
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
4637
+ /* string short_name = 2; */
4638
+ if (message.shortName !== "")
4639
+ writer.tag(2, WireType.LengthDelimited).string(message.shortName);
4640
+ /* string text = 3; */
4641
+ if (message.text !== "")
4642
+ writer.tag(3, WireType.LengthDelimited).string(message.text);
4643
+ /* int32 height = 4; */
4644
+ if (message.height !== 0)
4645
+ writer.tag(4, WireType.Varint).int32(message.height);
4646
+ /* string css = 5; */
4647
+ if (message.css !== "")
4648
+ writer.tag(5, WireType.LengthDelimited).string(message.css);
4649
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 6; */
4650
+ for (let i = 0; i < message.imageData.length; i++)
4651
+ WidgetImage.internalBinaryWrite(message.imageData[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
4652
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 7; */
4653
+ if (message.styles)
4654
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
4655
+ let u = options.writeUnknownFields;
4656
+ if (u !== false)
4657
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4658
+ return writer;
4659
+ }
4660
+ }
4661
+ /**
4662
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.AddCustomWidgetRequest
4663
+ */
4664
+ export const AddCustomWidgetRequest = new AddCustomWidgetRequest$Type();
4665
+ // @generated message type with reflection information, may provide speed optimized methods
4666
+ class UpdateCustomWidgetRequest$Type extends MessageType<UpdateCustomWidgetRequest> {
4667
+ constructor() {
4668
+ super("devvit.plugin.redditapi.widgets.UpdateCustomWidgetRequest", [
4669
+ { no: 1, name: "subreddit", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4670
+ { no: 2, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4671
+ { no: 3, name: "short_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4672
+ { no: 4, name: "text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4673
+ { no: 5, name: "height", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
4674
+ { no: 6, name: "css", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4675
+ { no: 7, name: "image_data", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WidgetImage },
4676
+ { no: 8, name: "styles", kind: "message", T: () => WidgetStyles }
4677
+ ]);
4678
+ }
4679
+ create(value?: PartialMessage<UpdateCustomWidgetRequest>): UpdateCustomWidgetRequest {
4680
+ const message = globalThis.Object.create((this.messagePrototype!));
4681
+ message.subreddit = "";
4682
+ message.id = "";
4683
+ message.shortName = "";
4684
+ message.text = "";
4685
+ message.height = 0;
4686
+ message.css = "";
4687
+ message.imageData = [];
4688
+ if (value !== undefined)
4689
+ reflectionMergePartial<UpdateCustomWidgetRequest>(this, message, value);
4690
+ return message;
4691
+ }
4692
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateCustomWidgetRequest): UpdateCustomWidgetRequest {
4693
+ let message = target ?? this.create(), end = reader.pos + length;
4694
+ while (reader.pos < end) {
4695
+ let [fieldNo, wireType] = reader.tag();
4696
+ switch (fieldNo) {
4697
+ case /* string subreddit */ 1:
4698
+ message.subreddit = reader.string();
4699
+ break;
4700
+ case /* string id */ 2:
4701
+ message.id = reader.string();
4702
+ break;
4703
+ case /* string short_name */ 3:
4704
+ message.shortName = reader.string();
4705
+ break;
4706
+ case /* string text */ 4:
4707
+ message.text = reader.string();
4708
+ break;
4709
+ case /* int32 height */ 5:
4710
+ message.height = reader.int32();
4711
+ break;
4712
+ case /* string css */ 6:
4713
+ message.css = reader.string();
4714
+ break;
4715
+ case /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data */ 7:
4716
+ message.imageData.push(WidgetImage.internalBinaryRead(reader, reader.uint32(), options));
4717
+ break;
4718
+ case /* devvit.plugin.redditapi.widgets.WidgetStyles styles */ 8:
4719
+ message.styles = WidgetStyles.internalBinaryRead(reader, reader.uint32(), options, message.styles);
4720
+ break;
4721
+ default:
4722
+ let u = options.readUnknownField;
4723
+ if (u === "throw")
4724
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4725
+ let d = reader.skip(wireType);
4726
+ if (u !== false)
4727
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4728
+ }
4729
+ }
4730
+ return message;
4731
+ }
4732
+ internalBinaryWrite(message: UpdateCustomWidgetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4733
+ /* string subreddit = 1; */
4734
+ if (message.subreddit !== "")
4735
+ writer.tag(1, WireType.LengthDelimited).string(message.subreddit);
4736
+ /* string id = 2; */
4737
+ if (message.id !== "")
4738
+ writer.tag(2, WireType.LengthDelimited).string(message.id);
4739
+ /* string short_name = 3; */
4740
+ if (message.shortName !== "")
4741
+ writer.tag(3, WireType.LengthDelimited).string(message.shortName);
4742
+ /* string text = 4; */
4743
+ if (message.text !== "")
4744
+ writer.tag(4, WireType.LengthDelimited).string(message.text);
4745
+ /* int32 height = 5; */
4746
+ if (message.height !== 0)
4747
+ writer.tag(5, WireType.Varint).int32(message.height);
4748
+ /* string css = 6; */
4749
+ if (message.css !== "")
4750
+ writer.tag(6, WireType.LengthDelimited).string(message.css);
4751
+ /* repeated devvit.plugin.redditapi.widgets.WidgetImage image_data = 7; */
4752
+ for (let i = 0; i < message.imageData.length; i++)
4753
+ WidgetImage.internalBinaryWrite(message.imageData[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
4754
+ /* devvit.plugin.redditapi.widgets.WidgetStyles styles = 8; */
4755
+ if (message.styles)
4756
+ WidgetStyles.internalBinaryWrite(message.styles, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
4757
+ let u = options.writeUnknownFields;
4758
+ if (u !== false)
4759
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4760
+ return writer;
4761
+ }
4762
+ }
4763
+ /**
4764
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.widgets.UpdateCustomWidgetRequest
4765
+ */
4766
+ export const UpdateCustomWidgetRequest = new UpdateCustomWidgetRequest$Type();