Adrià Vilanova Martínez | 0d92a0c | 2023-11-06 01:37:20 +0100 | [diff] [blame] | 1 | export const kViewUnifiedUserResponseEvent = 'TWPT_ViewUnifiedUserResponse'; |
| 2 | export const kViewThreadResponse = 'TWPT_ViewThreadResponse'; |
| 3 | export const kViewForumRequest = 'TWPT_ViewForumRequest'; |
| 4 | export const kViewForumResponse = 'TWPT_ViewForumResponse'; |
| 5 | |
| 6 | // Used to match each category with the corresponding string. |
| 7 | export const kAbuseCategories = [ |
| 8 | ['1', 'account'], |
| 9 | ['2', 'displayname'], |
| 10 | ['3', 'avatar'], |
| 11 | ]; |
| 12 | export const kAbuseViolationCategories = { |
| 13 | 0: 'NO_VIOLATION', |
| 14 | 1: 'COMMUNITY_POLICY_VIOLATION', |
| 15 | 2: 'LEGAL_VIOLATION', |
| 16 | 3: 'CSAI_VIOLATION', |
| 17 | 4: 'OTHER_VIOLATION', |
| 18 | }; |
| 19 | export 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). |
| 29 | export 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 |
| 151 | export 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', |
Adrià Vilanova Martínez | 05c926b | 2024-02-28 23:52:21 +0100 | [diff] [blame] | 157 | // TODO: Add the following line and its corresponding translation once we know |
| 158 | // what the state means: `21: 'automated_abuse_manual_review',` |
Adrià Vilanova Martínez | 0d92a0c | 2023-11-06 01:37:20 +0100 | [diff] [blame] | 159 | 10: 'automated_off_topic_hide2', |
| 160 | 14: 'automated_flagged_pending_manual_review2', |
| 161 | 5: 'user_flagged_pending_manual_review', |
| 162 | 6: 'owner_deleted', |
| 163 | 7: 'manual_take_down_hide2', |
| 164 | 17: 'manual_profile_take_down_suspend2', |
| 165 | 8: 'manual_take_down_delete2', |
| 166 | 18: 'reinstate_profile_takedown2', |
| 167 | 9: 'reinstate_abuse_takedown2', |
| 168 | 11: 'clear_off_topic2', |
| 169 | 12: 'confirm_off_topic2', |
| 170 | 15: 'googler_off_topic_hide2', |
| 171 | 16: 'expert_flagged_pending_manual_review', |
Adrià Vilanova Martínez | 05c926b | 2024-02-28 23:52:21 +0100 | [diff] [blame] | 172 | 19: 'awaiting_classification', |
| 173 | 20: 'generated_answer_adopted', |
Adrià Vilanova Martínez | 0d92a0c | 2023-11-06 01:37:20 +0100 | [diff] [blame] | 174 | }; |
| 175 | export const kItemMetadataState = { |
| 176 | 0: 'UNDEFINED', |
| 177 | 1: 'PUBLISHED', |
| 178 | 2: 'DRAFT', |
| 179 | 3: 'AUTOMATED_ABUSE_TAKE_DOWN_HIDE', |
| 180 | 4: 'AUTOMATED_ABUSE_TAKE_DOWN_DELETE', |
| 181 | 13: 'AUTOMATED_ABUSE_REINSTATE', |
Adrià Vilanova Martínez | 05c926b | 2024-02-28 23:52:21 +0100 | [diff] [blame] | 182 | 21: 'AUTOMATED_ABUSE_MANUAL_REVIEW', |
Adrià Vilanova Martínez | 0d92a0c | 2023-11-06 01:37:20 +0100 | [diff] [blame] | 183 | 10: 'AUTOMATED_OFF_TOPIC_HIDE', |
| 184 | 14: 'AUTOMATED_FLAGGED_PENDING_MANUAL_REVIEW', |
| 185 | 5: 'USER_FLAGGED_PENDING_MANUAL_REVIEW', |
| 186 | 6: 'OWNER_DELETED', |
| 187 | 7: 'MANUAL_TAKE_DOWN_HIDE', |
| 188 | 17: 'MANUAL_PROFILE_TAKE_DOWN_SUSPEND', |
| 189 | 8: 'MANUAL_TAKE_DOWN_DELETE', |
| 190 | 18: 'REINSTATE_PROFILE_TAKEDOWN', |
| 191 | 9: 'REINSTATE_ABUSE_TAKEDOWN', |
| 192 | 11: 'CLEAR_OFF_TOPIC', |
| 193 | 12: 'CONFIRM_OFF_TOPIC', |
| 194 | 15: 'GOOGLER_OFF_TOPIC_HIDE', |
| 195 | 16: 'EXPERT_FLAGGED_PENDING_MANUAL_REVIEW', |
Adrià Vilanova Martínez | 05c926b | 2024-02-28 23:52:21 +0100 | [diff] [blame] | 196 | 19: 'AWAITING_CLASSIFICATION', |
| 197 | 20: 'GENERATED_ANSWER_ADOPTED', |
Adrià Vilanova Martínez | 0d92a0c | 2023-11-06 01:37:20 +0100 | [diff] [blame] | 198 | }; |