realm_export: Add realm_export_consent feature to API.

Fixes part of #31201.
This commit is contained in:
Prakhar Pratyush
2024-10-10 18:08:44 +05:30
committed by Tim Abbott
parent 70b6e46516
commit eaee5763d6
8 changed files with 124 additions and 1 deletions

View File

@@ -872,6 +872,15 @@ def check_realm_export(
assert has_failed_timestamp == (export["failed_timestamp"] is not None)
realm_export_consent_event = event_dict_type(
[
("type", Equals("realm_export_consent")),
("user_id", int),
("consented", bool),
]
)
check_realm_export_consent = make_checker(realm_export_consent_event)
realm_linkifier_type = DictType(
required_keys=[
("pattern", str),