realm_export: Add support to create full data export via /export/realm.

Earlier, only public data export was possible via `POST /export/realm`
endpoint. This commit adds support to create full data export with
member consent via that endpoint.

Also, this adds a 'export_type' parameter to the dictionaries
in `realm_export` event type and `GET /export/realm` response.

Fixes part of #31201.
This commit is contained in:
Prakhar Pratyush
2024-10-05 03:25:11 +05:30
committed by Tim Abbott
parent 2367c46455
commit 55f97cd06f
9 changed files with 114 additions and 30 deletions

View File

@@ -23,6 +23,7 @@ const realm_export_schema = z.object({
deleted_timestamp: z.number().nullable(),
failed_timestamp: z.number().nullable(),
pending: z.boolean(),
export_type: z.number(),
});
type RealmExport = z.output<typeof realm_export_schema>;