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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1169) 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 +200 -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 +1047 -0
  230. package/schema/.snootobuf/output/devenv_ts_files/devvit/dev_portal/dev_portal.ts +218 -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 -10
  409. package/schema/devvit/dev_portal/app_settings/app_settings.proto +2 -0
  410. package/schema/devvit/dev_portal/dev_portal.proto +2 -2
  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 -28
  568. package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.d.ts.map +1 -1
  569. package/types/devvit/dev_portal/app_publish_request/review/app_publish_request_review.js +4 -142
  570. package/types/devvit/dev_portal/app_settings/app_settings.d.ts +3 -3
  571. package/types/devvit/dev_portal/app_settings/app_settings.js +4 -4
  572. package/types/devvit/dev_portal/app_version/app_version.d.ts +7 -7
  573. package/types/devvit/dev_portal/app_version/app_version.js +9 -9
  574. package/types/devvit/dev_portal/app_version/info/app_version_info.d.ts +1 -1
  575. package/types/devvit/dev_portal/app_version/info/app_version_info.js +4 -4
  576. package/types/devvit/dev_portal/data_api/admin/audit/audit.d.ts +1 -1
  577. package/types/devvit/dev_portal/data_api/admin/audit/audit.js +3 -3
  578. package/types/devvit/dev_portal/data_api/admin/auth/auth.d.ts +3 -3
  579. package/types/devvit/dev_portal/data_api/admin/auth/auth.js +5 -5
  580. package/types/devvit/dev_portal/data_api/admin/organization/organization.d.ts +2 -2
  581. package/types/devvit/dev_portal/data_api/admin/organization/organization.js +3 -3
  582. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.d.ts +4 -4
  583. package/types/devvit/dev_portal/data_api/admin/subscription/subscription.js +5 -5
  584. package/types/devvit/dev_portal/dev_portal.d.ts +20 -88
  585. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  586. package/types/devvit/dev_portal/dev_portal.js +20 -48
  587. package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts +1 -7
  588. package/types/devvit/dev_portal/dev_portal.twirp-client.d.ts.map +1 -1
  589. package/types/devvit/dev_portal/dev_portal.twirp-client.js +1 -25
  590. package/types/devvit/dev_portal/dev_portal.twirp.d.ts +1 -5
  591. package/types/devvit/dev_portal/dev_portal.twirp.d.ts.map +1 -1
  592. package/types/devvit/dev_portal/dev_portal.twirp.js +1 -133
  593. package/types/devvit/dev_portal/feedback/feedback.d.ts +1 -1
  594. package/types/devvit/dev_portal/feedback/feedback.js +2 -2
  595. package/types/devvit/dev_portal/installation/installation.d.ts +4 -4
  596. package/types/devvit/dev_portal/installation/installation.js +8 -8
  597. package/types/devvit/dev_portal/installation_settings/installation_settings.d.ts +3 -3
  598. package/types/devvit/dev_portal/installation_settings/installation_settings.js +4 -4
  599. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.d.ts +2 -2
  600. package/types/devvit/dev_portal/internal/authorization/v1alpha/authorization.js +3 -3
  601. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.d.ts +5 -5
  602. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/admin.js +5 -5
  603. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.d.ts +2 -2
  604. package/types/devvit/dev_portal/internal/data_api/v1alpha/admin/firehose_monitor.js +3 -3
  605. package/types/devvit/dev_portal/internal/media/media.d.ts +1 -1
  606. package/types/devvit/dev_portal/internal/media/media.js +2 -2
  607. package/types/devvit/dev_portal/nutrition/nutrition.d.ts +1 -1
  608. package/types/devvit/dev_portal/nutrition/nutrition.js +2 -2
  609. package/types/devvit/dev_portal/reddit/redditor.d.ts +1 -1
  610. package/types/devvit/dev_portal/reddit/redditor.js +2 -2
  611. package/types/devvit/dev_portal/waitlist/waitlist.d.ts +3 -3
  612. package/types/devvit/dev_portal/waitlist/waitlist.js +5 -5
  613. package/types/devvit/events/v1alpha/events.d.ts +6 -6
  614. package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
  615. package/types/devvit/events/v1alpha/events.js +17 -17
  616. package/types/devvit/events/v1alpha/realtime.d.ts +2 -2
  617. package/types/devvit/events/v1alpha/realtime.js +4 -4
  618. package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts +23 -0
  619. package/types/devvit/events/v1alpha/realtime.twirp-client.d.ts.map +1 -0
  620. package/types/devvit/events/v1alpha/realtime.twirp-client.js +36 -0
  621. package/types/devvit/events/v1alpha/realtime.twirp.d.ts +15 -0
  622. package/types/devvit/events/v1alpha/realtime.twirp.d.ts.map +1 -0
  623. package/types/devvit/events/v1alpha/realtime.twirp.js +157 -0
  624. package/types/devvit/events/v1alpha/wqcleanup.d.ts +1 -1
  625. package/types/devvit/events/v1alpha/wqcleanup.js +2 -2
  626. package/types/devvit/gateway/custom_post_snapshot.d.ts +2 -2
  627. package/types/devvit/gateway/custom_post_snapshot.js +3 -3
  628. package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts +20 -0
  629. package/types/devvit/gateway/custom_post_snapshot.twirp-client.d.ts.map +1 -0
  630. package/types/devvit/gateway/custom_post_snapshot.twirp-client.js +24 -0
  631. package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts +13 -0
  632. package/types/devvit/gateway/custom_post_snapshot.twirp.d.ts.map +1 -0
  633. package/types/devvit/gateway/custom_post_snapshot.twirp.js +91 -0
  634. package/types/devvit/gateway/resolvers.d.ts +2 -2
  635. package/types/devvit/gateway/resolvers.js +3 -3
  636. package/types/devvit/gateway/resolvers.twirp-client.d.ts +20 -0
  637. package/types/devvit/gateway/resolvers.twirp-client.d.ts.map +1 -0
  638. package/types/devvit/gateway/resolvers.twirp-client.js +24 -0
  639. package/types/devvit/gateway/resolvers.twirp.d.ts +13 -0
  640. package/types/devvit/gateway/resolvers.twirp.d.ts.map +1 -0
  641. package/types/devvit/gateway/resolvers.twirp.js +91 -0
  642. package/types/devvit/gateway/utils/v1alpha/utilities.d.ts +1 -1
  643. package/types/devvit/gateway/utils/v1alpha/utilities.js +2 -2
  644. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts +47 -0
  645. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.d.ts.map +1 -0
  646. package/types/devvit/gateway/utils/v1alpha/utilities.twirp-client.js +93 -0
  647. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts +28 -0
  648. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.d.ts.map +1 -0
  649. package/types/devvit/gateway/utils/v1alpha/utilities.twirp.js +440 -0
  650. package/types/devvit/gateway/v1alpha/triggers.d.ts +8 -8
  651. package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
  652. package/types/devvit/gateway/v1alpha/triggers.js +5 -5
  653. package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts +37 -0
  654. package/types/devvit/gateway/v1alpha/triggers.twirp-client.d.ts.map +1 -0
  655. package/types/devvit/gateway/v1alpha/triggers.twirp-client.js +86 -0
  656. package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts +25 -0
  657. package/types/devvit/gateway/v1alpha/triggers.twirp.d.ts.map +1 -0
  658. package/types/devvit/gateway/v1alpha/triggers.twirp.js +423 -0
  659. package/types/devvit/gql/snapshot.d.ts +1 -1
  660. package/types/devvit/gql/snapshot.js +2 -2
  661. package/types/devvit/gql/subreddit_metadata.d.ts +3 -3
  662. package/types/devvit/gql/subreddit_metadata.js +4 -4
  663. package/types/devvit/options/options.d.ts +1 -1
  664. package/types/devvit/options/options.js +2 -2
  665. package/types/devvit/payments/v1alpha/order.d.ts +3 -3
  666. package/types/devvit/payments/v1alpha/order.js +5 -5
  667. package/types/devvit/payments/v1alpha/product.d.ts +2 -2
  668. package/types/devvit/payments/v1alpha/product.js +3 -3
  669. package/types/devvit/plugin/assetresolver/assetresolver.d.ts +1 -1
  670. package/types/devvit/plugin/assetresolver/assetresolver.js +2 -2
  671. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts +22 -0
  672. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.d.ts.map +1 -0
  673. package/types/devvit/plugin/assetresolver/assetresolver.twirp-client.js +35 -0
  674. package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts +14 -0
  675. package/types/devvit/plugin/assetresolver/assetresolver.twirp.d.ts.map +1 -0
  676. package/types/devvit/plugin/assetresolver/assetresolver.twirp.js +156 -0
  677. package/types/devvit/plugin/builder/builder.d.ts +3 -3
  678. package/types/devvit/plugin/builder/builder.js +4 -4
  679. package/types/devvit/plugin/builder/builder.twirp-client.d.ts +23 -0
  680. package/types/devvit/plugin/builder/builder.twirp-client.d.ts.map +1 -0
  681. package/types/devvit/plugin/builder/builder.twirp-client.js +36 -0
  682. package/types/devvit/plugin/builder/builder.twirp.d.ts +15 -0
  683. package/types/devvit/plugin/builder/builder.twirp.d.ts.map +1 -0
  684. package/types/devvit/plugin/builder/builder.twirp.js +154 -0
  685. package/types/devvit/plugin/buildpack/buildpack.d.ts +2 -2
  686. package/types/devvit/plugin/buildpack/buildpack.js +2 -2
  687. package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts +22 -0
  688. package/types/devvit/plugin/buildpack/buildpack.twirp-client.d.ts.map +1 -0
  689. package/types/devvit/plugin/buildpack/buildpack.twirp-client.js +35 -0
  690. package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts +14 -0
  691. package/types/devvit/plugin/buildpack/buildpack.twirp.d.ts.map +1 -0
  692. package/types/devvit/plugin/buildpack/buildpack.twirp.js +156 -0
  693. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +4 -4
  694. package/types/devvit/plugin/buildpack/buildpack_common.js +6 -6
  695. package/types/devvit/plugin/buildpack/filesystem.d.ts +1 -1
  696. package/types/devvit/plugin/buildpack/filesystem.js +2 -2
  697. package/types/devvit/plugin/clock/clock.d.ts +3 -3
  698. package/types/devvit/plugin/clock/clock.js +3 -3
  699. package/types/devvit/plugin/clock/clock.twirp-client.d.ts +20 -0
  700. package/types/devvit/plugin/clock/clock.twirp-client.d.ts.map +1 -0
  701. package/types/devvit/plugin/clock/clock.twirp-client.js +24 -0
  702. package/types/devvit/plugin/clock/clock.twirp.d.ts +13 -0
  703. package/types/devvit/plugin/clock/clock.twirp.d.ts.map +1 -0
  704. package/types/devvit/plugin/clock/clock.twirp.js +89 -0
  705. package/types/devvit/plugin/http/http.d.ts +1 -1
  706. package/types/devvit/plugin/http/http.js +2 -2
  707. package/types/devvit/plugin/http/http.twirp-client.d.ts +19 -0
  708. package/types/devvit/plugin/http/http.twirp-client.d.ts.map +1 -0
  709. package/types/devvit/plugin/http/http.twirp-client.js +23 -0
  710. package/types/devvit/plugin/http/http.twirp.d.ts +12 -0
  711. package/types/devvit/plugin/http/http.twirp.d.ts.map +1 -0
  712. package/types/devvit/plugin/http/http.twirp.js +88 -0
  713. package/types/devvit/plugin/inspector/inspector.d.ts +3 -3
  714. package/types/devvit/plugin/inspector/inspector.js +4 -4
  715. package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts +23 -0
  716. package/types/devvit/plugin/inspector/inspector.twirp-client.d.ts.map +1 -0
  717. package/types/devvit/plugin/inspector/inspector.twirp-client.js +36 -0
  718. package/types/devvit/plugin/inspector/inspector.twirp.d.ts +15 -0
  719. package/types/devvit/plugin/inspector/inspector.twirp.d.ts.map +1 -0
  720. package/types/devvit/plugin/inspector/inspector.twirp.js +157 -0
  721. package/types/devvit/plugin/kvstore/kvstore.d.ts +2 -2
  722. package/types/devvit/plugin/kvstore/kvstore.js +3 -3
  723. package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts +29 -0
  724. package/types/devvit/plugin/kvstore/kvstore.twirp-client.d.ts.map +1 -0
  725. package/types/devvit/plugin/kvstore/kvstore.twirp-client.js +60 -0
  726. package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts +19 -0
  727. package/types/devvit/plugin/kvstore/kvstore.twirp.d.ts.map +1 -0
  728. package/types/devvit/plugin/kvstore/kvstore.twirp.js +289 -0
  729. package/types/devvit/plugin/linker/linker.d.ts +4 -4
  730. package/types/devvit/plugin/linker/linker.js +5 -5
  731. package/types/devvit/plugin/linker/linker.twirp-client.d.ts +20 -0
  732. package/types/devvit/plugin/linker/linker.twirp-client.d.ts.map +1 -0
  733. package/types/devvit/plugin/linker/linker.twirp-client.js +24 -0
  734. package/types/devvit/plugin/linker/linker.twirp.d.ts +13 -0
  735. package/types/devvit/plugin/linker/linker.twirp.d.ts.map +1 -0
  736. package/types/devvit/plugin/linker/linker.twirp.js +89 -0
  737. package/types/devvit/plugin/linker/resolver.d.ts +5 -5
  738. package/types/devvit/plugin/linker/resolver.js +6 -6
  739. package/types/devvit/plugin/linker/resolver.twirp-client.d.ts +29 -0
  740. package/types/devvit/plugin/linker/resolver.twirp-client.d.ts.map +1 -0
  741. package/types/devvit/plugin/linker/resolver.twirp-client.js +51 -0
  742. package/types/devvit/plugin/linker/resolver.twirp.d.ts +20 -0
  743. package/types/devvit/plugin/linker/resolver.twirp.d.ts.map +1 -0
  744. package/types/devvit/plugin/linker/resolver.twirp.js +226 -0
  745. package/types/devvit/plugin/logger/logger.d.ts +1 -1
  746. package/types/devvit/plugin/logger/logger.js +4 -4
  747. package/types/devvit/plugin/media/media.d.ts +1 -1
  748. package/types/devvit/plugin/media/media.js +2 -2
  749. package/types/devvit/plugin/media/media.twirp-client.d.ts +19 -0
  750. package/types/devvit/plugin/media/media.twirp-client.d.ts.map +1 -0
  751. package/types/devvit/plugin/media/media.twirp-client.js +23 -0
  752. package/types/devvit/plugin/media/media.twirp.d.ts +12 -0
  753. package/types/devvit/plugin/media/media.twirp.d.ts.map +1 -0
  754. package/types/devvit/plugin/media/media.twirp.js +88 -0
  755. package/types/devvit/plugin/modlog/modlog.d.ts +1 -1
  756. package/types/devvit/plugin/modlog/modlog.js +2 -2
  757. package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts +19 -0
  758. package/types/devvit/plugin/modlog/modlog.twirp-client.d.ts.map +1 -0
  759. package/types/devvit/plugin/modlog/modlog.twirp-client.js +23 -0
  760. package/types/devvit/plugin/modlog/modlog.twirp.d.ts +12 -0
  761. package/types/devvit/plugin/modlog/modlog.twirp.d.ts.map +1 -0
  762. package/types/devvit/plugin/modlog/modlog.twirp.js +88 -0
  763. package/types/devvit/plugin/payments/v1alpha/payments.d.ts +3 -3
  764. package/types/devvit/plugin/payments/v1alpha/payments.js +5 -5
  765. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts +25 -0
  766. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.d.ts.map +1 -0
  767. package/types/devvit/plugin/payments/v1alpha/payments.twirp-client.js +47 -0
  768. package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts +16 -0
  769. package/types/devvit/plugin/payments/v1alpha/payments.twirp.d.ts.map +1 -0
  770. package/types/devvit/plugin/payments/v1alpha/payments.twirp.js +222 -0
  771. package/types/devvit/plugin/redditapi/common/common_msg.d.ts +3 -3
  772. package/types/devvit/plugin/redditapi/common/common_msg.js +6 -6
  773. package/types/devvit/plugin/redditapi/flair/flair_msg.d.ts +1 -1
  774. package/types/devvit/plugin/redditapi/flair/flair_msg.js +3 -3
  775. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts +17 -17
  776. package/types/devvit/plugin/redditapi/flair/flair_svc.d.ts.map +1 -1
  777. package/types/devvit/plugin/redditapi/flair/flair_svc.js +47 -126
  778. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts +60 -0
  779. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.d.ts.map +1 -0
  780. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp-client.js +181 -0
  781. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts +40 -0
  782. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.d.ts.map +1 -0
  783. package/types/devvit/plugin/redditapi/flair/flair_svc.twirp.js +950 -0
  784. package/types/devvit/plugin/redditapi/graphql/graphql_msg.d.ts +1 -1
  785. package/types/devvit/plugin/redditapi/graphql/graphql_msg.js +3 -3
  786. package/types/devvit/plugin/redditapi/graphql/graphql_svc.d.ts +2 -2
  787. package/types/devvit/plugin/redditapi/graphql/graphql_svc.js +2 -2
  788. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts +22 -0
  789. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.d.ts.map +1 -0
  790. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp-client.js +35 -0
  791. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts +14 -0
  792. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.d.ts.map +1 -0
  793. package/types/devvit/plugin/redditapi/graphql/graphql_svc.twirp.js +156 -0
  794. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +3 -3
  795. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +5 -5
  796. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +27 -27
  797. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  798. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +89 -388
  799. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +90 -0
  800. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -0
  801. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +301 -0
  802. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +60 -0
  803. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -0
  804. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +1610 -0
  805. package/types/devvit/plugin/redditapi/listings/listings_msg.d.ts +2 -2
  806. package/types/devvit/plugin/redditapi/listings/listings_msg.js +4 -4
  807. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +11 -11
  808. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
  809. package/types/devvit/plugin/redditapi/listings/listings_svc.js +21 -55
  810. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts +41 -0
  811. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.d.ts.map +1 -0
  812. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp-client.js +108 -0
  813. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts +27 -0
  814. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.d.ts.map +1 -0
  815. package/types/devvit/plugin/redditapi/listings/listings_svc.twirp.js +553 -0
  816. package/types/devvit/plugin/redditapi/moderation/moderation_msg.d.ts +1 -1
  817. package/types/devvit/plugin/redditapi/moderation/moderation_msg.js +3 -3
  818. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +28 -28
  819. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
  820. package/types/devvit/plugin/redditapi/moderation/moderation_svc.js +81 -361
  821. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts +85 -0
  822. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.d.ts.map +1 -0
  823. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp-client.js +278 -0
  824. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts +57 -0
  825. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.d.ts.map +1 -0
  826. package/types/devvit/plugin/redditapi/moderation/moderation_svc.twirp.js +1479 -0
  827. package/types/devvit/plugin/redditapi/modnote/modnote_msg.d.ts +1 -1
  828. package/types/devvit/plugin/redditapi/modnote/modnote_msg.js +3 -3
  829. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts +8 -8
  830. package/types/devvit/plugin/redditapi/modnote/modnote_svc.d.ts.map +1 -1
  831. package/types/devvit/plugin/redditapi/modnote/modnote_svc.js +14 -59
  832. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts +32 -0
  833. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.d.ts.map +1 -0
  834. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp-client.js +72 -0
  835. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts +21 -0
  836. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.d.ts.map +1 -0
  837. package/types/devvit/plugin/redditapi/modnote/modnote_svc.twirp.js +355 -0
  838. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.d.ts +2 -2
  839. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js +4 -4
  840. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts +21 -21
  841. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.d.ts.map +1 -1
  842. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js +46 -142
  843. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts +77 -0
  844. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.d.ts.map +1 -0
  845. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp-client.js +252 -0
  846. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts +51 -0
  847. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.d.ts.map +1 -0
  848. package/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.twirp.js +1345 -0
  849. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.d.ts +1 -1
  850. package/types/devvit/plugin/redditapi/postcollections/postcollections_msg.js +4 -4
  851. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.d.ts +3 -3
  852. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.js +3 -3
  853. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts +50 -0
  854. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.d.ts.map +1 -0
  855. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp-client.js +144 -0
  856. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts +33 -0
  857. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.d.ts.map +1 -0
  858. package/types/devvit/plugin/redditapi/postcollections/postcollections_svc.twirp.js +751 -0
  859. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.d.ts +1 -1
  860. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_msg.js +3 -3
  861. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +14 -14
  862. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
  863. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.js +34 -101
  864. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts +48 -0
  865. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.d.ts.map +1 -0
  866. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp-client.js +133 -0
  867. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts +32 -0
  868. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.d.ts.map +1 -0
  869. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.twirp.js +686 -0
  870. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.d.ts +3 -3
  871. package/types/devvit/plugin/redditapi/subreddits/subreddits_msg.js +5 -5
  872. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +32 -32
  873. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
  874. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js +73 -243
  875. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts +100 -0
  876. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.d.ts.map +1 -0
  877. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp-client.js +338 -0
  878. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts +67 -0
  879. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.d.ts.map +1 -0
  880. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.twirp.js +1809 -0
  881. package/types/devvit/plugin/redditapi/users/users_msg.d.ts +2 -2
  882. package/types/devvit/plugin/redditapi/users/users_msg.js +4 -4
  883. package/types/devvit/plugin/redditapi/users/users_svc.d.ts +17 -17
  884. package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
  885. package/types/devvit/plugin/redditapi/users/users_svc.js +39 -144
  886. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts +58 -0
  887. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.d.ts.map +1 -0
  888. package/types/devvit/plugin/redditapi/users/users_svc.twirp-client.js +170 -0
  889. package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts +39 -0
  890. package/types/devvit/plugin/redditapi/users/users_svc.twirp.d.ts.map +1 -0
  891. package/types/devvit/plugin/redditapi/users/users_svc.twirp.js +885 -0
  892. package/types/devvit/plugin/redditapi/widgets/widgets_msg.d.ts +2 -2
  893. package/types/devvit/plugin/redditapi/widgets/widgets_msg.js +4 -4
  894. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts +21 -21
  895. package/types/devvit/plugin/redditapi/widgets/widgets_svc.d.ts.map +1 -1
  896. package/types/devvit/plugin/redditapi/widgets/widgets_svc.js +69 -298
  897. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts +71 -0
  898. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.d.ts.map +1 -0
  899. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp-client.js +228 -0
  900. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts +47 -0
  901. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.d.ts.map +1 -0
  902. package/types/devvit/plugin/redditapi/widgets/widgets_svc.twirp.js +1213 -0
  903. package/types/devvit/plugin/redditapi/wiki/wiki_msg.d.ts +2 -2
  904. package/types/devvit/plugin/redditapi/wiki/wiki_msg.js +4 -4
  905. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts +13 -18
  906. package/types/devvit/plugin/redditapi/wiki/wiki_svc.d.ts.map +1 -1
  907. package/types/devvit/plugin/redditapi/wiki/wiki_svc.js +28 -79
  908. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts +47 -0
  909. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.d.ts.map +1 -0
  910. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp-client.js +132 -0
  911. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts +31 -0
  912. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.d.ts.map +1 -0
  913. package/types/devvit/plugin/redditapi/wiki/wiki_svc.twirp.js +685 -0
  914. package/types/devvit/plugin/redditapiv2/redditapiv2.d.ts +4 -4
  915. package/types/devvit/plugin/redditapiv2/redditapiv2.js +4 -4
  916. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts +24 -0
  917. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.d.ts.map +1 -0
  918. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp-client.js +37 -0
  919. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts +16 -0
  920. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.d.ts.map +1 -0
  921. package/types/devvit/plugin/redditapiv2/redditapiv2.twirp.js +158 -0
  922. package/types/devvit/plugin/redis/redisapi.d.ts +3 -3
  923. package/types/devvit/plugin/redis/redisapi.js +4 -4
  924. package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts +126 -0
  925. package/types/devvit/plugin/redis/redisapi.twirp-client.d.ts.map +1 -0
  926. package/types/devvit/plugin/redis/redisapi.twirp-client.js +445 -0
  927. package/types/devvit/plugin/redis/redisapi.twirp.d.ts +84 -0
  928. package/types/devvit/plugin/redis/redisapi.twirp.d.ts.map +1 -0
  929. package/types/devvit/plugin/redis/redisapi.twirp.js +2402 -0
  930. package/types/devvit/plugin/scheduler/scheduler.d.ts +4 -4
  931. package/types/devvit/plugin/scheduler/scheduler.js +6 -6
  932. package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts +26 -0
  933. package/types/devvit/plugin/scheduler/scheduler.twirp-client.d.ts.map +1 -0
  934. package/types/devvit/plugin/scheduler/scheduler.twirp-client.js +48 -0
  935. package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts +17 -0
  936. package/types/devvit/plugin/scheduler/scheduler.twirp.d.ts.map +1 -0
  937. package/types/devvit/plugin/scheduler/scheduler.twirp.js +223 -0
  938. package/types/devvit/plugin/settings/v1alpha/settings.d.ts +2 -2
  939. package/types/devvit/plugin/settings/v1alpha/settings.js +4 -4
  940. package/types/devvit/plugin/streambroker/streambroker.d.ts +2 -2
  941. package/types/devvit/plugin/streambroker/streambroker.js +3 -3
  942. package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts +23 -0
  943. package/types/devvit/plugin/streambroker/streambroker.twirp-client.d.ts.map +1 -0
  944. package/types/devvit/plugin/streambroker/streambroker.twirp-client.js +36 -0
  945. package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts +15 -0
  946. package/types/devvit/plugin/streambroker/streambroker.twirp.d.ts.map +1 -0
  947. package/types/devvit/plugin/streambroker/streambroker.twirp.js +157 -0
  948. package/types/devvit/plugin/timer/timer.d.ts +2 -2
  949. package/types/devvit/plugin/timer/timer.js +3 -3
  950. package/types/devvit/plugin/timer/timer.twirp-client.d.ts +20 -0
  951. package/types/devvit/plugin/timer/timer.twirp-client.d.ts.map +1 -0
  952. package/types/devvit/plugin/timer/timer.twirp-client.js +24 -0
  953. package/types/devvit/plugin/timer/timer.twirp.d.ts +13 -0
  954. package/types/devvit/plugin/timer/timer.twirp.d.ts.map +1 -0
  955. package/types/devvit/plugin/timer/timer.twirp.js +89 -0
  956. package/types/devvit/plugin/v2events/v2events.d.ts +1 -1
  957. package/types/devvit/plugin/v2events/v2events.js +2 -2
  958. package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts +19 -0
  959. package/types/devvit/plugin/v2events/v2events.twirp-client.d.ts.map +1 -0
  960. package/types/devvit/plugin/v2events/v2events.twirp-client.js +23 -0
  961. package/types/devvit/plugin/v2events/v2events.twirp.d.ts +12 -0
  962. package/types/devvit/plugin/v2events/v2events.twirp.d.ts.map +1 -0
  963. package/types/devvit/plugin/v2events/v2events.twirp.js +88 -0
  964. package/types/devvit/reddit/comment.d.ts +2 -2
  965. package/types/devvit/reddit/comment.js +5 -5
  966. package/types/devvit/reddit/common.d.ts +1 -1
  967. package/types/devvit/reddit/common.js +3 -3
  968. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.d.ts +3 -3
  969. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.js +5 -5
  970. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts +22 -0
  971. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.d.ts.map +1 -0
  972. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp-client.js +35 -0
  973. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts +14 -0
  974. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.d.ts.map +1 -0
  975. package/types/devvit/reddit/custom_actions/v2alpha/custom_actions.twirp.js +156 -0
  976. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +4 -4
  977. package/types/devvit/reddit/custom_post/v1alpha/custom_post.js +6 -6
  978. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts +26 -0
  979. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.d.ts.map +1 -0
  980. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp-client.js +48 -0
  981. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts +17 -0
  982. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.d.ts.map +1 -0
  983. package/types/devvit/reddit/custom_post/v1alpha/custom_post.twirp.js +223 -0
  984. package/types/devvit/reddit/post.d.ts +2 -2
  985. package/types/devvit/reddit/post.js +5 -5
  986. package/types/devvit/reddit/subreddit.d.ts +2 -2
  987. package/types/devvit/reddit/subreddit.js +4 -4
  988. package/types/devvit/reddit/user.d.ts +2 -2
  989. package/types/devvit/reddit/user.js +4 -4
  990. package/types/devvit/reddit/v2alpha/commentv2.d.ts +1 -1
  991. package/types/devvit/reddit/v2alpha/commentv2.js +2 -2
  992. package/types/devvit/reddit/v2alpha/flair.d.ts +1 -1
  993. package/types/devvit/reddit/v2alpha/flair.js +2 -2
  994. package/types/devvit/reddit/v2alpha/modaction.d.ts +5 -5
  995. package/types/devvit/reddit/v2alpha/modaction.js +7 -7
  996. package/types/devvit/reddit/v2alpha/modmail.d.ts +3 -3
  997. package/types/devvit/reddit/v2alpha/modmail.js +5 -5
  998. package/types/devvit/reddit/v2alpha/postv2.d.ts +2 -2
  999. package/types/devvit/reddit/v2alpha/postv2.js +3 -3
  1000. package/types/devvit/reddit/v2alpha/subredditv2.d.ts +1 -1
  1001. package/types/devvit/reddit/v2alpha/subredditv2.js +2 -2
  1002. package/types/devvit/reddit/v2alpha/userv2.d.ts +2 -2
  1003. package/types/devvit/reddit/v2alpha/userv2.js +3 -3
  1004. package/types/devvit/remote_logger/remote_logger.d.ts +2 -2
  1005. package/types/devvit/remote_logger/remote_logger.js +4 -4
  1006. package/types/devvit/runtime/actor/bootstrap.d.ts +3 -3
  1007. package/types/devvit/runtime/actor/bootstrap.js +3 -3
  1008. package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts +23 -0
  1009. package/types/devvit/runtime/actor/bootstrap.twirp-client.d.ts.map +1 -0
  1010. package/types/devvit/runtime/actor/bootstrap.twirp-client.js +36 -0
  1011. package/types/devvit/runtime/actor/bootstrap.twirp.d.ts +15 -0
  1012. package/types/devvit/runtime/actor/bootstrap.twirp.d.ts.map +1 -0
  1013. package/types/devvit/runtime/actor/bootstrap.twirp.js +157 -0
  1014. package/types/devvit/runtime/actor/echo.d.ts +2 -2
  1015. package/types/devvit/runtime/actor/echo.js +2 -2
  1016. package/types/devvit/runtime/actor/echo.twirp-client.d.ts +19 -0
  1017. package/types/devvit/runtime/actor/echo.twirp-client.d.ts.map +1 -0
  1018. package/types/devvit/runtime/actor/echo.twirp-client.js +23 -0
  1019. package/types/devvit/runtime/actor/echo.twirp.d.ts +12 -0
  1020. package/types/devvit/runtime/actor/echo.twirp.d.ts.map +1 -0
  1021. package/types/devvit/runtime/actor/echo.twirp.js +88 -0
  1022. package/types/devvit/runtime/actor/runtime.d.ts +3 -3
  1023. package/types/devvit/runtime/actor/runtime.js +4 -4
  1024. package/types/devvit/runtime/actor/runtime.twirp-client.d.ts +24 -0
  1025. package/types/devvit/runtime/actor/runtime.twirp-client.d.ts.map +1 -0
  1026. package/types/devvit/runtime/actor/runtime.twirp-client.js +37 -0
  1027. package/types/devvit/runtime/actor/runtime.twirp.d.ts +16 -0
  1028. package/types/devvit/runtime/actor/runtime.twirp.d.ts.map +1 -0
  1029. package/types/devvit/runtime/actor/runtime.twirp.js +158 -0
  1030. package/types/devvit/runtime/actor/supervisor.d.ts +4 -4
  1031. package/types/devvit/runtime/actor/supervisor.js +5 -5
  1032. package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts +28 -0
  1033. package/types/devvit/runtime/actor/supervisor.twirp-client.d.ts.map +1 -0
  1034. package/types/devvit/runtime/actor/supervisor.twirp-client.js +50 -0
  1035. package/types/devvit/runtime/actor/supervisor.twirp.d.ts +19 -0
  1036. package/types/devvit/runtime/actor/supervisor.twirp.d.ts.map +1 -0
  1037. package/types/devvit/runtime/actor/supervisor.twirp.js +225 -0
  1038. package/types/devvit/runtime/actor/v1alpha/health.d.ts +2 -2
  1039. package/types/devvit/runtime/actor/v1alpha/health.js +4 -4
  1040. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts +20 -0
  1041. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.d.ts.map +1 -0
  1042. package/types/devvit/runtime/actor/v1alpha/health.twirp-client.js +24 -0
  1043. package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts +13 -0
  1044. package/types/devvit/runtime/actor/v1alpha/health.twirp.d.ts.map +1 -0
  1045. package/types/devvit/runtime/actor/v1alpha/health.twirp.js +89 -0
  1046. package/types/devvit/runtime/bundle.d.ts +2 -2
  1047. package/types/devvit/runtime/bundle.js +5 -5
  1048. package/types/devvit/runtime/envelope.d.ts +2 -2
  1049. package/types/devvit/runtime/envelope.js +4 -4
  1050. package/types/devvit/runtime/runtime_common.d.ts +1 -1
  1051. package/types/devvit/runtime/runtime_common.js +3 -3
  1052. package/types/devvit/runtime/serializable.d.ts +1 -1
  1053. package/types/devvit/runtime/serializable.js +2 -2
  1054. package/types/devvit/service/bundle_service.d.ts +3 -3
  1055. package/types/devvit/service/bundle_service.js +4 -4
  1056. package/types/devvit/service/bundle_service.twirp-client.d.ts +24 -0
  1057. package/types/devvit/service/bundle_service.twirp-client.d.ts.map +1 -0
  1058. package/types/devvit/service/bundle_service.twirp-client.js +37 -0
  1059. package/types/devvit/service/bundle_service.twirp.d.ts +16 -0
  1060. package/types/devvit/service/bundle_service.twirp.d.ts.map +1 -0
  1061. package/types/devvit/service/bundle_service.twirp.js +158 -0
  1062. package/types/devvit/service/envelope_service.d.ts +3 -3
  1063. package/types/devvit/service/envelope_service.js +3 -3
  1064. package/types/devvit/service/envelope_service.twirp-client.d.ts +20 -0
  1065. package/types/devvit/service/envelope_service.twirp-client.d.ts.map +1 -0
  1066. package/types/devvit/service/envelope_service.twirp-client.js +24 -0
  1067. package/types/devvit/service/envelope_service.twirp.d.ts +13 -0
  1068. package/types/devvit/service/envelope_service.twirp.d.ts.map +1 -0
  1069. package/types/devvit/service/envelope_service.twirp.js +89 -0
  1070. package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.d.ts +4 -4
  1071. package/types/devvit/triggers/v1alpha/triggers.d.ts.map +1 -0
  1072. package/types/devvit/{data/triggers → triggers}/v1alpha/triggers.js +6 -6
  1073. package/types/devvit/ui/block_kit/v1beta/attributes.d.ts +2 -2
  1074. package/types/devvit/ui/block_kit/v1beta/attributes.js +4 -4
  1075. package/types/devvit/ui/block_kit/v1beta/block.d.ts +3 -3
  1076. package/types/devvit/ui/block_kit/v1beta/block.js +5 -5
  1077. package/types/devvit/ui/block_kit/v1beta/rendering.d.ts +3 -3
  1078. package/types/devvit/ui/block_kit/v1beta/rendering.js +5 -5
  1079. package/types/devvit/ui/block_kit/v1beta/ui.d.ts +5 -5
  1080. package/types/devvit/ui/block_kit/v1beta/ui.js +7 -7
  1081. package/types/devvit/ui/common/v1alpha/common.d.ts +1 -1
  1082. package/types/devvit/ui/common/v1alpha/common.js +2 -2
  1083. package/types/devvit/ui/effects/v1alpha/create_order.d.ts +1 -1
  1084. package/types/devvit/ui/effects/v1alpha/create_order.js +2 -2
  1085. package/types/devvit/ui/effects/v1alpha/effect.d.ts +9 -9
  1086. package/types/devvit/ui/effects/v1alpha/effect.js +10 -10
  1087. package/types/devvit/ui/effects/v1alpha/interval.d.ts +2 -2
  1088. package/types/devvit/ui/effects/v1alpha/interval.js +4 -4
  1089. package/types/devvit/ui/effects/v1alpha/navigate_to_url.d.ts +1 -1
  1090. package/types/devvit/ui/effects/v1alpha/navigate_to_url.js +2 -2
  1091. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.d.ts +2 -2
  1092. package/types/devvit/ui/effects/v1alpha/realtime_subscriptions.js +3 -3
  1093. package/types/devvit/ui/effects/v1alpha/reload_part.d.ts +1 -1
  1094. package/types/devvit/ui/effects/v1alpha/reload_part.js +2 -2
  1095. package/types/devvit/ui/effects/v1alpha/rerender_ui.d.ts +1 -1
  1096. package/types/devvit/ui/effects/v1alpha/rerender_ui.js +2 -2
  1097. package/types/devvit/ui/effects/v1alpha/show_form.d.ts +3 -3
  1098. package/types/devvit/ui/effects/v1alpha/show_form.js +4 -4
  1099. package/types/devvit/ui/effects/v1alpha/show_toast.d.ts +2 -2
  1100. package/types/devvit/ui/effects/v1alpha/show_toast.js +3 -3
  1101. package/types/devvit/ui/events/v1alpha/event.d.ts +5 -5
  1102. package/types/devvit/ui/events/v1alpha/event.js +8 -8
  1103. package/types/devvit/ui/events/v1alpha/handle_ui.d.ts +3 -3
  1104. package/types/devvit/ui/events/v1alpha/handle_ui.js +5 -5
  1105. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts +19 -0
  1106. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.d.ts.map +1 -0
  1107. package/types/devvit/ui/events/v1alpha/handle_ui.twirp-client.js +23 -0
  1108. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts +12 -0
  1109. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.d.ts.map +1 -0
  1110. package/types/devvit/ui/events/v1alpha/handle_ui.twirp.js +88 -0
  1111. package/types/devvit/ui/form_builder/v1alpha/field.d.ts +3 -3
  1112. package/types/devvit/ui/form_builder/v1alpha/field.js +4 -4
  1113. package/types/devvit/ui/form_builder/v1alpha/form.d.ts +2 -2
  1114. package/types/devvit/ui/form_builder/v1alpha/form.js +3 -3
  1115. package/types/devvit/ui/form_builder/v1alpha/value.d.ts +2 -2
  1116. package/types/devvit/ui/form_builder/v1alpha/value.js +3 -3
  1117. package/types/devvit/ui/toast/toast.d.ts +1 -1
  1118. package/types/devvit/ui/toast/toast.js +2 -2
  1119. package/types/devvit/uuid.d.ts +1 -1
  1120. package/types/devvit/uuid.js +2 -2
  1121. package/types/google/protobuf/any.d.ts +5 -10
  1122. package/types/google/protobuf/any.d.ts.map +1 -1
  1123. package/types/google/protobuf/any.js +2 -2
  1124. package/types/google/protobuf/descriptor.d.ts +39 -435
  1125. package/types/google/protobuf/descriptor.d.ts.map +1 -1
  1126. package/types/google/protobuf/descriptor.js +101 -1605
  1127. package/types/google/protobuf/duration.d.ts +1 -1
  1128. package/types/google/protobuf/duration.js +2 -2
  1129. package/types/google/protobuf/empty.d.ts +1 -1
  1130. package/types/google/protobuf/empty.js +2 -2
  1131. package/types/google/protobuf/struct.d.ts +2 -2
  1132. package/types/google/protobuf/struct.js +3 -3
  1133. package/types/google/protobuf/timestamp.d.ts +2 -2
  1134. package/types/google/protobuf/timestamp.js +2 -2
  1135. package/types/google/protobuf/wrappers.d.ts +1 -1
  1136. package/types/google/protobuf/wrappers.js +2 -2
  1137. package/types/typeRegistry.d.ts +1 -1
  1138. package/schema/buf.strict.yaml +0 -7
  1139. package/schema/buf.yaml +0 -8
  1140. package/types/devvit/data/api/admin/v1alpha/audit.d.ts +0 -159
  1141. package/types/devvit/data/api/admin/v1alpha/audit.d.ts.map +0 -1
  1142. package/types/devvit/data/api/admin/v1alpha/audit.js +0 -776
  1143. package/types/devvit/data/api/admin/v1alpha/auth.d.ts +0 -127
  1144. package/types/devvit/data/api/admin/v1alpha/auth.d.ts.map +0 -1
  1145. package/types/devvit/data/api/admin/v1alpha/auth.js +0 -599
  1146. package/types/devvit/data/api/admin/v1alpha/organization.d.ts +0 -122
  1147. package/types/devvit/data/api/admin/v1alpha/organization.d.ts.map +0 -1
  1148. package/types/devvit/data/api/admin/v1alpha/organization.js +0 -522
  1149. package/types/devvit/data/api/admin/v1alpha/service.d.ts +0 -855
  1150. package/types/devvit/data/api/admin/v1alpha/service.d.ts.map +0 -1
  1151. package/types/devvit/data/api/admin/v1alpha/service.js +0 -254
  1152. package/types/devvit/data/api/admin/v1alpha/subscription.d.ts +0 -167
  1153. package/types/devvit/data/api/admin/v1alpha/subscription.d.ts.map +0 -1
  1154. package/types/devvit/data/api/admin/v1alpha/subscription.js +0 -885
  1155. package/types/devvit/data/api/admin/v1alpha/ui.d.ts +0 -52
  1156. package/types/devvit/data/api/admin/v1alpha/ui.d.ts.map +0 -1
  1157. package/types/devvit/data/api/admin/v1alpha/ui.js +0 -198
  1158. package/types/devvit/data/api/v1alpha/filter.d.ts +0 -160
  1159. package/types/devvit/data/api/v1alpha/filter.d.ts.map +0 -1
  1160. package/types/devvit/data/api/v1alpha/filter.js +0 -983
  1161. package/types/devvit/data/api/v1alpha/intake.d.ts +0 -85
  1162. package/types/devvit/data/api/v1alpha/intake.d.ts.map +0 -1
  1163. package/types/devvit/data/api/v1alpha/intake.js +0 -160
  1164. package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +0 -1
  1165. /package/schema/{buf → .snootobuf/deps/buf}/validate/expression.proto +0 -0
  1166. /package/schema/{buf → .snootobuf/deps/buf}/validate/priv/private.proto +0 -0
  1167. /package/schema/{buf → .snootobuf/deps/buf}/validate/validate.proto +0 -0
  1168. /package/schema/{google → .snootobuf/deps/google}/api/annotations.proto +0 -0
  1169. /package/schema/{openapi → .snootobuf/deps/openapi}/helper.proto +0 -0
@@ -0,0 +1,3641 @@
1
+ // @generated by protobuf-ts 2.9.3
2
+ // @generated from protobuf file "devvit/plugin/redditapi/common/common_msg.proto" (package "devvit.plugin.redditapi.common", 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 { User } from "../../../reddit/user";
14
+ import { Int32Value } from "../../../../google/protobuf/wrappers";
15
+ import { ListValue } from "../../../../google/protobuf/struct";
16
+ import { BoolValue } from "../../../../google/protobuf/wrappers";
17
+ import { Any } from "../../../../google/protobuf/any";
18
+ import { Int64Value } from "../../../../google/protobuf/wrappers";
19
+ import { StringValue } from "../../../../google/protobuf/wrappers";
20
+ /**
21
+ * A Listing is a paginated list of Things such as Subreddits, Posts, or Comments
22
+ *
23
+ * @generated from protobuf message devvit.plugin.redditapi.common.Listing
24
+ */
25
+ export interface Listing {
26
+ /**
27
+ * String value: "Listing"
28
+ *
29
+ * @generated from protobuf field: string kind = 1;
30
+ */
31
+ kind: string;
32
+ /**
33
+ * Contents of the listing
34
+ *
35
+ * @generated from protobuf field: devvit.plugin.redditapi.common.Listing.ListingData data = 2;
36
+ */
37
+ data?: Listing_ListingData;
38
+ }
39
+ /**
40
+ * @generated from protobuf message devvit.plugin.redditapi.common.Listing.ListingData
41
+ */
42
+ export interface Listing_ListingData {
43
+ /**
44
+ * If present, use this as the `after` parameter when calling the same
45
+ * API again to fetch the next page
46
+ *
47
+ * @generated from protobuf field: google.protobuf.StringValue after = 1;
48
+ */
49
+ after?: StringValue;
50
+ /**
51
+ * If present, use this as the `before` parameter when calling the same
52
+ * API again to fetch the previous page
53
+ *
54
+ * @generated from protobuf field: google.protobuf.StringValue before = 2;
55
+ */
56
+ before?: StringValue;
57
+ /**
58
+ * Contents of the current page of the listing
59
+ *
60
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.common.WrappedRedditObject children = 3;
61
+ */
62
+ children: WrappedRedditObject[];
63
+ /**
64
+ * Number of objects in `children`
65
+ * Note: Only counts immediate entries in `children` and does not count
66
+ * nested objects such as comment trees
67
+ *
68
+ * @generated from protobuf field: google.protobuf.Int64Value dist = 4;
69
+ */
70
+ dist?: Int64Value;
71
+ }
72
+ /**
73
+ * A WrappedRedditObject couples a RedditObject with a type identifier
74
+ *
75
+ * @generated from protobuf message devvit.plugin.redditapi.common.WrappedRedditObject
76
+ */
77
+ export interface WrappedRedditObject {
78
+ /**
79
+ * Thing ID prefix to identify what kind of object this is
80
+ *
81
+ * @generated from protobuf field: string kind = 1;
82
+ */
83
+ kind: string;
84
+ /**
85
+ * Object data of type `kind`
86
+ *
87
+ * @generated from protobuf field: devvit.plugin.redditapi.common.RedditObject data = 2;
88
+ */
89
+ data?: RedditObject;
90
+ }
91
+ /**
92
+ * @generated from protobuf message devvit.plugin.redditapi.common.JsonRedditObjects
93
+ */
94
+ export interface JsonRedditObjects {
95
+ /**
96
+ * @generated from protobuf field: devvit.plugin.redditapi.common.JsonRedditObjects.JsonType json = 4;
97
+ */
98
+ json?: JsonRedditObjects_JsonType;
99
+ }
100
+ /**
101
+ * @generated from protobuf message devvit.plugin.redditapi.common.JsonRedditObjects.JsonType
102
+ */
103
+ export interface JsonRedditObjects_JsonType {
104
+ /**
105
+ * @generated from protobuf field: repeated google.protobuf.Any errors = 1;
106
+ */
107
+ errors: Any[];
108
+ /**
109
+ * @generated from protobuf field: devvit.plugin.redditapi.common.JsonRedditObjects.JsonType.JsonData data = 2;
110
+ */
111
+ data?: JsonRedditObjects_JsonType_JsonData;
112
+ }
113
+ /**
114
+ * @generated from protobuf message devvit.plugin.redditapi.common.JsonRedditObjects.JsonType.JsonData
115
+ */
116
+ export interface JsonRedditObjects_JsonType_JsonData {
117
+ /**
118
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.common.WrappedRedditObject things = 1;
119
+ */
120
+ things: WrappedRedditObject[];
121
+ }
122
+ /**
123
+ * A RedditObject can either be a Post (t3) or a Comment (t1)
124
+ *
125
+ * Note: Will be replaced by the discrete {@link Comment} and {@link Post} types
126
+ *
127
+ * @generated from protobuf message devvit.plugin.redditapi.common.RedditObject
128
+ */
129
+ export interface RedditObject {
130
+ /**
131
+ * List of awards this object has received
132
+ * Note: not yet parsed by RedditAPI
133
+ * @ignore
134
+ *
135
+ * @generated from protobuf field: repeated google.protobuf.Any all_awardings = 1;
136
+ */
137
+ allAwardings: Any[];
138
+ /**
139
+ * If `true` this has been approved by a moderator
140
+ *
141
+ * @generated from protobuf field: google.protobuf.BoolValue approved = 2;
142
+ */
143
+ approved?: BoolValue;
144
+ /**
145
+ * Timestamp when this was approved
146
+ *
147
+ * @generated from protobuf field: google.protobuf.Int64Value approved_at_utc = 3;
148
+ */
149
+ approvedAtUtc?: Int64Value;
150
+ /**
151
+ * Username of the moderator that manually approved this object
152
+ *
153
+ * @generated from protobuf field: google.protobuf.StringValue approved_by = 4;
154
+ */
155
+ approvedBy?: StringValue;
156
+ /**
157
+ * If `true`, this object has been archived
158
+ *
159
+ * @generated from protobuf field: google.protobuf.BoolValue archived = 5;
160
+ */
161
+ archived?: BoolValue;
162
+ /**
163
+ * @generated from protobuf field: google.protobuf.StringValue associated_award = 6;
164
+ */
165
+ associatedAward?: StringValue;
166
+ /**
167
+ * The username of the author of this object
168
+ * @example "spez"
169
+ *
170
+ * @generated from protobuf field: google.protobuf.StringValue author = 7;
171
+ */
172
+ author?: StringValue;
173
+ /**
174
+ * Flair background color as a hex color string (# prefixed)
175
+ * @example "#FF4500"
176
+ *
177
+ * @generated from protobuf field: google.protobuf.StringValue author_flair_background_color = 8;
178
+ */
179
+ authorFlairBackgroundColor?: StringValue;
180
+ /**
181
+ * Custom CSS classes from the subreddit's stylesheet
182
+ * to apply to the flair if rendered as HTML
183
+ *
184
+ * @generated from protobuf field: google.protobuf.StringValue author_flair_css_class = 9;
185
+ */
186
+ authorFlairCssClass?: StringValue;
187
+ /**
188
+ * RichText representation of the author's flair
189
+ * Note: incorrectly typed and not guaranteed to be useful
190
+ *
191
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.common.RedditObject.AuthorFlairRichText author_flair_richtext = 10;
192
+ */
193
+ authorFlairRichtext: RedditObject_AuthorFlairRichText[];
194
+ /**
195
+ * Flair template ID to use when rendering this flair
196
+ * @see Use {@link Flair.FlairList} to get flair templates for a subreddit
197
+ * @example "813b473a-4d74-4933-ba79-a7f1b8b285ef"
198
+ *
199
+ * @generated from protobuf field: google.protobuf.StringValue author_flair_template_id = 11;
200
+ */
201
+ authorFlairTemplateId?: StringValue;
202
+ /**
203
+ * Plain text representation of the flair RichText
204
+ *
205
+ * @generated from protobuf field: google.protobuf.StringValue author_flair_text = 12;
206
+ */
207
+ authorFlairText?: StringValue;
208
+ /**
209
+ * One of: "light", "dark"
210
+ *
211
+ * @generated from protobuf field: google.protobuf.StringValue author_flair_text_color = 13;
212
+ */
213
+ authorFlairTextColor?: StringValue;
214
+ /**
215
+ * One of: "text", "richtext"
216
+ *
217
+ * @generated from protobuf field: google.protobuf.StringValue author_flair_type = 14;
218
+ */
219
+ authorFlairType?: StringValue;
220
+ /**
221
+ * Thing ID of the author
222
+ * @example "t2_abc123"
223
+ *
224
+ * @generated from protobuf field: google.protobuf.StringValue author_fullname = 15;
225
+ */
226
+ authorFullname?: StringValue;
227
+ /**
228
+ * If `true`, the current user has blocked the author
229
+ *
230
+ * @generated from protobuf field: google.protobuf.BoolValue author_is_blocked = 16;
231
+ */
232
+ authorIsBlocked?: BoolValue;
233
+ /**
234
+ * @deprecated
235
+ *
236
+ * @deprecated
237
+ * @generated from protobuf field: google.protobuf.BoolValue author_patreon_flair = 17 [deprecated = true];
238
+ */
239
+ authorPatreonFlair?: BoolValue;
240
+ /**
241
+ * If `true`, this author is subscribed to Reddit Premium
242
+ *
243
+ * @generated from protobuf field: google.protobuf.BoolValue author_premium = 18;
244
+ */
245
+ authorPremium?: BoolValue;
246
+ /**
247
+ * List of usernames that have given awards to this object
248
+ *
249
+ * @generated from protobuf field: repeated google.protobuf.StringValue awarders = 19;
250
+ */
251
+ awarders: StringValue[];
252
+ /**
253
+ * Timestamp when this was banned
254
+ *
255
+ * @generated from protobuf field: google.protobuf.Int64Value banned_at_utc = 20;
256
+ */
257
+ bannedAtUtc?: Int64Value;
258
+ /**
259
+ * Username of the moderator that banned this object
260
+ *
261
+ * @generated from protobuf field: google.protobuf.StringValue banned_by = 21;
262
+ */
263
+ bannedBy?: StringValue;
264
+ /**
265
+ * Markdown body text if this is a Comment
266
+ *
267
+ * @generated from protobuf field: google.protobuf.StringValue body = 22;
268
+ */
269
+ body?: StringValue;
270
+ /**
271
+ * Pre-rendered HTML representing the Markdown or RichText body of a Comment
272
+ *
273
+ * @generated from protobuf field: google.protobuf.StringValue body_html = 23;
274
+ */
275
+ bodyHtml?: StringValue;
276
+ /**
277
+ * If `true`, the current user can award this object
278
+ *
279
+ * @generated from protobuf field: google.protobuf.BoolValue can_gild = 24;
280
+ */
281
+ canGild?: BoolValue;
282
+ /**
283
+ * If `true`, the current user has adequate permission to moderate this object
284
+ *
285
+ * @generated from protobuf field: google.protobuf.BoolValue can_mod_post = 25;
286
+ */
287
+ canModPost?: BoolValue;
288
+ /**
289
+ * If `true`, this Comment is collapsed by default
290
+ * @see {@link collapsed_reason} and {@link collapsed_reason_code} to determine why
291
+ *
292
+ * @generated from protobuf field: google.protobuf.BoolValue collapsed = 26;
293
+ */
294
+ collapsed?: BoolValue;
295
+ /**
296
+ * Alias for collapsed_reason_code = "CROWD_CONTROL"
297
+ *
298
+ * @generated from protobuf field: google.protobuf.BoolValue collapsed_because_crowd_control = 27;
299
+ */
300
+ collapsedBecauseCrowdControl?: BoolValue;
301
+ /**
302
+ * User-friendly string explaining why this Comment is collapsed
303
+ *
304
+ * @generated from protobuf field: google.protobuf.StringValue collapsed_reason = 28;
305
+ */
306
+ collapsedReason?: StringValue;
307
+ /**
308
+ * One of: "LOW_SCORE", "BLOCKED_AUTHOR", "POTENTIALLY_TOXIC", "CROWD_CONTROL", "DELETED"
309
+ *
310
+ * @generated from protobuf field: google.protobuf.StringValue collapsed_reason_code = 29;
311
+ */
312
+ collapsedReasonCode?: StringValue;
313
+ /**
314
+ * @generated from protobuf field: google.protobuf.StringValue comment_type = 30;
315
+ */
316
+ commentType?: StringValue;
317
+ /**
318
+ * If set to `1` this Comment is considered controversial
319
+ *
320
+ * @generated from protobuf field: google.protobuf.Int64Value controversiality = 31;
321
+ */
322
+ controversiality?: Int64Value;
323
+ /**
324
+ * Timestamp when this object was created
325
+ * @see Alias for {@link created_utc}
326
+ *
327
+ * @generated from protobuf field: google.protobuf.Int64Value created = 32;
328
+ */
329
+ created?: Int64Value;
330
+ /**
331
+ * Timestamp when this object was created
332
+ * @see Alias for {@link created}
333
+ *
334
+ * @generated from protobuf field: google.protobuf.Int64Value created_utc = 33;
335
+ */
336
+ createdUtc?: Int64Value;
337
+ /**
338
+ * If `true`, an admin has distinguished this object
339
+ *
340
+ * @generated from protobuf field: google.protobuf.StringValue distinguished = 34;
341
+ */
342
+ distinguished?: StringValue;
343
+ /**
344
+ * Previously displayed the number of downvotes this object received
345
+ * @deprecated Always returns 0
346
+ *
347
+ * @generated from protobuf field: google.protobuf.Int64Value downs = 35;
348
+ */
349
+ downs?: Int64Value;
350
+ /**
351
+ * If `true`, the body of this object has been edited since it was posted
352
+ *
353
+ * @generated from protobuf field: google.protobuf.BoolValue edited = 36;
354
+ */
355
+ edited?: BoolValue;
356
+ /**
357
+ * Number of times this object has received a Gold award
358
+ * @deprecated
359
+ *
360
+ * @deprecated
361
+ * @generated from protobuf field: google.protobuf.Int64Value gilded = 37 [deprecated = true];
362
+ */
363
+ gilded?: Int64Value;
364
+ /**
365
+ * Map of gold awards to the number of times received
366
+ * Note: Incorrectly typed and may be unusable.
367
+ * @deprecated
368
+ *
369
+ * @deprecated
370
+ * @generated from protobuf field: google.protobuf.Any gildings = 38 [deprecated = true];
371
+ */
372
+ gildings?: Any;
373
+ /**
374
+ * Thing ID for this Post or Comment without leading thing ID prefix
375
+ * @example "abc123" // for: t1_abc123
376
+ *
377
+ * @generated from protobuf field: google.protobuf.StringValue id = 39;
378
+ */
379
+ id?: StringValue;
380
+ /**
381
+ * Whether or not a moderator has disabled reports for this object
382
+ *
383
+ * @generated from protobuf field: google.protobuf.BoolValue ignore_reports = 40;
384
+ */
385
+ ignoreReports?: BoolValue;
386
+ /**
387
+ * If `true`, this object was submitted by the current user
388
+ *
389
+ * @generated from protobuf field: google.protobuf.BoolValue is_submitter = 41;
390
+ */
391
+ isSubmitter?: BoolValue;
392
+ /**
393
+ * Upvote status where:
394
+ * - `true`: Upvote
395
+ * - `null`: No vote
396
+ * - `false`: Downvote
397
+ *
398
+ * @generated from protobuf field: google.protobuf.BoolValue likes = 42;
399
+ */
400
+ likes?: BoolValue;
401
+ /**
402
+ * Thing ID of the parent Post for this Comment
403
+ * @example "t3_abc123"
404
+ *
405
+ * @generated from protobuf field: google.protobuf.StringValue link_id = 43;
406
+ */
407
+ linkId?: StringValue;
408
+ /**
409
+ * If `true`, this object has been locked and replies are disabled
410
+ *
411
+ * @generated from protobuf field: google.protobuf.BoolValue locked = 44;
412
+ */
413
+ locked?: BoolValue;
414
+ /**
415
+ * Notes added by the moderator when a removal reason chosen
416
+ *
417
+ * @generated from protobuf field: google.protobuf.StringValue mod_note = 45;
418
+ */
419
+ modNote?: StringValue;
420
+ /**
421
+ * Moderator username that chose the reason for the object to be removed
422
+ *
423
+ * @generated from protobuf field: google.protobuf.StringValue mod_reason_by = 46;
424
+ */
425
+ modReasonBy?: StringValue;
426
+ /**
427
+ * The title of the removal reason chosen by the moderator
428
+ *
429
+ * @generated from protobuf field: google.protobuf.StringValue mod_reason_title = 47;
430
+ */
431
+ modReasonTitle?: StringValue;
432
+ /**
433
+ * Thing ID for this object
434
+ * @example "t1_abc123"
435
+ *
436
+ * @generated from protobuf field: google.protobuf.StringValue name = 49;
437
+ */
438
+ name?: StringValue;
439
+ /**
440
+ * @generated from protobuf field: google.protobuf.BoolValue no_follow = 50;
441
+ */
442
+ noFollow?: BoolValue;
443
+ /**
444
+ * Total number of reports that have been filed against this object
445
+ *
446
+ * @generated from protobuf field: google.protobuf.Int64Value num_reports = 52;
447
+ */
448
+ numReports?: Int64Value;
449
+ /**
450
+ * Thing ID of the parent object immediately above this object in the tree
451
+ * Note: If this is a top-level comment the parent would be the Post (t3)
452
+ * but if it was a reply to another comment the parent would be the
453
+ * Comment (t1) being replied to
454
+ * @see {@link link_id} to skip to the root of the comment tree
455
+ * @example "t1_abc123"
456
+ *
457
+ * @generated from protobuf field: google.protobuf.StringValue parent_id = 53;
458
+ */
459
+ parentId?: StringValue;
460
+ /**
461
+ * The path of this object relative to www.reddit.com
462
+ * @example "/r/aww/comments/ze7u6n/oc_just_woke_up_from_his_nap/"
463
+ *
464
+ * @generated from protobuf field: google.protobuf.StringValue permalink = 54;
465
+ */
466
+ permalink?: StringValue;
467
+ /**
468
+ * @generated from protobuf field: google.protobuf.StringValue removal_reason = 55;
469
+ */
470
+ removalReason?: StringValue;
471
+ /**
472
+ * If `true`, the object has been removed by a moderator
473
+ *
474
+ * @generated from protobuf field: google.protobuf.BoolValue removed = 56;
475
+ */
476
+ removed?: BoolValue;
477
+ /**
478
+ * Comments made directly to this object
479
+ * Note: Incorrect type. Currently unusable.
480
+ * @deprecated Please use replyList instead
481
+ *
482
+ * @deprecated
483
+ * @generated from protobuf field: google.protobuf.StringValue replies = 57 [deprecated = true];
484
+ */
485
+ replies?: StringValue;
486
+ /**
487
+ * @generated from protobuf field: google.protobuf.ListValue report_reasons = 58;
488
+ */
489
+ reportReasons?: ListValue;
490
+ /**
491
+ * RichText editor mode
492
+ * One of: "richtext", "markdown"
493
+ *
494
+ * @generated from protobuf field: google.protobuf.StringValue rte_mode = 59;
495
+ */
496
+ rteMode?: StringValue;
497
+ /**
498
+ * If `true`, the current user has saved this object to their profile
499
+ *
500
+ * @generated from protobuf field: google.protobuf.BoolValue saved = 60;
501
+ */
502
+ saved?: BoolValue;
503
+ /**
504
+ * Current total score for this object
505
+ *
506
+ * @generated from protobuf field: google.protobuf.Int64Value score = 61;
507
+ */
508
+ score?: Int64Value;
509
+ /**
510
+ * If `true`, the `score` for this object is not visible to the current user
511
+ *
512
+ * @generated from protobuf field: google.protobuf.BoolValue score_hidden = 62;
513
+ */
514
+ scoreHidden?: BoolValue;
515
+ /**
516
+ * If `true` the current user will receive notifications when someone replies to this object
517
+ *
518
+ * @generated from protobuf field: google.protobuf.BoolValue send_replies = 63;
519
+ */
520
+ sendReplies?: BoolValue;
521
+ /**
522
+ * If `true` this has been flagged as spam by a moderator
523
+ *
524
+ * @generated from protobuf field: google.protobuf.BoolValue spam = 64;
525
+ */
526
+ spam?: BoolValue;
527
+ /**
528
+ * If `true` this should be presented before others relative to its type
529
+ *
530
+ * @generated from protobuf field: google.protobuf.BoolValue stickied = 65;
531
+ */
532
+ stickied?: BoolValue;
533
+ /**
534
+ * Name of the Subreddit that owns this object
535
+ * @example "AskReddit"
536
+ *
537
+ * @generated from protobuf field: google.protobuf.StringValue subreddit = 66;
538
+ */
539
+ subreddit?: StringValue;
540
+ /**
541
+ * Thing ID of the Subreddit that owns this object
542
+ * @example "t5_abc123"
543
+ *
544
+ * @generated from protobuf field: google.protobuf.StringValue subreddit_id = 67;
545
+ */
546
+ subredditId?: StringValue;
547
+ /**
548
+ * Name of the Subreddit that owns this object prefixed with "r/"
549
+ * @example "r/aww"
550
+ *
551
+ * @generated from protobuf field: google.protobuf.StringValue subreddit_name_prefixed = 68;
552
+ */
553
+ subredditNamePrefixed?: StringValue;
554
+ /**
555
+ * One of: "public", "private", "restricted", "gold_only", "gold_restricted",
556
+ * "archived", "user", "employees_only"
557
+ *
558
+ * @generated from protobuf field: google.protobuf.StringValue subreddit_type = 69;
559
+ */
560
+ subredditType?: StringValue;
561
+ /**
562
+ * One of: "ACTIVE", "INACTIVE"
563
+ *
564
+ * @generated from protobuf field: google.protobuf.StringValue top_awarded_type = 70;
565
+ */
566
+ topAwardedType?: StringValue;
567
+ /**
568
+ * Total count of awards this object has received
569
+ *
570
+ * @generated from protobuf field: google.protobuf.Int64Value total_awards_received = 71;
571
+ */
572
+ totalAwardsReceived?: Int64Value;
573
+ /**
574
+ * @generated from protobuf field: repeated google.protobuf.Any treatment_tags = 72;
575
+ */
576
+ treatmentTags: Any[];
577
+ /**
578
+ * @generated from protobuf field: google.protobuf.StringValue unrepliable_reason = 73;
579
+ */
580
+ unrepliableReason?: StringValue;
581
+ /**
582
+ * Alias for score
583
+ *
584
+ * @generated from protobuf field: google.protobuf.Int64Value ups = 74;
585
+ */
586
+ ups?: Int64Value;
587
+ /**
588
+ * The depth of this object relative to the Listing
589
+ *
590
+ * @generated from protobuf field: google.protobuf.Int64Value depth = 76;
591
+ */
592
+ depth?: Int64Value;
593
+ /**
594
+ * If this is a Comment, the title of the parent Post
595
+ *
596
+ * @generated from protobuf field: google.protobuf.StringValue link_title = 77;
597
+ */
598
+ linkTitle?: StringValue;
599
+ /**
600
+ * If this is a Comment, the author of the parent Post
601
+ *
602
+ * @generated from protobuf field: google.protobuf.StringValue link_author = 78;
603
+ */
604
+ linkAuthor?: StringValue;
605
+ /**
606
+ * Total number of comments this object has received
607
+ *
608
+ * @generated from protobuf field: google.protobuf.Int64Value num_comments = 79;
609
+ */
610
+ numComments?: Int64Value;
611
+ /**
612
+ * If `true`, mark as not-safe-for-work
613
+ *
614
+ * @generated from protobuf field: google.protobuf.BoolValue over_18 = 80;
615
+ */
616
+ over18?: BoolValue;
617
+ /**
618
+ * The path of this object relative to www.reddit.com
619
+ * @example "/r/aww/comments/ze7u6n/oc_just_woke_up_from_his_nap/"
620
+ *
621
+ * @generated from protobuf field: google.protobuf.StringValue link_permalink = 81;
622
+ */
623
+ linkPermalink?: StringValue;
624
+ /**
625
+ * Whether this Thing has been
626
+ *
627
+ * @generated from protobuf field: google.protobuf.BoolValue quarantine = 82;
628
+ */
629
+ quarantine?: BoolValue;
630
+ /**
631
+ * If this is a Comment, the URL associated with the parent Post
632
+ *
633
+ * @generated from protobuf field: google.protobuf.StringValue link_url = 83;
634
+ */
635
+ linkUrl?: StringValue;
636
+ /**
637
+ * Markdown body text if this is a Text Post
638
+ *
639
+ * @generated from protobuf field: google.protobuf.StringValue selftext = 84;
640
+ */
641
+ selftext?: StringValue;
642
+ /**
643
+ * Pre-rendered HTML representing the Markdown or RichText body of a Text Post
644
+ *
645
+ * @generated from protobuf field: google.protobuf.StringValue selftext_html = 85;
646
+ */
647
+ selftextHtml?: StringValue;
648
+ /**
649
+ * URL of a scaled down preview image of the media in this object
650
+ *
651
+ * @generated from protobuf field: google.protobuf.StringValue thumbnail = 87;
652
+ */
653
+ thumbnail?: StringValue;
654
+ /**
655
+ * Width of the thumbnail image, in pixels
656
+ *
657
+ * @generated from protobuf field: google.protobuf.Int64Value thumbnail_width = 88;
658
+ */
659
+ thumbnailWidth?: Int64Value;
660
+ /**
661
+ * Height of the thumbnail image, in pixels
662
+ *
663
+ * @generated from protobuf field: google.protobuf.Int64Value thumbnail_height = 89;
664
+ */
665
+ thumbnailHeight?: Int64Value;
666
+ /**
667
+ * Title of the Post if it is a Post
668
+ *
669
+ * @generated from protobuf field: google.protobuf.StringValue title = 90;
670
+ */
671
+ title?: StringValue;
672
+ /**
673
+ * If this is a Post, contains one of the following:
674
+ * - Empty if this is a Text Post
675
+ * - The URL submitted by the user if this is a Link Post
676
+ * - The full-size image or video URL if this is an Image, Video, or VideoGif Post
677
+ *
678
+ * @generated from protobuf field: google.protobuf.StringValue url = 91;
679
+ */
680
+ url?: StringValue;
681
+ /**
682
+ * The name of the Subreddit if this object represents a Subreddit
683
+ *
684
+ * Note: This object is intended for Post and Comment data but
685
+ * Listings.Info() returns a ListingObject which can only contain
686
+ * WrappedRedditObject data, though that endpoint is able to
687
+ * fetch Subreddit data if a t5_ ID is provided as an argument.
688
+ *
689
+ * @generated from protobuf field: google.protobuf.StringValue display_name = 92;
690
+ */
691
+ displayName?: StringValue;
692
+ /**
693
+ * The list of moderator permissions for a user
694
+ *
695
+ * @generated from protobuf field: repeated google.protobuf.StringValue mod_permissions = 93;
696
+ */
697
+ modPermissions: StringValue[];
698
+ /**
699
+ * Number of replies intended for More data
700
+ *
701
+ * @generated from protobuf field: google.protobuf.Int64Value count = 94;
702
+ */
703
+ count?: Int64Value;
704
+ /**
705
+ * Ids of children intended for More data (without leading thing ID prefix)
706
+ *
707
+ * @generated from protobuf field: google.protobuf.ListValue children = 95;
708
+ */
709
+ children?: ListValue;
710
+ /**
711
+ * List of replies if this is a comment
712
+ *
713
+ * @generated from protobuf field: devvit.plugin.redditapi.common.Listing reply_list = 96;
714
+ */
715
+ replyList?: Listing;
716
+ /**
717
+ * If `true` this post has been hidden
718
+ *
719
+ * @generated from protobuf field: google.protobuf.BoolValue hidden = 97;
720
+ */
721
+ hidden?: BoolValue;
722
+ /**
723
+ * Post Flair aka Link Flair
724
+ * Flair background color as a hex color string (# prefixed)
725
+ * @example "#FF4500"
726
+ *
727
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_background_color = 98;
728
+ */
729
+ linkFlairBackgroundColor?: StringValue;
730
+ /**
731
+ * Custom CSS classes from the subreddit's stylesheet
732
+ * to apply to the flair if rendered as HTML
733
+ *
734
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_css_class = 99;
735
+ */
736
+ linkFlairCssClass?: StringValue;
737
+ /**
738
+ * RichText representation of the post's flair
739
+ *
740
+ * @generated from protobuf field: repeated devvit.plugin.redditapi.common.RedditObject.LinkFlairRichText link_flair_richtext = 100;
741
+ */
742
+ linkFlairRichtext: RedditObject_LinkFlairRichText[];
743
+ /**
744
+ * Flair template ID to use when rendering this flair
745
+ * @see Use {@link Flair.FlairList} to get flair templates for a subreddit
746
+ * @example "813b473a-4d74-4933-ba79-a7f1b8b285ef"
747
+ *
748
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_template_id = 101;
749
+ */
750
+ linkFlairTemplateId?: StringValue;
751
+ /**
752
+ * Plain text representation of the flair RichText
753
+ *
754
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_text = 102;
755
+ */
756
+ linkFlairText?: StringValue;
757
+ /**
758
+ * One of: "light", "dark"
759
+ *
760
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_text_color = 103;
761
+ */
762
+ linkFlairTextColor?: StringValue;
763
+ /**
764
+ * One of: "text", "richtext"
765
+ *
766
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_type = 104;
767
+ */
768
+ linkFlairType?: StringValue;
769
+ /**
770
+ * Information about the media embedded to the post
771
+ *
772
+ * @generated from protobuf field: devvit.plugin.redditapi.common.RedditObject.SecureMedia secure_media = 105;
773
+ */
774
+ secureMedia?: RedditObject_SecureMedia;
775
+ /**
776
+ * If `true`, hide the contents of this post until the user explicitly opens it
777
+ *
778
+ * @generated from protobuf field: bool spoiler = 106;
779
+ */
780
+ spoiler: boolean;
781
+ /**
782
+ * List of reports submitted by moderators against this object
783
+ *
784
+ * @generated from protobuf field: repeated google.protobuf.ListValue mod_reports = 107;
785
+ */
786
+ modReports: ListValue[];
787
+ /**
788
+ * List of reports submitted by users against this object
789
+ *
790
+ * @generated from protobuf field: repeated google.protobuf.ListValue user_reports = 108;
791
+ */
792
+ userReports: ListValue[];
793
+ /**
794
+ * Who removed this object (username)
795
+ *
796
+ * @generated from protobuf field: google.protobuf.StringValue removed_by = 109;
797
+ */
798
+ removedBy?: StringValue;
799
+ /**
800
+ * Returns information about who/what removed this object. It will return one of the following:
801
+ * - "anti_evil_ops": object is removed by a aeops member
802
+ * - "author": object is removed by author of the post
803
+ * - "automod_filtered": object is filtered by automod
804
+ * - "community_ops": object is removed by a community team member
805
+ * - "content_takedown": object is removed due to content violation
806
+ * - "copyright_takedown": object is removed due to copyright violation
807
+ * - "deleted": object is deleted
808
+ * - "moderator": object is removed by a mod of the sub
809
+ * - "reddit": object is removed by anyone else
810
+ * - None: object is not removed
811
+ *
812
+ * @generated from protobuf field: google.protobuf.StringValue removed_by_category = 110;
813
+ */
814
+ removedByCategory?: StringValue;
815
+ }
816
+ /**
817
+ * oEmbed is a format for allowing an embedded representation of a URL on third party sites.
818
+ * The simple API allows a website to display embedded content (such as photos or videos)
819
+ * when a user posts a link to that resource, without having to parse the resource directly.
820
+ * See: https://oembed.com/
821
+ *
822
+ * @generated from protobuf message devvit.plugin.redditapi.common.RedditObject.OEmbed
823
+ */
824
+ export interface RedditObject_OEmbed {
825
+ /**
826
+ * The resource type. Valid values, along with value-specific parameters, are described below. E.g. "video"
827
+ *
828
+ * @generated from protobuf field: string type = 1;
829
+ */
830
+ type: string;
831
+ /**
832
+ * A text title, describing the resource.
833
+ *
834
+ * @generated from protobuf field: optional string title = 2;
835
+ */
836
+ title?: string;
837
+ /**
838
+ * A URL for the author/owner of the resource. E.g. "YouTube"
839
+ *
840
+ * @generated from protobuf field: optional string provider_name = 3;
841
+ */
842
+ providerName?: string;
843
+ /**
844
+ * The name of the resource provider. E.g https://www.youtube.com/
845
+ *
846
+ * @generated from protobuf field: optional string provider_url = 4;
847
+ */
848
+ providerUrl?: string;
849
+ /**
850
+ * The oEmbed version number. This must be 1.0.
851
+ *
852
+ * @generated from protobuf field: string version = 5;
853
+ */
854
+ version: string;
855
+ /**
856
+ * The width of the optional thumbnail in pixels
857
+ *
858
+ * @generated from protobuf field: optional google.protobuf.Int32Value thumbnail_width = 6;
859
+ */
860
+ thumbnailWidth?: Int32Value;
861
+ /**
862
+ * The height of the optional thumbnail in pixels
863
+ *
864
+ * @generated from protobuf field: optional google.protobuf.Int32Value thumbnail_height = 7;
865
+ */
866
+ thumbnailHeight?: Int32Value;
867
+ /**
868
+ * A URL to a thumbnail image representing the resource.
869
+ *
870
+ * @generated from protobuf field: optional string thumbnail_url = 8;
871
+ */
872
+ thumbnailUrl?: string;
873
+ /**
874
+ * The HTML required to embed a video player. The HTML should have no padding or margins. Consumers may wish to load the HTML in an off-domain iframe to avoid XSS vulnerabilities.
875
+ *
876
+ * @generated from protobuf field: string html = 9;
877
+ */
878
+ html: string;
879
+ /**
880
+ * The width in pixels required to display the HTML.
881
+ *
882
+ * @generated from protobuf field: google.protobuf.Int32Value height = 10;
883
+ */
884
+ height?: Int32Value;
885
+ /**
886
+ * The height in pixels required to display the HTML.
887
+ *
888
+ * @generated from protobuf field: google.protobuf.Int32Value width = 11;
889
+ */
890
+ width?: Int32Value;
891
+ /**
892
+ * A URL for the author/owner of the resource. E.g. https://www.youtube.com/@Reddit
893
+ *
894
+ * @generated from protobuf field: optional string author_url = 12;
895
+ */
896
+ authorUrl?: string;
897
+ /**
898
+ * The name of the author/owner of the resource. E.g. "Reddit"
899
+ *
900
+ * @generated from protobuf field: optional string author_name = 13;
901
+ */
902
+ authorName?: string;
903
+ }
904
+ /**
905
+ * Contains the data for a video hosted on Reddit that is in a post
906
+ *
907
+ * @generated from protobuf message devvit.plugin.redditapi.common.RedditObject.RedditVideo
908
+ */
909
+ export interface RedditObject_RedditVideo {
910
+ /**
911
+ * The bitrate of the video in kilobits per second. E.g. 450
912
+ *
913
+ * @generated from protobuf field: google.protobuf.Int32Value bitrate_kbps = 1;
914
+ */
915
+ bitrateKbps?: Int32Value;
916
+ /**
917
+ * The URL to the DASH playlist file. E.g. "https://v.redd.it/abc123/DASHPlaylist.mpd"
918
+ *
919
+ * @generated from protobuf field: google.protobuf.StringValue dash_url = 2;
920
+ */
921
+ dashUrl?: StringValue;
922
+ /**
923
+ * The duration of the video in seconds. E.g. 30
924
+ *
925
+ * @generated from protobuf field: google.protobuf.Int32Value duration = 3;
926
+ */
927
+ duration?: Int32Value;
928
+ /**
929
+ * The direct URL to the video. E.g. "https://v.redd.it/abc123/DASH_1080.mp4?source=fallback"
930
+ *
931
+ * @generated from protobuf field: google.protobuf.StringValue fallback_url = 4;
932
+ */
933
+ fallbackUrl?: StringValue;
934
+ /**
935
+ * The height of the video in pixels. E.g. 1080
936
+ *
937
+ * @generated from protobuf field: google.protobuf.Int32Value height = 5;
938
+ */
939
+ height?: Int32Value;
940
+ /**
941
+ * The URL to the HLS playlist file. E.g. "https://v.redd.it/abc123/HLSPlaylist.m3u8"
942
+ *
943
+ * @generated from protobuf field: google.protobuf.StringValue hls_url = 6;
944
+ */
945
+ hlsUrl?: StringValue;
946
+ /**
947
+ * If `true`, the video is a GIF
948
+ *
949
+ * @generated from protobuf field: google.protobuf.BoolValue is_gif = 7;
950
+ */
951
+ isGif?: BoolValue;
952
+ /**
953
+ * The URL to the scrubber media file. E.g. "https://v.redd.it/abc123/DASH_96.mp4"
954
+ *
955
+ * @generated from protobuf field: google.protobuf.StringValue scrubber_media_url = 8;
956
+ */
957
+ scrubberMediaUrl?: StringValue;
958
+ /**
959
+ * The status of the transcoding process. E.g. "completed"
960
+ *
961
+ * @generated from protobuf field: google.protobuf.StringValue transcoding_status = 9;
962
+ */
963
+ transcodingStatus?: StringValue;
964
+ /**
965
+ * The width of the video in pixels. E.g. 1920
966
+ *
967
+ * @generated from protobuf field: google.protobuf.Int32Value width = 10;
968
+ */
969
+ width?: Int32Value;
970
+ }
971
+ /**
972
+ * RichText document for author flair
973
+ *
974
+ * @generated from protobuf message devvit.plugin.redditapi.common.RedditObject.AuthorFlairRichText
975
+ */
976
+ export interface RedditObject_AuthorFlairRichText {
977
+ /**
978
+ * enum of element types. e.g. emoji or text
979
+ *
980
+ * @generated from protobuf field: google.protobuf.StringValue e = 1;
981
+ */
982
+ e?: StringValue;
983
+ /**
984
+ * text to show up in the flair, e.g. "power poster"
985
+ *
986
+ * @generated from protobuf field: google.protobuf.StringValue t = 2;
987
+ */
988
+ t?: StringValue;
989
+ /**
990
+ * emoji references, e.g. ":rainbow:"
991
+ *
992
+ * @generated from protobuf field: google.protobuf.StringValue a = 3;
993
+ */
994
+ a?: StringValue;
995
+ /**
996
+ * url string, e.g. "https://reddit.com/"
997
+ *
998
+ * @generated from protobuf field: google.protobuf.StringValue u = 4;
999
+ */
1000
+ u?: StringValue;
1001
+ }
1002
+ /**
1003
+ * RichText document for post flair
1004
+ *
1005
+ * @generated from protobuf message devvit.plugin.redditapi.common.RedditObject.LinkFlairRichText
1006
+ */
1007
+ export interface RedditObject_LinkFlairRichText {
1008
+ /**
1009
+ * enum of element types. e.g. emoji or text
1010
+ *
1011
+ * @generated from protobuf field: google.protobuf.StringValue e = 1;
1012
+ */
1013
+ e?: StringValue;
1014
+ /**
1015
+ * text to show up in the flair, e.g. "Need Advice"
1016
+ *
1017
+ * @generated from protobuf field: google.protobuf.StringValue t = 2;
1018
+ */
1019
+ t?: StringValue;
1020
+ /**
1021
+ * emoji references, e.g. ":rainbow:"
1022
+ *
1023
+ * @generated from protobuf field: google.protobuf.StringValue a = 3;
1024
+ */
1025
+ a?: StringValue;
1026
+ /**
1027
+ * url string, e.g. "https://reddit.com/"
1028
+ *
1029
+ * @generated from protobuf field: google.protobuf.StringValue u = 4;
1030
+ */
1031
+ u?: StringValue;
1032
+ }
1033
+ /**
1034
+ * Secure Media object
1035
+ *
1036
+ * @generated from protobuf message devvit.plugin.redditapi.common.RedditObject.SecureMedia
1037
+ */
1038
+ export interface RedditObject_SecureMedia {
1039
+ /**
1040
+ * The type of the Secure Media (e.g. "youtube.com"). Populated when 'oembed' is present.
1041
+ *
1042
+ * @generated from protobuf field: string type = 1;
1043
+ */
1044
+ type: string;
1045
+ /**
1046
+ * Populated when the post media is hosted on a third-party site.
1047
+ *
1048
+ * @generated from protobuf field: devvit.plugin.redditapi.common.RedditObject.OEmbed oembed = 2;
1049
+ */
1050
+ oembed?: RedditObject_OEmbed;
1051
+ /**
1052
+ * Populated when the post media is a video hosted on Reddit.
1053
+ *
1054
+ * @generated from protobuf field: devvit.plugin.redditapi.common.RedditObject.RedditVideo reddit_video = 3;
1055
+ */
1056
+ redditVideo?: RedditObject_RedditVideo;
1057
+ }
1058
+ /**
1059
+ * @privateRemarks
1060
+ * TODO: remove in favor of Subreddit
1061
+ * A SubredditObject represents a Subreddit (t5)
1062
+ *
1063
+ * @generated from protobuf message devvit.plugin.redditapi.common.SubredditObject
1064
+ */
1065
+ export interface SubredditObject {
1066
+ /**
1067
+ * @deprecated
1068
+ *
1069
+ * @deprecated
1070
+ * @generated from protobuf field: google.protobuf.BoolValue default_set = 1 [deprecated = true];
1071
+ */
1072
+ defaultSet?: BoolValue;
1073
+ /**
1074
+ * If `true`, the current user has posted
1075
+ *
1076
+ * @generated from protobuf field: google.protobuf.BoolValue user_is_contributor = 2;
1077
+ */
1078
+ userIsContributor?: BoolValue;
1079
+ /**
1080
+ * Banner image for old.reddit.com
1081
+ * @deprecated
1082
+ *
1083
+ * @deprecated
1084
+ * @generated from protobuf field: google.protobuf.StringValue banner_img = 3 [deprecated = true];
1085
+ */
1086
+ bannerImg?: StringValue;
1087
+ /**
1088
+ * If `true`, crowd control is enabled
1089
+ *
1090
+ * @generated from protobuf field: google.protobuf.BoolValue restrict_posting = 4;
1091
+ */
1092
+ restrictPosting?: BoolValue;
1093
+ /**
1094
+ * If `true`, the current user is banned
1095
+ *
1096
+ * @generated from protobuf field: google.protobuf.BoolValue user_is_banned = 5;
1097
+ */
1098
+ userIsBanned?: BoolValue;
1099
+ /**
1100
+ * If `true`, users are given the option to write a custom explanation when reporting content
1101
+ *
1102
+ * @generated from protobuf field: google.protobuf.BoolValue free_form_reports = 6;
1103
+ */
1104
+ freeFormReports?: BoolValue;
1105
+ /**
1106
+ * URL to the custom icon as configured from www.reddit.com
1107
+ *
1108
+ * @generated from protobuf field: google.protobuf.StringValue community_icon = 7;
1109
+ */
1110
+ communityIcon?: StringValue;
1111
+ /**
1112
+ * If `true`, show thumbnail images of content is enabled on old.reddit.com
1113
+ * @deprecated
1114
+ *
1115
+ * @deprecated
1116
+ * @generated from protobuf field: google.protobuf.BoolValue show_media = 8 [deprecated = true];
1117
+ */
1118
+ showMedia?: BoolValue;
1119
+ /**
1120
+ * @deprecated
1121
+ *
1122
+ * @deprecated
1123
+ * @generated from protobuf field: google.protobuf.StringValue icon_color = 9 [deprecated = true];
1124
+ */
1125
+ iconColor?: StringValue;
1126
+ /**
1127
+ * Permanent identifier
1128
+ * @example "AskReddit"
1129
+ *
1130
+ * @generated from protobuf field: google.protobuf.StringValue display_name = 11;
1131
+ */
1132
+ displayName?: StringValue;
1133
+ /**
1134
+ * URL to the custom header icon as configured from old.reddit.com
1135
+ * @deprecated
1136
+ *
1137
+ * @deprecated
1138
+ * @generated from protobuf field: google.protobuf.StringValue header_img = 12 [deprecated = true];
1139
+ */
1140
+ headerImg?: StringValue;
1141
+ /**
1142
+ * Current, editable name
1143
+ * @example "Ask Reddit Something"
1144
+ *
1145
+ * @generated from protobuf field: google.protobuf.StringValue title = 13;
1146
+ */
1147
+ title?: StringValue;
1148
+ /**
1149
+ * Community coin balance
1150
+ *
1151
+ * @generated from protobuf field: google.protobuf.Int64Value coins = 14;
1152
+ */
1153
+ coins?: Int64Value;
1154
+ /**
1155
+ * @deprecated
1156
+ *
1157
+ * @deprecated
1158
+ * @generated from protobuf field: repeated google.protobuf.StringValue previous_names = 15 [deprecated = true];
1159
+ */
1160
+ previousNames: StringValue[];
1161
+ /**
1162
+ * If `true`, this community contains content deemed not-safe-for-work (NSFW)
1163
+ *
1164
+ * @generated from protobuf field: google.protobuf.BoolValue over_18 = 16;
1165
+ */
1166
+ over18?: BoolValue;
1167
+ /**
1168
+ * Resolution of icon_img
1169
+ * Format: [width, height]
1170
+ * @deprecated
1171
+ *
1172
+ * @deprecated
1173
+ * @generated from protobuf field: repeated google.protobuf.Int32Value icon_size = 17 [deprecated = true];
1174
+ */
1175
+ iconSize: Int32Value[];
1176
+ /**
1177
+ * Theme base color as a # prefixed hex color, configured on www.reddit.com
1178
+ * @example "#FF4500"
1179
+ *
1180
+ * @generated from protobuf field: google.protobuf.StringValue primary_color = 18;
1181
+ */
1182
+ primaryColor?: StringValue;
1183
+ /**
1184
+ * URL to the custom community icon as configured from old.reddit.com as the mobile icon image
1185
+ * Note: used as a fallback if community_icon_img is not set
1186
+ * @deprecated
1187
+ *
1188
+ * @deprecated
1189
+ * @generated from protobuf field: google.protobuf.StringValue icon_img = 19 [deprecated = true];
1190
+ */
1191
+ iconImg?: StringValue;
1192
+ /**
1193
+ * Sidebar description displayed on old.reddit.com
1194
+ * @deprecated
1195
+ *
1196
+ * @deprecated
1197
+ * @generated from protobuf field: google.protobuf.StringValue description = 20 [deprecated = true];
1198
+ */
1199
+ description?: StringValue;
1200
+ /**
1201
+ * Custom label for the Submit Link button when viewed on old.reddit.com
1202
+ * @deprecated
1203
+ *
1204
+ * @deprecated
1205
+ * @generated from protobuf field: google.protobuf.StringValue submit_link_label = 21 [deprecated = true];
1206
+ */
1207
+ submitLinkLabel?: StringValue;
1208
+ /**
1209
+ * Resolution of header_img
1210
+ * Note: Incorrectly typed and unusable.
1211
+ * @deprecated
1212
+ *
1213
+ * @deprecated
1214
+ * @generated from protobuf field: google.protobuf.StringValue header_size = 22 [deprecated = true];
1215
+ */
1216
+ headerSize?: StringValue;
1217
+ /**
1218
+ * If `true`, crowd control is currently enabled
1219
+ *
1220
+ * @generated from protobuf field: google.protobuf.BoolValue restrict_commenting = 23;
1221
+ */
1222
+ restrictCommenting?: BoolValue;
1223
+ /**
1224
+ * Current count of subscribed users
1225
+ *
1226
+ * @generated from protobuf field: google.protobuf.Int64Value subscribers = 24;
1227
+ */
1228
+ subscribers?: Int64Value;
1229
+ /**
1230
+ * Custom label for the Submit Text Post button when viewed on old.reddit.com
1231
+ * @deprecated
1232
+ *
1233
+ * @generated from protobuf field: google.protobuf.StringValue submit_text_label = 25;
1234
+ */
1235
+ submitTextLabel?: StringValue;
1236
+ /**
1237
+ * If `true`, this Subreddit is using the default icon
1238
+ * @deprecated
1239
+ *
1240
+ * @deprecated
1241
+ * @generated from protobuf field: google.protobuf.BoolValue is_default_icon = 26 [deprecated = true];
1242
+ */
1243
+ isDefaultIcon?: BoolValue;
1244
+ /**
1245
+ * Where flair should be shown relative to the Post title on old.reddit.com
1246
+ * One of: "left", "right", ""
1247
+ * @deprecated
1248
+ *
1249
+ * @deprecated
1250
+ * @generated from protobuf field: google.protobuf.StringValue link_flair_position = 27 [deprecated = true];
1251
+ */
1252
+ linkFlairPosition?: StringValue;
1253
+ /**
1254
+ * Permanent identifier with the leading "r/" prefix
1255
+ * @example "r/AskReddit"
1256
+ *
1257
+ * @generated from protobuf field: google.protobuf.StringValue display_name_prefixed = 28;
1258
+ */
1259
+ displayNamePrefixed?: StringValue;
1260
+ /**
1261
+ * Mobile theme color as configured on old.reddit.com
1262
+ * @deprecated
1263
+ *
1264
+ * @deprecated
1265
+ * @generated from protobuf field: google.protobuf.StringValue key_color = 29 [deprecated = true];
1266
+ */
1267
+ keyColor?: StringValue;
1268
+ /**
1269
+ * Thing ID for this object
1270
+ * @example "t5_abc123"
1271
+ *
1272
+ * @generated from protobuf field: google.protobuf.StringValue name = 30;
1273
+ */
1274
+ name?: StringValue;
1275
+ /**
1276
+ * If `true`, this Subreddit is using the default banner without customizing it
1277
+ *
1278
+ * @deprecated
1279
+ * @generated from protobuf field: google.protobuf.BoolValue is_default_banner = 31 [deprecated = true];
1280
+ */
1281
+ isDefaultBanner?: BoolValue;
1282
+ /**
1283
+ * The path of this object relative to www.reddit.com
1284
+ * @example "/r/AskReddit/"
1285
+ *
1286
+ * @generated from protobuf field: google.protobuf.StringValue url = 32;
1287
+ */
1288
+ url?: StringValue;
1289
+ /**
1290
+ * If `true`, this Subreddit has been put in quarantine for breaking site rules
1291
+ *
1292
+ * @generated from protobuf field: google.protobuf.BoolValue quarantine = 33;
1293
+ */
1294
+ quarantine?: BoolValue;
1295
+ /**
1296
+ * Resolution of banner_img
1297
+ * Format: [width, height]
1298
+ * @deprecated
1299
+ *
1300
+ * @deprecated
1301
+ * @generated from protobuf field: repeated google.protobuf.Int32Value banner_size = 34 [deprecated = true];
1302
+ */
1303
+ bannerSize: Int32Value[];
1304
+ /**
1305
+ * If `true`, the current user is a moderator
1306
+ *
1307
+ * @generated from protobuf field: google.protobuf.BoolValue user_is_moderator = 35;
1308
+ */
1309
+ userIsModerator?: BoolValue;
1310
+ /**
1311
+ * If `true`, users can join
1312
+ *
1313
+ * @generated from protobuf field: google.protobuf.BoolValue accept_followers = 36;
1314
+ */
1315
+ acceptFollowers?: BoolValue;
1316
+ /**
1317
+ * Plain text description
1318
+ *
1319
+ * @generated from protobuf field: google.protobuf.StringValue public_description = 37;
1320
+ */
1321
+ publicDescription?: StringValue;
1322
+ /**
1323
+ * If `true`, Post Flair is enabled
1324
+ *
1325
+ * @generated from protobuf field: google.protobuf.BoolValue link_flair_enabled = 38;
1326
+ */
1327
+ linkFlairEnabled?: BoolValue;
1328
+ /**
1329
+ * If `true`, users may not request access to join
1330
+ *
1331
+ * @generated from protobuf field: google.protobuf.BoolValue disable_contributor_requests = 39;
1332
+ */
1333
+ disableContributorRequests?: BoolValue;
1334
+ /**
1335
+ * One of: "public", "private", "restricted", "gold_only", "gold_restricted",
1336
+ * "archived", "user", "employees_only"
1337
+ *
1338
+ * @generated from protobuf field: google.protobuf.StringValue subreddit_type = 40;
1339
+ */
1340
+ subredditType?: StringValue;
1341
+ /**
1342
+ * If `true`, the current user has joined
1343
+ *
1344
+ * @generated from protobuf field: google.protobuf.BoolValue user_is_subscriber = 41;
1345
+ */
1346
+ userIsSubscriber?: BoolValue;
1347
+ /**
1348
+ * Pre-rendered HTML representing public_description
1349
+ *
1350
+ * @generated from protobuf field: google.protobuf.StringValue public_description_html = 42;
1351
+ */
1352
+ publicDescriptionHtml?: StringValue;
1353
+ /**
1354
+ * Thing ID without leading thing ID prefix
1355
+ * @example "abc123" // for: t5_abc123
1356
+ *
1357
+ * @generated from protobuf field: google.protobuf.StringValue id = 43;
1358
+ */
1359
+ id?: StringValue;
1360
+ /**
1361
+ * If `true`, the current user may not send messages to moderators
1362
+ *
1363
+ * @generated from protobuf field: bool user_is_muted = 44;
1364
+ */
1365
+ userIsMuted: boolean;
1366
+ }
1367
+ /**
1368
+ * @generated from protobuf message devvit.plugin.redditapi.common.JsonStatus
1369
+ */
1370
+ export interface JsonStatus {
1371
+ /**
1372
+ * @generated from protobuf field: devvit.plugin.redditapi.common.JsonStatus.JsonErrorType json = 4;
1373
+ */
1374
+ json?: JsonStatus_JsonErrorType;
1375
+ }
1376
+ /**
1377
+ * @generated from protobuf message devvit.plugin.redditapi.common.JsonStatus.JsonErrorType
1378
+ */
1379
+ export interface JsonStatus_JsonErrorType {
1380
+ /**
1381
+ * @generated from protobuf field: repeated google.protobuf.StringValue errors = 1;
1382
+ */
1383
+ errors: StringValue[];
1384
+ }
1385
+ /**
1386
+ * @generated from protobuf message devvit.plugin.redditapi.common.WrappedUserObject
1387
+ */
1388
+ export interface WrappedUserObject {
1389
+ /**
1390
+ * @generated from protobuf field: google.protobuf.StringValue id = 1;
1391
+ */
1392
+ id?: StringValue;
1393
+ /**
1394
+ * @generated from protobuf field: devvit.reddit.User data = 2;
1395
+ */
1396
+ data?: User;
1397
+ }
1398
+ /**
1399
+ * Method extension for specifying how to call a Reddit API endpoint. These
1400
+ * options are used for generating API client code.
1401
+ *
1402
+ * @generated from protobuf message devvit.plugin.redditapi.common.ApiClientConfig
1403
+ */
1404
+ export interface ApiClientConfig {
1405
+ /**
1406
+ * 'GET', 'POST', 'PUT', 'DELETE', etc.
1407
+ *
1408
+ * @generated from protobuf field: string method = 1;
1409
+ */
1410
+ method: string;
1411
+ /**
1412
+ * The path of the API endpoint. Placeholders for variables MUST match names of fields in the input message.
1413
+ * For example:
1414
+ * "/r/{subreddit}/api/delete_sr_img"
1415
+ * Only works if the input message has a string field named 'subreddit'.
1416
+ *
1417
+ * @generated from protobuf field: string path = 2;
1418
+ */
1419
+ path: string;
1420
+ /**
1421
+ * @generated from protobuf field: devvit.plugin.redditapi.common.ApiClientConfig.BodyType request_body_type = 3;
1422
+ */
1423
+ requestBodyType: ApiClientConfig_BodyType;
1424
+ /**
1425
+ * If set to true, the parameter `api_type=json` will be sent to the reddit API with this request.
1426
+ * Note: in the current implementation, this only works for bodyType=FORM_SNAKE.
1427
+ *
1428
+ * @generated from protobuf field: bool enforce_json = 4;
1429
+ */
1430
+ enforceJson: boolean;
1431
+ /**
1432
+ * Some requests involve sending a specific `kind` field that's not otherwise part of the
1433
+ * request message. If this field is specified, that will be included in the request.
1434
+ *
1435
+ * @generated from protobuf field: string request_kind_value = 5;
1436
+ */
1437
+ requestKindValue: string;
1438
+ /**
1439
+ * If set, the thing specified in the input message's field specified by `validate_content_id_context`
1440
+ * must belong to the subreddit in the call's metadata before the call is allowed to proceed.
1441
+ *
1442
+ * For example, setting:
1443
+ * option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
1444
+ * will test that the input message's `id` field contains a thing (post/comment) that belongs
1445
+ * to the subreddit in the call's metadata.
1446
+ *
1447
+ * @generated from protobuf field: string validate_content_id_context = 6;
1448
+ */
1449
+ validateContentIdContext: string;
1450
+ /**
1451
+ * If set, the subreddit specified in the input message's field specified by `validate_subreddit_context`
1452
+ * must match the subreddit in the call's metadata before the call is allowed to proceed.
1453
+ *
1454
+ * For example, setting:
1455
+ * option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
1456
+ * will test that the input message's `subreddit` field contains a subreddit *name* matches the subreddit
1457
+ * in the call's metadata.
1458
+ *
1459
+ * @generated from protobuf field: string validate_subreddit_context = 7;
1460
+ */
1461
+ validateSubredditContext: string;
1462
+ /**
1463
+ * If set, the generated code should invoke the specified method to parse the response, rather
1464
+ * than using the default protojson rehydration.
1465
+ * The method specified signature looks like:
1466
+ * func fixMethodNameResponse([]bytes) (*ResponseType, error)
1467
+ *
1468
+ * @generated from protobuf field: bool use_custom_response_parser = 8;
1469
+ */
1470
+ useCustomResponseParser: boolean;
1471
+ }
1472
+ /**
1473
+ * For methods with a request body, this specifies how the request body should be serialized.
1474
+ *
1475
+ * @generated from protobuf enum devvit.plugin.redditapi.common.ApiClientConfig.BodyType
1476
+ */
1477
+ export enum ApiClientConfig_BodyType {
1478
+ /**
1479
+ * @generated from protobuf enum value: NONE = 0;
1480
+ */
1481
+ NONE = 0,
1482
+ /**
1483
+ * @generated from protobuf enum value: JSON_CAMEL = 1;
1484
+ */
1485
+ JSON_CAMEL = 1,
1486
+ /**
1487
+ * @generated from protobuf enum value: JSON_SNAKE = 2;
1488
+ */
1489
+ JSON_SNAKE = 2,
1490
+ /**
1491
+ * @generated from protobuf enum value: FORM_CAMEL = 3;
1492
+ */
1493
+ FORM_CAMEL = 3,
1494
+ /**
1495
+ * @generated from protobuf enum value: FORM_SNAKE = 4;
1496
+ */
1497
+ FORM_SNAKE = 4
1498
+ }
1499
+ // @generated message type with reflection information, may provide speed optimized methods
1500
+ class Listing$Type extends MessageType<Listing> {
1501
+ constructor() {
1502
+ super("devvit.plugin.redditapi.common.Listing", [
1503
+ { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1504
+ { no: 2, name: "data", kind: "message", T: () => Listing_ListingData }
1505
+ ]);
1506
+ }
1507
+ create(value?: PartialMessage<Listing>): Listing {
1508
+ const message = globalThis.Object.create((this.messagePrototype!));
1509
+ message.kind = "";
1510
+ if (value !== undefined)
1511
+ reflectionMergePartial<Listing>(this, message, value);
1512
+ return message;
1513
+ }
1514
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Listing): Listing {
1515
+ let message = target ?? this.create(), end = reader.pos + length;
1516
+ while (reader.pos < end) {
1517
+ let [fieldNo, wireType] = reader.tag();
1518
+ switch (fieldNo) {
1519
+ case /* string kind */ 1:
1520
+ message.kind = reader.string();
1521
+ break;
1522
+ case /* devvit.plugin.redditapi.common.Listing.ListingData data */ 2:
1523
+ message.data = Listing_ListingData.internalBinaryRead(reader, reader.uint32(), options, message.data);
1524
+ break;
1525
+ default:
1526
+ let u = options.readUnknownField;
1527
+ if (u === "throw")
1528
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1529
+ let d = reader.skip(wireType);
1530
+ if (u !== false)
1531
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1532
+ }
1533
+ }
1534
+ return message;
1535
+ }
1536
+ internalBinaryWrite(message: Listing, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1537
+ /* string kind = 1; */
1538
+ if (message.kind !== "")
1539
+ writer.tag(1, WireType.LengthDelimited).string(message.kind);
1540
+ /* devvit.plugin.redditapi.common.Listing.ListingData data = 2; */
1541
+ if (message.data)
1542
+ Listing_ListingData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1543
+ let u = options.writeUnknownFields;
1544
+ if (u !== false)
1545
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1546
+ return writer;
1547
+ }
1548
+ }
1549
+ /**
1550
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.Listing
1551
+ */
1552
+ export const Listing = new Listing$Type();
1553
+ // @generated message type with reflection information, may provide speed optimized methods
1554
+ class Listing_ListingData$Type extends MessageType<Listing_ListingData> {
1555
+ constructor() {
1556
+ super("devvit.plugin.redditapi.common.Listing.ListingData", [
1557
+ { no: 1, name: "after", kind: "message", T: () => StringValue },
1558
+ { no: 2, name: "before", kind: "message", T: () => StringValue },
1559
+ { no: 3, name: "children", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WrappedRedditObject },
1560
+ { no: 4, name: "dist", kind: "message", T: () => Int64Value }
1561
+ ]);
1562
+ }
1563
+ create(value?: PartialMessage<Listing_ListingData>): Listing_ListingData {
1564
+ const message = globalThis.Object.create((this.messagePrototype!));
1565
+ message.children = [];
1566
+ if (value !== undefined)
1567
+ reflectionMergePartial<Listing_ListingData>(this, message, value);
1568
+ return message;
1569
+ }
1570
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Listing_ListingData): Listing_ListingData {
1571
+ let message = target ?? this.create(), end = reader.pos + length;
1572
+ while (reader.pos < end) {
1573
+ let [fieldNo, wireType] = reader.tag();
1574
+ switch (fieldNo) {
1575
+ case /* google.protobuf.StringValue after */ 1:
1576
+ message.after = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.after);
1577
+ break;
1578
+ case /* google.protobuf.StringValue before */ 2:
1579
+ message.before = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.before);
1580
+ break;
1581
+ case /* repeated devvit.plugin.redditapi.common.WrappedRedditObject children */ 3:
1582
+ message.children.push(WrappedRedditObject.internalBinaryRead(reader, reader.uint32(), options));
1583
+ break;
1584
+ case /* google.protobuf.Int64Value dist */ 4:
1585
+ message.dist = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.dist);
1586
+ break;
1587
+ default:
1588
+ let u = options.readUnknownField;
1589
+ if (u === "throw")
1590
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1591
+ let d = reader.skip(wireType);
1592
+ if (u !== false)
1593
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1594
+ }
1595
+ }
1596
+ return message;
1597
+ }
1598
+ internalBinaryWrite(message: Listing_ListingData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1599
+ /* google.protobuf.StringValue after = 1; */
1600
+ if (message.after)
1601
+ StringValue.internalBinaryWrite(message.after, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1602
+ /* google.protobuf.StringValue before = 2; */
1603
+ if (message.before)
1604
+ StringValue.internalBinaryWrite(message.before, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1605
+ /* repeated devvit.plugin.redditapi.common.WrappedRedditObject children = 3; */
1606
+ for (let i = 0; i < message.children.length; i++)
1607
+ WrappedRedditObject.internalBinaryWrite(message.children[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1608
+ /* google.protobuf.Int64Value dist = 4; */
1609
+ if (message.dist)
1610
+ Int64Value.internalBinaryWrite(message.dist, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1611
+ let u = options.writeUnknownFields;
1612
+ if (u !== false)
1613
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1614
+ return writer;
1615
+ }
1616
+ }
1617
+ /**
1618
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.Listing.ListingData
1619
+ */
1620
+ export const Listing_ListingData = new Listing_ListingData$Type();
1621
+ // @generated message type with reflection information, may provide speed optimized methods
1622
+ class WrappedRedditObject$Type extends MessageType<WrappedRedditObject> {
1623
+ constructor() {
1624
+ super("devvit.plugin.redditapi.common.WrappedRedditObject", [
1625
+ { no: 1, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1626
+ { no: 2, name: "data", kind: "message", T: () => RedditObject }
1627
+ ]);
1628
+ }
1629
+ create(value?: PartialMessage<WrappedRedditObject>): WrappedRedditObject {
1630
+ const message = globalThis.Object.create((this.messagePrototype!));
1631
+ message.kind = "";
1632
+ if (value !== undefined)
1633
+ reflectionMergePartial<WrappedRedditObject>(this, message, value);
1634
+ return message;
1635
+ }
1636
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WrappedRedditObject): WrappedRedditObject {
1637
+ let message = target ?? this.create(), end = reader.pos + length;
1638
+ while (reader.pos < end) {
1639
+ let [fieldNo, wireType] = reader.tag();
1640
+ switch (fieldNo) {
1641
+ case /* string kind */ 1:
1642
+ message.kind = reader.string();
1643
+ break;
1644
+ case /* devvit.plugin.redditapi.common.RedditObject data */ 2:
1645
+ message.data = RedditObject.internalBinaryRead(reader, reader.uint32(), options, message.data);
1646
+ break;
1647
+ default:
1648
+ let u = options.readUnknownField;
1649
+ if (u === "throw")
1650
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1651
+ let d = reader.skip(wireType);
1652
+ if (u !== false)
1653
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1654
+ }
1655
+ }
1656
+ return message;
1657
+ }
1658
+ internalBinaryWrite(message: WrappedRedditObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1659
+ /* string kind = 1; */
1660
+ if (message.kind !== "")
1661
+ writer.tag(1, WireType.LengthDelimited).string(message.kind);
1662
+ /* devvit.plugin.redditapi.common.RedditObject data = 2; */
1663
+ if (message.data)
1664
+ RedditObject.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1665
+ let u = options.writeUnknownFields;
1666
+ if (u !== false)
1667
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1668
+ return writer;
1669
+ }
1670
+ }
1671
+ /**
1672
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.WrappedRedditObject
1673
+ */
1674
+ export const WrappedRedditObject = new WrappedRedditObject$Type();
1675
+ // @generated message type with reflection information, may provide speed optimized methods
1676
+ class JsonRedditObjects$Type extends MessageType<JsonRedditObjects> {
1677
+ constructor() {
1678
+ super("devvit.plugin.redditapi.common.JsonRedditObjects", [
1679
+ { no: 4, name: "json", kind: "message", T: () => JsonRedditObjects_JsonType }
1680
+ ]);
1681
+ }
1682
+ create(value?: PartialMessage<JsonRedditObjects>): JsonRedditObjects {
1683
+ const message = globalThis.Object.create((this.messagePrototype!));
1684
+ if (value !== undefined)
1685
+ reflectionMergePartial<JsonRedditObjects>(this, message, value);
1686
+ return message;
1687
+ }
1688
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonRedditObjects): JsonRedditObjects {
1689
+ let message = target ?? this.create(), end = reader.pos + length;
1690
+ while (reader.pos < end) {
1691
+ let [fieldNo, wireType] = reader.tag();
1692
+ switch (fieldNo) {
1693
+ case /* devvit.plugin.redditapi.common.JsonRedditObjects.JsonType json */ 4:
1694
+ message.json = JsonRedditObjects_JsonType.internalBinaryRead(reader, reader.uint32(), options, message.json);
1695
+ break;
1696
+ default:
1697
+ let u = options.readUnknownField;
1698
+ if (u === "throw")
1699
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1700
+ let d = reader.skip(wireType);
1701
+ if (u !== false)
1702
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1703
+ }
1704
+ }
1705
+ return message;
1706
+ }
1707
+ internalBinaryWrite(message: JsonRedditObjects, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1708
+ /* devvit.plugin.redditapi.common.JsonRedditObjects.JsonType json = 4; */
1709
+ if (message.json)
1710
+ JsonRedditObjects_JsonType.internalBinaryWrite(message.json, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
1711
+ let u = options.writeUnknownFields;
1712
+ if (u !== false)
1713
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1714
+ return writer;
1715
+ }
1716
+ }
1717
+ /**
1718
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.JsonRedditObjects
1719
+ */
1720
+ export const JsonRedditObjects = new JsonRedditObjects$Type();
1721
+ // @generated message type with reflection information, may provide speed optimized methods
1722
+ class JsonRedditObjects_JsonType$Type extends MessageType<JsonRedditObjects_JsonType> {
1723
+ constructor() {
1724
+ super("devvit.plugin.redditapi.common.JsonRedditObjects.JsonType", [
1725
+ { no: 1, name: "errors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Any },
1726
+ { no: 2, name: "data", kind: "message", T: () => JsonRedditObjects_JsonType_JsonData }
1727
+ ]);
1728
+ }
1729
+ create(value?: PartialMessage<JsonRedditObjects_JsonType>): JsonRedditObjects_JsonType {
1730
+ const message = globalThis.Object.create((this.messagePrototype!));
1731
+ message.errors = [];
1732
+ if (value !== undefined)
1733
+ reflectionMergePartial<JsonRedditObjects_JsonType>(this, message, value);
1734
+ return message;
1735
+ }
1736
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonRedditObjects_JsonType): JsonRedditObjects_JsonType {
1737
+ let message = target ?? this.create(), end = reader.pos + length;
1738
+ while (reader.pos < end) {
1739
+ let [fieldNo, wireType] = reader.tag();
1740
+ switch (fieldNo) {
1741
+ case /* repeated google.protobuf.Any errors */ 1:
1742
+ message.errors.push(Any.internalBinaryRead(reader, reader.uint32(), options));
1743
+ break;
1744
+ case /* devvit.plugin.redditapi.common.JsonRedditObjects.JsonType.JsonData data */ 2:
1745
+ message.data = JsonRedditObjects_JsonType_JsonData.internalBinaryRead(reader, reader.uint32(), options, message.data);
1746
+ break;
1747
+ default:
1748
+ let u = options.readUnknownField;
1749
+ if (u === "throw")
1750
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1751
+ let d = reader.skip(wireType);
1752
+ if (u !== false)
1753
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1754
+ }
1755
+ }
1756
+ return message;
1757
+ }
1758
+ internalBinaryWrite(message: JsonRedditObjects_JsonType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1759
+ /* repeated google.protobuf.Any errors = 1; */
1760
+ for (let i = 0; i < message.errors.length; i++)
1761
+ Any.internalBinaryWrite(message.errors[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1762
+ /* devvit.plugin.redditapi.common.JsonRedditObjects.JsonType.JsonData data = 2; */
1763
+ if (message.data)
1764
+ JsonRedditObjects_JsonType_JsonData.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1765
+ let u = options.writeUnknownFields;
1766
+ if (u !== false)
1767
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1768
+ return writer;
1769
+ }
1770
+ }
1771
+ /**
1772
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.JsonRedditObjects.JsonType
1773
+ */
1774
+ export const JsonRedditObjects_JsonType = new JsonRedditObjects_JsonType$Type();
1775
+ // @generated message type with reflection information, may provide speed optimized methods
1776
+ class JsonRedditObjects_JsonType_JsonData$Type extends MessageType<JsonRedditObjects_JsonType_JsonData> {
1777
+ constructor() {
1778
+ super("devvit.plugin.redditapi.common.JsonRedditObjects.JsonType.JsonData", [
1779
+ { no: 1, name: "things", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => WrappedRedditObject }
1780
+ ]);
1781
+ }
1782
+ create(value?: PartialMessage<JsonRedditObjects_JsonType_JsonData>): JsonRedditObjects_JsonType_JsonData {
1783
+ const message = globalThis.Object.create((this.messagePrototype!));
1784
+ message.things = [];
1785
+ if (value !== undefined)
1786
+ reflectionMergePartial<JsonRedditObjects_JsonType_JsonData>(this, message, value);
1787
+ return message;
1788
+ }
1789
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonRedditObjects_JsonType_JsonData): JsonRedditObjects_JsonType_JsonData {
1790
+ let message = target ?? this.create(), end = reader.pos + length;
1791
+ while (reader.pos < end) {
1792
+ let [fieldNo, wireType] = reader.tag();
1793
+ switch (fieldNo) {
1794
+ case /* repeated devvit.plugin.redditapi.common.WrappedRedditObject things */ 1:
1795
+ message.things.push(WrappedRedditObject.internalBinaryRead(reader, reader.uint32(), options));
1796
+ break;
1797
+ default:
1798
+ let u = options.readUnknownField;
1799
+ if (u === "throw")
1800
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1801
+ let d = reader.skip(wireType);
1802
+ if (u !== false)
1803
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1804
+ }
1805
+ }
1806
+ return message;
1807
+ }
1808
+ internalBinaryWrite(message: JsonRedditObjects_JsonType_JsonData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
1809
+ /* repeated devvit.plugin.redditapi.common.WrappedRedditObject things = 1; */
1810
+ for (let i = 0; i < message.things.length; i++)
1811
+ WrappedRedditObject.internalBinaryWrite(message.things[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1812
+ let u = options.writeUnknownFields;
1813
+ if (u !== false)
1814
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1815
+ return writer;
1816
+ }
1817
+ }
1818
+ /**
1819
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.JsonRedditObjects.JsonType.JsonData
1820
+ */
1821
+ export const JsonRedditObjects_JsonType_JsonData = new JsonRedditObjects_JsonType_JsonData$Type();
1822
+ // @generated message type with reflection information, may provide speed optimized methods
1823
+ class RedditObject$Type extends MessageType<RedditObject> {
1824
+ constructor() {
1825
+ super("devvit.plugin.redditapi.common.RedditObject", [
1826
+ { no: 1, name: "all_awardings", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Any },
1827
+ { no: 2, name: "approved", kind: "message", T: () => BoolValue },
1828
+ { no: 3, name: "approved_at_utc", kind: "message", T: () => Int64Value },
1829
+ { no: 4, name: "approved_by", kind: "message", T: () => StringValue },
1830
+ { no: 5, name: "archived", kind: "message", T: () => BoolValue },
1831
+ { no: 6, name: "associated_award", kind: "message", T: () => StringValue },
1832
+ { no: 7, name: "author", kind: "message", T: () => StringValue },
1833
+ { no: 8, name: "author_flair_background_color", kind: "message", T: () => StringValue },
1834
+ { no: 9, name: "author_flair_css_class", kind: "message", T: () => StringValue },
1835
+ { no: 10, name: "author_flair_richtext", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RedditObject_AuthorFlairRichText },
1836
+ { no: 11, name: "author_flair_template_id", kind: "message", T: () => StringValue },
1837
+ { no: 12, name: "author_flair_text", kind: "message", T: () => StringValue },
1838
+ { no: 13, name: "author_flair_text_color", kind: "message", T: () => StringValue },
1839
+ { no: 14, name: "author_flair_type", kind: "message", T: () => StringValue },
1840
+ { no: 15, name: "author_fullname", kind: "message", T: () => StringValue },
1841
+ { no: 16, name: "author_is_blocked", kind: "message", T: () => BoolValue },
1842
+ { no: 17, name: "author_patreon_flair", kind: "message", T: () => BoolValue },
1843
+ { no: 18, name: "author_premium", kind: "message", T: () => BoolValue },
1844
+ { no: 19, name: "awarders", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue },
1845
+ { no: 20, name: "banned_at_utc", kind: "message", T: () => Int64Value },
1846
+ { no: 21, name: "banned_by", kind: "message", T: () => StringValue },
1847
+ { no: 22, name: "body", kind: "message", T: () => StringValue },
1848
+ { no: 23, name: "body_html", kind: "message", T: () => StringValue },
1849
+ { no: 24, name: "can_gild", kind: "message", T: () => BoolValue },
1850
+ { no: 25, name: "can_mod_post", kind: "message", T: () => BoolValue },
1851
+ { no: 26, name: "collapsed", kind: "message", T: () => BoolValue },
1852
+ { no: 27, name: "collapsed_because_crowd_control", kind: "message", T: () => BoolValue },
1853
+ { no: 28, name: "collapsed_reason", kind: "message", T: () => StringValue },
1854
+ { no: 29, name: "collapsed_reason_code", kind: "message", T: () => StringValue },
1855
+ { no: 30, name: "comment_type", kind: "message", T: () => StringValue },
1856
+ { no: 31, name: "controversiality", kind: "message", T: () => Int64Value },
1857
+ { no: 32, name: "created", kind: "message", T: () => Int64Value },
1858
+ { no: 33, name: "created_utc", kind: "message", T: () => Int64Value },
1859
+ { no: 34, name: "distinguished", kind: "message", T: () => StringValue },
1860
+ { no: 35, name: "downs", kind: "message", T: () => Int64Value },
1861
+ { no: 36, name: "edited", kind: "message", T: () => BoolValue },
1862
+ { no: 37, name: "gilded", kind: "message", T: () => Int64Value },
1863
+ { no: 38, name: "gildings", kind: "message", T: () => Any },
1864
+ { no: 39, name: "id", kind: "message", T: () => StringValue },
1865
+ { no: 40, name: "ignore_reports", kind: "message", T: () => BoolValue },
1866
+ { no: 41, name: "is_submitter", kind: "message", T: () => BoolValue },
1867
+ { no: 42, name: "likes", kind: "message", T: () => BoolValue },
1868
+ { no: 43, name: "link_id", kind: "message", T: () => StringValue },
1869
+ { no: 44, name: "locked", kind: "message", T: () => BoolValue },
1870
+ { no: 45, name: "mod_note", kind: "message", T: () => StringValue },
1871
+ { no: 46, name: "mod_reason_by", kind: "message", T: () => StringValue },
1872
+ { no: 47, name: "mod_reason_title", kind: "message", T: () => StringValue },
1873
+ { no: 49, name: "name", kind: "message", T: () => StringValue },
1874
+ { no: 50, name: "no_follow", kind: "message", T: () => BoolValue },
1875
+ { no: 52, name: "num_reports", kind: "message", T: () => Int64Value },
1876
+ { no: 53, name: "parent_id", kind: "message", T: () => StringValue },
1877
+ { no: 54, name: "permalink", kind: "message", T: () => StringValue },
1878
+ { no: 55, name: "removal_reason", kind: "message", T: () => StringValue },
1879
+ { no: 56, name: "removed", kind: "message", T: () => BoolValue },
1880
+ { no: 57, name: "replies", kind: "message", T: () => StringValue },
1881
+ { no: 58, name: "report_reasons", kind: "message", T: () => ListValue },
1882
+ { no: 59, name: "rte_mode", kind: "message", T: () => StringValue },
1883
+ { no: 60, name: "saved", kind: "message", T: () => BoolValue },
1884
+ { no: 61, name: "score", kind: "message", T: () => Int64Value },
1885
+ { no: 62, name: "score_hidden", kind: "message", T: () => BoolValue },
1886
+ { no: 63, name: "send_replies", kind: "message", T: () => BoolValue },
1887
+ { no: 64, name: "spam", kind: "message", T: () => BoolValue },
1888
+ { no: 65, name: "stickied", kind: "message", T: () => BoolValue },
1889
+ { no: 66, name: "subreddit", kind: "message", T: () => StringValue },
1890
+ { no: 67, name: "subreddit_id", kind: "message", T: () => StringValue },
1891
+ { no: 68, name: "subreddit_name_prefixed", kind: "message", T: () => StringValue },
1892
+ { no: 69, name: "subreddit_type", kind: "message", T: () => StringValue },
1893
+ { no: 70, name: "top_awarded_type", kind: "message", T: () => StringValue },
1894
+ { no: 71, name: "total_awards_received", kind: "message", T: () => Int64Value },
1895
+ { no: 72, name: "treatment_tags", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Any },
1896
+ { no: 73, name: "unrepliable_reason", kind: "message", T: () => StringValue },
1897
+ { no: 74, name: "ups", kind: "message", T: () => Int64Value },
1898
+ { no: 76, name: "depth", kind: "message", T: () => Int64Value },
1899
+ { no: 77, name: "link_title", kind: "message", T: () => StringValue },
1900
+ { no: 78, name: "link_author", kind: "message", T: () => StringValue },
1901
+ { no: 79, name: "num_comments", kind: "message", T: () => Int64Value },
1902
+ { no: 80, name: "over_18", kind: "message", T: () => BoolValue },
1903
+ { no: 81, name: "link_permalink", kind: "message", T: () => StringValue },
1904
+ { no: 82, name: "quarantine", kind: "message", T: () => BoolValue },
1905
+ { no: 83, name: "link_url", kind: "message", T: () => StringValue },
1906
+ { no: 84, name: "selftext", kind: "message", T: () => StringValue },
1907
+ { no: 85, name: "selftext_html", kind: "message", T: () => StringValue },
1908
+ { no: 87, name: "thumbnail", kind: "message", T: () => StringValue },
1909
+ { no: 88, name: "thumbnail_width", kind: "message", T: () => Int64Value },
1910
+ { no: 89, name: "thumbnail_height", kind: "message", T: () => Int64Value },
1911
+ { no: 90, name: "title", kind: "message", T: () => StringValue },
1912
+ { no: 91, name: "url", kind: "message", T: () => StringValue },
1913
+ { no: 92, name: "display_name", kind: "message", T: () => StringValue },
1914
+ { no: 93, name: "mod_permissions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue },
1915
+ { no: 94, name: "count", kind: "message", T: () => Int64Value },
1916
+ { no: 95, name: "children", kind: "message", T: () => ListValue },
1917
+ { no: 96, name: "reply_list", kind: "message", T: () => Listing },
1918
+ { no: 97, name: "hidden", kind: "message", T: () => BoolValue },
1919
+ { no: 98, name: "link_flair_background_color", kind: "message", T: () => StringValue },
1920
+ { no: 99, name: "link_flair_css_class", kind: "message", T: () => StringValue },
1921
+ { no: 100, name: "link_flair_richtext", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => RedditObject_LinkFlairRichText },
1922
+ { no: 101, name: "link_flair_template_id", kind: "message", T: () => StringValue },
1923
+ { no: 102, name: "link_flair_text", kind: "message", T: () => StringValue },
1924
+ { no: 103, name: "link_flair_text_color", kind: "message", T: () => StringValue },
1925
+ { no: 104, name: "link_flair_type", kind: "message", T: () => StringValue },
1926
+ { no: 105, name: "secure_media", kind: "message", T: () => RedditObject_SecureMedia },
1927
+ { no: 106, name: "spoiler", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1928
+ { no: 107, name: "mod_reports", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ListValue },
1929
+ { no: 108, name: "user_reports", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ListValue },
1930
+ { no: 109, name: "removed_by", kind: "message", T: () => StringValue },
1931
+ { no: 110, name: "removed_by_category", kind: "message", T: () => StringValue }
1932
+ ]);
1933
+ }
1934
+ create(value?: PartialMessage<RedditObject>): RedditObject {
1935
+ const message = globalThis.Object.create((this.messagePrototype!));
1936
+ message.allAwardings = [];
1937
+ message.authorFlairRichtext = [];
1938
+ message.awarders = [];
1939
+ message.treatmentTags = [];
1940
+ message.modPermissions = [];
1941
+ message.linkFlairRichtext = [];
1942
+ message.spoiler = false;
1943
+ message.modReports = [];
1944
+ message.userReports = [];
1945
+ if (value !== undefined)
1946
+ reflectionMergePartial<RedditObject>(this, message, value);
1947
+ return message;
1948
+ }
1949
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedditObject): RedditObject {
1950
+ let message = target ?? this.create(), end = reader.pos + length;
1951
+ while (reader.pos < end) {
1952
+ let [fieldNo, wireType] = reader.tag();
1953
+ switch (fieldNo) {
1954
+ case /* repeated google.protobuf.Any all_awardings */ 1:
1955
+ message.allAwardings.push(Any.internalBinaryRead(reader, reader.uint32(), options));
1956
+ break;
1957
+ case /* google.protobuf.BoolValue approved */ 2:
1958
+ message.approved = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.approved);
1959
+ break;
1960
+ case /* google.protobuf.Int64Value approved_at_utc */ 3:
1961
+ message.approvedAtUtc = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.approvedAtUtc);
1962
+ break;
1963
+ case /* google.protobuf.StringValue approved_by */ 4:
1964
+ message.approvedBy = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.approvedBy);
1965
+ break;
1966
+ case /* google.protobuf.BoolValue archived */ 5:
1967
+ message.archived = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.archived);
1968
+ break;
1969
+ case /* google.protobuf.StringValue associated_award */ 6:
1970
+ message.associatedAward = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.associatedAward);
1971
+ break;
1972
+ case /* google.protobuf.StringValue author */ 7:
1973
+ message.author = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.author);
1974
+ break;
1975
+ case /* google.protobuf.StringValue author_flair_background_color */ 8:
1976
+ message.authorFlairBackgroundColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFlairBackgroundColor);
1977
+ break;
1978
+ case /* google.protobuf.StringValue author_flair_css_class */ 9:
1979
+ message.authorFlairCssClass = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFlairCssClass);
1980
+ break;
1981
+ case /* repeated devvit.plugin.redditapi.common.RedditObject.AuthorFlairRichText author_flair_richtext */ 10:
1982
+ message.authorFlairRichtext.push(RedditObject_AuthorFlairRichText.internalBinaryRead(reader, reader.uint32(), options));
1983
+ break;
1984
+ case /* google.protobuf.StringValue author_flair_template_id */ 11:
1985
+ message.authorFlairTemplateId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFlairTemplateId);
1986
+ break;
1987
+ case /* google.protobuf.StringValue author_flair_text */ 12:
1988
+ message.authorFlairText = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFlairText);
1989
+ break;
1990
+ case /* google.protobuf.StringValue author_flair_text_color */ 13:
1991
+ message.authorFlairTextColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFlairTextColor);
1992
+ break;
1993
+ case /* google.protobuf.StringValue author_flair_type */ 14:
1994
+ message.authorFlairType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFlairType);
1995
+ break;
1996
+ case /* google.protobuf.StringValue author_fullname */ 15:
1997
+ message.authorFullname = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.authorFullname);
1998
+ break;
1999
+ case /* google.protobuf.BoolValue author_is_blocked */ 16:
2000
+ message.authorIsBlocked = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.authorIsBlocked);
2001
+ break;
2002
+ case /* google.protobuf.BoolValue author_patreon_flair = 17 [deprecated = true];*/ 17:
2003
+ message.authorPatreonFlair = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.authorPatreonFlair);
2004
+ break;
2005
+ case /* google.protobuf.BoolValue author_premium */ 18:
2006
+ message.authorPremium = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.authorPremium);
2007
+ break;
2008
+ case /* repeated google.protobuf.StringValue awarders */ 19:
2009
+ message.awarders.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
2010
+ break;
2011
+ case /* google.protobuf.Int64Value banned_at_utc */ 20:
2012
+ message.bannedAtUtc = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.bannedAtUtc);
2013
+ break;
2014
+ case /* google.protobuf.StringValue banned_by */ 21:
2015
+ message.bannedBy = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.bannedBy);
2016
+ break;
2017
+ case /* google.protobuf.StringValue body */ 22:
2018
+ message.body = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.body);
2019
+ break;
2020
+ case /* google.protobuf.StringValue body_html */ 23:
2021
+ message.bodyHtml = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.bodyHtml);
2022
+ break;
2023
+ case /* google.protobuf.BoolValue can_gild */ 24:
2024
+ message.canGild = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.canGild);
2025
+ break;
2026
+ case /* google.protobuf.BoolValue can_mod_post */ 25:
2027
+ message.canModPost = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.canModPost);
2028
+ break;
2029
+ case /* google.protobuf.BoolValue collapsed */ 26:
2030
+ message.collapsed = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.collapsed);
2031
+ break;
2032
+ case /* google.protobuf.BoolValue collapsed_because_crowd_control */ 27:
2033
+ message.collapsedBecauseCrowdControl = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.collapsedBecauseCrowdControl);
2034
+ break;
2035
+ case /* google.protobuf.StringValue collapsed_reason */ 28:
2036
+ message.collapsedReason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.collapsedReason);
2037
+ break;
2038
+ case /* google.protobuf.StringValue collapsed_reason_code */ 29:
2039
+ message.collapsedReasonCode = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.collapsedReasonCode);
2040
+ break;
2041
+ case /* google.protobuf.StringValue comment_type */ 30:
2042
+ message.commentType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.commentType);
2043
+ break;
2044
+ case /* google.protobuf.Int64Value controversiality */ 31:
2045
+ message.controversiality = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.controversiality);
2046
+ break;
2047
+ case /* google.protobuf.Int64Value created */ 32:
2048
+ message.created = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.created);
2049
+ break;
2050
+ case /* google.protobuf.Int64Value created_utc */ 33:
2051
+ message.createdUtc = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.createdUtc);
2052
+ break;
2053
+ case /* google.protobuf.StringValue distinguished */ 34:
2054
+ message.distinguished = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.distinguished);
2055
+ break;
2056
+ case /* google.protobuf.Int64Value downs */ 35:
2057
+ message.downs = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.downs);
2058
+ break;
2059
+ case /* google.protobuf.BoolValue edited */ 36:
2060
+ message.edited = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.edited);
2061
+ break;
2062
+ case /* google.protobuf.Int64Value gilded = 37 [deprecated = true];*/ 37:
2063
+ message.gilded = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.gilded);
2064
+ break;
2065
+ case /* google.protobuf.Any gildings = 38 [deprecated = true];*/ 38:
2066
+ message.gildings = Any.internalBinaryRead(reader, reader.uint32(), options, message.gildings);
2067
+ break;
2068
+ case /* google.protobuf.StringValue id */ 39:
2069
+ message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
2070
+ break;
2071
+ case /* google.protobuf.BoolValue ignore_reports */ 40:
2072
+ message.ignoreReports = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.ignoreReports);
2073
+ break;
2074
+ case /* google.protobuf.BoolValue is_submitter */ 41:
2075
+ message.isSubmitter = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isSubmitter);
2076
+ break;
2077
+ case /* google.protobuf.BoolValue likes */ 42:
2078
+ message.likes = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.likes);
2079
+ break;
2080
+ case /* google.protobuf.StringValue link_id */ 43:
2081
+ message.linkId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkId);
2082
+ break;
2083
+ case /* google.protobuf.BoolValue locked */ 44:
2084
+ message.locked = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.locked);
2085
+ break;
2086
+ case /* google.protobuf.StringValue mod_note */ 45:
2087
+ message.modNote = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.modNote);
2088
+ break;
2089
+ case /* google.protobuf.StringValue mod_reason_by */ 46:
2090
+ message.modReasonBy = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.modReasonBy);
2091
+ break;
2092
+ case /* google.protobuf.StringValue mod_reason_title */ 47:
2093
+ message.modReasonTitle = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.modReasonTitle);
2094
+ break;
2095
+ case /* google.protobuf.StringValue name */ 49:
2096
+ message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
2097
+ break;
2098
+ case /* google.protobuf.BoolValue no_follow */ 50:
2099
+ message.noFollow = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.noFollow);
2100
+ break;
2101
+ case /* google.protobuf.Int64Value num_reports */ 52:
2102
+ message.numReports = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.numReports);
2103
+ break;
2104
+ case /* google.protobuf.StringValue parent_id */ 53:
2105
+ message.parentId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.parentId);
2106
+ break;
2107
+ case /* google.protobuf.StringValue permalink */ 54:
2108
+ message.permalink = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.permalink);
2109
+ break;
2110
+ case /* google.protobuf.StringValue removal_reason */ 55:
2111
+ message.removalReason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.removalReason);
2112
+ break;
2113
+ case /* google.protobuf.BoolValue removed */ 56:
2114
+ message.removed = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.removed);
2115
+ break;
2116
+ case /* google.protobuf.StringValue replies = 57 [deprecated = true];*/ 57:
2117
+ message.replies = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.replies);
2118
+ break;
2119
+ case /* google.protobuf.ListValue report_reasons */ 58:
2120
+ message.reportReasons = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.reportReasons);
2121
+ break;
2122
+ case /* google.protobuf.StringValue rte_mode */ 59:
2123
+ message.rteMode = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.rteMode);
2124
+ break;
2125
+ case /* google.protobuf.BoolValue saved */ 60:
2126
+ message.saved = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.saved);
2127
+ break;
2128
+ case /* google.protobuf.Int64Value score */ 61:
2129
+ message.score = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.score);
2130
+ break;
2131
+ case /* google.protobuf.BoolValue score_hidden */ 62:
2132
+ message.scoreHidden = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.scoreHidden);
2133
+ break;
2134
+ case /* google.protobuf.BoolValue send_replies */ 63:
2135
+ message.sendReplies = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.sendReplies);
2136
+ break;
2137
+ case /* google.protobuf.BoolValue spam */ 64:
2138
+ message.spam = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.spam);
2139
+ break;
2140
+ case /* google.protobuf.BoolValue stickied */ 65:
2141
+ message.stickied = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.stickied);
2142
+ break;
2143
+ case /* google.protobuf.StringValue subreddit */ 66:
2144
+ message.subreddit = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subreddit);
2145
+ break;
2146
+ case /* google.protobuf.StringValue subreddit_id */ 67:
2147
+ message.subredditId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subredditId);
2148
+ break;
2149
+ case /* google.protobuf.StringValue subreddit_name_prefixed */ 68:
2150
+ message.subredditNamePrefixed = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subredditNamePrefixed);
2151
+ break;
2152
+ case /* google.protobuf.StringValue subreddit_type */ 69:
2153
+ message.subredditType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subredditType);
2154
+ break;
2155
+ case /* google.protobuf.StringValue top_awarded_type */ 70:
2156
+ message.topAwardedType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.topAwardedType);
2157
+ break;
2158
+ case /* google.protobuf.Int64Value total_awards_received */ 71:
2159
+ message.totalAwardsReceived = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.totalAwardsReceived);
2160
+ break;
2161
+ case /* repeated google.protobuf.Any treatment_tags */ 72:
2162
+ message.treatmentTags.push(Any.internalBinaryRead(reader, reader.uint32(), options));
2163
+ break;
2164
+ case /* google.protobuf.StringValue unrepliable_reason */ 73:
2165
+ message.unrepliableReason = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.unrepliableReason);
2166
+ break;
2167
+ case /* google.protobuf.Int64Value ups */ 74:
2168
+ message.ups = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.ups);
2169
+ break;
2170
+ case /* google.protobuf.Int64Value depth */ 76:
2171
+ message.depth = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.depth);
2172
+ break;
2173
+ case /* google.protobuf.StringValue link_title */ 77:
2174
+ message.linkTitle = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkTitle);
2175
+ break;
2176
+ case /* google.protobuf.StringValue link_author */ 78:
2177
+ message.linkAuthor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkAuthor);
2178
+ break;
2179
+ case /* google.protobuf.Int64Value num_comments */ 79:
2180
+ message.numComments = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.numComments);
2181
+ break;
2182
+ case /* google.protobuf.BoolValue over_18 */ 80:
2183
+ message.over18 = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.over18);
2184
+ break;
2185
+ case /* google.protobuf.StringValue link_permalink */ 81:
2186
+ message.linkPermalink = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkPermalink);
2187
+ break;
2188
+ case /* google.protobuf.BoolValue quarantine */ 82:
2189
+ message.quarantine = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.quarantine);
2190
+ break;
2191
+ case /* google.protobuf.StringValue link_url */ 83:
2192
+ message.linkUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkUrl);
2193
+ break;
2194
+ case /* google.protobuf.StringValue selftext */ 84:
2195
+ message.selftext = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.selftext);
2196
+ break;
2197
+ case /* google.protobuf.StringValue selftext_html */ 85:
2198
+ message.selftextHtml = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.selftextHtml);
2199
+ break;
2200
+ case /* google.protobuf.StringValue thumbnail */ 87:
2201
+ message.thumbnail = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.thumbnail);
2202
+ break;
2203
+ case /* google.protobuf.Int64Value thumbnail_width */ 88:
2204
+ message.thumbnailWidth = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.thumbnailWidth);
2205
+ break;
2206
+ case /* google.protobuf.Int64Value thumbnail_height */ 89:
2207
+ message.thumbnailHeight = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.thumbnailHeight);
2208
+ break;
2209
+ case /* google.protobuf.StringValue title */ 90:
2210
+ message.title = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.title);
2211
+ break;
2212
+ case /* google.protobuf.StringValue url */ 91:
2213
+ message.url = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.url);
2214
+ break;
2215
+ case /* google.protobuf.StringValue display_name */ 92:
2216
+ message.displayName = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.displayName);
2217
+ break;
2218
+ case /* repeated google.protobuf.StringValue mod_permissions */ 93:
2219
+ message.modPermissions.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
2220
+ break;
2221
+ case /* google.protobuf.Int64Value count */ 94:
2222
+ message.count = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.count);
2223
+ break;
2224
+ case /* google.protobuf.ListValue children */ 95:
2225
+ message.children = ListValue.internalBinaryRead(reader, reader.uint32(), options, message.children);
2226
+ break;
2227
+ case /* devvit.plugin.redditapi.common.Listing reply_list */ 96:
2228
+ message.replyList = Listing.internalBinaryRead(reader, reader.uint32(), options, message.replyList);
2229
+ break;
2230
+ case /* google.protobuf.BoolValue hidden */ 97:
2231
+ message.hidden = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.hidden);
2232
+ break;
2233
+ case /* google.protobuf.StringValue link_flair_background_color */ 98:
2234
+ message.linkFlairBackgroundColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairBackgroundColor);
2235
+ break;
2236
+ case /* google.protobuf.StringValue link_flair_css_class */ 99:
2237
+ message.linkFlairCssClass = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairCssClass);
2238
+ break;
2239
+ case /* repeated devvit.plugin.redditapi.common.RedditObject.LinkFlairRichText link_flair_richtext */ 100:
2240
+ message.linkFlairRichtext.push(RedditObject_LinkFlairRichText.internalBinaryRead(reader, reader.uint32(), options));
2241
+ break;
2242
+ case /* google.protobuf.StringValue link_flair_template_id */ 101:
2243
+ message.linkFlairTemplateId = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairTemplateId);
2244
+ break;
2245
+ case /* google.protobuf.StringValue link_flair_text */ 102:
2246
+ message.linkFlairText = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairText);
2247
+ break;
2248
+ case /* google.protobuf.StringValue link_flair_text_color */ 103:
2249
+ message.linkFlairTextColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairTextColor);
2250
+ break;
2251
+ case /* google.protobuf.StringValue link_flair_type */ 104:
2252
+ message.linkFlairType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairType);
2253
+ break;
2254
+ case /* devvit.plugin.redditapi.common.RedditObject.SecureMedia secure_media */ 105:
2255
+ message.secureMedia = RedditObject_SecureMedia.internalBinaryRead(reader, reader.uint32(), options, message.secureMedia);
2256
+ break;
2257
+ case /* bool spoiler */ 106:
2258
+ message.spoiler = reader.bool();
2259
+ break;
2260
+ case /* repeated google.protobuf.ListValue mod_reports */ 107:
2261
+ message.modReports.push(ListValue.internalBinaryRead(reader, reader.uint32(), options));
2262
+ break;
2263
+ case /* repeated google.protobuf.ListValue user_reports */ 108:
2264
+ message.userReports.push(ListValue.internalBinaryRead(reader, reader.uint32(), options));
2265
+ break;
2266
+ case /* google.protobuf.StringValue removed_by */ 109:
2267
+ message.removedBy = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.removedBy);
2268
+ break;
2269
+ case /* google.protobuf.StringValue removed_by_category */ 110:
2270
+ message.removedByCategory = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.removedByCategory);
2271
+ break;
2272
+ default:
2273
+ let u = options.readUnknownField;
2274
+ if (u === "throw")
2275
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2276
+ let d = reader.skip(wireType);
2277
+ if (u !== false)
2278
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2279
+ }
2280
+ }
2281
+ return message;
2282
+ }
2283
+ internalBinaryWrite(message: RedditObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2284
+ /* repeated google.protobuf.Any all_awardings = 1; */
2285
+ for (let i = 0; i < message.allAwardings.length; i++)
2286
+ Any.internalBinaryWrite(message.allAwardings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2287
+ /* google.protobuf.BoolValue approved = 2; */
2288
+ if (message.approved)
2289
+ BoolValue.internalBinaryWrite(message.approved, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2290
+ /* google.protobuf.Int64Value approved_at_utc = 3; */
2291
+ if (message.approvedAtUtc)
2292
+ Int64Value.internalBinaryWrite(message.approvedAtUtc, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2293
+ /* google.protobuf.StringValue approved_by = 4; */
2294
+ if (message.approvedBy)
2295
+ StringValue.internalBinaryWrite(message.approvedBy, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2296
+ /* google.protobuf.BoolValue archived = 5; */
2297
+ if (message.archived)
2298
+ BoolValue.internalBinaryWrite(message.archived, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2299
+ /* google.protobuf.StringValue associated_award = 6; */
2300
+ if (message.associatedAward)
2301
+ StringValue.internalBinaryWrite(message.associatedAward, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2302
+ /* google.protobuf.StringValue author = 7; */
2303
+ if (message.author)
2304
+ StringValue.internalBinaryWrite(message.author, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2305
+ /* google.protobuf.StringValue author_flair_background_color = 8; */
2306
+ if (message.authorFlairBackgroundColor)
2307
+ StringValue.internalBinaryWrite(message.authorFlairBackgroundColor, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2308
+ /* google.protobuf.StringValue author_flair_css_class = 9; */
2309
+ if (message.authorFlairCssClass)
2310
+ StringValue.internalBinaryWrite(message.authorFlairCssClass, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
2311
+ /* repeated devvit.plugin.redditapi.common.RedditObject.AuthorFlairRichText author_flair_richtext = 10; */
2312
+ for (let i = 0; i < message.authorFlairRichtext.length; i++)
2313
+ RedditObject_AuthorFlairRichText.internalBinaryWrite(message.authorFlairRichtext[i], writer.tag(10, WireType.LengthDelimited).fork(), options).join();
2314
+ /* google.protobuf.StringValue author_flair_template_id = 11; */
2315
+ if (message.authorFlairTemplateId)
2316
+ StringValue.internalBinaryWrite(message.authorFlairTemplateId, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
2317
+ /* google.protobuf.StringValue author_flair_text = 12; */
2318
+ if (message.authorFlairText)
2319
+ StringValue.internalBinaryWrite(message.authorFlairText, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
2320
+ /* google.protobuf.StringValue author_flair_text_color = 13; */
2321
+ if (message.authorFlairTextColor)
2322
+ StringValue.internalBinaryWrite(message.authorFlairTextColor, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
2323
+ /* google.protobuf.StringValue author_flair_type = 14; */
2324
+ if (message.authorFlairType)
2325
+ StringValue.internalBinaryWrite(message.authorFlairType, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
2326
+ /* google.protobuf.StringValue author_fullname = 15; */
2327
+ if (message.authorFullname)
2328
+ StringValue.internalBinaryWrite(message.authorFullname, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
2329
+ /* google.protobuf.BoolValue author_is_blocked = 16; */
2330
+ if (message.authorIsBlocked)
2331
+ BoolValue.internalBinaryWrite(message.authorIsBlocked, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
2332
+ /* google.protobuf.BoolValue author_patreon_flair = 17 [deprecated = true]; */
2333
+ if (message.authorPatreonFlair)
2334
+ BoolValue.internalBinaryWrite(message.authorPatreonFlair, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
2335
+ /* google.protobuf.BoolValue author_premium = 18; */
2336
+ if (message.authorPremium)
2337
+ BoolValue.internalBinaryWrite(message.authorPremium, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
2338
+ /* repeated google.protobuf.StringValue awarders = 19; */
2339
+ for (let i = 0; i < message.awarders.length; i++)
2340
+ StringValue.internalBinaryWrite(message.awarders[i], writer.tag(19, WireType.LengthDelimited).fork(), options).join();
2341
+ /* google.protobuf.Int64Value banned_at_utc = 20; */
2342
+ if (message.bannedAtUtc)
2343
+ Int64Value.internalBinaryWrite(message.bannedAtUtc, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
2344
+ /* google.protobuf.StringValue banned_by = 21; */
2345
+ if (message.bannedBy)
2346
+ StringValue.internalBinaryWrite(message.bannedBy, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
2347
+ /* google.protobuf.StringValue body = 22; */
2348
+ if (message.body)
2349
+ StringValue.internalBinaryWrite(message.body, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
2350
+ /* google.protobuf.StringValue body_html = 23; */
2351
+ if (message.bodyHtml)
2352
+ StringValue.internalBinaryWrite(message.bodyHtml, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
2353
+ /* google.protobuf.BoolValue can_gild = 24; */
2354
+ if (message.canGild)
2355
+ BoolValue.internalBinaryWrite(message.canGild, writer.tag(24, WireType.LengthDelimited).fork(), options).join();
2356
+ /* google.protobuf.BoolValue can_mod_post = 25; */
2357
+ if (message.canModPost)
2358
+ BoolValue.internalBinaryWrite(message.canModPost, writer.tag(25, WireType.LengthDelimited).fork(), options).join();
2359
+ /* google.protobuf.BoolValue collapsed = 26; */
2360
+ if (message.collapsed)
2361
+ BoolValue.internalBinaryWrite(message.collapsed, writer.tag(26, WireType.LengthDelimited).fork(), options).join();
2362
+ /* google.protobuf.BoolValue collapsed_because_crowd_control = 27; */
2363
+ if (message.collapsedBecauseCrowdControl)
2364
+ BoolValue.internalBinaryWrite(message.collapsedBecauseCrowdControl, writer.tag(27, WireType.LengthDelimited).fork(), options).join();
2365
+ /* google.protobuf.StringValue collapsed_reason = 28; */
2366
+ if (message.collapsedReason)
2367
+ StringValue.internalBinaryWrite(message.collapsedReason, writer.tag(28, WireType.LengthDelimited).fork(), options).join();
2368
+ /* google.protobuf.StringValue collapsed_reason_code = 29; */
2369
+ if (message.collapsedReasonCode)
2370
+ StringValue.internalBinaryWrite(message.collapsedReasonCode, writer.tag(29, WireType.LengthDelimited).fork(), options).join();
2371
+ /* google.protobuf.StringValue comment_type = 30; */
2372
+ if (message.commentType)
2373
+ StringValue.internalBinaryWrite(message.commentType, writer.tag(30, WireType.LengthDelimited).fork(), options).join();
2374
+ /* google.protobuf.Int64Value controversiality = 31; */
2375
+ if (message.controversiality)
2376
+ Int64Value.internalBinaryWrite(message.controversiality, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
2377
+ /* google.protobuf.Int64Value created = 32; */
2378
+ if (message.created)
2379
+ Int64Value.internalBinaryWrite(message.created, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
2380
+ /* google.protobuf.Int64Value created_utc = 33; */
2381
+ if (message.createdUtc)
2382
+ Int64Value.internalBinaryWrite(message.createdUtc, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
2383
+ /* google.protobuf.StringValue distinguished = 34; */
2384
+ if (message.distinguished)
2385
+ StringValue.internalBinaryWrite(message.distinguished, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
2386
+ /* google.protobuf.Int64Value downs = 35; */
2387
+ if (message.downs)
2388
+ Int64Value.internalBinaryWrite(message.downs, writer.tag(35, WireType.LengthDelimited).fork(), options).join();
2389
+ /* google.protobuf.BoolValue edited = 36; */
2390
+ if (message.edited)
2391
+ BoolValue.internalBinaryWrite(message.edited, writer.tag(36, WireType.LengthDelimited).fork(), options).join();
2392
+ /* google.protobuf.Int64Value gilded = 37 [deprecated = true]; */
2393
+ if (message.gilded)
2394
+ Int64Value.internalBinaryWrite(message.gilded, writer.tag(37, WireType.LengthDelimited).fork(), options).join();
2395
+ /* google.protobuf.Any gildings = 38 [deprecated = true]; */
2396
+ if (message.gildings)
2397
+ Any.internalBinaryWrite(message.gildings, writer.tag(38, WireType.LengthDelimited).fork(), options).join();
2398
+ /* google.protobuf.StringValue id = 39; */
2399
+ if (message.id)
2400
+ StringValue.internalBinaryWrite(message.id, writer.tag(39, WireType.LengthDelimited).fork(), options).join();
2401
+ /* google.protobuf.BoolValue ignore_reports = 40; */
2402
+ if (message.ignoreReports)
2403
+ BoolValue.internalBinaryWrite(message.ignoreReports, writer.tag(40, WireType.LengthDelimited).fork(), options).join();
2404
+ /* google.protobuf.BoolValue is_submitter = 41; */
2405
+ if (message.isSubmitter)
2406
+ BoolValue.internalBinaryWrite(message.isSubmitter, writer.tag(41, WireType.LengthDelimited).fork(), options).join();
2407
+ /* google.protobuf.BoolValue likes = 42; */
2408
+ if (message.likes)
2409
+ BoolValue.internalBinaryWrite(message.likes, writer.tag(42, WireType.LengthDelimited).fork(), options).join();
2410
+ /* google.protobuf.StringValue link_id = 43; */
2411
+ if (message.linkId)
2412
+ StringValue.internalBinaryWrite(message.linkId, writer.tag(43, WireType.LengthDelimited).fork(), options).join();
2413
+ /* google.protobuf.BoolValue locked = 44; */
2414
+ if (message.locked)
2415
+ BoolValue.internalBinaryWrite(message.locked, writer.tag(44, WireType.LengthDelimited).fork(), options).join();
2416
+ /* google.protobuf.StringValue mod_note = 45; */
2417
+ if (message.modNote)
2418
+ StringValue.internalBinaryWrite(message.modNote, writer.tag(45, WireType.LengthDelimited).fork(), options).join();
2419
+ /* google.protobuf.StringValue mod_reason_by = 46; */
2420
+ if (message.modReasonBy)
2421
+ StringValue.internalBinaryWrite(message.modReasonBy, writer.tag(46, WireType.LengthDelimited).fork(), options).join();
2422
+ /* google.protobuf.StringValue mod_reason_title = 47; */
2423
+ if (message.modReasonTitle)
2424
+ StringValue.internalBinaryWrite(message.modReasonTitle, writer.tag(47, WireType.LengthDelimited).fork(), options).join();
2425
+ /* google.protobuf.StringValue name = 49; */
2426
+ if (message.name)
2427
+ StringValue.internalBinaryWrite(message.name, writer.tag(49, WireType.LengthDelimited).fork(), options).join();
2428
+ /* google.protobuf.BoolValue no_follow = 50; */
2429
+ if (message.noFollow)
2430
+ BoolValue.internalBinaryWrite(message.noFollow, writer.tag(50, WireType.LengthDelimited).fork(), options).join();
2431
+ /* google.protobuf.Int64Value num_reports = 52; */
2432
+ if (message.numReports)
2433
+ Int64Value.internalBinaryWrite(message.numReports, writer.tag(52, WireType.LengthDelimited).fork(), options).join();
2434
+ /* google.protobuf.StringValue parent_id = 53; */
2435
+ if (message.parentId)
2436
+ StringValue.internalBinaryWrite(message.parentId, writer.tag(53, WireType.LengthDelimited).fork(), options).join();
2437
+ /* google.protobuf.StringValue permalink = 54; */
2438
+ if (message.permalink)
2439
+ StringValue.internalBinaryWrite(message.permalink, writer.tag(54, WireType.LengthDelimited).fork(), options).join();
2440
+ /* google.protobuf.StringValue removal_reason = 55; */
2441
+ if (message.removalReason)
2442
+ StringValue.internalBinaryWrite(message.removalReason, writer.tag(55, WireType.LengthDelimited).fork(), options).join();
2443
+ /* google.protobuf.BoolValue removed = 56; */
2444
+ if (message.removed)
2445
+ BoolValue.internalBinaryWrite(message.removed, writer.tag(56, WireType.LengthDelimited).fork(), options).join();
2446
+ /* google.protobuf.StringValue replies = 57 [deprecated = true]; */
2447
+ if (message.replies)
2448
+ StringValue.internalBinaryWrite(message.replies, writer.tag(57, WireType.LengthDelimited).fork(), options).join();
2449
+ /* google.protobuf.ListValue report_reasons = 58; */
2450
+ if (message.reportReasons)
2451
+ ListValue.internalBinaryWrite(message.reportReasons, writer.tag(58, WireType.LengthDelimited).fork(), options).join();
2452
+ /* google.protobuf.StringValue rte_mode = 59; */
2453
+ if (message.rteMode)
2454
+ StringValue.internalBinaryWrite(message.rteMode, writer.tag(59, WireType.LengthDelimited).fork(), options).join();
2455
+ /* google.protobuf.BoolValue saved = 60; */
2456
+ if (message.saved)
2457
+ BoolValue.internalBinaryWrite(message.saved, writer.tag(60, WireType.LengthDelimited).fork(), options).join();
2458
+ /* google.protobuf.Int64Value score = 61; */
2459
+ if (message.score)
2460
+ Int64Value.internalBinaryWrite(message.score, writer.tag(61, WireType.LengthDelimited).fork(), options).join();
2461
+ /* google.protobuf.BoolValue score_hidden = 62; */
2462
+ if (message.scoreHidden)
2463
+ BoolValue.internalBinaryWrite(message.scoreHidden, writer.tag(62, WireType.LengthDelimited).fork(), options).join();
2464
+ /* google.protobuf.BoolValue send_replies = 63; */
2465
+ if (message.sendReplies)
2466
+ BoolValue.internalBinaryWrite(message.sendReplies, writer.tag(63, WireType.LengthDelimited).fork(), options).join();
2467
+ /* google.protobuf.BoolValue spam = 64; */
2468
+ if (message.spam)
2469
+ BoolValue.internalBinaryWrite(message.spam, writer.tag(64, WireType.LengthDelimited).fork(), options).join();
2470
+ /* google.protobuf.BoolValue stickied = 65; */
2471
+ if (message.stickied)
2472
+ BoolValue.internalBinaryWrite(message.stickied, writer.tag(65, WireType.LengthDelimited).fork(), options).join();
2473
+ /* google.protobuf.StringValue subreddit = 66; */
2474
+ if (message.subreddit)
2475
+ StringValue.internalBinaryWrite(message.subreddit, writer.tag(66, WireType.LengthDelimited).fork(), options).join();
2476
+ /* google.protobuf.StringValue subreddit_id = 67; */
2477
+ if (message.subredditId)
2478
+ StringValue.internalBinaryWrite(message.subredditId, writer.tag(67, WireType.LengthDelimited).fork(), options).join();
2479
+ /* google.protobuf.StringValue subreddit_name_prefixed = 68; */
2480
+ if (message.subredditNamePrefixed)
2481
+ StringValue.internalBinaryWrite(message.subredditNamePrefixed, writer.tag(68, WireType.LengthDelimited).fork(), options).join();
2482
+ /* google.protobuf.StringValue subreddit_type = 69; */
2483
+ if (message.subredditType)
2484
+ StringValue.internalBinaryWrite(message.subredditType, writer.tag(69, WireType.LengthDelimited).fork(), options).join();
2485
+ /* google.protobuf.StringValue top_awarded_type = 70; */
2486
+ if (message.topAwardedType)
2487
+ StringValue.internalBinaryWrite(message.topAwardedType, writer.tag(70, WireType.LengthDelimited).fork(), options).join();
2488
+ /* google.protobuf.Int64Value total_awards_received = 71; */
2489
+ if (message.totalAwardsReceived)
2490
+ Int64Value.internalBinaryWrite(message.totalAwardsReceived, writer.tag(71, WireType.LengthDelimited).fork(), options).join();
2491
+ /* repeated google.protobuf.Any treatment_tags = 72; */
2492
+ for (let i = 0; i < message.treatmentTags.length; i++)
2493
+ Any.internalBinaryWrite(message.treatmentTags[i], writer.tag(72, WireType.LengthDelimited).fork(), options).join();
2494
+ /* google.protobuf.StringValue unrepliable_reason = 73; */
2495
+ if (message.unrepliableReason)
2496
+ StringValue.internalBinaryWrite(message.unrepliableReason, writer.tag(73, WireType.LengthDelimited).fork(), options).join();
2497
+ /* google.protobuf.Int64Value ups = 74; */
2498
+ if (message.ups)
2499
+ Int64Value.internalBinaryWrite(message.ups, writer.tag(74, WireType.LengthDelimited).fork(), options).join();
2500
+ /* google.protobuf.Int64Value depth = 76; */
2501
+ if (message.depth)
2502
+ Int64Value.internalBinaryWrite(message.depth, writer.tag(76, WireType.LengthDelimited).fork(), options).join();
2503
+ /* google.protobuf.StringValue link_title = 77; */
2504
+ if (message.linkTitle)
2505
+ StringValue.internalBinaryWrite(message.linkTitle, writer.tag(77, WireType.LengthDelimited).fork(), options).join();
2506
+ /* google.protobuf.StringValue link_author = 78; */
2507
+ if (message.linkAuthor)
2508
+ StringValue.internalBinaryWrite(message.linkAuthor, writer.tag(78, WireType.LengthDelimited).fork(), options).join();
2509
+ /* google.protobuf.Int64Value num_comments = 79; */
2510
+ if (message.numComments)
2511
+ Int64Value.internalBinaryWrite(message.numComments, writer.tag(79, WireType.LengthDelimited).fork(), options).join();
2512
+ /* google.protobuf.BoolValue over_18 = 80; */
2513
+ if (message.over18)
2514
+ BoolValue.internalBinaryWrite(message.over18, writer.tag(80, WireType.LengthDelimited).fork(), options).join();
2515
+ /* google.protobuf.StringValue link_permalink = 81; */
2516
+ if (message.linkPermalink)
2517
+ StringValue.internalBinaryWrite(message.linkPermalink, writer.tag(81, WireType.LengthDelimited).fork(), options).join();
2518
+ /* google.protobuf.BoolValue quarantine = 82; */
2519
+ if (message.quarantine)
2520
+ BoolValue.internalBinaryWrite(message.quarantine, writer.tag(82, WireType.LengthDelimited).fork(), options).join();
2521
+ /* google.protobuf.StringValue link_url = 83; */
2522
+ if (message.linkUrl)
2523
+ StringValue.internalBinaryWrite(message.linkUrl, writer.tag(83, WireType.LengthDelimited).fork(), options).join();
2524
+ /* google.protobuf.StringValue selftext = 84; */
2525
+ if (message.selftext)
2526
+ StringValue.internalBinaryWrite(message.selftext, writer.tag(84, WireType.LengthDelimited).fork(), options).join();
2527
+ /* google.protobuf.StringValue selftext_html = 85; */
2528
+ if (message.selftextHtml)
2529
+ StringValue.internalBinaryWrite(message.selftextHtml, writer.tag(85, WireType.LengthDelimited).fork(), options).join();
2530
+ /* google.protobuf.StringValue thumbnail = 87; */
2531
+ if (message.thumbnail)
2532
+ StringValue.internalBinaryWrite(message.thumbnail, writer.tag(87, WireType.LengthDelimited).fork(), options).join();
2533
+ /* google.protobuf.Int64Value thumbnail_width = 88; */
2534
+ if (message.thumbnailWidth)
2535
+ Int64Value.internalBinaryWrite(message.thumbnailWidth, writer.tag(88, WireType.LengthDelimited).fork(), options).join();
2536
+ /* google.protobuf.Int64Value thumbnail_height = 89; */
2537
+ if (message.thumbnailHeight)
2538
+ Int64Value.internalBinaryWrite(message.thumbnailHeight, writer.tag(89, WireType.LengthDelimited).fork(), options).join();
2539
+ /* google.protobuf.StringValue title = 90; */
2540
+ if (message.title)
2541
+ StringValue.internalBinaryWrite(message.title, writer.tag(90, WireType.LengthDelimited).fork(), options).join();
2542
+ /* google.protobuf.StringValue url = 91; */
2543
+ if (message.url)
2544
+ StringValue.internalBinaryWrite(message.url, writer.tag(91, WireType.LengthDelimited).fork(), options).join();
2545
+ /* google.protobuf.StringValue display_name = 92; */
2546
+ if (message.displayName)
2547
+ StringValue.internalBinaryWrite(message.displayName, writer.tag(92, WireType.LengthDelimited).fork(), options).join();
2548
+ /* repeated google.protobuf.StringValue mod_permissions = 93; */
2549
+ for (let i = 0; i < message.modPermissions.length; i++)
2550
+ StringValue.internalBinaryWrite(message.modPermissions[i], writer.tag(93, WireType.LengthDelimited).fork(), options).join();
2551
+ /* google.protobuf.Int64Value count = 94; */
2552
+ if (message.count)
2553
+ Int64Value.internalBinaryWrite(message.count, writer.tag(94, WireType.LengthDelimited).fork(), options).join();
2554
+ /* google.protobuf.ListValue children = 95; */
2555
+ if (message.children)
2556
+ ListValue.internalBinaryWrite(message.children, writer.tag(95, WireType.LengthDelimited).fork(), options).join();
2557
+ /* devvit.plugin.redditapi.common.Listing reply_list = 96; */
2558
+ if (message.replyList)
2559
+ Listing.internalBinaryWrite(message.replyList, writer.tag(96, WireType.LengthDelimited).fork(), options).join();
2560
+ /* google.protobuf.BoolValue hidden = 97; */
2561
+ if (message.hidden)
2562
+ BoolValue.internalBinaryWrite(message.hidden, writer.tag(97, WireType.LengthDelimited).fork(), options).join();
2563
+ /* google.protobuf.StringValue link_flair_background_color = 98; */
2564
+ if (message.linkFlairBackgroundColor)
2565
+ StringValue.internalBinaryWrite(message.linkFlairBackgroundColor, writer.tag(98, WireType.LengthDelimited).fork(), options).join();
2566
+ /* google.protobuf.StringValue link_flair_css_class = 99; */
2567
+ if (message.linkFlairCssClass)
2568
+ StringValue.internalBinaryWrite(message.linkFlairCssClass, writer.tag(99, WireType.LengthDelimited).fork(), options).join();
2569
+ /* repeated devvit.plugin.redditapi.common.RedditObject.LinkFlairRichText link_flair_richtext = 100; */
2570
+ for (let i = 0; i < message.linkFlairRichtext.length; i++)
2571
+ RedditObject_LinkFlairRichText.internalBinaryWrite(message.linkFlairRichtext[i], writer.tag(100, WireType.LengthDelimited).fork(), options).join();
2572
+ /* google.protobuf.StringValue link_flair_template_id = 101; */
2573
+ if (message.linkFlairTemplateId)
2574
+ StringValue.internalBinaryWrite(message.linkFlairTemplateId, writer.tag(101, WireType.LengthDelimited).fork(), options).join();
2575
+ /* google.protobuf.StringValue link_flair_text = 102; */
2576
+ if (message.linkFlairText)
2577
+ StringValue.internalBinaryWrite(message.linkFlairText, writer.tag(102, WireType.LengthDelimited).fork(), options).join();
2578
+ /* google.protobuf.StringValue link_flair_text_color = 103; */
2579
+ if (message.linkFlairTextColor)
2580
+ StringValue.internalBinaryWrite(message.linkFlairTextColor, writer.tag(103, WireType.LengthDelimited).fork(), options).join();
2581
+ /* google.protobuf.StringValue link_flair_type = 104; */
2582
+ if (message.linkFlairType)
2583
+ StringValue.internalBinaryWrite(message.linkFlairType, writer.tag(104, WireType.LengthDelimited).fork(), options).join();
2584
+ /* devvit.plugin.redditapi.common.RedditObject.SecureMedia secure_media = 105; */
2585
+ if (message.secureMedia)
2586
+ RedditObject_SecureMedia.internalBinaryWrite(message.secureMedia, writer.tag(105, WireType.LengthDelimited).fork(), options).join();
2587
+ /* bool spoiler = 106; */
2588
+ if (message.spoiler !== false)
2589
+ writer.tag(106, WireType.Varint).bool(message.spoiler);
2590
+ /* repeated google.protobuf.ListValue mod_reports = 107; */
2591
+ for (let i = 0; i < message.modReports.length; i++)
2592
+ ListValue.internalBinaryWrite(message.modReports[i], writer.tag(107, WireType.LengthDelimited).fork(), options).join();
2593
+ /* repeated google.protobuf.ListValue user_reports = 108; */
2594
+ for (let i = 0; i < message.userReports.length; i++)
2595
+ ListValue.internalBinaryWrite(message.userReports[i], writer.tag(108, WireType.LengthDelimited).fork(), options).join();
2596
+ /* google.protobuf.StringValue removed_by = 109; */
2597
+ if (message.removedBy)
2598
+ StringValue.internalBinaryWrite(message.removedBy, writer.tag(109, WireType.LengthDelimited).fork(), options).join();
2599
+ /* google.protobuf.StringValue removed_by_category = 110; */
2600
+ if (message.removedByCategory)
2601
+ StringValue.internalBinaryWrite(message.removedByCategory, writer.tag(110, WireType.LengthDelimited).fork(), options).join();
2602
+ let u = options.writeUnknownFields;
2603
+ if (u !== false)
2604
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2605
+ return writer;
2606
+ }
2607
+ }
2608
+ /**
2609
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.RedditObject
2610
+ */
2611
+ export const RedditObject = new RedditObject$Type();
2612
+ // @generated message type with reflection information, may provide speed optimized methods
2613
+ class RedditObject_OEmbed$Type extends MessageType<RedditObject_OEmbed> {
2614
+ constructor() {
2615
+ super("devvit.plugin.redditapi.common.RedditObject.OEmbed", [
2616
+ { no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2617
+ { no: 2, name: "title", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2618
+ { no: 3, name: "provider_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2619
+ { no: 4, name: "provider_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2620
+ { no: 5, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2621
+ { no: 6, name: "thumbnail_width", kind: "message", T: () => Int32Value },
2622
+ { no: 7, name: "thumbnail_height", kind: "message", T: () => Int32Value },
2623
+ { no: 8, name: "thumbnail_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2624
+ { no: 9, name: "html", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2625
+ { no: 10, name: "height", kind: "message", T: () => Int32Value },
2626
+ { no: 11, name: "width", kind: "message", T: () => Int32Value },
2627
+ { no: 12, name: "author_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2628
+ { no: 13, name: "author_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2629
+ ]);
2630
+ }
2631
+ create(value?: PartialMessage<RedditObject_OEmbed>): RedditObject_OEmbed {
2632
+ const message = globalThis.Object.create((this.messagePrototype!));
2633
+ message.type = "";
2634
+ message.version = "";
2635
+ message.html = "";
2636
+ if (value !== undefined)
2637
+ reflectionMergePartial<RedditObject_OEmbed>(this, message, value);
2638
+ return message;
2639
+ }
2640
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedditObject_OEmbed): RedditObject_OEmbed {
2641
+ let message = target ?? this.create(), end = reader.pos + length;
2642
+ while (reader.pos < end) {
2643
+ let [fieldNo, wireType] = reader.tag();
2644
+ switch (fieldNo) {
2645
+ case /* string type */ 1:
2646
+ message.type = reader.string();
2647
+ break;
2648
+ case /* optional string title */ 2:
2649
+ message.title = reader.string();
2650
+ break;
2651
+ case /* optional string provider_name */ 3:
2652
+ message.providerName = reader.string();
2653
+ break;
2654
+ case /* optional string provider_url */ 4:
2655
+ message.providerUrl = reader.string();
2656
+ break;
2657
+ case /* string version */ 5:
2658
+ message.version = reader.string();
2659
+ break;
2660
+ case /* optional google.protobuf.Int32Value thumbnail_width */ 6:
2661
+ message.thumbnailWidth = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.thumbnailWidth);
2662
+ break;
2663
+ case /* optional google.protobuf.Int32Value thumbnail_height */ 7:
2664
+ message.thumbnailHeight = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.thumbnailHeight);
2665
+ break;
2666
+ case /* optional string thumbnail_url */ 8:
2667
+ message.thumbnailUrl = reader.string();
2668
+ break;
2669
+ case /* string html */ 9:
2670
+ message.html = reader.string();
2671
+ break;
2672
+ case /* google.protobuf.Int32Value height */ 10:
2673
+ message.height = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.height);
2674
+ break;
2675
+ case /* google.protobuf.Int32Value width */ 11:
2676
+ message.width = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.width);
2677
+ break;
2678
+ case /* optional string author_url */ 12:
2679
+ message.authorUrl = reader.string();
2680
+ break;
2681
+ case /* optional string author_name */ 13:
2682
+ message.authorName = reader.string();
2683
+ break;
2684
+ default:
2685
+ let u = options.readUnknownField;
2686
+ if (u === "throw")
2687
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2688
+ let d = reader.skip(wireType);
2689
+ if (u !== false)
2690
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2691
+ }
2692
+ }
2693
+ return message;
2694
+ }
2695
+ internalBinaryWrite(message: RedditObject_OEmbed, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2696
+ /* string type = 1; */
2697
+ if (message.type !== "")
2698
+ writer.tag(1, WireType.LengthDelimited).string(message.type);
2699
+ /* optional string title = 2; */
2700
+ if (message.title !== undefined)
2701
+ writer.tag(2, WireType.LengthDelimited).string(message.title);
2702
+ /* optional string provider_name = 3; */
2703
+ if (message.providerName !== undefined)
2704
+ writer.tag(3, WireType.LengthDelimited).string(message.providerName);
2705
+ /* optional string provider_url = 4; */
2706
+ if (message.providerUrl !== undefined)
2707
+ writer.tag(4, WireType.LengthDelimited).string(message.providerUrl);
2708
+ /* string version = 5; */
2709
+ if (message.version !== "")
2710
+ writer.tag(5, WireType.LengthDelimited).string(message.version);
2711
+ /* optional google.protobuf.Int32Value thumbnail_width = 6; */
2712
+ if (message.thumbnailWidth)
2713
+ Int32Value.internalBinaryWrite(message.thumbnailWidth, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2714
+ /* optional google.protobuf.Int32Value thumbnail_height = 7; */
2715
+ if (message.thumbnailHeight)
2716
+ Int32Value.internalBinaryWrite(message.thumbnailHeight, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2717
+ /* optional string thumbnail_url = 8; */
2718
+ if (message.thumbnailUrl !== undefined)
2719
+ writer.tag(8, WireType.LengthDelimited).string(message.thumbnailUrl);
2720
+ /* string html = 9; */
2721
+ if (message.html !== "")
2722
+ writer.tag(9, WireType.LengthDelimited).string(message.html);
2723
+ /* google.protobuf.Int32Value height = 10; */
2724
+ if (message.height)
2725
+ Int32Value.internalBinaryWrite(message.height, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
2726
+ /* google.protobuf.Int32Value width = 11; */
2727
+ if (message.width)
2728
+ Int32Value.internalBinaryWrite(message.width, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
2729
+ /* optional string author_url = 12; */
2730
+ if (message.authorUrl !== undefined)
2731
+ writer.tag(12, WireType.LengthDelimited).string(message.authorUrl);
2732
+ /* optional string author_name = 13; */
2733
+ if (message.authorName !== undefined)
2734
+ writer.tag(13, WireType.LengthDelimited).string(message.authorName);
2735
+ let u = options.writeUnknownFields;
2736
+ if (u !== false)
2737
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2738
+ return writer;
2739
+ }
2740
+ }
2741
+ /**
2742
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.RedditObject.OEmbed
2743
+ */
2744
+ export const RedditObject_OEmbed = new RedditObject_OEmbed$Type();
2745
+ // @generated message type with reflection information, may provide speed optimized methods
2746
+ class RedditObject_RedditVideo$Type extends MessageType<RedditObject_RedditVideo> {
2747
+ constructor() {
2748
+ super("devvit.plugin.redditapi.common.RedditObject.RedditVideo", [
2749
+ { no: 1, name: "bitrate_kbps", kind: "message", T: () => Int32Value },
2750
+ { no: 2, name: "dash_url", kind: "message", T: () => StringValue },
2751
+ { no: 3, name: "duration", kind: "message", T: () => Int32Value },
2752
+ { no: 4, name: "fallback_url", kind: "message", T: () => StringValue },
2753
+ { no: 5, name: "height", kind: "message", T: () => Int32Value },
2754
+ { no: 6, name: "hls_url", kind: "message", T: () => StringValue },
2755
+ { no: 7, name: "is_gif", kind: "message", T: () => BoolValue },
2756
+ { no: 8, name: "scrubber_media_url", kind: "message", T: () => StringValue },
2757
+ { no: 9, name: "transcoding_status", kind: "message", T: () => StringValue },
2758
+ { no: 10, name: "width", kind: "message", T: () => Int32Value }
2759
+ ]);
2760
+ }
2761
+ create(value?: PartialMessage<RedditObject_RedditVideo>): RedditObject_RedditVideo {
2762
+ const message = globalThis.Object.create((this.messagePrototype!));
2763
+ if (value !== undefined)
2764
+ reflectionMergePartial<RedditObject_RedditVideo>(this, message, value);
2765
+ return message;
2766
+ }
2767
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedditObject_RedditVideo): RedditObject_RedditVideo {
2768
+ let message = target ?? this.create(), end = reader.pos + length;
2769
+ while (reader.pos < end) {
2770
+ let [fieldNo, wireType] = reader.tag();
2771
+ switch (fieldNo) {
2772
+ case /* google.protobuf.Int32Value bitrate_kbps */ 1:
2773
+ message.bitrateKbps = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.bitrateKbps);
2774
+ break;
2775
+ case /* google.protobuf.StringValue dash_url */ 2:
2776
+ message.dashUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.dashUrl);
2777
+ break;
2778
+ case /* google.protobuf.Int32Value duration */ 3:
2779
+ message.duration = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.duration);
2780
+ break;
2781
+ case /* google.protobuf.StringValue fallback_url */ 4:
2782
+ message.fallbackUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.fallbackUrl);
2783
+ break;
2784
+ case /* google.protobuf.Int32Value height */ 5:
2785
+ message.height = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.height);
2786
+ break;
2787
+ case /* google.protobuf.StringValue hls_url */ 6:
2788
+ message.hlsUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.hlsUrl);
2789
+ break;
2790
+ case /* google.protobuf.BoolValue is_gif */ 7:
2791
+ message.isGif = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isGif);
2792
+ break;
2793
+ case /* google.protobuf.StringValue scrubber_media_url */ 8:
2794
+ message.scrubberMediaUrl = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.scrubberMediaUrl);
2795
+ break;
2796
+ case /* google.protobuf.StringValue transcoding_status */ 9:
2797
+ message.transcodingStatus = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.transcodingStatus);
2798
+ break;
2799
+ case /* google.protobuf.Int32Value width */ 10:
2800
+ message.width = Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.width);
2801
+ break;
2802
+ default:
2803
+ let u = options.readUnknownField;
2804
+ if (u === "throw")
2805
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2806
+ let d = reader.skip(wireType);
2807
+ if (u !== false)
2808
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2809
+ }
2810
+ }
2811
+ return message;
2812
+ }
2813
+ internalBinaryWrite(message: RedditObject_RedditVideo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2814
+ /* google.protobuf.Int32Value bitrate_kbps = 1; */
2815
+ if (message.bitrateKbps)
2816
+ Int32Value.internalBinaryWrite(message.bitrateKbps, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2817
+ /* google.protobuf.StringValue dash_url = 2; */
2818
+ if (message.dashUrl)
2819
+ StringValue.internalBinaryWrite(message.dashUrl, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2820
+ /* google.protobuf.Int32Value duration = 3; */
2821
+ if (message.duration)
2822
+ Int32Value.internalBinaryWrite(message.duration, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2823
+ /* google.protobuf.StringValue fallback_url = 4; */
2824
+ if (message.fallbackUrl)
2825
+ StringValue.internalBinaryWrite(message.fallbackUrl, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2826
+ /* google.protobuf.Int32Value height = 5; */
2827
+ if (message.height)
2828
+ Int32Value.internalBinaryWrite(message.height, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2829
+ /* google.protobuf.StringValue hls_url = 6; */
2830
+ if (message.hlsUrl)
2831
+ StringValue.internalBinaryWrite(message.hlsUrl, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2832
+ /* google.protobuf.BoolValue is_gif = 7; */
2833
+ if (message.isGif)
2834
+ BoolValue.internalBinaryWrite(message.isGif, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2835
+ /* google.protobuf.StringValue scrubber_media_url = 8; */
2836
+ if (message.scrubberMediaUrl)
2837
+ StringValue.internalBinaryWrite(message.scrubberMediaUrl, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2838
+ /* google.protobuf.StringValue transcoding_status = 9; */
2839
+ if (message.transcodingStatus)
2840
+ StringValue.internalBinaryWrite(message.transcodingStatus, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
2841
+ /* google.protobuf.Int32Value width = 10; */
2842
+ if (message.width)
2843
+ Int32Value.internalBinaryWrite(message.width, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
2844
+ let u = options.writeUnknownFields;
2845
+ if (u !== false)
2846
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2847
+ return writer;
2848
+ }
2849
+ }
2850
+ /**
2851
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.RedditObject.RedditVideo
2852
+ */
2853
+ export const RedditObject_RedditVideo = new RedditObject_RedditVideo$Type();
2854
+ // @generated message type with reflection information, may provide speed optimized methods
2855
+ class RedditObject_AuthorFlairRichText$Type extends MessageType<RedditObject_AuthorFlairRichText> {
2856
+ constructor() {
2857
+ super("devvit.plugin.redditapi.common.RedditObject.AuthorFlairRichText", [
2858
+ { no: 1, name: "e", kind: "message", T: () => StringValue },
2859
+ { no: 2, name: "t", kind: "message", T: () => StringValue },
2860
+ { no: 3, name: "a", kind: "message", T: () => StringValue },
2861
+ { no: 4, name: "u", kind: "message", T: () => StringValue }
2862
+ ]);
2863
+ }
2864
+ create(value?: PartialMessage<RedditObject_AuthorFlairRichText>): RedditObject_AuthorFlairRichText {
2865
+ const message = globalThis.Object.create((this.messagePrototype!));
2866
+ if (value !== undefined)
2867
+ reflectionMergePartial<RedditObject_AuthorFlairRichText>(this, message, value);
2868
+ return message;
2869
+ }
2870
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedditObject_AuthorFlairRichText): RedditObject_AuthorFlairRichText {
2871
+ let message = target ?? this.create(), end = reader.pos + length;
2872
+ while (reader.pos < end) {
2873
+ let [fieldNo, wireType] = reader.tag();
2874
+ switch (fieldNo) {
2875
+ case /* google.protobuf.StringValue e */ 1:
2876
+ message.e = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.e);
2877
+ break;
2878
+ case /* google.protobuf.StringValue t */ 2:
2879
+ message.t = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.t);
2880
+ break;
2881
+ case /* google.protobuf.StringValue a */ 3:
2882
+ message.a = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.a);
2883
+ break;
2884
+ case /* google.protobuf.StringValue u */ 4:
2885
+ message.u = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.u);
2886
+ break;
2887
+ default:
2888
+ let u = options.readUnknownField;
2889
+ if (u === "throw")
2890
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2891
+ let d = reader.skip(wireType);
2892
+ if (u !== false)
2893
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2894
+ }
2895
+ }
2896
+ return message;
2897
+ }
2898
+ internalBinaryWrite(message: RedditObject_AuthorFlairRichText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2899
+ /* google.protobuf.StringValue e = 1; */
2900
+ if (message.e)
2901
+ StringValue.internalBinaryWrite(message.e, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2902
+ /* google.protobuf.StringValue t = 2; */
2903
+ if (message.t)
2904
+ StringValue.internalBinaryWrite(message.t, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2905
+ /* google.protobuf.StringValue a = 3; */
2906
+ if (message.a)
2907
+ StringValue.internalBinaryWrite(message.a, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2908
+ /* google.protobuf.StringValue u = 4; */
2909
+ if (message.u)
2910
+ StringValue.internalBinaryWrite(message.u, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2911
+ let u = options.writeUnknownFields;
2912
+ if (u !== false)
2913
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2914
+ return writer;
2915
+ }
2916
+ }
2917
+ /**
2918
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.RedditObject.AuthorFlairRichText
2919
+ */
2920
+ export const RedditObject_AuthorFlairRichText = new RedditObject_AuthorFlairRichText$Type();
2921
+ // @generated message type with reflection information, may provide speed optimized methods
2922
+ class RedditObject_LinkFlairRichText$Type extends MessageType<RedditObject_LinkFlairRichText> {
2923
+ constructor() {
2924
+ super("devvit.plugin.redditapi.common.RedditObject.LinkFlairRichText", [
2925
+ { no: 1, name: "e", kind: "message", T: () => StringValue },
2926
+ { no: 2, name: "t", kind: "message", T: () => StringValue },
2927
+ { no: 3, name: "a", kind: "message", T: () => StringValue },
2928
+ { no: 4, name: "u", kind: "message", T: () => StringValue }
2929
+ ]);
2930
+ }
2931
+ create(value?: PartialMessage<RedditObject_LinkFlairRichText>): RedditObject_LinkFlairRichText {
2932
+ const message = globalThis.Object.create((this.messagePrototype!));
2933
+ if (value !== undefined)
2934
+ reflectionMergePartial<RedditObject_LinkFlairRichText>(this, message, value);
2935
+ return message;
2936
+ }
2937
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedditObject_LinkFlairRichText): RedditObject_LinkFlairRichText {
2938
+ let message = target ?? this.create(), end = reader.pos + length;
2939
+ while (reader.pos < end) {
2940
+ let [fieldNo, wireType] = reader.tag();
2941
+ switch (fieldNo) {
2942
+ case /* google.protobuf.StringValue e */ 1:
2943
+ message.e = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.e);
2944
+ break;
2945
+ case /* google.protobuf.StringValue t */ 2:
2946
+ message.t = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.t);
2947
+ break;
2948
+ case /* google.protobuf.StringValue a */ 3:
2949
+ message.a = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.a);
2950
+ break;
2951
+ case /* google.protobuf.StringValue u */ 4:
2952
+ message.u = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.u);
2953
+ break;
2954
+ default:
2955
+ let u = options.readUnknownField;
2956
+ if (u === "throw")
2957
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2958
+ let d = reader.skip(wireType);
2959
+ if (u !== false)
2960
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2961
+ }
2962
+ }
2963
+ return message;
2964
+ }
2965
+ internalBinaryWrite(message: RedditObject_LinkFlairRichText, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2966
+ /* google.protobuf.StringValue e = 1; */
2967
+ if (message.e)
2968
+ StringValue.internalBinaryWrite(message.e, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2969
+ /* google.protobuf.StringValue t = 2; */
2970
+ if (message.t)
2971
+ StringValue.internalBinaryWrite(message.t, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2972
+ /* google.protobuf.StringValue a = 3; */
2973
+ if (message.a)
2974
+ StringValue.internalBinaryWrite(message.a, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2975
+ /* google.protobuf.StringValue u = 4; */
2976
+ if (message.u)
2977
+ StringValue.internalBinaryWrite(message.u, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2978
+ let u = options.writeUnknownFields;
2979
+ if (u !== false)
2980
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2981
+ return writer;
2982
+ }
2983
+ }
2984
+ /**
2985
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.RedditObject.LinkFlairRichText
2986
+ */
2987
+ export const RedditObject_LinkFlairRichText = new RedditObject_LinkFlairRichText$Type();
2988
+ // @generated message type with reflection information, may provide speed optimized methods
2989
+ class RedditObject_SecureMedia$Type extends MessageType<RedditObject_SecureMedia> {
2990
+ constructor() {
2991
+ super("devvit.plugin.redditapi.common.RedditObject.SecureMedia", [
2992
+ { no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2993
+ { no: 2, name: "oembed", kind: "message", T: () => RedditObject_OEmbed },
2994
+ { no: 3, name: "reddit_video", kind: "message", T: () => RedditObject_RedditVideo }
2995
+ ]);
2996
+ }
2997
+ create(value?: PartialMessage<RedditObject_SecureMedia>): RedditObject_SecureMedia {
2998
+ const message = globalThis.Object.create((this.messagePrototype!));
2999
+ message.type = "";
3000
+ if (value !== undefined)
3001
+ reflectionMergePartial<RedditObject_SecureMedia>(this, message, value);
3002
+ return message;
3003
+ }
3004
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedditObject_SecureMedia): RedditObject_SecureMedia {
3005
+ let message = target ?? this.create(), end = reader.pos + length;
3006
+ while (reader.pos < end) {
3007
+ let [fieldNo, wireType] = reader.tag();
3008
+ switch (fieldNo) {
3009
+ case /* string type */ 1:
3010
+ message.type = reader.string();
3011
+ break;
3012
+ case /* devvit.plugin.redditapi.common.RedditObject.OEmbed oembed */ 2:
3013
+ message.oembed = RedditObject_OEmbed.internalBinaryRead(reader, reader.uint32(), options, message.oembed);
3014
+ break;
3015
+ case /* devvit.plugin.redditapi.common.RedditObject.RedditVideo reddit_video */ 3:
3016
+ message.redditVideo = RedditObject_RedditVideo.internalBinaryRead(reader, reader.uint32(), options, message.redditVideo);
3017
+ break;
3018
+ default:
3019
+ let u = options.readUnknownField;
3020
+ if (u === "throw")
3021
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3022
+ let d = reader.skip(wireType);
3023
+ if (u !== false)
3024
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3025
+ }
3026
+ }
3027
+ return message;
3028
+ }
3029
+ internalBinaryWrite(message: RedditObject_SecureMedia, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3030
+ /* string type = 1; */
3031
+ if (message.type !== "")
3032
+ writer.tag(1, WireType.LengthDelimited).string(message.type);
3033
+ /* devvit.plugin.redditapi.common.RedditObject.OEmbed oembed = 2; */
3034
+ if (message.oembed)
3035
+ RedditObject_OEmbed.internalBinaryWrite(message.oembed, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3036
+ /* devvit.plugin.redditapi.common.RedditObject.RedditVideo reddit_video = 3; */
3037
+ if (message.redditVideo)
3038
+ RedditObject_RedditVideo.internalBinaryWrite(message.redditVideo, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3039
+ let u = options.writeUnknownFields;
3040
+ if (u !== false)
3041
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3042
+ return writer;
3043
+ }
3044
+ }
3045
+ /**
3046
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.RedditObject.SecureMedia
3047
+ */
3048
+ export const RedditObject_SecureMedia = new RedditObject_SecureMedia$Type();
3049
+ // @generated message type with reflection information, may provide speed optimized methods
3050
+ class SubredditObject$Type extends MessageType<SubredditObject> {
3051
+ constructor() {
3052
+ super("devvit.plugin.redditapi.common.SubredditObject", [
3053
+ { no: 1, name: "default_set", kind: "message", T: () => BoolValue },
3054
+ { no: 2, name: "user_is_contributor", kind: "message", T: () => BoolValue },
3055
+ { no: 3, name: "banner_img", kind: "message", T: () => StringValue },
3056
+ { no: 4, name: "restrict_posting", kind: "message", T: () => BoolValue },
3057
+ { no: 5, name: "user_is_banned", kind: "message", T: () => BoolValue },
3058
+ { no: 6, name: "free_form_reports", kind: "message", T: () => BoolValue },
3059
+ { no: 7, name: "community_icon", kind: "message", T: () => StringValue },
3060
+ { no: 8, name: "show_media", kind: "message", T: () => BoolValue },
3061
+ { no: 9, name: "icon_color", kind: "message", T: () => StringValue },
3062
+ { no: 11, name: "display_name", kind: "message", T: () => StringValue },
3063
+ { no: 12, name: "header_img", kind: "message", T: () => StringValue },
3064
+ { no: 13, name: "title", kind: "message", T: () => StringValue },
3065
+ { no: 14, name: "coins", kind: "message", T: () => Int64Value },
3066
+ { no: 15, name: "previous_names", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue },
3067
+ { no: 16, name: "over_18", kind: "message", T: () => BoolValue },
3068
+ { no: 17, name: "icon_size", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Int32Value },
3069
+ { no: 18, name: "primary_color", kind: "message", T: () => StringValue },
3070
+ { no: 19, name: "icon_img", kind: "message", T: () => StringValue },
3071
+ { no: 20, name: "description", kind: "message", T: () => StringValue },
3072
+ { no: 21, name: "submit_link_label", kind: "message", T: () => StringValue },
3073
+ { no: 22, name: "header_size", kind: "message", T: () => StringValue },
3074
+ { no: 23, name: "restrict_commenting", kind: "message", T: () => BoolValue },
3075
+ { no: 24, name: "subscribers", kind: "message", T: () => Int64Value },
3076
+ { no: 25, name: "submit_text_label", kind: "message", T: () => StringValue },
3077
+ { no: 26, name: "is_default_icon", kind: "message", T: () => BoolValue },
3078
+ { no: 27, name: "link_flair_position", kind: "message", T: () => StringValue },
3079
+ { no: 28, name: "display_name_prefixed", kind: "message", T: () => StringValue },
3080
+ { no: 29, name: "key_color", kind: "message", T: () => StringValue },
3081
+ { no: 30, name: "name", kind: "message", T: () => StringValue },
3082
+ { no: 31, name: "is_default_banner", kind: "message", T: () => BoolValue },
3083
+ { no: 32, name: "url", kind: "message", T: () => StringValue },
3084
+ { no: 33, name: "quarantine", kind: "message", T: () => BoolValue },
3085
+ { no: 34, name: "banner_size", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Int32Value },
3086
+ { no: 35, name: "user_is_moderator", kind: "message", T: () => BoolValue },
3087
+ { no: 36, name: "accept_followers", kind: "message", T: () => BoolValue },
3088
+ { no: 37, name: "public_description", kind: "message", T: () => StringValue },
3089
+ { no: 38, name: "link_flair_enabled", kind: "message", T: () => BoolValue },
3090
+ { no: 39, name: "disable_contributor_requests", kind: "message", T: () => BoolValue },
3091
+ { no: 40, name: "subreddit_type", kind: "message", T: () => StringValue },
3092
+ { no: 41, name: "user_is_subscriber", kind: "message", T: () => BoolValue },
3093
+ { no: 42, name: "public_description_html", kind: "message", T: () => StringValue },
3094
+ { no: 43, name: "id", kind: "message", T: () => StringValue },
3095
+ { no: 44, name: "user_is_muted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
3096
+ ]);
3097
+ }
3098
+ create(value?: PartialMessage<SubredditObject>): SubredditObject {
3099
+ const message = globalThis.Object.create((this.messagePrototype!));
3100
+ message.previousNames = [];
3101
+ message.iconSize = [];
3102
+ message.bannerSize = [];
3103
+ message.userIsMuted = false;
3104
+ if (value !== undefined)
3105
+ reflectionMergePartial<SubredditObject>(this, message, value);
3106
+ return message;
3107
+ }
3108
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SubredditObject): SubredditObject {
3109
+ let message = target ?? this.create(), end = reader.pos + length;
3110
+ while (reader.pos < end) {
3111
+ let [fieldNo, wireType] = reader.tag();
3112
+ switch (fieldNo) {
3113
+ case /* google.protobuf.BoolValue default_set = 1 [deprecated = true];*/ 1:
3114
+ message.defaultSet = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.defaultSet);
3115
+ break;
3116
+ case /* google.protobuf.BoolValue user_is_contributor */ 2:
3117
+ message.userIsContributor = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.userIsContributor);
3118
+ break;
3119
+ case /* google.protobuf.StringValue banner_img = 3 [deprecated = true];*/ 3:
3120
+ message.bannerImg = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.bannerImg);
3121
+ break;
3122
+ case /* google.protobuf.BoolValue restrict_posting */ 4:
3123
+ message.restrictPosting = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.restrictPosting);
3124
+ break;
3125
+ case /* google.protobuf.BoolValue user_is_banned */ 5:
3126
+ message.userIsBanned = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.userIsBanned);
3127
+ break;
3128
+ case /* google.protobuf.BoolValue free_form_reports */ 6:
3129
+ message.freeFormReports = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.freeFormReports);
3130
+ break;
3131
+ case /* google.protobuf.StringValue community_icon */ 7:
3132
+ message.communityIcon = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.communityIcon);
3133
+ break;
3134
+ case /* google.protobuf.BoolValue show_media = 8 [deprecated = true];*/ 8:
3135
+ message.showMedia = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.showMedia);
3136
+ break;
3137
+ case /* google.protobuf.StringValue icon_color = 9 [deprecated = true];*/ 9:
3138
+ message.iconColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.iconColor);
3139
+ break;
3140
+ case /* google.protobuf.StringValue display_name */ 11:
3141
+ message.displayName = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.displayName);
3142
+ break;
3143
+ case /* google.protobuf.StringValue header_img = 12 [deprecated = true];*/ 12:
3144
+ message.headerImg = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.headerImg);
3145
+ break;
3146
+ case /* google.protobuf.StringValue title */ 13:
3147
+ message.title = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.title);
3148
+ break;
3149
+ case /* google.protobuf.Int64Value coins */ 14:
3150
+ message.coins = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.coins);
3151
+ break;
3152
+ case /* repeated google.protobuf.StringValue previous_names = 15 [deprecated = true];*/ 15:
3153
+ message.previousNames.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
3154
+ break;
3155
+ case /* google.protobuf.BoolValue over_18 */ 16:
3156
+ message.over18 = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.over18);
3157
+ break;
3158
+ case /* repeated google.protobuf.Int32Value icon_size = 17 [deprecated = true];*/ 17:
3159
+ message.iconSize.push(Int32Value.internalBinaryRead(reader, reader.uint32(), options));
3160
+ break;
3161
+ case /* google.protobuf.StringValue primary_color */ 18:
3162
+ message.primaryColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.primaryColor);
3163
+ break;
3164
+ case /* google.protobuf.StringValue icon_img = 19 [deprecated = true];*/ 19:
3165
+ message.iconImg = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.iconImg);
3166
+ break;
3167
+ case /* google.protobuf.StringValue description = 20 [deprecated = true];*/ 20:
3168
+ message.description = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.description);
3169
+ break;
3170
+ case /* google.protobuf.StringValue submit_link_label = 21 [deprecated = true];*/ 21:
3171
+ message.submitLinkLabel = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.submitLinkLabel);
3172
+ break;
3173
+ case /* google.protobuf.StringValue header_size = 22 [deprecated = true];*/ 22:
3174
+ message.headerSize = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.headerSize);
3175
+ break;
3176
+ case /* google.protobuf.BoolValue restrict_commenting */ 23:
3177
+ message.restrictCommenting = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.restrictCommenting);
3178
+ break;
3179
+ case /* google.protobuf.Int64Value subscribers */ 24:
3180
+ message.subscribers = Int64Value.internalBinaryRead(reader, reader.uint32(), options, message.subscribers);
3181
+ break;
3182
+ case /* google.protobuf.StringValue submit_text_label */ 25:
3183
+ message.submitTextLabel = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.submitTextLabel);
3184
+ break;
3185
+ case /* google.protobuf.BoolValue is_default_icon = 26 [deprecated = true];*/ 26:
3186
+ message.isDefaultIcon = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isDefaultIcon);
3187
+ break;
3188
+ case /* google.protobuf.StringValue link_flair_position = 27 [deprecated = true];*/ 27:
3189
+ message.linkFlairPosition = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairPosition);
3190
+ break;
3191
+ case /* google.protobuf.StringValue display_name_prefixed */ 28:
3192
+ message.displayNamePrefixed = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.displayNamePrefixed);
3193
+ break;
3194
+ case /* google.protobuf.StringValue key_color = 29 [deprecated = true];*/ 29:
3195
+ message.keyColor = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.keyColor);
3196
+ break;
3197
+ case /* google.protobuf.StringValue name */ 30:
3198
+ message.name = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.name);
3199
+ break;
3200
+ case /* google.protobuf.BoolValue is_default_banner = 31 [deprecated = true];*/ 31:
3201
+ message.isDefaultBanner = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.isDefaultBanner);
3202
+ break;
3203
+ case /* google.protobuf.StringValue url */ 32:
3204
+ message.url = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.url);
3205
+ break;
3206
+ case /* google.protobuf.BoolValue quarantine */ 33:
3207
+ message.quarantine = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.quarantine);
3208
+ break;
3209
+ case /* repeated google.protobuf.Int32Value banner_size = 34 [deprecated = true];*/ 34:
3210
+ message.bannerSize.push(Int32Value.internalBinaryRead(reader, reader.uint32(), options));
3211
+ break;
3212
+ case /* google.protobuf.BoolValue user_is_moderator */ 35:
3213
+ message.userIsModerator = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.userIsModerator);
3214
+ break;
3215
+ case /* google.protobuf.BoolValue accept_followers */ 36:
3216
+ message.acceptFollowers = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.acceptFollowers);
3217
+ break;
3218
+ case /* google.protobuf.StringValue public_description */ 37:
3219
+ message.publicDescription = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.publicDescription);
3220
+ break;
3221
+ case /* google.protobuf.BoolValue link_flair_enabled */ 38:
3222
+ message.linkFlairEnabled = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.linkFlairEnabled);
3223
+ break;
3224
+ case /* google.protobuf.BoolValue disable_contributor_requests */ 39:
3225
+ message.disableContributorRequests = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.disableContributorRequests);
3226
+ break;
3227
+ case /* google.protobuf.StringValue subreddit_type */ 40:
3228
+ message.subredditType = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.subredditType);
3229
+ break;
3230
+ case /* google.protobuf.BoolValue user_is_subscriber */ 41:
3231
+ message.userIsSubscriber = BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.userIsSubscriber);
3232
+ break;
3233
+ case /* google.protobuf.StringValue public_description_html */ 42:
3234
+ message.publicDescriptionHtml = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.publicDescriptionHtml);
3235
+ break;
3236
+ case /* google.protobuf.StringValue id */ 43:
3237
+ message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
3238
+ break;
3239
+ case /* bool user_is_muted */ 44:
3240
+ message.userIsMuted = reader.bool();
3241
+ break;
3242
+ default:
3243
+ let u = options.readUnknownField;
3244
+ if (u === "throw")
3245
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3246
+ let d = reader.skip(wireType);
3247
+ if (u !== false)
3248
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3249
+ }
3250
+ }
3251
+ return message;
3252
+ }
3253
+ internalBinaryWrite(message: SubredditObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3254
+ /* google.protobuf.BoolValue default_set = 1 [deprecated = true]; */
3255
+ if (message.defaultSet)
3256
+ BoolValue.internalBinaryWrite(message.defaultSet, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3257
+ /* google.protobuf.BoolValue user_is_contributor = 2; */
3258
+ if (message.userIsContributor)
3259
+ BoolValue.internalBinaryWrite(message.userIsContributor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3260
+ /* google.protobuf.StringValue banner_img = 3 [deprecated = true]; */
3261
+ if (message.bannerImg)
3262
+ StringValue.internalBinaryWrite(message.bannerImg, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3263
+ /* google.protobuf.BoolValue restrict_posting = 4; */
3264
+ if (message.restrictPosting)
3265
+ BoolValue.internalBinaryWrite(message.restrictPosting, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3266
+ /* google.protobuf.BoolValue user_is_banned = 5; */
3267
+ if (message.userIsBanned)
3268
+ BoolValue.internalBinaryWrite(message.userIsBanned, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
3269
+ /* google.protobuf.BoolValue free_form_reports = 6; */
3270
+ if (message.freeFormReports)
3271
+ BoolValue.internalBinaryWrite(message.freeFormReports, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
3272
+ /* google.protobuf.StringValue community_icon = 7; */
3273
+ if (message.communityIcon)
3274
+ StringValue.internalBinaryWrite(message.communityIcon, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3275
+ /* google.protobuf.BoolValue show_media = 8 [deprecated = true]; */
3276
+ if (message.showMedia)
3277
+ BoolValue.internalBinaryWrite(message.showMedia, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
3278
+ /* google.protobuf.StringValue icon_color = 9 [deprecated = true]; */
3279
+ if (message.iconColor)
3280
+ StringValue.internalBinaryWrite(message.iconColor, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
3281
+ /* google.protobuf.StringValue display_name = 11; */
3282
+ if (message.displayName)
3283
+ StringValue.internalBinaryWrite(message.displayName, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
3284
+ /* google.protobuf.StringValue header_img = 12 [deprecated = true]; */
3285
+ if (message.headerImg)
3286
+ StringValue.internalBinaryWrite(message.headerImg, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
3287
+ /* google.protobuf.StringValue title = 13; */
3288
+ if (message.title)
3289
+ StringValue.internalBinaryWrite(message.title, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
3290
+ /* google.protobuf.Int64Value coins = 14; */
3291
+ if (message.coins)
3292
+ Int64Value.internalBinaryWrite(message.coins, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
3293
+ /* repeated google.protobuf.StringValue previous_names = 15 [deprecated = true]; */
3294
+ for (let i = 0; i < message.previousNames.length; i++)
3295
+ StringValue.internalBinaryWrite(message.previousNames[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
3296
+ /* google.protobuf.BoolValue over_18 = 16; */
3297
+ if (message.over18)
3298
+ BoolValue.internalBinaryWrite(message.over18, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
3299
+ /* repeated google.protobuf.Int32Value icon_size = 17 [deprecated = true]; */
3300
+ for (let i = 0; i < message.iconSize.length; i++)
3301
+ Int32Value.internalBinaryWrite(message.iconSize[i], writer.tag(17, WireType.LengthDelimited).fork(), options).join();
3302
+ /* google.protobuf.StringValue primary_color = 18; */
3303
+ if (message.primaryColor)
3304
+ StringValue.internalBinaryWrite(message.primaryColor, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
3305
+ /* google.protobuf.StringValue icon_img = 19 [deprecated = true]; */
3306
+ if (message.iconImg)
3307
+ StringValue.internalBinaryWrite(message.iconImg, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
3308
+ /* google.protobuf.StringValue description = 20 [deprecated = true]; */
3309
+ if (message.description)
3310
+ StringValue.internalBinaryWrite(message.description, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
3311
+ /* google.protobuf.StringValue submit_link_label = 21 [deprecated = true]; */
3312
+ if (message.submitLinkLabel)
3313
+ StringValue.internalBinaryWrite(message.submitLinkLabel, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
3314
+ /* google.protobuf.StringValue header_size = 22 [deprecated = true]; */
3315
+ if (message.headerSize)
3316
+ StringValue.internalBinaryWrite(message.headerSize, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
3317
+ /* google.protobuf.BoolValue restrict_commenting = 23; */
3318
+ if (message.restrictCommenting)
3319
+ BoolValue.internalBinaryWrite(message.restrictCommenting, writer.tag(23, WireType.LengthDelimited).fork(), options).join();
3320
+ /* google.protobuf.Int64Value subscribers = 24; */
3321
+ if (message.subscribers)
3322
+ Int64Value.internalBinaryWrite(message.subscribers, writer.tag(24, WireType.LengthDelimited).fork(), options).join();
3323
+ /* google.protobuf.StringValue submit_text_label = 25; */
3324
+ if (message.submitTextLabel)
3325
+ StringValue.internalBinaryWrite(message.submitTextLabel, writer.tag(25, WireType.LengthDelimited).fork(), options).join();
3326
+ /* google.protobuf.BoolValue is_default_icon = 26 [deprecated = true]; */
3327
+ if (message.isDefaultIcon)
3328
+ BoolValue.internalBinaryWrite(message.isDefaultIcon, writer.tag(26, WireType.LengthDelimited).fork(), options).join();
3329
+ /* google.protobuf.StringValue link_flair_position = 27 [deprecated = true]; */
3330
+ if (message.linkFlairPosition)
3331
+ StringValue.internalBinaryWrite(message.linkFlairPosition, writer.tag(27, WireType.LengthDelimited).fork(), options).join();
3332
+ /* google.protobuf.StringValue display_name_prefixed = 28; */
3333
+ if (message.displayNamePrefixed)
3334
+ StringValue.internalBinaryWrite(message.displayNamePrefixed, writer.tag(28, WireType.LengthDelimited).fork(), options).join();
3335
+ /* google.protobuf.StringValue key_color = 29 [deprecated = true]; */
3336
+ if (message.keyColor)
3337
+ StringValue.internalBinaryWrite(message.keyColor, writer.tag(29, WireType.LengthDelimited).fork(), options).join();
3338
+ /* google.protobuf.StringValue name = 30; */
3339
+ if (message.name)
3340
+ StringValue.internalBinaryWrite(message.name, writer.tag(30, WireType.LengthDelimited).fork(), options).join();
3341
+ /* google.protobuf.BoolValue is_default_banner = 31 [deprecated = true]; */
3342
+ if (message.isDefaultBanner)
3343
+ BoolValue.internalBinaryWrite(message.isDefaultBanner, writer.tag(31, WireType.LengthDelimited).fork(), options).join();
3344
+ /* google.protobuf.StringValue url = 32; */
3345
+ if (message.url)
3346
+ StringValue.internalBinaryWrite(message.url, writer.tag(32, WireType.LengthDelimited).fork(), options).join();
3347
+ /* google.protobuf.BoolValue quarantine = 33; */
3348
+ if (message.quarantine)
3349
+ BoolValue.internalBinaryWrite(message.quarantine, writer.tag(33, WireType.LengthDelimited).fork(), options).join();
3350
+ /* repeated google.protobuf.Int32Value banner_size = 34 [deprecated = true]; */
3351
+ for (let i = 0; i < message.bannerSize.length; i++)
3352
+ Int32Value.internalBinaryWrite(message.bannerSize[i], writer.tag(34, WireType.LengthDelimited).fork(), options).join();
3353
+ /* google.protobuf.BoolValue user_is_moderator = 35; */
3354
+ if (message.userIsModerator)
3355
+ BoolValue.internalBinaryWrite(message.userIsModerator, writer.tag(35, WireType.LengthDelimited).fork(), options).join();
3356
+ /* google.protobuf.BoolValue accept_followers = 36; */
3357
+ if (message.acceptFollowers)
3358
+ BoolValue.internalBinaryWrite(message.acceptFollowers, writer.tag(36, WireType.LengthDelimited).fork(), options).join();
3359
+ /* google.protobuf.StringValue public_description = 37; */
3360
+ if (message.publicDescription)
3361
+ StringValue.internalBinaryWrite(message.publicDescription, writer.tag(37, WireType.LengthDelimited).fork(), options).join();
3362
+ /* google.protobuf.BoolValue link_flair_enabled = 38; */
3363
+ if (message.linkFlairEnabled)
3364
+ BoolValue.internalBinaryWrite(message.linkFlairEnabled, writer.tag(38, WireType.LengthDelimited).fork(), options).join();
3365
+ /* google.protobuf.BoolValue disable_contributor_requests = 39; */
3366
+ if (message.disableContributorRequests)
3367
+ BoolValue.internalBinaryWrite(message.disableContributorRequests, writer.tag(39, WireType.LengthDelimited).fork(), options).join();
3368
+ /* google.protobuf.StringValue subreddit_type = 40; */
3369
+ if (message.subredditType)
3370
+ StringValue.internalBinaryWrite(message.subredditType, writer.tag(40, WireType.LengthDelimited).fork(), options).join();
3371
+ /* google.protobuf.BoolValue user_is_subscriber = 41; */
3372
+ if (message.userIsSubscriber)
3373
+ BoolValue.internalBinaryWrite(message.userIsSubscriber, writer.tag(41, WireType.LengthDelimited).fork(), options).join();
3374
+ /* google.protobuf.StringValue public_description_html = 42; */
3375
+ if (message.publicDescriptionHtml)
3376
+ StringValue.internalBinaryWrite(message.publicDescriptionHtml, writer.tag(42, WireType.LengthDelimited).fork(), options).join();
3377
+ /* google.protobuf.StringValue id = 43; */
3378
+ if (message.id)
3379
+ StringValue.internalBinaryWrite(message.id, writer.tag(43, WireType.LengthDelimited).fork(), options).join();
3380
+ /* bool user_is_muted = 44; */
3381
+ if (message.userIsMuted !== false)
3382
+ writer.tag(44, WireType.Varint).bool(message.userIsMuted);
3383
+ let u = options.writeUnknownFields;
3384
+ if (u !== false)
3385
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3386
+ return writer;
3387
+ }
3388
+ }
3389
+ /**
3390
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.SubredditObject
3391
+ */
3392
+ export const SubredditObject = new SubredditObject$Type();
3393
+ // @generated message type with reflection information, may provide speed optimized methods
3394
+ class JsonStatus$Type extends MessageType<JsonStatus> {
3395
+ constructor() {
3396
+ super("devvit.plugin.redditapi.common.JsonStatus", [
3397
+ { no: 4, name: "json", kind: "message", T: () => JsonStatus_JsonErrorType }
3398
+ ]);
3399
+ }
3400
+ create(value?: PartialMessage<JsonStatus>): JsonStatus {
3401
+ const message = globalThis.Object.create((this.messagePrototype!));
3402
+ if (value !== undefined)
3403
+ reflectionMergePartial<JsonStatus>(this, message, value);
3404
+ return message;
3405
+ }
3406
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonStatus): JsonStatus {
3407
+ let message = target ?? this.create(), end = reader.pos + length;
3408
+ while (reader.pos < end) {
3409
+ let [fieldNo, wireType] = reader.tag();
3410
+ switch (fieldNo) {
3411
+ case /* devvit.plugin.redditapi.common.JsonStatus.JsonErrorType json */ 4:
3412
+ message.json = JsonStatus_JsonErrorType.internalBinaryRead(reader, reader.uint32(), options, message.json);
3413
+ break;
3414
+ default:
3415
+ let u = options.readUnknownField;
3416
+ if (u === "throw")
3417
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3418
+ let d = reader.skip(wireType);
3419
+ if (u !== false)
3420
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3421
+ }
3422
+ }
3423
+ return message;
3424
+ }
3425
+ internalBinaryWrite(message: JsonStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3426
+ /* devvit.plugin.redditapi.common.JsonStatus.JsonErrorType json = 4; */
3427
+ if (message.json)
3428
+ JsonStatus_JsonErrorType.internalBinaryWrite(message.json, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3429
+ let u = options.writeUnknownFields;
3430
+ if (u !== false)
3431
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3432
+ return writer;
3433
+ }
3434
+ }
3435
+ /**
3436
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.JsonStatus
3437
+ */
3438
+ export const JsonStatus = new JsonStatus$Type();
3439
+ // @generated message type with reflection information, may provide speed optimized methods
3440
+ class JsonStatus_JsonErrorType$Type extends MessageType<JsonStatus_JsonErrorType> {
3441
+ constructor() {
3442
+ super("devvit.plugin.redditapi.common.JsonStatus.JsonErrorType", [
3443
+ { no: 1, name: "errors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => StringValue }
3444
+ ]);
3445
+ }
3446
+ create(value?: PartialMessage<JsonStatus_JsonErrorType>): JsonStatus_JsonErrorType {
3447
+ const message = globalThis.Object.create((this.messagePrototype!));
3448
+ message.errors = [];
3449
+ if (value !== undefined)
3450
+ reflectionMergePartial<JsonStatus_JsonErrorType>(this, message, value);
3451
+ return message;
3452
+ }
3453
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: JsonStatus_JsonErrorType): JsonStatus_JsonErrorType {
3454
+ let message = target ?? this.create(), end = reader.pos + length;
3455
+ while (reader.pos < end) {
3456
+ let [fieldNo, wireType] = reader.tag();
3457
+ switch (fieldNo) {
3458
+ case /* repeated google.protobuf.StringValue errors */ 1:
3459
+ message.errors.push(StringValue.internalBinaryRead(reader, reader.uint32(), options));
3460
+ break;
3461
+ default:
3462
+ let u = options.readUnknownField;
3463
+ if (u === "throw")
3464
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3465
+ let d = reader.skip(wireType);
3466
+ if (u !== false)
3467
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3468
+ }
3469
+ }
3470
+ return message;
3471
+ }
3472
+ internalBinaryWrite(message: JsonStatus_JsonErrorType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3473
+ /* repeated google.protobuf.StringValue errors = 1; */
3474
+ for (let i = 0; i < message.errors.length; i++)
3475
+ StringValue.internalBinaryWrite(message.errors[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3476
+ let u = options.writeUnknownFields;
3477
+ if (u !== false)
3478
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3479
+ return writer;
3480
+ }
3481
+ }
3482
+ /**
3483
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.JsonStatus.JsonErrorType
3484
+ */
3485
+ export const JsonStatus_JsonErrorType = new JsonStatus_JsonErrorType$Type();
3486
+ // @generated message type with reflection information, may provide speed optimized methods
3487
+ class WrappedUserObject$Type extends MessageType<WrappedUserObject> {
3488
+ constructor() {
3489
+ super("devvit.plugin.redditapi.common.WrappedUserObject", [
3490
+ { no: 1, name: "id", kind: "message", T: () => StringValue },
3491
+ { no: 2, name: "data", kind: "message", T: () => User }
3492
+ ]);
3493
+ }
3494
+ create(value?: PartialMessage<WrappedUserObject>): WrappedUserObject {
3495
+ const message = globalThis.Object.create((this.messagePrototype!));
3496
+ if (value !== undefined)
3497
+ reflectionMergePartial<WrappedUserObject>(this, message, value);
3498
+ return message;
3499
+ }
3500
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WrappedUserObject): WrappedUserObject {
3501
+ let message = target ?? this.create(), end = reader.pos + length;
3502
+ while (reader.pos < end) {
3503
+ let [fieldNo, wireType] = reader.tag();
3504
+ switch (fieldNo) {
3505
+ case /* google.protobuf.StringValue id */ 1:
3506
+ message.id = StringValue.internalBinaryRead(reader, reader.uint32(), options, message.id);
3507
+ break;
3508
+ case /* devvit.reddit.User data */ 2:
3509
+ message.data = User.internalBinaryRead(reader, reader.uint32(), options, message.data);
3510
+ break;
3511
+ default:
3512
+ let u = options.readUnknownField;
3513
+ if (u === "throw")
3514
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3515
+ let d = reader.skip(wireType);
3516
+ if (u !== false)
3517
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3518
+ }
3519
+ }
3520
+ return message;
3521
+ }
3522
+ internalBinaryWrite(message: WrappedUserObject, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3523
+ /* google.protobuf.StringValue id = 1; */
3524
+ if (message.id)
3525
+ StringValue.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3526
+ /* devvit.reddit.User data = 2; */
3527
+ if (message.data)
3528
+ User.internalBinaryWrite(message.data, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3529
+ let u = options.writeUnknownFields;
3530
+ if (u !== false)
3531
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3532
+ return writer;
3533
+ }
3534
+ }
3535
+ /**
3536
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.WrappedUserObject
3537
+ */
3538
+ export const WrappedUserObject = new WrappedUserObject$Type();
3539
+ // @generated message type with reflection information, may provide speed optimized methods
3540
+ class ApiClientConfig$Type extends MessageType<ApiClientConfig> {
3541
+ constructor() {
3542
+ super("devvit.plugin.redditapi.common.ApiClientConfig", [
3543
+ { no: 1, name: "method", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3544
+ { no: 2, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3545
+ { no: 3, name: "request_body_type", kind: "enum", T: () => ["devvit.plugin.redditapi.common.ApiClientConfig.BodyType", ApiClientConfig_BodyType] },
3546
+ { no: 4, name: "enforce_json", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
3547
+ { no: 5, name: "request_kind_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3548
+ { no: 6, name: "validate_content_id_context", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3549
+ { no: 7, name: "validate_subreddit_context", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3550
+ { no: 8, name: "use_custom_response_parser", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
3551
+ ]);
3552
+ }
3553
+ create(value?: PartialMessage<ApiClientConfig>): ApiClientConfig {
3554
+ const message = globalThis.Object.create((this.messagePrototype!));
3555
+ message.method = "";
3556
+ message.path = "";
3557
+ message.requestBodyType = 0;
3558
+ message.enforceJson = false;
3559
+ message.requestKindValue = "";
3560
+ message.validateContentIdContext = "";
3561
+ message.validateSubredditContext = "";
3562
+ message.useCustomResponseParser = false;
3563
+ if (value !== undefined)
3564
+ reflectionMergePartial<ApiClientConfig>(this, message, value);
3565
+ return message;
3566
+ }
3567
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ApiClientConfig): ApiClientConfig {
3568
+ let message = target ?? this.create(), end = reader.pos + length;
3569
+ while (reader.pos < end) {
3570
+ let [fieldNo, wireType] = reader.tag();
3571
+ switch (fieldNo) {
3572
+ case /* string method */ 1:
3573
+ message.method = reader.string();
3574
+ break;
3575
+ case /* string path */ 2:
3576
+ message.path = reader.string();
3577
+ break;
3578
+ case /* devvit.plugin.redditapi.common.ApiClientConfig.BodyType request_body_type */ 3:
3579
+ message.requestBodyType = reader.int32();
3580
+ break;
3581
+ case /* bool enforce_json */ 4:
3582
+ message.enforceJson = reader.bool();
3583
+ break;
3584
+ case /* string request_kind_value */ 5:
3585
+ message.requestKindValue = reader.string();
3586
+ break;
3587
+ case /* string validate_content_id_context */ 6:
3588
+ message.validateContentIdContext = reader.string();
3589
+ break;
3590
+ case /* string validate_subreddit_context */ 7:
3591
+ message.validateSubredditContext = reader.string();
3592
+ break;
3593
+ case /* bool use_custom_response_parser */ 8:
3594
+ message.useCustomResponseParser = reader.bool();
3595
+ break;
3596
+ default:
3597
+ let u = options.readUnknownField;
3598
+ if (u === "throw")
3599
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3600
+ let d = reader.skip(wireType);
3601
+ if (u !== false)
3602
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3603
+ }
3604
+ }
3605
+ return message;
3606
+ }
3607
+ internalBinaryWrite(message: ApiClientConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3608
+ /* string method = 1; */
3609
+ if (message.method !== "")
3610
+ writer.tag(1, WireType.LengthDelimited).string(message.method);
3611
+ /* string path = 2; */
3612
+ if (message.path !== "")
3613
+ writer.tag(2, WireType.LengthDelimited).string(message.path);
3614
+ /* devvit.plugin.redditapi.common.ApiClientConfig.BodyType request_body_type = 3; */
3615
+ if (message.requestBodyType !== 0)
3616
+ writer.tag(3, WireType.Varint).int32(message.requestBodyType);
3617
+ /* bool enforce_json = 4; */
3618
+ if (message.enforceJson !== false)
3619
+ writer.tag(4, WireType.Varint).bool(message.enforceJson);
3620
+ /* string request_kind_value = 5; */
3621
+ if (message.requestKindValue !== "")
3622
+ writer.tag(5, WireType.LengthDelimited).string(message.requestKindValue);
3623
+ /* string validate_content_id_context = 6; */
3624
+ if (message.validateContentIdContext !== "")
3625
+ writer.tag(6, WireType.LengthDelimited).string(message.validateContentIdContext);
3626
+ /* string validate_subreddit_context = 7; */
3627
+ if (message.validateSubredditContext !== "")
3628
+ writer.tag(7, WireType.LengthDelimited).string(message.validateSubredditContext);
3629
+ /* bool use_custom_response_parser = 8; */
3630
+ if (message.useCustomResponseParser !== false)
3631
+ writer.tag(8, WireType.Varint).bool(message.useCustomResponseParser);
3632
+ let u = options.writeUnknownFields;
3633
+ if (u !== false)
3634
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3635
+ return writer;
3636
+ }
3637
+ }
3638
+ /**
3639
+ * @generated MessageType for protobuf message devvit.plugin.redditapi.common.ApiClientConfig
3640
+ */
3641
+ export const ApiClientConfig = new ApiClientConfig$Type();