@devvit/protos 0.11.6 → 0.11.7-next-2025-01-28-9b10510e8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. package/meta.min.json +7820 -0
  2. package/package.json +4 -4
  3. package/protos.min.js +2 -0
  4. package/protos.min.js.map +7 -0
  5. package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
  6. package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
  7. package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
  8. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
  9. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
  10. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
  11. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
  12. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
  13. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
  14. package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
  15. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
  16. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
  17. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
  18. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
  19. package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
  20. package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
  21. package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
  22. package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
  23. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
  24. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
  25. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
  26. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
  27. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
  28. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
  29. package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
  30. package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
  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 +203 -0
  57. package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
  58. package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
  59. package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
  60. package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
  61. package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
  62. package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
  63. package/schema/.snootobuf/deps/google/api/client.proto +431 -0
  64. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
  65. package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
  66. package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
  67. package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
  68. package/schema/.snootobuf/deps/google/api/context.proto +92 -0
  69. package/schema/.snootobuf/deps/google/api/control.proto +41 -0
  70. package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
  71. package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
  72. package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
  73. package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
  74. package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
  75. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
  76. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
  77. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
  78. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
  79. package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
  80. package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
  81. package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
  82. package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
  83. package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
  84. package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
  85. package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
  86. package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
  87. package/schema/.snootobuf/deps/google/api/http.proto +371 -0
  88. package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
  89. package/schema/.snootobuf/deps/google/api/label.proto +48 -0
  90. package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
  91. package/schema/.snootobuf/deps/google/api/log.proto +54 -0
  92. package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
  93. package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
  94. package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
  95. package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
  96. package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
  97. package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
  98. package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
  99. package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
  100. package/schema/.snootobuf/deps/google/api/service.proto +191 -0
  101. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
  102. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
  103. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
  104. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
  105. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
  106. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
  107. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
  108. package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
  109. package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
  110. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
  111. package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
  112. package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
  113. package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
  114. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
  115. package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
  116. package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
  117. package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
  118. package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
  119. package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
  120. package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
  121. package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
  122. package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
  123. package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
  124. package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
  125. package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
  126. package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
  127. package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
  128. package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
  129. package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
  130. package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
  131. package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
  132. package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
  133. package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
  134. package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
  135. package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
  136. package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
  137. package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
  138. package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
  139. package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
  140. package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
  141. package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
  142. package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
  143. package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
  144. package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
  145. package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
  146. package/schema/.snootobuf/deps/google/type/color.proto +170 -0
  147. package/schema/.snootobuf/deps/google/type/date.proto +50 -0
  148. package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
  149. package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
  150. package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
  151. package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
  152. package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
  153. package/schema/.snootobuf/deps/google/type/money.proto +43 -0
  154. package/schema/.snootobuf/deps/google/type/month.proto +66 -0
  155. package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
  156. package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
  157. package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
  158. package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
  159. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  160. package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
  161. package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
  162. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
  163. package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
  164. package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
  165. package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
  166. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
  167. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
  168. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
  169. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
  170. package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
  171. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
  172. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
  173. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
  174. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
  175. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
  176. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
  177. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
  178. package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
  179. package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
  180. package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
  181. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
  182. package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
  183. package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
  184. package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
  185. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
  186. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
  187. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
  188. package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
  189. package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
  190. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
  191. package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
  192. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
  193. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
  194. package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
  195. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
  196. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
  197. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
  198. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
  199. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
  200. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
  201. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
  202. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
  203. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
  204. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
  205. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
  206. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
  207. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
  208. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
  209. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
  210. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
  211. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
  212. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
  213. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
  214. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
  215. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
  216. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
  217. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
  218. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
  219. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
  220. package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
  221. package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
  222. package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
  223. package/schema/.snootobuf/deps/validate/validate.proto +862 -0
  224. package/schema/devvit/plugin/buildpack/buildpack_common.proto +6 -1
  225. package/schema/snootobuf.devenv.lock +210 -102
  226. package/schema/snootobuf.lock +210 -102
  227. package/schema/snootobuf.redditapi.lock +210 -102
  228. package/schema/snootobuf.ts.lock +210 -102
  229. package/types/devvit/dev_portal/dev_portal.d.ts +2 -0
  230. package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
  231. package/types/devvit/plugin/builder/builder.d.ts +4 -0
  232. package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
  233. package/types/devvit/plugin/buildpack/buildpack.d.ts +8 -0
  234. package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
  235. package/types/devvit/plugin/buildpack/buildpack_common.d.ts +3 -0
  236. package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
  237. package/types/devvit/plugin/buildpack/buildpack_common.js +37 -1
  238. package/types/devvit/plugin/linker/linker.d.ts +2 -0
  239. package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
  240. package/types/devvit/plugin/linker/resolver.d.ts +2 -0
  241. package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
@@ -0,0 +1,417 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.coreplatform.comments.v1;
4
+
5
+ import "reddit/api/metadata/v1/metadata.proto";
6
+ import "reddit/coreplatform/api/metadata/v1/metadata.proto";
7
+ import "reddit/coreplatform/common/v1/features.proto";
8
+ import "reddit/coreplatform/common/v1/lang.proto";
9
+ import "reddit/coreplatform/common/v1/legal.proto";
10
+ import "reddit/coreplatform/common/v1/media.proto";
11
+ import "reddit/coreplatform/common/v1/moderation.proto";
12
+ import "reddit/coreplatform/common/v1/safety.proto";
13
+
14
+ option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/comments/v1;comments";
15
+ option java_multiple_files = true;
16
+ option java_outer_classname = "CommentsProto";
17
+ option java_package = "com.reddit.coreplatform.api.comments.v1";
18
+
19
+ /* @exclude No documentation present when converted from Thrift to Proto */
20
+ message Comment {
21
+ /* @exclude No documentation present when converted from Thrift to Proto */
22
+ enum MediaType {
23
+ /* @exclude No documentation present when converted from Thrift to Proto */
24
+ MEDIA_TYPE_UNSPECIFIED = 0 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
25
+ name: "UNKNOWN"
26
+ ordinal: 0,
27
+ }];
28
+
29
+ /* @exclude No documentation present when converted from Thrift to Proto */
30
+ MEDIA_TYPE_GIPHY = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
31
+ name: "GIPHY"
32
+ ordinal: 1,
33
+ }];
34
+
35
+ /* @exclude No documentation present when converted from Thrift to Proto */
36
+ MEDIA_TYPE_STATIC = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
37
+ name: "STATIC"
38
+ ordinal: 2,
39
+ }];
40
+
41
+ /* @exclude No documentation present when converted from Thrift to Proto */
42
+ MEDIA_TYPE_ANIMATED = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
43
+ name: "ANIMATED"
44
+ ordinal: 3,
45
+ }];
46
+
47
+ // An animated expression applied to the user's avatar.
48
+ // Design document: https://docs.google.com/document/d/1toly1eQ7qha7u9daVXB97huuG4kLALMpMxkf9O3mmVU/edit
49
+ MEDIA_TYPE_EXPRESSION = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
50
+ name: "EXPRESSION"
51
+ ordinal: 4,
52
+ }];
53
+ }
54
+
55
+ /* @exclude No documentation present when converted from Thrift to Proto */
56
+ enum ApprovalStatus {
57
+ /* @exclude No documentation present when converted from Thrift to Proto */
58
+ APPROVAL_STATUS_UNSPECIFIED = 0;
59
+
60
+ /* @exclude No documentation present when converted from Thrift to Proto */
61
+ APPROVAL_STATUS_MOD_APPROVED = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
62
+ name: "MOD_APPROVED"
63
+ ordinal: 0,
64
+ }];
65
+
66
+ /* @exclude No documentation present when converted from Thrift to Proto */
67
+ APPROVAL_STATUS_MOD_REMOVED = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
68
+ name: "MOD_REMOVED"
69
+ ordinal: 1,
70
+ }];
71
+
72
+ /* @exclude No documentation present when converted from Thrift to Proto */
73
+ APPROVAL_STATUS_MOD_SPAMMED = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
74
+ name: "MOD_SPAMMED"
75
+ ordinal: 2,
76
+ }];
77
+
78
+ /* @exclude No documentation present when converted from Thrift to Proto */
79
+ APPROVAL_STATUS_ADMIN_APPROVED = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
80
+ name: "ADMIN_APPROVED"
81
+ ordinal: 3,
82
+ }];
83
+
84
+ /* @exclude No documentation present when converted from Thrift to Proto */
85
+ APPROVAL_STATUS_ADMIN_REMOVED = 5 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
86
+ name: "ADMIN_REMOVED"
87
+ ordinal: 4,
88
+ }];
89
+
90
+ /* @exclude No documentation present when converted from Thrift to Proto */
91
+ APPROVAL_STATUS_ADMIN_SPAMMED = 6 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
92
+ name: "ADMIN_SPAMMED"
93
+ ordinal: 5,
94
+ }];
95
+
96
+ /* @exclude No documentation present when converted from Thrift to Proto */
97
+ APPROVAL_STATUS_UNSET = 7 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
98
+ name: "UNSET"
99
+ ordinal: 6,
100
+ }];
101
+
102
+ /* @exclude No documentation present when converted from Thrift to Proto */
103
+ APPROVAL_STATUS_AUTHOR_REMOVED = 8 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
104
+ name: "AUTHOR_REMOVED"
105
+ ordinal: 7,
106
+ }];
107
+
108
+ /* @exclude No documentation present when converted from Thrift to Proto */
109
+ APPROVAL_STATUS_AUTHOR_SPAMMED = 9 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
110
+ name: "AUTHOR_SPAMMED"
111
+ ordinal: 8,
112
+ }];
113
+ }
114
+
115
+ /* @exclude No documentation present when converted from Thrift to Proto */
116
+ enum Sort {
117
+ /* @exclude No documentation present when converted from Thrift to Proto */
118
+ SORT_UNSPECIFIED = 0;
119
+
120
+ /* @exclude No documentation present when converted from Thrift to Proto */
121
+ SORT_CONFIDENCE = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
122
+ name: "CONFIDENCE"
123
+ ordinal: 0,
124
+ }];
125
+
126
+ /* @exclude No documentation present when converted from Thrift to Proto */
127
+ SORT_TOP = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
128
+ name: "TOP"
129
+ ordinal: 1,
130
+ }];
131
+
132
+ /* @exclude No documentation present when converted from Thrift to Proto */
133
+ SORT_NEW = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
134
+ name: "NEW"
135
+ ordinal: 2,
136
+ }];
137
+
138
+ /* @exclude No documentation present when converted from Thrift to Proto */
139
+ SORT_CONTROVERSIAL = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
140
+ name: "CONTROVERSIAL"
141
+ ordinal: 3,
142
+ }];
143
+
144
+ /* @exclude No documentation present when converted from Thrift to Proto */
145
+ SORT_OLD = 5 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
146
+ name: "OLD"
147
+ ordinal: 4,
148
+ }];
149
+
150
+ /* @exclude No documentation present when converted from Thrift to Proto */
151
+ SORT_RANDOM = 6 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
152
+ name: "RANDOM"
153
+ ordinal: 5,
154
+ }];
155
+
156
+ /* @exclude No documentation present when converted from Thrift to Proto */
157
+ SORT_QA = 7 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
158
+ name: "QA"
159
+ ordinal: 6,
160
+ }];
161
+
162
+ /* @exclude No documentation present when converted from Thrift to Proto */
163
+ SORT_LIVE = 8 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
164
+ name: "LIVE"
165
+ ordinal: 7,
166
+ }];
167
+
168
+ /* @exclude No documentation present when converted from Thrift to Proto */
169
+ SORT_UNSET = 9 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
170
+ name: "NULL_VALUE"
171
+ ordinal: 8,
172
+ }];
173
+
174
+ /* @exclude No documentation present when converted from Thrift to Proto */
175
+ SORT_BLANK = 10 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
176
+ name: "BLANK"
177
+ ordinal: 9,
178
+ }];
179
+ }
180
+
181
+ /* @exclude No documentation present when converted from Thrift to Proto */
182
+ enum Type {
183
+ /* @exclude No documentation present when converted from Thrift to Proto */
184
+ TYPE_UNSPECIFIED = 0;
185
+
186
+ /* @exclude No documentation present when converted from Thrift to Proto */
187
+ TYPE_COMMENT = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
188
+ name: "COMMENT"
189
+ ordinal: 0,
190
+ }];
191
+
192
+ /* @exclude No documentation present when converted from Thrift to Proto */
193
+ TYPE_PREDICTION = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
194
+ name: "PREDICTION"
195
+ ordinal: 1,
196
+ }];
197
+
198
+ /* @exclude No documentation present when converted from Thrift to Proto */
199
+ TYPE_SHORT_VIDEO = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
200
+ name: "SHORT_VIDEO"
201
+ ordinal: 2,
202
+ }];
203
+ }
204
+
205
+ /* @exclude No documentation present when converted from Thrift to Proto */
206
+ string id = 1;
207
+
208
+ /* @exclude No documentation present when converted from Thrift to Proto */
209
+ int64 date = 2;
210
+
211
+ /* @exclude No documentation present when converted from Thrift to Proto */
212
+ bool deleted = 3;
213
+
214
+ /* @exclude No documentation present when converted from Thrift to Proto */
215
+ bool spam = 4;
216
+
217
+ /* @exclude No documentation present when converted from Thrift to Proto */
218
+ int32 ups = 5;
219
+
220
+ /* @exclude No documentation present when converted from Thrift to Proto */
221
+ int32 downs = 6;
222
+
223
+ /* @exclude No documentation present when converted from Thrift to Proto */
224
+ string author_id = 7;
225
+
226
+ /* @exclude No documentation present when converted from Thrift to Proto */
227
+ string link_id = 8;
228
+
229
+ /* @exclude No documentation present when converted from Thrift to Proto */
230
+ string parent_id = 9;
231
+
232
+ /* @exclude No documentation present when converted from Thrift to Proto */
233
+ string subreddit_id = 10;
234
+
235
+ /* @exclude No documentation present when converted from Thrift to Proto */
236
+ string body = 11;
237
+
238
+ /* @exclude No documentation present when converted from Thrift to Proto */
239
+ int64 last_edit_date = 12;
240
+
241
+ /* @exclude No documentation present when converted from Thrift to Proto */
242
+ int32 display_score = 13;
243
+
244
+ /* @exclude No documentation present when converted from Thrift to Proto */
245
+ int32 cosmetic_ups = 14;
246
+
247
+ /* @exclude No documentation present when converted from Thrift to Proto */
248
+ int32 cosmetic_downs = 15;
249
+
250
+ /* @exclude No documentation present when converted from Thrift to Proto */
251
+ bool admin_takedown = 17;
252
+
253
+ /* @exclude No documentation present when converted from Thrift to Proto */
254
+ bool sendreplies = 18;
255
+
256
+ /* @exclude No documentation present when converted from Thrift to Proto */
257
+ bool editable = 20;
258
+
259
+ /* @exclude No documentation present when converted from Thrift to Proto */
260
+ int32 fake_ups = 21;
261
+
262
+ /* @exclude No documentation present when converted from Thrift to Proto */
263
+ int32 fake_downs = 22;
264
+
265
+ /* @exclude No documentation present when converted from Thrift to Proto */
266
+ int32 gildings = 23;
267
+
268
+ /* @exclude No documentation present when converted from Thrift to Proto */
269
+ bool ignore_reports = 24;
270
+
271
+ /* @exclude No documentation present when converted from Thrift to Proto */
272
+ int32 ignored_ups = 25;
273
+
274
+ /* @exclude No documentation present when converted from Thrift to Proto */
275
+ int32 ignored_downs = 26;
276
+
277
+ /* @exclude No documentation present when converted from Thrift to Proto */
278
+ string ip = 27 [(reddit.api.metadata.v1.entity_field_metadata) = {
279
+ sensitivity_level: SENSITIVITY_LEVEL_PII
280
+ max_retention: {
281
+ seconds: 7776000 // 90 Days
282
+ }
283
+ }];
284
+
285
+ /* @exclude No documentation present when converted from Thrift to Proto */
286
+ int32 report_count = 28;
287
+
288
+ /* @exclude No documentation present when converted from Thrift to Proto */
289
+ bool request_from_tor = 29;
290
+
291
+ /* @exclude No documentation present when converted from Thrift to Proto */
292
+ bool request_has_loid = 30;
293
+
294
+ /* @exclude No documentation present when converted from Thrift to Proto */
295
+ reddit.coreplatform.common.v1.DistinguishType distinguished = 31;
296
+
297
+ /* @exclude No documentation present when converted from Thrift to Proto */
298
+ reddit.coreplatform.common.v1.Verdict verdict = 32;
299
+
300
+ /* @exclude No documentation present when converted from Thrift to Proto */
301
+ reddit.coreplatform.common.v1.BanInfo ban_info = 33;
302
+
303
+ /* @exclude No documentation present when converted from Thrift to Proto */
304
+ double abuse_score = 34;
305
+
306
+ /* @exclude No documentation present when converted from Thrift to Proto */
307
+ string author_request_organization = 35;
308
+
309
+ /* @exclude No documentation present when converted from Thrift to Proto */
310
+ string request_organization = 37;
311
+
312
+ /* @exclude No documentation present when converted from Thrift to Proto */
313
+ bool author_request_has_loid = 38;
314
+
315
+ /* @exclude No documentation present when converted from Thrift to Proto */
316
+ bool selftext_is_richtext = 39;
317
+
318
+ /* @exclude No documentation present when converted from Thrift to Proto */
319
+ repeated int32 reports_approved = 40;
320
+
321
+ /* @exclude No documentation present when converted from Thrift to Proto */
322
+ repeated int32 reports_made = 41;
323
+
324
+ /* @exclude No documentation present when converted from Thrift to Proto */
325
+ repeated int32 reports_rejected = 42;
326
+
327
+ /* @exclude No documentation present when converted from Thrift to Proto */
328
+ int32 gildings_silver = 43;
329
+
330
+ /* @exclude No documentation present when converted from Thrift to Proto */
331
+ int32 gildings_supergold = 44;
332
+
333
+ /* @exclude No documentation present when converted from Thrift to Proto */
334
+ bool author_request_from_tor = 45;
335
+
336
+ /* @exclude No documentation present when converted from Thrift to Proto */
337
+ bool approve_disabled = 46;
338
+
339
+ /* @exclude No documentation present when converted from Thrift to Proto */
340
+ int64 delete_time = 47;
341
+
342
+ /* @exclude No documentation present when converted from Thrift to Proto */
343
+ bool expunged = 49;
344
+
345
+ /* @exclude No documentation present when converted from Thrift to Proto */
346
+ int64 expunge_time = 50;
347
+
348
+ /* @exclude No documentation present when converted from Thrift to Proto */
349
+ string delete_message = 51;
350
+
351
+ /* @exclude No documentation present when converted from Thrift to Proto */
352
+ bool collapsed_in_crowd_control = 52;
353
+
354
+ /* @exclude No documentation present when converted from Thrift to Proto */
355
+ int32 num_awardings = 53;
356
+
357
+ /* @exclude No documentation present when converted from Thrift to Proto */
358
+ map<string, double> perspective_scores = 54;
359
+
360
+ /* @exclude No documentation present when converted from Thrift to Proto */
361
+ bool locked = 55;
362
+
363
+ /* @exclude No documentation present when converted from Thrift to Proto */
364
+ bool media_is_processed = 56;
365
+
366
+ /* @exclude No documentation present when converted from Thrift to Proto */
367
+ repeated string media_ids = 57;
368
+
369
+ /* @exclude No documentation present when converted from Thrift to Proto */
370
+ repeated string meta_media_ids = 58;
371
+
372
+ /* @exclude No documentation present when converted from Thrift to Proto */
373
+ map<string, reddit.coreplatform.common.v1.MediaObject> meta_media_objects = 59;
374
+
375
+ /* @exclude No documentation present when converted from Thrift to Proto */
376
+ string associated_award_id = 60;
377
+
378
+ /* @exclude No documentation present when converted from Thrift to Proto */
379
+ string crowd_control_context = 61;
380
+
381
+ /* @exclude No documentation present when converted from Thrift to Proto */
382
+ ApprovalStatus approval_status = 62;
383
+
384
+ /* @exclude No documentation present when converted from Thrift to Proto */
385
+ Type comment_type = 63;
386
+
387
+ /* @exclude No documentation present when converted from Thrift to Proto */
388
+ repeated reddit.coreplatform.common.v1.LegalBlock legal_blocks = 64;
389
+
390
+ /* @exclude No documentation present when converted from Thrift to Proto */
391
+ repeated reddit.coreplatform.common.v1.DetectedLanguage detected_languages = 65;
392
+
393
+ /* @exclude No documentation present when converted from Thrift to Proto */
394
+ int32 crowd_control_version = 66;
395
+
396
+ /* @exclude No documentation present when converted from Thrift to Proto */
397
+ int32 crowd_control_reputation = 67;
398
+
399
+ // Contains a comment's sexually explicit content classification according to safety models
400
+ // The field's score attribute will be set to 1.0 if sexually explicit content is detected
401
+ // Field is set by Content Classification Service and is not user facing
402
+ // The comment should be classified by the time it is publicly viewable (due to system latency and processing time it is not guaranteed)
403
+ // Design document: https://docs.google.com/document/d/1kV1ZPI0CfVhM0tMt21XQl4_UqihNqXaYCrZb6bck29w/edit#heading=h.wb5nzkr7fhs4
404
+ reddit.coreplatform.common.v1.SafetyXTag safety_x_tag = 68;
405
+
406
+ // Contains a comment's violent content classification according to safety models
407
+ // The field's score attribute will be set to 1.0 if violent content is detected
408
+ // Field is set by Content Classification Service and is not user facing
409
+ // The comment should be classified by the time it is publicly viewable (due to system latency and processing time it is not guaranteed)
410
+ // Design document: https://docs.google.com/document/d/1JNQFp7TaBIY3AQ3YpAskelWshh5sJAOVgS4KtgPV5DI/edit#heading=h.hp7jr2y2s0pt
411
+ reddit.coreplatform.common.v1.SafetyVTag safety_v_tag = 69;
412
+
413
+ // Contains whether this comment was made "for commercial intent" so clients can
414
+ // mark this content as being sponsored
415
+ // Design document: https://docs.google.com/document/d/1gIAwynDBcBKNG8YB38InJo3XEeEKkDcfN5C47_A_vjg/edit#heading=h.ouoexgnkzdml
416
+ bool is_commercial_communication = 70;
417
+ }
@@ -0,0 +1,72 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.coreplatform.comments.v1;
4
+
5
+ import "validate/validate.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/comments/v1;comments";
8
+ option java_multiple_files = true;
9
+ option java_outer_classname = "CommentsServiceProto";
10
+ option java_package = "com.reddit.coreplatform.api.comments.v1";
11
+
12
+ // RPC Service for working with core Comments data
13
+ service CommentsService {
14
+ // Get all comment ids created by an account. This includes all comments including deleted ones.
15
+ rpc GetCommentIdsByAuthor(GetCommentIdsByAuthorRequest) returns (GetCommentIdsByAuthorResponse) {
16
+ option idempotency_level = NO_SIDE_EFFECTS;
17
+ }
18
+ }
19
+
20
+ // Request to get all comment ids by author.
21
+ // This endpoint was added for Reddar to fetch all LinkIds by a given author.
22
+ // The sort order for the LinkIs by author is sorted in DESC by default.
23
+ // When this endpoint is invoked with direction as DIRECTION_PREV and a cursor, then sort order is ASC.
24
+ message GetCommentIdsByAuthorRequest {
25
+ // Direction enum represents whether to move forward or backward while fetching records
26
+ enum Direction {
27
+ // This is default value of direction.
28
+ DIRECTION_UNSPECIFIED = 0;
29
+ // Next fetches records specified by the limit after the current cursor ID.
30
+ // Calling Next at the end of records will return empty.
31
+ DIRECTION_NEXT = 1;
32
+ // Prev fetches records specified by the limit before the current cursor ID.
33
+ // Calling Prev at the start of records will return empty.
34
+ DIRECTION_PREV = 2;
35
+ }
36
+ // Account identifier to request comments for. Specified account id should be a valid thing
37
+ // identifier with t2 prefix.
38
+ string account_id = 1 [(validate.rules).string = {pattern: "^t2_[a-zA-Z0-9]+$"}];
39
+
40
+ // Optional cursor for pagination. When absent returns the fist page.
41
+ optional string cursor = 2 [(validate.rules).string = {
42
+ ignore_empty: true,
43
+ min_len: 1,
44
+ }];
45
+
46
+ // Optional maximum page size limit (defaults to and capped at 1000).
47
+ optional int32 limit = 3 [(validate.rules).int32 = {
48
+ ignore_empty: true,
49
+ gte: 1,
50
+ lte: 1000,
51
+ }];
52
+
53
+ // Direction to indicate whether to fetch records forwards or backwards from the cursor.
54
+ Direction direction = 4 [(validate.rules).enum = {
55
+ not_in: [0]
56
+ }];
57
+ }
58
+
59
+ // Response with all the comments posted by an author.
60
+ message GetCommentIdsByAuthorResponse {
61
+ // Comment ids authored by the user.
62
+ repeated string comment_id = 1 [(validate.rules).repeated = {
63
+ min_items: 1,
64
+ max_items: 1000,
65
+ items: {
66
+ string: {pattern: "^t1_[a-zA-Z0-9]+$"}
67
+ }
68
+ }];
69
+
70
+ // Cursor for the next page (empty if exhausted).
71
+ optional string cursor = 2;
72
+ }
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.coreplatform.common.v1;
4
+
5
+ import "validate/validate.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/common/v1";
8
+ option java_multiple_files = true;
9
+ option java_outer_classname = "AuthProto";
10
+ option java_package = "com.reddit.coreplatform.api.common.v1";
11
+
12
+ // The policy used to determine what permission set an actor should assume
13
+ message AuthzPolicy {
14
+ // The user account that the caller wishes to assume. When value is empty, the account id
15
+ // present in the edge context will be used instead. This value must be a valid `t2_{}` thing
16
+ // id or the const value for super user access `__super__`. Only Reddit service accounts
17
+ // can assume super user permissions. Service auth edge context must be present in the request
18
+ // when requesting super user permissions.
19
+ string on_behalf_of = 1 [(validate.rules).string = {pattern: "^(__super__|t2_[a-zA-Z0-9]+)$"}];
20
+
21
+ // Enable elevated admin permissions for the caller. Admin mode is restricted to users with the
22
+ // appropriate role. Service accounts cannot enable admin permissions and must escalate to super
23
+ // user permissions instead.
24
+ bool enable_admin = 2;
25
+ }
@@ -0,0 +1,52 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.coreplatform.common.v1;
4
+
5
+ import "reddit/coreplatform/api/metadata/v1/metadata.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/common/v1";
8
+ option java_multiple_files = true;
9
+ option java_outer_classname = "FeaturesProto";
10
+ option java_package = "com.reddit.coreplatform.api.common.v1";
11
+
12
+ /* @exclude No documentation present when converted from Thrift to Proto */
13
+ enum DistinguishType {
14
+ /* @exclude No documentation present when converted from Thrift to Proto */
15
+ DISTINGUISH_TYPE_UNSPECIFIED = 0;
16
+
17
+ /* @exclude No documentation present when converted from Thrift to Proto */
18
+ DISTINGUISH_TYPE_UNSET = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
19
+ name: "NULL_VALUE"
20
+ ordinal: 0,
21
+ }];
22
+
23
+ /* @exclude No documentation present when converted from Thrift to Proto */
24
+ DISTINGUISH_TYPE_ADMIN = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
25
+ name: "ADMIN"
26
+ ordinal: 1,
27
+ }];
28
+
29
+ /* @exclude No documentation present when converted from Thrift to Proto */
30
+ DISTINGUISH_TYPE_GOLD = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
31
+ name: "GOLD"
32
+ ordinal: 2,
33
+ }];
34
+
35
+ /* @exclude No documentation present when converted from Thrift to Proto */
36
+ DISTINGUISH_TYPE_GOLD_AUTO = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
37
+ name: "GOLD_AUTO"
38
+ ordinal: 3,
39
+ }];
40
+
41
+ /* @exclude No documentation present when converted from Thrift to Proto */
42
+ DISTINGUISH_TYPE_YES = 5 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
43
+ name: "YES"
44
+ ordinal: 4,
45
+ }];
46
+
47
+ /* @exclude No documentation present when converted from Thrift to Proto */
48
+ DISTINGUISH_TYPE_SPECIAL = 6 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
49
+ name: "SPECIAL"
50
+ ordinal: 5,
51
+ }];
52
+ }
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.coreplatform.common.v1;
4
+
5
+ option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/common/v1";
6
+ option java_multiple_files = true;
7
+ option java_outer_classname = "LangProto";
8
+ option java_package = "com.reddit.coreplatform.api.common.v1";
9
+
10
+ /* @exclude No documentation present when converted from Thrift to Proto */
11
+ message DetectedLanguage {
12
+ /* @exclude No documentation present when converted from Thrift to Proto */
13
+ string language_code = 1;
14
+ /* @exclude No documentation present when converted from Thrift to Proto */
15
+ double confidence_score = 2;
16
+ }
@@ -0,0 +1,20 @@
1
+ syntax = "proto3";
2
+
3
+ package reddit.coreplatform.common.v1;
4
+
5
+ option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/common/v1";
6
+ option java_multiple_files = true;
7
+ option java_outer_classname = "LegalProto";
8
+ option java_package = "com.reddit.coreplatform.api.common.v1";
9
+
10
+ /* @exclude No documentation present when converted from Thrift to Proto */
11
+ message LegalBlock {
12
+ /* @exclude No documentation present when converted from Thrift to Proto */
13
+ optional string country_code = 1;
14
+ /* @exclude No documentation present when converted from Thrift to Proto */
15
+ optional string description = 2;
16
+ /* @exclude No documentation present when converted from Thrift to Proto */
17
+ optional int32 response_code = 3;
18
+ /* @exclude No documentation present when converted from Thrift to Proto */
19
+ optional string reason = 4;
20
+ }