-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'coda/backups' of github.com:xmtp/proto into coda/backups
- Loading branch information
Showing
4 changed files
with
45 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
syntax = "proto3"; | ||
package xmtp.device_sync.consent_backup; | ||
|
||
// Proto representation of a consent record save | ||
message ConsentSave { | ||
ConsentTypeSave entity_type = 1; | ||
ConsentStateSave state = 2; | ||
string entity = 3; | ||
} | ||
|
||
// Consent record type | ||
enum ConsentTypeSave { | ||
CONSENT_TYPE_SAVE_CONVERSATION_ID = 0; | ||
CONSENT_TYPE_SAVE_INBOX_ID = 1; | ||
CONSENT_TYPE_SAVE_ADDRESS = 2; | ||
CONSENT_TYPE_SAVE_UNSPECIFIED = 0; | ||
CONSENT_TYPE_SAVE_CONVERSATION_ID = 1; | ||
CONSENT_TYPE_SAVE_INBOX_ID = 2; | ||
CONSENT_TYPE_SAVE_ADDRESS = 3; | ||
} | ||
|
||
// Consent record state | ||
enum ConsentStateSave { | ||
CONSENT_STATE_SAVE_UNKNOWN = 0; | ||
CONSENT_STATE_SAVE_ALLOWED = 1; | ||
CONSENT_STATE_SAVE_DENIED = 2; | ||
CONSENt_STATE_SAVE_UNSPECIFIED = 0; | ||
CONSENT_STATE_SAVE_UNKNOWN = 1; | ||
CONSENT_STATE_SAVE_ALLOWED = 2; | ||
CONSENT_STATE_SAVE_DENIED = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters