2021-10-15 19:38:22 +00:00
|
|
|
package constants
|
|
|
|
|
|
|
|
// Name refers to a Profile Name
|
|
|
|
const Name = "name"
|
|
|
|
|
2021-11-11 00:41:43 +00:00
|
|
|
// Onion refers the Onion address of the profile
|
|
|
|
const Onion = "onion"
|
|
|
|
|
2021-10-15 19:38:22 +00:00
|
|
|
// Tag describes the type of a profile e.g. default password / encrypted etc.
|
|
|
|
const Tag = "tag"
|
|
|
|
|
|
|
|
// ProfileTypeV1DefaultPassword is a tag describing a profile protected with the default password.
|
|
|
|
const ProfileTypeV1DefaultPassword = "v1-defaultPassword"
|
|
|
|
|
|
|
|
// ProfileTypeV1Password is a tag describing a profile encrypted derived from a user-provided password.
|
|
|
|
const ProfileTypeV1Password = "v1-userPassword"
|
2021-11-11 00:41:43 +00:00
|
|
|
|
|
|
|
// GroupID is the ID of a group
|
|
|
|
const GroupID = "groupid"
|
|
|
|
|
|
|
|
// GroupServer identifies the Server the legacy group is hosted on
|
|
|
|
const GroupServer = "groupserver"
|
|
|
|
|
|
|
|
// GroupKey is the name of the group key attribute...
|
|
|
|
const GroupKey = "groupkey"
|
2021-11-16 23:06:30 +00:00
|
|
|
|
|
|
|
// True - true
|
|
|
|
const True = "true"
|
|
|
|
|
|
|
|
// False - false
|
|
|
|
const False = "false"
|
|
|
|
|
2021-11-18 23:43:58 +00:00
|
|
|
// AttrAuthor - conversation attribute for author of the message - referenced by pub key rather than conversation id because of groups.
|
|
|
|
const AttrAuthor = "author"
|
|
|
|
|
2021-11-16 23:06:30 +00:00
|
|
|
// AttrAck - conversation attribute for acknowledgement status
|
|
|
|
const AttrAck = "ack"
|
|
|
|
|
|
|
|
// AttrErr - conversation attribute for errored status
|
|
|
|
const AttrErr = "error"
|
2021-11-17 22:34:13 +00:00
|
|
|
|
|
|
|
// AttrSentTimestamp - conversation attribute for the time the message was (nominally) sent
|
|
|
|
const AttrSentTimestamp = "sent"
|
2021-11-17 23:34:14 +00:00
|
|
|
|
|
|
|
// Legacy MessageFlags
|
|
|
|
|
|
|
|
// AttrRejected - conversation attribute for storing rejected prompts (for invites)
|
|
|
|
const AttrRejected = "rejected-invite"
|
|
|
|
|
|
|
|
// AttrDownloaded - conversation attribute for storing downloaded prompts (for file downloads)
|
|
|
|
const AttrDownloaded = "file-downloaded"
|
2022-02-03 22:39:52 +00:00
|
|
|
|
|
|
|
const CustomProfileImageKey = "custom-profile-image"
|
2022-03-03 23:58:41 +00:00
|
|
|
|
|
|
|
const SyncPreLastMessageTime = "SyncPreLastMessageTime"
|
|
|
|
const SyncMostRecentMessageTime = "SyncMostRecentMessageTime"
|
2022-12-03 00:23:11 +00:00
|
|
|
|
|
|
|
const AttrLastConnectionTime = "last-connection-time"
|
2023-02-21 23:55:14 +00:00
|
|
|
const PeerAutostart = "autostart"
|
2023-09-13 17:01:00 +00:00
|
|
|
const PeerAppearOffline = "appear-offline"
|
2023-02-21 23:55:14 +00:00
|
|
|
const Archived = "archived"
|
2023-04-03 19:44:28 +00:00
|
|
|
|
|
|
|
const ProfileStatus = "profile-status"
|
|
|
|
const ProfileAttribute1 = "profile-attribute-1"
|
|
|
|
const ProfileAttribute2 = "profile-attribute-2"
|
|
|
|
const ProfileAttribute3 = "profile-attribute-3"
|
2023-07-25 18:12:39 +00:00
|
|
|
|
|
|
|
// Description is used on server contacts,
|
|
|
|
const Description = "description"
|
2024-01-02 21:08:59 +00:00
|
|
|
|
|
|
|
// Used to store the status of acl migrations
|
|
|
|
const ACLVersion = "acl-version"
|
|
|
|
const ACLVersionOne = "acl-v1"
|
2024-02-24 19:57:46 +00:00
|
|
|
const ACLVersionTwo = "acl-v2"
|