Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions proto/device_sync/backup.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
syntax = "proto3";
package xmtp.device_sync.backup;

option java_package = "org.xmtp.proto.device_sync";

message SnapshotSave {
bytes snapshot = 1;
}
5 changes: 5 additions & 0 deletions proto/device_sync/device_sync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
syntax = "proto3";
package xmtp.device_sync;

import "device_sync/backup.proto";
import "device_sync/consent_backup.proto";
import "device_sync/event_backup.proto";
import "device_sync/group_backup.proto";
import "device_sync/identity_update_backup.proto";
import "device_sync/message_backup.proto";

option java_package = "org.xmtp.proto.device_sync";
Expand All @@ -17,6 +19,8 @@ message BackupElement {
xmtp.device_sync.message_backup.GroupMessageSave group_message = 3;
xmtp.device_sync.consent_backup.ConsentSave consent = 4;
xmtp.device_sync.event_backup.EventSave event = 5 [deprecated = true];
xmtp.device_sync.identity_update_backup.IdentityUpdateSave identity_update = 6;
xmtp.device_sync.backup.SnapshotSave snapshot = 7;
}
}

Expand All @@ -43,4 +47,5 @@ enum BackupElementSelection {
BACKUP_ELEMENT_SELECTION_MESSAGES = 1;
BACKUP_ELEMENT_SELECTION_CONSENT = 2;
BACKUP_ELEMENT_SELECTION_EVENT = 3 [deprecated = true];
BACKUP_ELEMENT_SELECTION_SNAPSHOT = 4;
}
11 changes: 11 additions & 0 deletions proto/device_sync/identity_update_backup.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
syntax = "proto3";
package xmtp.device_sync.identity_update_backup;

option java_package = "org.xmtp.proto.device_sync";

import "identity/associations/association.proto";

// Proto wrapper for an identity update backup
message IdentityUpdateSave {
xmtp.identity.associations.IdentityUpdate identity_update = 1;
}
Loading