feat(reports): add server-driven report flows (#3330)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:38:00 +02:00
1 parent bc17922b02
commit ece622e800
471 files changed
+56262 -35932

No files matched your search

+157 -3
View File
@@ -178,6 +178,18 @@
{
"name": "sticker_items",
"type": "frozen<list<message_sticker_item>>"
},
{
"name": "webhook_id",
"type": "bigint"
},
{
"name": "channel_id",
"type": "bigint"
},
{
"name": "missing_attachments",
"type": "frozen<list<message_attachment>>"
}
]
},
@@ -3934,7 +3946,7 @@
}
],
"primary_key": "((email_lower))",
"options": ""
"options": "default_time_to_live = 600"
},
{
"name": "dsa_report_tickets",
@@ -3957,7 +3969,7 @@
}
],
"primary_key": "((ticket))",
"options": ""
"options": "default_time_to_live = 3600 AND gc_grace_seconds = 864000 AND compaction = {'class': 'TimeWindowCompactionStrategy', 'compaction_window_unit': 'HOURS', 'compaction_window_size': '1'}"
},
{
"name": "email_change_tickets",
@@ -5570,6 +5582,29 @@
"primary_key": "(guild_id, user_id)",
"options": "default_time_to_live = 0"
},
{
"name": "guild_report_submissions_by_reporter",
"columns": [
{
"name": "reporter_id",
"type": "bigint"
},
{
"name": "reported_guild_id",
"type": "bigint"
},
{
"name": "report_id",
"type": "bigint"
},
{
"name": "reported_at",
"type": "timestamp"
}
],
"primary_key": "((reporter_id), reported_guild_id)",
"options": "default_time_to_live = 86400 AND gc_grace_seconds = 864000 AND compaction = {'class': 'TimeWindowCompactionStrategy', 'compaction_window_unit': 'HOURS', 'compaction_window_size': '1'}"
},
{
"name": "guild_roles",
"columns": [
@@ -6007,6 +6042,102 @@
{
"name": "reported_channel_effective_content_warning_text",
"type": "text"
},
{
"name": "reason",
"type": "text"
},
{
"name": "flow_revision",
"type": "text"
},
{
"name": "flow_steps",
"type": "text"
},
{
"name": "flow_locale",
"type": "text"
},
{
"name": "flow_surface",
"type": "text"
},
{
"name": "reporter_good_faith_confirmed",
"type": "boolean"
},
{
"name": "reported_webhook_id",
"type": "bigint"
},
{
"name": "reported_webhook_name",
"type": "text"
},
{
"name": "reported_webhook_avatar_hash",
"type": "text"
},
{
"name": "reported_webhook_default_name",
"type": "text"
},
{
"name": "reported_webhook_default_avatar_hash",
"type": "text"
},
{
"name": "reported_webhook_type",
"type": "int"
},
{
"name": "reported_webhook_application_id",
"type": "bigint"
},
{
"name": "reported_webhook_channel_id",
"type": "bigint"
},
{
"name": "reported_webhook_guild_id",
"type": "bigint"
},
{
"name": "reported_webhook_created_at",
"type": "timestamp"
},
{
"name": "reported_webhook_creator_id",
"type": "bigint"
},
{
"name": "reported_webhook_creator_username",
"type": "text"
},
{
"name": "reported_webhook_creator_discriminator",
"type": "int"
},
{
"name": "reported_webhook_creator_global_name",
"type": "text"
},
{
"name": "reported_webhook_creator_avatar_hash",
"type": "text"
},
{
"name": "reported_profile_snapshot",
"type": "text"
},
{
"name": "legal_hold_until",
"type": "timestamp"
},
{
"name": "legal_hold_reason",
"type": "text"
}
],
"primary_key": "((report_id))",
@@ -6348,7 +6479,7 @@
}
],
"primary_key": "((reporter_id), channel_id, message_id)",
"options": ""
"options": "default_time_to_live = 31536000 AND gc_grace_seconds = 864000 AND compaction = {'class': 'TimeWindowCompactionStrategy', 'compaction_window_unit': 'DAYS', 'compaction_window_size': '12'}"
},
{
"name": "messages",
@@ -8190,6 +8321,29 @@
"primary_key": "((user_id), harvest_id)",
"options": "CLUSTERING ORDER BY (harvest_id DESC)"
},
{
"name": "user_report_submissions_by_reporter",
"columns": [
{
"name": "reporter_id",
"type": "bigint"
},
{
"name": "reported_user_id",
"type": "bigint"
},
{
"name": "report_id",
"type": "bigint"
},
{
"name": "reported_at",
"type": "timestamp"
}
],
"primary_key": "((reporter_id), reported_user_id)",
"options": "default_time_to_live = 86400 AND gc_grace_seconds = 864000 AND compaction = {'class': 'TimeWindowCompactionStrategy', 'compaction_window_unit': 'HOURS', 'compaction_window_size': '1'}"
},
{
"name": "user_settings",
"columns": [