blob: d2f2122f7fb0c8b3a8fa96fe33075bfc7b9f1539 [file] [log] [blame]
Adrià Vilanova Martínez0d92a0c2023-11-06 01:37:20 +01001export const kViewUnifiedUserResponseEvent = 'TWPT_ViewUnifiedUserResponse';
2export const kViewThreadResponse = 'TWPT_ViewThreadResponse';
3export const kViewForumRequest = 'TWPT_ViewForumRequest';
4export const kViewForumResponse = 'TWPT_ViewForumResponse';
5
6// Used to match each category with the corresponding string.
7export const kAbuseCategories = [
8 ['1', 'account'],
9 ['2', 'displayname'],
10 ['3', 'avatar'],
11];
12export const kAbuseViolationCategories = {
13 0: 'NO_VIOLATION',
14 1: 'COMMUNITY_POLICY_VIOLATION',
15 2: 'LEGAL_VIOLATION',
16 3: 'CSAI_VIOLATION',
17 4: 'OTHER_VIOLATION',
18};
19export const kAbuseViolationCategoriesI18n = {
20 0: 'noviolation',
21 1: 'communitypolicy',
22 2: 'legal',
23 3: 'csai',
24 4: 'other',
25};
26
27// The following array will appear in the interface as is (without being
28// translated).
29export const kAbuseViolationTypes = {
30 0: 'UNSPECIFIED',
31 23: 'ACCOUNT_DISABLED',
32 55: 'ACCOUNT_HAS_SERVICES_DISABLED',
33 35: 'ACCOUNT_HIJACKED',
34 96: 'ACCOUNT_LEAKED_CREDENTIALS',
35 92: 'ACCOUNT_NOT_SUPPORTED',
36 81: 'ARTISTIC_NUDITY',
37 66: 'BAD_BEHAVIOR_PATTERN',
38 78: 'BAD_ENGAGEMENT_BEHAVIOR_PATTERN',
39 79: 'BORDERLINE_HARASSMENT',
40 80: 'BORDERLINE_HATE_SPEECH',
41 38: 'BOTNET',
42 32: 'BRANDING_VIOLATION',
43 100: 'CAPITALIZING_TRAGIC_EVENTS',
44 105: 'CLOAKING',
45 49: 'COIN_MINING',
46 7: 'COMMERCIAL_CONTENT',
47 97: 'COPPA_REGULATED',
48 57: 'COPYRIGHT_CIRCUMVENTION',
49 8: 'COPYRIGHTED_CONTENT',
50 58: 'COURT_ORDER',
51 51: 'CSAI',
52 94: 'CSAI_INSPECT',
53 52: 'CSAI_CARTOON_HUMOR',
54 53: 'CSAI_SOLICITATION',
55 108: 'CSAI_NON_APPARENT',
56 67: 'DANGEROUS',
57 37: 'DATA_SCRAPING',
58 86: 'DECEPTIVE_OAUTH_IMPLEMENTATION',
59 46: 'DEFAMATORY_CONTENT',
60 36: 'DELINQUENT_BILLING',
61 30: 'DISRUPTION_ATTEMPT',
62 112: 'DOMESTIC_INTERFERENCE',
63 22: 'DOS',
64 9: 'DUPLICATE_CONTENT',
65 68: 'DUPLICATE_LOCAL_PAGE',
66 121: 'NON_QUALIFYING_ORGANIZATION',
67 115: 'EGREGIOUS_INTERACTION_WITH_MINOR',
68 83: 'ENGAGEMENT_COLLUSION',
69 41: 'EXPLOIT_ATTACKS',
70 65: 'FAKE_USER',
71 2: 'FRAUD',
72 21: 'FREE_TRIAL_VIOLATION',
73 43: 'GIBBERISH',
74 101: 'FOREIGN_INTERFERENCE',
75 59: 'GOVERNMENT_ORDER',
76 10: 'GRAPHICAL_VIOLENCE',
77 11: 'HARASSMENT',
78 12: 'HATE_SPEECH',
79 90: 'IDENTICAL_PRODUCT_NAME',
80 60: 'ILLEGAL_DRUGS',
81 13: 'IMPERSONATION',
82 69: 'IMPERSONATION_WITH_PII',
83 116: 'INAPPROPRIATE_INTERACTION_WITH_MINOR',
84 45: 'INAPPROPRIATE_CONTENT_SPEECH',
85 106: 'INTENTIONAL_THWARTING',
86 27: 'INTRUSION_ATTEMPT',
87 87: 'INVALID_API_USAGE',
88 14: 'INVALID_CONTENT',
89 20: 'INVALID_GCE_USAGE',
90 120: 'INVALID_STORAGE_USAGE',
91 15: 'INVALID_IMAGE_QUALITY',
92 88: 'INVALID_API_PRIVACY_POLICY_DISCLOSURE',
93 54: 'INVALID_USAGE_OF_IP_PROXYING',
94 99: 'KEYWORD_STUFFING',
95 61: 'LEGAL_COUNTERFEIT',
96 62: 'LEGAL_EXPORT',
97 63: 'LEGAL_PRIVACY',
98 33: 'LEGAL_REVIEW',
99 91: 'LEGAL_PROTECTED',
100 70: 'LOW_QUALITY_CONTENT',
101 93: 'LOW_REPUTATION_PHONE_NUMBER',
102 6: 'MALICIOUS_SOFTWARE',
103 40: 'MALWARE',
104 113: 'MISLEADING',
105 114: 'MISREP_OF_ID',
106 89: 'MEMBER_OF_ABUSIVE_GCE_NETWORK',
107 84: 'NON_CONSENSUAL_EXPLICIT_IMAGERY',
108 1: 'NONE',
109 102: 'OFF_TOPIC',
110 31: 'OPEN_PROXY',
111 28: 'PAYMENT_FRAUD',
112 16: 'PEDOPHILIA',
113 71: 'PERSONAL_INFORMATION_CONTENT',
114 25: 'PHISHING',
115 34: 'POLICY_REVIEW',
116 17: 'PORNOGRAPHY',
117 29: 'QUOTA_CIRCUMVENTION',
118 72: 'QUOTA_EXCEEDED',
119 73: 'REGULATED',
120 24: 'REPEATED_POLICY_VIOLATION',
121 104: 'RESOURCE_COMPROMISED',
122 107: 'REWARD_PROGRAMS_ABUSE',
123 74: 'ROGUE_PHARMA',
124 82: 'ESCORT',
125 75: 'SPAMMY_LOCAL_VERTICAL',
126 39: 'SEND_EMAIL_SPAM',
127 117: 'SEXTORTION',
128 118: 'SEX_TRAFFICKING',
129 44: 'SEXUALLY_EXPLICIT_CONTENT',
130 3: 'SHARDING',
131 95: 'SOCIAL_ENGINEERING',
132 109: 'SUSPICIOUS',
133 19: 'TRADEMARK_CONTENT',
134 50: 'TRAFFIC_PUMPING',
135 76: 'UNSAFE_RACY',
136 103: 'UNUSUAL_ACTIVITY_ALERT',
137 64: 'UNWANTED_CONTENT',
138 26: 'UNWANTED_SOFTWARE',
139 77: 'VIOLENT_EXTREMISM',
140 119: 'UNAUTH_IMAGES_OF_MINORS',
141 85: 'UNAUTHORIZED_SERVICE_RESELLING',
142 98: 'CSAI_EXTERNAL',
143 5: 'SPAM',
144 4: 'UNSAFE',
145 47: 'CHILD_PORNOGRAPHY_INCITATION',
146 18: 'TERRORISM_SUPPORT',
147 56: 'CSAI_WORST_OF_WORST',
148};
149
150// These values will be translated
151export const kItemMetadataStateI18n = {
152 1: 'published',
153 2: 'draft',
154 3: 'automated_abuse_take_down_hide2',
155 4: 'automated_abuse_take_down_delete2',
156 13: 'automated_abuse_reinstate2',
157 10: 'automated_off_topic_hide2',
158 14: 'automated_flagged_pending_manual_review2',
159 5: 'user_flagged_pending_manual_review',
160 6: 'owner_deleted',
161 7: 'manual_take_down_hide2',
162 17: 'manual_profile_take_down_suspend2',
163 8: 'manual_take_down_delete2',
164 18: 'reinstate_profile_takedown2',
165 9: 'reinstate_abuse_takedown2',
166 11: 'clear_off_topic2',
167 12: 'confirm_off_topic2',
168 15: 'googler_off_topic_hide2',
169 16: 'expert_flagged_pending_manual_review',
170};
171export const kItemMetadataState = {
172 0: 'UNDEFINED',
173 1: 'PUBLISHED',
174 2: 'DRAFT',
175 3: 'AUTOMATED_ABUSE_TAKE_DOWN_HIDE',
176 4: 'AUTOMATED_ABUSE_TAKE_DOWN_DELETE',
177 13: 'AUTOMATED_ABUSE_REINSTATE',
178 10: 'AUTOMATED_OFF_TOPIC_HIDE',
179 14: 'AUTOMATED_FLAGGED_PENDING_MANUAL_REVIEW',
180 5: 'USER_FLAGGED_PENDING_MANUAL_REVIEW',
181 6: 'OWNER_DELETED',
182 7: 'MANUAL_TAKE_DOWN_HIDE',
183 17: 'MANUAL_PROFILE_TAKE_DOWN_SUSPEND',
184 8: 'MANUAL_TAKE_DOWN_DELETE',
185 18: 'REINSTATE_PROFILE_TAKEDOWN',
186 9: 'REINSTATE_ABUSE_TAKEDOWN',
187 11: 'CLEAR_OFF_TOPIC',
188 12: 'CONFIRM_OFF_TOPIC',
189 15: 'GOOGLER_OFF_TOPIC_HIDE',
190 16: 'EXPERT_FLAGGED_PENDING_MANUAL_REVIEW',
191};
192