Skip to content

Commit

Permalink
backup metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Jan 13, 2025
1 parent b680170 commit 5d6b5ee
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions proto/device_sync/device_sync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ import "device_sync/consent_backup.proto";

message BackupElement {
oneof element {
xmtp.device_sync.group_backup.GroupSave group = 1;
xmtp.device_sync.message_backup.GroupMessageSave group_message = 2;
xmtp.device_sync.consent_backup.ConsentSave consent = 3;
BackupMetadata metadata = 1;
xmtp.device_sync.group_backup.GroupSave group = 2;
xmtp.device_sync.message_backup.GroupMessageSave group_message = 3;
xmtp.device_sync.consent_backup.ConsentSave consent = 4;
}
}

message BackupMetadata {
uint32 backup_version = 1;
repeated BackupElementSelection elements = 2;
int64 exported_at_ns = 3;
optional int64 start_ns = 4;
optional int64 end_ns = 5;
}

enum BackupElementSelection {
BACKUP_ELEMENT_SELECTION_MESSAGES = 0;
BACKUP_ELEMENT_SELECTION_CONSENT = 1;
}

0 comments on commit 5d6b5ee

Please sign in to comment.