@devvit/protos 0.11.7-next-2025-02-10-fe279479a.0 → 0.11.7
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +4 -4
- package/meta.min.json +0 -7820
- package/protos.min.js +0 -2
- package/protos.min.js.map +0 -7
- package/schema/.snootobuf/deps/buf/validate/expression.proto +0 -92
- package/schema/.snootobuf/deps/buf/validate/priv/private.proto +0 -41
- package/schema/.snootobuf/deps/buf/validate/validate.proto +0 -4130
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/audit.proto +0 -72
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/auth.proto +0 -49
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/organization.proto +0 -54
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/service.proto +0 -46
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/subscription.proto +0 -72
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/ui.proto +0 -20
- package/schema/.snootobuf/deps/devvit/data/api/admin/v1alpha/user.proto +0 -45
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/admin.proto +0 -54
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +0 -773
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +0 -66
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/firehose.proto +0 -100
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/intake.proto +0 -19
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +0 -446
- package/schema/.snootobuf/deps/devvit/gateway/v1alpha/payments.proto +0 -24
- package/schema/.snootobuf/deps/devvit/options/options.proto +0 -98
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/commentv2.proto +0 -29
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/flair.proto +0 -25
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modaction.proto +0 -53
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/modmail.proto +0 -56
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/postv2.proto +0 -107
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/subredditv2.proto +0 -41
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +0 -23
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +0 -162
- package/schema/.snootobuf/deps/enum/account_gender_category.proto +0 -14
- package/schema/.snootobuf/deps/enum/approval_status.proto +0 -15
- package/schema/.snootobuf/deps/enum/automated_reporting_level.proto +0 -12
- package/schema/.snootobuf/deps/enum/ban_evasion_threshold.proto +0 -13
- package/schema/.snootobuf/deps/enum/ban_info_action.proto +0 -12
- package/schema/.snootobuf/deps/enum/block_relation_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/comment_sort.proto +0 -18
- package/schema/.snootobuf/deps/enum/comment_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/crowd_control_level.proto +0 -12
- package/schema/.snootobuf/deps/enum/discussion_type.proto +0 -10
- package/schema/.snootobuf/deps/enum/distinguish_type.proto +0 -14
- package/schema/.snootobuf/deps/enum/flair_position.proto +0 -11
- package/schema/.snootobuf/deps/enum/hateful_content_threshold.proto +0 -12
- package/schema/.snootobuf/deps/enum/link_content_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/link_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/link_visibility.proto +0 -11
- package/schema/.snootobuf/deps/enum/prediction_leaderboard_entry_type.proto +0 -11
- package/schema/.snootobuf/deps/enum/promo_layout.proto +0 -11
- package/schema/.snootobuf/deps/enum/removed_by_type.proto +0 -18
- package/schema/.snootobuf/deps/enum/spam_level.proto +0 -11
- package/schema/.snootobuf/deps/enum/subreddit_type.proto +0 -16
- package/schema/.snootobuf/deps/enum/verdict.proto +0 -14
- package/schema/.snootobuf/deps/enum/vote.proto +0 -12
- package/schema/.snootobuf/deps/enum/whitelist_status.proto +0 -17
- package/schema/.snootobuf/deps/enum/wiki_edit_mode.proto +0 -12
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +0 -203
- package/schema/.snootobuf/deps/google/api/annotations.proto +0 -31
- package/schema/.snootobuf/deps/google/api/apikeys/v2/apikeys.proto +0 -288
- package/schema/.snootobuf/deps/google/api/apikeys/v2/resources.proto +0 -175
- package/schema/.snootobuf/deps/google/api/auth.proto +0 -237
- package/schema/.snootobuf/deps/google/api/backend.proto +0 -185
- package/schema/.snootobuf/deps/google/api/billing.proto +0 -77
- package/schema/.snootobuf/deps/google/api/client.proto +0 -431
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
- package/schema/.snootobuf/deps/google/api/cloudquotas/v1/resources.proto +0 -315
- package/schema/.snootobuf/deps/google/api/config_change.proto +0 -84
- package/schema/.snootobuf/deps/google/api/consumer.proto +0 -82
- package/schema/.snootobuf/deps/google/api/context.proto +0 -92
- package/schema/.snootobuf/deps/google/api/control.proto +0 -41
- package/schema/.snootobuf/deps/google/api/distribution.proto +0 -213
- package/schema/.snootobuf/deps/google/api/documentation.proto +0 -168
- package/schema/.snootobuf/deps/google/api/endpoint.proto +0 -69
- package/schema/.snootobuf/deps/google/api/error_reason.proto +0 -589
- package/schema/.snootobuf/deps/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/checked.proto +0 -343
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/eval.proto +0 -118
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/explain.proto +0 -53
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/syntax.proto +0 -438
- package/schema/.snootobuf/deps/google/api/expr/v1alpha1/value.proto +0 -115
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/decl.proto +0 -84
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/eval.proto +0 -125
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/expr.proto +0 -265
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/source.proto +0 -62
- package/schema/.snootobuf/deps/google/api/expr/v1beta1/value.proto +0 -114
- package/schema/.snootobuf/deps/google/api/field_behavior.proto +0 -104
- package/schema/.snootobuf/deps/google/api/field_info.proto +0 -106
- package/schema/.snootobuf/deps/google/api/http.proto +0 -371
- package/schema/.snootobuf/deps/google/api/httpbody.proto +0 -81
- package/schema/.snootobuf/deps/google/api/label.proto +0 -48
- package/schema/.snootobuf/deps/google/api/launch_stage.proto +0 -72
- package/schema/.snootobuf/deps/google/api/log.proto +0 -54
- package/schema/.snootobuf/deps/google/api/logging.proto +0 -81
- package/schema/.snootobuf/deps/google/api/metric.proto +0 -268
- package/schema/.snootobuf/deps/google/api/monitored_resource.proto +0 -130
- package/schema/.snootobuf/deps/google/api/monitoring.proto +0 -107
- package/schema/.snootobuf/deps/google/api/policy.proto +0 -85
- package/schema/.snootobuf/deps/google/api/quota.proto +0 -184
- package/schema/.snootobuf/deps/google/api/resource.proto +0 -243
- package/schema/.snootobuf/deps/google/api/routing.proto +0 -461
- package/schema/.snootobuf/deps/google/api/service.proto +0 -191
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/check_error.proto +0 -124
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/distribution.proto +0 -166
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/http_request.proto +0 -93
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/log_entry.proto +0 -126
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/metric_value.proto +0 -81
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/operation.proto +0 -123
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/quota_controller.proto +0 -245
- package/schema/.snootobuf/deps/google/api/servicecontrol/v1/service_controller.proto +0 -260
- package/schema/.snootobuf/deps/google/api/servicecontrol/v2/service_controller.proto +0 -196
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/resources.proto +0 -295
- package/schema/.snootobuf/deps/google/api/servicemanagement/v1/servicemanager.proto +0 -508
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/resources.proto +0 -130
- package/schema/.snootobuf/deps/google/api/serviceusage/v1/serviceusage.proto +0 -305
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/resources.proto +0 -458
- package/schema/.snootobuf/deps/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
- package/schema/.snootobuf/deps/google/api/source_info.proto +0 -31
- package/schema/.snootobuf/deps/google/api/system_parameter.proto +0 -96
- package/schema/.snootobuf/deps/google/api/usage.proto +0 -96
- package/schema/.snootobuf/deps/google/api/visibility.proto +0 -113
- package/schema/.snootobuf/deps/google/cloud/extended_operations.proto +0 -150
- package/schema/.snootobuf/deps/google/iam/admin/v1/iam.proto +0 -1087
- package/schema/.snootobuf/deps/google/iam/v1/iam_policy.proto +0 -145
- package/schema/.snootobuf/deps/google/iam/v1/logging/audit_data.proto +0 -34
- package/schema/.snootobuf/deps/google/iam/v1/options.proto +0 -41
- package/schema/.snootobuf/deps/google/iam/v1/policy.proto +0 -240
- package/schema/.snootobuf/deps/google/logging/type/http_request.proto +0 -92
- package/schema/.snootobuf/deps/google/logging/type/log_severity.proto +0 -72
- package/schema/.snootobuf/deps/google/longrunning/operations.proto +0 -247
- package/schema/.snootobuf/deps/google/protobuf/any.proto +0 -158
- package/schema/.snootobuf/deps/google/protobuf/api.proto +0 -208
- package/schema/.snootobuf/deps/google/protobuf/compiler/plugin.proto +0 -183
- package/schema/.snootobuf/deps/google/protobuf/descriptor.proto +0 -921
- package/schema/.snootobuf/deps/google/protobuf/duration.proto +0 -116
- package/schema/.snootobuf/deps/google/protobuf/empty.proto +0 -51
- package/schema/.snootobuf/deps/google/protobuf/field_mask.proto +0 -245
- package/schema/.snootobuf/deps/google/protobuf/source_context.proto +0 -48
- package/schema/.snootobuf/deps/google/protobuf/struct.proto +0 -95
- package/schema/.snootobuf/deps/google/protobuf/timestamp.proto +0 -147
- package/schema/.snootobuf/deps/google/protobuf/type.proto +0 -187
- package/schema/.snootobuf/deps/google/protobuf/wrappers.proto +0 -123
- package/schema/.snootobuf/deps/google/rpc/code.proto +0 -186
- package/schema/.snootobuf/deps/google/rpc/context/attribute_context.proto +0 -287
- package/schema/.snootobuf/deps/google/rpc/error_details.proto +0 -246
- package/schema/.snootobuf/deps/google/rpc/status.proto +0 -47
- package/schema/.snootobuf/deps/google/type/calendar_period.proto +0 -57
- package/schema/.snootobuf/deps/google/type/color.proto +0 -170
- package/schema/.snootobuf/deps/google/type/date.proto +0 -50
- package/schema/.snootobuf/deps/google/type/datetime.proto +0 -97
- package/schema/.snootobuf/deps/google/type/dayofweek.proto +0 -51
- package/schema/.snootobuf/deps/google/type/expr.proto +0 -51
- package/schema/.snootobuf/deps/google/type/fraction.proto +0 -34
- package/schema/.snootobuf/deps/google/type/latlng.proto +0 -37
- package/schema/.snootobuf/deps/google/type/money.proto +0 -43
- package/schema/.snootobuf/deps/google/type/month.proto +0 -66
- package/schema/.snootobuf/deps/google/type/postal_address.proto +0 -135
- package/schema/.snootobuf/deps/google/type/quaternion.proto +0 -95
- package/schema/.snootobuf/deps/google/type/timeofday.proto +0 -44
- package/schema/.snootobuf/deps/openapi/helper.proto +0 -20
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
- package/schema/.snootobuf/deps/products-api/protos/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -118
- package/schema/.snootobuf/deps/reddit/api/metadata/v1/metadata.proto +0 -55
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account.proto +0 -579
- package/schema/.snootobuf/deps/reddit/coreplatform/account/v1/account_relations.proto +0 -43
- package/schema/.snootobuf/deps/reddit/coreplatform/api/metadata/v1/metadata.proto +0 -82
- package/schema/.snootobuf/deps/reddit/coreplatform/blocking/v1/user_blocking_service.proto +0 -221
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree.proto +0 -78
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_service.proto +0 -189
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comment_tree_structure.proto +0 -29
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments.proto +0 -417
- package/schema/.snootobuf/deps/reddit/coreplatform/comments/v1/comments_service.proto +0 -72
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/auth.proto +0 -25
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/features.proto +0 -52
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/lang.proto +0 -16
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/legal.proto +0 -20
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/media.proto +0 -149
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/moderation.proto +0 -197
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/safety.proto +0 -116
- package/schema/.snootobuf/deps/reddit/coreplatform/common/v1/time.proto +0 -25
- package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto +0 -101
- package/schema/.snootobuf/deps/reddit/coreplatform/grpc_thrift/v1/grpc_thrift_options.proto +0 -34
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links.proto +0 -798
- package/schema/.snootobuf/deps/reddit/coreplatform/links/v1/links_service.proto +0 -186
- package/schema/.snootobuf/deps/reddit/coreplatform/messages/v1/messages.proto +0 -110
- package/schema/.snootobuf/deps/reddit/coreplatform/sensitive/v1/wrappers.proto +0 -51
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit.proto +0 -1202
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_member_relations.proto +0 -85
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_moderator_service.proto +0 -363
- package/schema/.snootobuf/deps/reddit/coreplatform/subreddit/v1/subreddit_service.proto +0 -301
- package/schema/.snootobuf/deps/reddit/coreplatform/thing/v0/thing.proto +0 -2869
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/custom_post.proto +0 -15
- package/schema/.snootobuf/deps/reddit/devvit/custom_post/v1/service.proto +0 -11
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +0 -48
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +0 -70
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +0 -11
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/acknowledge_order_delivery.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/checkout.proto +0 -89
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/common.proto +0 -322
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/delete_products.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/events.proto +0 -14
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_batch_products.proto +0 -15
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_gold_balances.proto +0 -48
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_order.proto +0 -31
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders.proto +0 -26
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_orders_by_user.proto +0 -15
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_payout_info_batch.proto +0 -52
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_products.proto +0 -23
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/get_user_profiles.proto +0 -28
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/refund_order.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service.proto +0 -49
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/service_data_compliance.proto +0 -20
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payapi/v1/upsert_products.proto +0 -17
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paygatewaypsps/v1/paygatewaypsps.proto +0 -158
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payments_data_compliance.proto +0 -18
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payorders/v1/payorders.proto +0 -195
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/admin.proto +0 -44
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/ledger.proto +0 -200
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/payments_data_compliance.proto +0 -18
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/paypayments/v1/paypayments.proto +0 -210
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/currencies.proto +0 -189
- package/schema/.snootobuf/deps/reddit/xpaymentsplatform/payproducts/v1/payproducts.proto +0 -135
- package/schema/.snootobuf/deps/snooron_sources/text_classification/text_classification.proto +0 -29
- package/schema/.snootobuf/deps/snooron_sources/v2_event/v2_event.proto +0 -3292
- package/schema/.snootobuf/deps/validate/validate.proto +0 -862
@@ -1,149 +0,0 @@
|
|
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
|
-
}
|
@@ -1,197 +0,0 @@
|
|
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
|
-
}
|
@@ -1,116 +0,0 @@
|
|
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
|
-
}
|
@@ -1,25 +0,0 @@
|
|
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
|
-
}
|
package/schema/.snootobuf/deps/reddit/coreplatform/domains/v1/domains_metadata_service.proto
DELETED
@@ -1,101 +0,0 @@
|
|
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
|
-
}
|
@@ -1,34 +0,0 @@
|
|
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
|
-
}
|