diff --git a/proto/device_sync/backup.proto b/proto/device_sync/backup.proto new file mode 100644 index 00000000..e0a5595b --- /dev/null +++ b/proto/device_sync/backup.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; +package xmtp.device_sync.backup; + +option java_package = "org.xmtp.proto.device_sync"; + +message SnapshotSave { + bytes snapshot = 1; +} diff --git a/proto/device_sync/device_sync.proto b/proto/device_sync/device_sync.proto index 4b6dda1f..998af619 100644 --- a/proto/device_sync/device_sync.proto +++ b/proto/device_sync/device_sync.proto @@ -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"; @@ -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; } } @@ -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; } diff --git a/proto/device_sync/identity_update_backup.proto b/proto/device_sync/identity_update_backup.proto new file mode 100644 index 00000000..51e50856 --- /dev/null +++ b/proto/device_sync/identity_update_backup.proto @@ -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; +}