@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.
- package/meta.min.json +7820 -0
- package/package.json +4 -4
- package/protos.min.js +2 -0
- package/protos.min.js.map +7 -0
- package/schema/.snootobuf/deps/buf/validate/expression.proto +92 -0
- package/schema/.snootobuf/deps/buf/validate/priv/private.proto +41 -0
- package/schema/.snootobuf/deps/buf/validate/validate.proto +4130 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +72 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +49 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +54 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +46 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +72 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +20 -0
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +45 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +54 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +773 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +66 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +100 -0
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +19 -0
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +446 -0
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +24 -0
- package/schema/.snootobuf/deps/devvit/options/options.proto +98 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +29 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +25 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +53 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +56 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +107 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +41 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +23 -0
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +162 -0
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +14 -0
- package/schema/.snootobuf/deps/enum/approval_status.proto +15 -0
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +13 -0
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +12 -0
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/comment_sort.proto +18 -0
- package/schema/.snootobuf/deps/enum/comment_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +12 -0
- package/schema/.snootobuf/deps/enum/discussion_type.proto +10 -0
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +14 -0
- package/schema/.snootobuf/deps/enum/flair_position.proto +11 -0
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +12 -0
- package/schema/.snootobuf/deps/enum/link_content_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/link_visibility.proto +11 -0
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +11 -0
- package/schema/.snootobuf/deps/enum/promo_layout.proto +11 -0
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +18 -0
- package/schema/.snootobuf/deps/enum/spam_level.proto +11 -0
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +16 -0
- package/schema/.snootobuf/deps/enum/verdict.proto +14 -0
- package/schema/.snootobuf/deps/enum/vote.proto +12 -0
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +17 -0
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +12 -0
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +203 -0
- package/schema/.snootobuf/deps/google/api/annotations.proto +31 -0
- package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +288 -0
- package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +175 -0
- package/schema/.snootobuf/deps/google/api/auth.proto +237 -0
- package/schema/.snootobuf/deps/google/api/backend.proto +185 -0
- package/schema/.snootobuf/deps/google/api/billing.proto +77 -0
- package/schema/.snootobuf/deps/google/api/client.proto +431 -0
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +322 -0
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +315 -0
- package/schema/.snootobuf/deps/google/api/config_change.proto +84 -0
- package/schema/.snootobuf/deps/google/api/consumer.proto +82 -0
- package/schema/.snootobuf/deps/google/api/context.proto +92 -0
- package/schema/.snootobuf/deps/google/api/control.proto +41 -0
- package/schema/.snootobuf/deps/google/api/distribution.proto +213 -0
- package/schema/.snootobuf/deps/google/api/documentation.proto +168 -0
- package/schema/.snootobuf/deps/google/api/endpoint.proto +69 -0
- package/schema/.snootobuf/deps/google/api/error_reason.proto +589 -0
- package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +183 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +343 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +118 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +53 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +438 -0
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +115 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +84 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +125 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +265 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +62 -0
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +114 -0
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +104 -0
- package/schema/.snootobuf/deps/google/api/field_info.proto +106 -0
- package/schema/.snootobuf/deps/google/api/http.proto +371 -0
- package/schema/.snootobuf/deps/google/api/httpbody.proto +81 -0
- package/schema/.snootobuf/deps/google/api/label.proto +48 -0
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +72 -0
- package/schema/.snootobuf/deps/google/api/log.proto +54 -0
- package/schema/.snootobuf/deps/google/api/logging.proto +81 -0
- package/schema/.snootobuf/deps/google/api/metric.proto +268 -0
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +130 -0
- package/schema/.snootobuf/deps/google/api/monitoring.proto +107 -0
- package/schema/.snootobuf/deps/google/api/policy.proto +85 -0
- package/schema/.snootobuf/deps/google/api/quota.proto +184 -0
- package/schema/.snootobuf/deps/google/api/resource.proto +243 -0
- package/schema/.snootobuf/deps/google/api/routing.proto +461 -0
- package/schema/.snootobuf/deps/google/api/service.proto +191 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +124 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +166 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +93 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +126 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +81 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +123 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +245 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +260 -0
- package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +196 -0
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +295 -0
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +508 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +130 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +305 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +458 -0
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +793 -0
- package/schema/.snootobuf/deps/google/api/source_info.proto +31 -0
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +96 -0
- package/schema/.snootobuf/deps/google/api/usage.proto +96 -0
- package/schema/.snootobuf/deps/google/api/visibility.proto +113 -0
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +150 -0
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +1087 -0
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +145 -0
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +34 -0
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +41 -0
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +240 -0
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +92 -0
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +72 -0
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +247 -0
- package/schema/.snootobuf/deps/google/protobuf/any.proto +158 -0
- package/schema/.snootobuf/deps/google/protobuf/api.proto +208 -0
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +183 -0
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +921 -0
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +116 -0
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +51 -0
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +245 -0
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +48 -0
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +95 -0
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +147 -0
- package/schema/.snootobuf/deps/google/protobuf/type.proto +187 -0
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +123 -0
- package/schema/.snootobuf/deps/google/rpc/code.proto +186 -0
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +287 -0
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +246 -0
- package/schema/.snootobuf/deps/google/rpc/status.proto +47 -0
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +57 -0
- package/schema/.snootobuf/deps/google/type/color.proto +170 -0
- package/schema/.snootobuf/deps/google/type/date.proto +50 -0
- package/schema/.snootobuf/deps/google/type/datetime.proto +97 -0
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +51 -0
- package/schema/.snootobuf/deps/google/type/expr.proto +51 -0
- package/schema/.snootobuf/deps/google/type/fraction.proto +34 -0
- package/schema/.snootobuf/deps/google/type/latlng.proto +37 -0
- package/schema/.snootobuf/deps/google/type/money.proto +43 -0
- package/schema/.snootobuf/deps/google/type/month.proto +66 -0
- package/schema/.snootobuf/deps/google/type/postal_address.proto +135 -0
- package/schema/.snootobuf/deps/google/type/quaternion.proto +95 -0
- package/schema/.snootobuf/deps/google/type/timeofday.proto +44 -0
- package/schema/.snootobuf/deps/openapi/helper.proto +20 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +118 -0
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +55 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +579 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +43 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +82 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +221 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +78 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +189 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +29 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +417 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +72 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +52 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +16 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +20 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +149 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +197 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +116 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +25 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +101 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +34 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +798 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +186 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +110 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +51 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +1202 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +85 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +363 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +301 -0
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +2869 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +15 -0
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +89 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +322 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +14 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +48 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +31 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +26 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +15 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +52 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +23 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +28 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +49 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +20 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +17 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +158 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +195 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +44 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +200 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +18 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +210 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +189 -0
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +135 -0
- package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +29 -0
- package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +3292 -0
- package/schema/.snootobuf/deps/validate/validate.proto +862 -0
- package/schema/devvit/plugin/buildpack/buildpack_common.proto +6 -1
- package/schema/snootobuf.devenv.lock +210 -102
- package/schema/snootobuf.lock +210 -102
- package/schema/snootobuf.redditapi.lock +210 -102
- package/schema/snootobuf.ts.lock +210 -102
- package/types/devvit/dev_portal/dev_portal.d.ts +2 -0
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/plugin/builder/builder.d.ts +4 -0
- package/types/devvit/plugin/builder/builder.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack.d.ts +8 -0
- package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +3 -0
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.js +37 -1
- package/types/devvit/plugin/linker/linker.d.ts +2 -0
- package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
- package/types/devvit/plugin/linker/resolver.d.ts +2 -0
- package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
@@ -0,0 +1,149 @@
|
|
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 = "MediaProto";
|
8
|
+
option java_package = "com.reddit.coreplatform.api.common.v1";
|
9
|
+
|
10
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
11
|
+
message MediaObject {
|
12
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
13
|
+
optional string type = 1;
|
14
|
+
|
15
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
16
|
+
optional OEmbed oembed = 3;
|
17
|
+
|
18
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
19
|
+
optional RedditVideo reddit_video = 4;
|
20
|
+
|
21
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
22
|
+
MediaDimension size = 5;
|
23
|
+
|
24
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
25
|
+
optional string content = 6;
|
26
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
27
|
+
optional string live_event_id = 7;
|
28
|
+
}
|
29
|
+
|
30
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
31
|
+
message MediaDimension {
|
32
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
33
|
+
optional int32 width = 1;
|
34
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
35
|
+
optional int32 height = 2;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
39
|
+
message OEmbed {
|
40
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
41
|
+
string type = 1;
|
42
|
+
|
43
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
44
|
+
string version = 2;
|
45
|
+
|
46
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
47
|
+
optional string title = 3;
|
48
|
+
|
49
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
50
|
+
optional string description = 4;
|
51
|
+
|
52
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
53
|
+
optional string author_name = 5;
|
54
|
+
|
55
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
56
|
+
optional string author_url = 6;
|
57
|
+
|
58
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
59
|
+
string provider_name = 7;
|
60
|
+
|
61
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
62
|
+
string provider_url = 8;
|
63
|
+
|
64
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
65
|
+
optional string thumbnail_url = 9;
|
66
|
+
|
67
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
68
|
+
MediaDimension thumbnail_size = 10;
|
69
|
+
|
70
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
71
|
+
optional string html = 11;
|
72
|
+
|
73
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
74
|
+
optional string url = 12;
|
75
|
+
|
76
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
77
|
+
MediaDimension size = 13;
|
78
|
+
|
79
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
80
|
+
MediaDimension margin = 14;
|
81
|
+
|
82
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
83
|
+
optional int64 cache_age = 15;
|
84
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
85
|
+
optional double mean_alpha = 16;
|
86
|
+
}
|
87
|
+
|
88
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
89
|
+
message RedditVideo {
|
90
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
91
|
+
bool is_gif = 1;
|
92
|
+
|
93
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
94
|
+
MediaDimension size = 2;
|
95
|
+
|
96
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
97
|
+
string transcoding_status = 3;
|
98
|
+
|
99
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
100
|
+
optional string transcoding_message = 4;
|
101
|
+
|
102
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
103
|
+
int64 duration = 5;
|
104
|
+
|
105
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
106
|
+
string dash_url = 6;
|
107
|
+
|
108
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
109
|
+
string hls_url = 7;
|
110
|
+
|
111
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
112
|
+
string fallback_url = 8;
|
113
|
+
|
114
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
115
|
+
string scrubber_media_url = 9;
|
116
|
+
|
117
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
118
|
+
int32 bitrate_kbps = 10;
|
119
|
+
|
120
|
+
// has_audio signals the presence of an audio track in the video. This is
|
121
|
+
// used in the watch feed to optimize playback. c.f.
|
122
|
+
// https://docs.google.com/document/d/1JhFVnYv4zk1S7sMj9BNxUsUZQVdoJ29g-sUsf87i5uk/
|
123
|
+
optional bool has_audio = 11;
|
124
|
+
}
|
125
|
+
|
126
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
127
|
+
message RpanVideo {
|
128
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
129
|
+
optional string hls_url = 1;
|
130
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
131
|
+
optional string scrubber_media_url = 2;
|
132
|
+
}
|
133
|
+
|
134
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
135
|
+
message PreviewObject {
|
136
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
137
|
+
optional string url = 1;
|
138
|
+
|
139
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
140
|
+
optional int32 width = 2;
|
141
|
+
|
142
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
143
|
+
optional int32 height = 3;
|
144
|
+
|
145
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
146
|
+
optional string uid = 4;
|
147
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
148
|
+
optional RedditVideo reddit_video = 5;
|
149
|
+
}
|
@@ -0,0 +1,197 @@
|
|
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 = "ModerationProto";
|
10
|
+
option java_package = "com.reddit.coreplatform.api.common.v1";
|
11
|
+
|
12
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
13
|
+
enum Verdict {
|
14
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
15
|
+
VERDICT_UNSPECIFIED = 0;
|
16
|
+
|
17
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
18
|
+
VERDICT_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
|
+
VERDICT_MOD_APPROVED = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
25
|
+
name: "MOD_APPROVED"
|
26
|
+
ordinal: 1,
|
27
|
+
}];
|
28
|
+
|
29
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
30
|
+
VERDICT_MOD_REMOVED = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
31
|
+
name: "MOD_REMOVED"
|
32
|
+
ordinal: 2,
|
33
|
+
}];
|
34
|
+
|
35
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
36
|
+
VERDICT_ADMIN_REMOVED = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
37
|
+
name: "ADMIN_REMOVED"
|
38
|
+
ordinal: 3,
|
39
|
+
}];
|
40
|
+
|
41
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
42
|
+
VERDICT_ADMIN_APPROVED = 5 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
43
|
+
name: "ADMIN_APPROVED"
|
44
|
+
ordinal: 4,
|
45
|
+
}];
|
46
|
+
|
47
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
48
|
+
VERDICT_ADMIN_RESTORED = 6 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
49
|
+
name: "ADMIN_RESTORED"
|
50
|
+
ordinal: 5,
|
51
|
+
}];
|
52
|
+
}
|
53
|
+
|
54
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
55
|
+
enum VerdictReason {
|
56
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
57
|
+
VERDICT_REASON_UNSPECIFIED = 0;
|
58
|
+
|
59
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
60
|
+
VERDICT_REASON_UNSET = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
61
|
+
name: "NULL_VALUE"
|
62
|
+
ordinal: 0,
|
63
|
+
}];
|
64
|
+
|
65
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
66
|
+
VERDICT_REASON_LEGAL = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
67
|
+
name: "LEGAL"
|
68
|
+
ordinal: 1,
|
69
|
+
}];
|
70
|
+
}
|
71
|
+
|
72
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
73
|
+
message BanInfo {
|
74
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
75
|
+
optional bool is_auto = 1;
|
76
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
77
|
+
optional int64 banned_at = 2;
|
78
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
79
|
+
optional string banner_name = 3;
|
80
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
81
|
+
optional bool moderator_banned = 4;
|
82
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
83
|
+
optional string note = 5;
|
84
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
85
|
+
optional string unbanner_name = 6;
|
86
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
87
|
+
optional int64 unbanned_at = 7;
|
88
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
89
|
+
optional bool reset_used = 8;
|
90
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
91
|
+
optional string reason_id = 9;
|
92
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
93
|
+
optional string reason_title = 10;
|
94
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
95
|
+
optional string reason_message = 11;
|
96
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
97
|
+
optional string reason_by = 12;
|
98
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
99
|
+
optional string mod_note = 13;
|
100
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
101
|
+
optional bool ban_all_triggered = 14;
|
102
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
103
|
+
optional string subreddit_message = 15;
|
104
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
105
|
+
optional BanInfoAction remove_action = 16;
|
106
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
107
|
+
optional string subreddit_message_title = 17;
|
108
|
+
}
|
109
|
+
|
110
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
111
|
+
enum BanInfoAction {
|
112
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
113
|
+
BAN_INFO_ACTION_UNSPECIFIED = 0 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
114
|
+
name: "UNKNOWN"
|
115
|
+
ordinal: 0,
|
116
|
+
}];
|
117
|
+
|
118
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
119
|
+
BAN_INFO_ACTION_SPAM = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
120
|
+
name: "SPAM"
|
121
|
+
ordinal: 1,
|
122
|
+
}];
|
123
|
+
|
124
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
125
|
+
BAN_INFO_ACTION_FILTER = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
126
|
+
name: "FILTER"
|
127
|
+
ordinal: 2,
|
128
|
+
}];
|
129
|
+
|
130
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
131
|
+
BAN_INFO_ACTION_REMOVE = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
132
|
+
name: "REMOVE"
|
133
|
+
ordinal: 3,
|
134
|
+
}];
|
135
|
+
}
|
136
|
+
|
137
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
138
|
+
enum ApprovalStatus {
|
139
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
140
|
+
APPROVAL_STATUS_UNSPECIFIED = 0; //
|
141
|
+
|
142
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
143
|
+
APPROVAL_STATUS_UNSET = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
144
|
+
name: "NULL_VALUE"
|
145
|
+
ordinal: 6,
|
146
|
+
}];
|
147
|
+
|
148
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
149
|
+
APPROVAL_STATUS_MOD_APPROVED = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
150
|
+
name: "MOD_APPROVED"
|
151
|
+
ordinal: 0,
|
152
|
+
}];
|
153
|
+
|
154
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
155
|
+
APPROVAL_STATUS_MOD_REMOVED = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
156
|
+
name: "MOD_REMOVED"
|
157
|
+
ordinal: 1,
|
158
|
+
}];
|
159
|
+
|
160
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
161
|
+
APPROVAL_STATUS_MOD_SPAMMED = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
162
|
+
name: "MOD_SPAMMED"
|
163
|
+
ordinal: 2,
|
164
|
+
}];
|
165
|
+
|
166
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
167
|
+
APPROVAL_STATUS_ADMIN_APPROVED = 5 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
168
|
+
name: "ADMIN_APPROVED"
|
169
|
+
ordinal: 3,
|
170
|
+
}];
|
171
|
+
|
172
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
173
|
+
APPROVAL_STATUS_ADMIN_REMOVED = 6 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
174
|
+
name: "ADMIN_REMOVED"
|
175
|
+
ordinal: 4,
|
176
|
+
}];
|
177
|
+
|
178
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
179
|
+
APPROVAL_STATUS_ADMIN_SPAMMED = 7 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
180
|
+
name: "ADMIN_SPAMMED"
|
181
|
+
ordinal: 5,
|
182
|
+
}];
|
183
|
+
}
|
184
|
+
|
185
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
186
|
+
message ModerationInfo {
|
187
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
188
|
+
Verdict verdict = 1;
|
189
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
190
|
+
string verdict_by = 2;
|
191
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
192
|
+
VerdictReason verdict_reason = 3;
|
193
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
194
|
+
int64 verdict_at = 4;
|
195
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
196
|
+
string mod_note = 5;
|
197
|
+
}
|
@@ -0,0 +1,116 @@
|
|
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 = "SafetyProto";
|
10
|
+
option java_package = "com.reddit.coreplatform.api.common.v1";
|
11
|
+
|
12
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
13
|
+
enum CrowdControlLevel {
|
14
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
15
|
+
CROWD_CONTROL_LEVEL_UNSPECIFIED = 0;
|
16
|
+
|
17
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
18
|
+
CROWD_CONTROL_LEVEL_OFF = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
19
|
+
name: "OFF"
|
20
|
+
ordinal: 0,
|
21
|
+
}];
|
22
|
+
|
23
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
24
|
+
CROWD_CONTROL_LEVEL_LENIENT = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
25
|
+
name: "LENIENT"
|
26
|
+
ordinal: 1,
|
27
|
+
}];
|
28
|
+
|
29
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
30
|
+
CROWD_CONTROL_LEVEL_MEDIUM = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
31
|
+
name: "MEDIUM"
|
32
|
+
ordinal: 2,
|
33
|
+
}];
|
34
|
+
|
35
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
36
|
+
CROWD_CONTROL_LEVEL_STRICT = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
37
|
+
name: "STRICT"
|
38
|
+
ordinal: 3,
|
39
|
+
}];
|
40
|
+
}
|
41
|
+
|
42
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
43
|
+
enum HatefulContentThreshold {
|
44
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
45
|
+
HATEFUL_CONTENT_THRESHOLD_UNSPECIFIED = 0;
|
46
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
47
|
+
HATEFUL_CONTENT_THRESHOLD_OFF = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
48
|
+
name: "OFF"
|
49
|
+
ordinal: 0,
|
50
|
+
}];
|
51
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
52
|
+
HATEFUL_CONTENT_THRESHOLD_LENIENT = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
53
|
+
name: "LENIENT"
|
54
|
+
ordinal: 1,
|
55
|
+
}];
|
56
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
57
|
+
HATEFUL_CONTENT_THRESHOLD_MODERATE = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
58
|
+
name: "MODERATE"
|
59
|
+
ordinal: 2,
|
60
|
+
}];
|
61
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
62
|
+
HATEFUL_CONTENT_THRESHOLD_STRICT = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
63
|
+
name: "STRICT"
|
64
|
+
ordinal: 3,
|
65
|
+
}];
|
66
|
+
}
|
67
|
+
|
68
|
+
// DEPRECATED, see reddit-service-ban-evasion FilterSettings
|
69
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
70
|
+
enum BanEvasionThreshold {
|
71
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
72
|
+
BAN_EVASION_THRESHOLD_UNSPECIFIED = 0 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
73
|
+
name: "UNKNOWN"
|
74
|
+
ordinal: 0,
|
75
|
+
}];
|
76
|
+
|
77
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
78
|
+
BAN_EVASION_THRESHOLD_OFF = 1 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
79
|
+
name: "OFF"
|
80
|
+
ordinal: 1,
|
81
|
+
}];
|
82
|
+
|
83
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
84
|
+
BAN_EVASION_THRESHOLD_LENIENT = 2 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
85
|
+
name: "LENIENT"
|
86
|
+
ordinal: 2,
|
87
|
+
}];
|
88
|
+
|
89
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
90
|
+
BAN_EVASION_THRESHOLD_MODERATE = 3 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
91
|
+
name: "MODERATE"
|
92
|
+
ordinal: 3,
|
93
|
+
}];
|
94
|
+
|
95
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
96
|
+
BAN_EVASION_THRESHOLD_STRICT = 4 [(reddit.coreplatform.api.metadata.v1.thrift_alias) = {
|
97
|
+
name: "STRICT"
|
98
|
+
ordinal: 4,
|
99
|
+
}];
|
100
|
+
}
|
101
|
+
|
102
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
103
|
+
message SafetyVTag {
|
104
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
105
|
+
map<string, double> versions = 1;
|
106
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
107
|
+
optional double score = 2;
|
108
|
+
}
|
109
|
+
|
110
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
111
|
+
message SafetyXTag {
|
112
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
113
|
+
map<string, double> versions = 1;
|
114
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
115
|
+
optional double score = 2;
|
116
|
+
}
|
@@ -0,0 +1,25 @@
|
|
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 = "TimeProto";
|
8
|
+
option java_package = "com.reddit.coreplatform.api.common.v1";
|
9
|
+
|
10
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
11
|
+
message TimeOfDay {
|
12
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
13
|
+
int32 hour = 1;
|
14
|
+
|
15
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
16
|
+
int32 minute = 2;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
20
|
+
message TimeSpan {
|
21
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
22
|
+
TimeOfDay start_time_utc = 1;
|
23
|
+
/* @exclude No documentation present when converted from Thrift to Proto */
|
24
|
+
TimeOfDay end_time_utc = 2;
|
25
|
+
}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package reddit.coreplatform.domains.v1;
|
4
|
+
|
5
|
+
import "validate/validate.proto";
|
6
|
+
|
7
|
+
option go_package = "github.snooguts.net/reddit/thing-api/go/grpc/domains/v1;domains";
|
8
|
+
option java_multiple_files = true;
|
9
|
+
option java_outer_classname = "DomainsMetadataServiceProto";
|
10
|
+
option java_package = "com.reddit.coreplatform.api.domains.v1";
|
11
|
+
|
12
|
+
// The domains metadata service exposes APIs for fetching metadata related to domains
|
13
|
+
service DomainsMetadataService {
|
14
|
+
// Check if the requested url has been banned at the domain-level and if it's
|
15
|
+
// publicly banned (shamed) or privately banned.
|
16
|
+
rpc GetDomainBanInfo(GetDomainBanInfoRequest) returns (GetDomainBanInfoResponse) {
|
17
|
+
option idempotency_level = NO_SIDE_EFFECTS;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
// The ban status of the domain
|
22
|
+
enum BanStatus {
|
23
|
+
// Either not banned or just unspecified
|
24
|
+
BAN_STATUS_UNSPECIFIED = 0;
|
25
|
+
|
26
|
+
// The domain has not been banned
|
27
|
+
BAN_STATUS_NOT_BANNED = 1;
|
28
|
+
|
29
|
+
// The domain has been banned, but that fact shouldn't be exposed to users
|
30
|
+
BAN_STATUS_PRIVATELY_BANNED = 2;
|
31
|
+
|
32
|
+
// The domain has been banned and we should let users actively know it's banned
|
33
|
+
BAN_STATUS_PUBLICLY_BANNED = 3;
|
34
|
+
}
|
35
|
+
|
36
|
+
// Ban status, message associated to a domain
|
37
|
+
message DomainBanInfo {
|
38
|
+
// Ban status of this URL
|
39
|
+
BanStatus ban_status = 1;
|
40
|
+
|
41
|
+
// Ban message to be shown when trying to submit a url from that domain
|
42
|
+
string public_ban_message = 2;
|
43
|
+
|
44
|
+
// Internal ban info, for admins only
|
45
|
+
InternalDomainBanInfo internal_info = 3;
|
46
|
+
}
|
47
|
+
|
48
|
+
// All status associated with a given domain, for internal use by admins
|
49
|
+
message InternalDomainBanInfo {
|
50
|
+
// Ban status of this domain without overriding based on regex
|
51
|
+
BanStatus original_ban_status = 1;
|
52
|
+
|
53
|
+
// Internal note written by the banning admin
|
54
|
+
string internal_ban_message = 2;
|
55
|
+
|
56
|
+
// Is the domain also prohibited in markdown links (in self posts, comments, messages)?
|
57
|
+
bool banned_in_markdown = 3;
|
58
|
+
|
59
|
+
// Is the domain also prohibited as an email?
|
60
|
+
bool banned_in_email = 4;
|
61
|
+
|
62
|
+
// Username of the banning admin
|
63
|
+
string banning_admin_username = 5;
|
64
|
+
|
65
|
+
// UTC time zone, string format "YYYY-MM-DD hh:mm"
|
66
|
+
string banned_at_timestamp = 6;
|
67
|
+
|
68
|
+
// If present, the ban only applies to URLs matching this regex
|
69
|
+
string url_regex = 7;
|
70
|
+
|
71
|
+
// Is the domain also prohibited from being manually approved by moderators?
|
72
|
+
bool prohibit_approval = 8;
|
73
|
+
|
74
|
+
// Inspector exemptions regex (matches anywhere)
|
75
|
+
string inspector_exemptions_regex = 9;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Request argument for checking the url to see if the domain has been banned
|
79
|
+
message GetDomainBanInfoRequest {
|
80
|
+
// The list of full urls to check for banned status
|
81
|
+
repeated string urls = 1 [(validate.rules).repeated = {
|
82
|
+
min_items: 1,
|
83
|
+
max_items: 100,
|
84
|
+
unique: true,
|
85
|
+
items: {
|
86
|
+
string: {
|
87
|
+
min_len: 3,
|
88
|
+
max_len: 2048,
|
89
|
+
},
|
90
|
+
}
|
91
|
+
}];
|
92
|
+
|
93
|
+
// Whether internal info should be included
|
94
|
+
bool include_internal_info = 2;
|
95
|
+
}
|
96
|
+
|
97
|
+
// Response payload for if the url is part of a banned domain
|
98
|
+
message GetDomainBanInfoResponse {
|
99
|
+
// A map of url to the ban status of that url's domain.
|
100
|
+
map<string, DomainBanInfo> ban_info_by_url = 1;
|
101
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
syntax = "proto3";
|
2
|
+
|
3
|
+
package reddit.coreplatform.grpc_thrift.v1;
|
4
|
+
|
5
|
+
import "google/protobuf/descriptor.proto";
|
6
|
+
|
7
|
+
option go_package = "github.snooguts.net/reddit/core-platform-grpc-thrift/grpc_thrift/v1";
|
8
|
+
|
9
|
+
extend google.protobuf.MessageOptions {
|
10
|
+
string thrift_alias_go = 78000000;
|
11
|
+
string thrift_alias_py = 78000001;
|
12
|
+
}
|
13
|
+
|
14
|
+
extend google.protobuf.MethodOptions {
|
15
|
+
ThriftMethodTypeAliases thrift_aliases = 78000000;
|
16
|
+
}
|
17
|
+
|
18
|
+
// This message is used to annotate rpc methods with thrift aliases for
|
19
|
+
// its request and response types.
|
20
|
+
message ThriftMethodTypeAliases {
|
21
|
+
// Thrift aliases for the rpc request message type
|
22
|
+
ThriftRuntimeTypeAliases request = 1;
|
23
|
+
|
24
|
+
// Thrift aliases for the rpc response message type
|
25
|
+
ThriftRuntimeTypeAliases response = 2;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Thrift aliases for each supported runtime.
|
29
|
+
message ThriftRuntimeTypeAliases {
|
30
|
+
// Alias definition for python runtime
|
31
|
+
string py = 1;
|
32
|
+
// Alias definition for go runtime
|
33
|
+
string go = 2;
|
34
|
+
}
|