2019-12-03 17:57:21 -04:00
|
|
|
/**
|
|
|
|
* Copyright (C) 2014-2016 Open Whisper Systems
|
|
|
|
*
|
|
|
|
* Licensed according to the LICENSE file in this repository.
|
|
|
|
*/
|
|
|
|
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package signal;
|
|
|
|
|
2020-04-06 15:53:01 -03:00
|
|
|
option java_package = "org.thoughtcrime.securesms.database.model.databaseprotos";
|
|
|
|
option java_multiple_files = true;
|
2019-12-03 17:57:21 -04:00
|
|
|
|
2021-11-11 13:12:51 -05:00
|
|
|
// DEPRECATED -- only here for database migrations
|
2019-12-03 17:57:21 -04:00
|
|
|
message ReactionList {
|
2021-11-11 13:12:51 -05:00
|
|
|
option deprecated = true;
|
|
|
|
|
2019-12-03 17:57:21 -04:00
|
|
|
message Reaction {
|
|
|
|
string emoji = 1;
|
|
|
|
uint64 author = 2;
|
|
|
|
uint64 sentTime = 3;
|
|
|
|
uint64 receivedTime = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
repeated Reaction reactions = 1;
|
|
|
|
}
|
2020-04-09 18:02:13 -03:00
|
|
|
|
2021-09-20 17:05:31 -03:00
|
|
|
message BadgeList {
|
|
|
|
message Badge {
|
2021-09-28 16:55:07 -03:00
|
|
|
string id = 1;
|
|
|
|
string category = 2;
|
|
|
|
string name = 3;
|
|
|
|
string description = 4;
|
|
|
|
string imageUrl = 5;
|
|
|
|
uint64 expiration = 6;
|
|
|
|
bool visible = 7;
|
|
|
|
string imageDensity = 8;
|
2021-09-20 17:05:31 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
repeated Badge badges = 1;
|
|
|
|
}
|
|
|
|
|
2020-04-09 18:02:13 -03:00
|
|
|
import "SignalService.proto";
|
|
|
|
import "DecryptedGroups.proto";
|
|
|
|
|
|
|
|
message DecryptedGroupV2Context {
|
2020-10-06 11:21:56 -03:00
|
|
|
signalservice.GroupContextV2 context = 1;
|
|
|
|
DecryptedGroupChange change = 2;
|
|
|
|
DecryptedGroup groupState = 3;
|
|
|
|
DecryptedGroup previousGroupState = 4;
|
2020-04-09 18:02:13 -03:00
|
|
|
}
|
2020-05-05 12:13:53 -03:00
|
|
|
|
|
|
|
message TemporalAuthCredentialResponse {
|
2022-07-11 15:20:00 -04:00
|
|
|
int64 date = 1;
|
2020-05-05 12:13:53 -03:00
|
|
|
bytes authCredentialResponse = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message TemporalAuthCredentialResponses {
|
|
|
|
repeated TemporalAuthCredentialResponse credentialResponse = 1;
|
|
|
|
}
|
2020-06-01 18:10:10 -03:00
|
|
|
|
|
|
|
message AudioWaveFormData {
|
|
|
|
int64 durationUs = 1;
|
|
|
|
bytes waveForm = 2;
|
|
|
|
}
|
2020-07-15 16:15:15 -04:00
|
|
|
|
|
|
|
message ProfileChangeDetails {
|
|
|
|
message StringChange {
|
|
|
|
string previous = 1;
|
2023-09-18 15:32:43 -04:00
|
|
|
string newValue = 2;
|
2020-07-15 16:15:15 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
StringChange profileNameChange = 1;
|
|
|
|
}
|
2020-08-05 16:45:52 -04:00
|
|
|
|
|
|
|
message BodyRangeList {
|
|
|
|
message BodyRange {
|
2022-01-31 12:46:44 -05:00
|
|
|
enum Style {
|
2023-01-25 10:31:36 -05:00
|
|
|
BOLD = 0;
|
|
|
|
ITALIC = 1;
|
|
|
|
SPOILER = 2;
|
|
|
|
STRIKETHROUGH = 3;
|
|
|
|
MONOSPACE = 4;
|
2022-01-31 12:46:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message Button {
|
|
|
|
string label = 1;
|
|
|
|
string action = 2;
|
|
|
|
}
|
|
|
|
|
2020-08-05 16:45:52 -04:00
|
|
|
int32 start = 1;
|
|
|
|
int32 length = 2;
|
|
|
|
|
|
|
|
oneof associatedValue {
|
|
|
|
string mentionUuid = 3;
|
2022-01-31 12:46:44 -05:00
|
|
|
Style style = 4;
|
|
|
|
string link = 5;
|
|
|
|
Button button = 6;
|
2020-08-05 16:45:52 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
repeated BodyRange ranges = 1;
|
|
|
|
}
|
2020-11-20 15:42:46 -05:00
|
|
|
|
2021-04-06 13:03:33 -03:00
|
|
|
message CryptoValue {
|
|
|
|
oneof Value {
|
|
|
|
MobileCoinValue mobileCoinValue = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message MobileCoinValue {
|
|
|
|
string picoMobileCoin = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-20 15:42:46 -05:00
|
|
|
message GroupCallUpdateDetails {
|
|
|
|
string eraId = 1;
|
|
|
|
string startedCallUuid = 2;
|
|
|
|
int64 startedCallTimestamp = 3;
|
|
|
|
repeated string inCallUuids = 4;
|
2020-12-02 13:20:38 -05:00
|
|
|
bool isCallFull = 5;
|
2020-11-20 15:42:46 -05:00
|
|
|
}
|
2021-01-05 17:42:27 -04:00
|
|
|
|
2022-07-11 15:20:00 -04:00
|
|
|
message ExpiringProfileKeyCredentialColumnData {
|
2021-01-05 17:42:27 -04:00
|
|
|
bytes profileKey = 1;
|
2022-07-11 15:20:00 -04:00
|
|
|
bytes expiringProfileKeyCredential = 2;
|
2021-01-05 17:42:27 -04:00
|
|
|
}
|
2021-01-16 14:17:32 -05:00
|
|
|
|
|
|
|
message DeviceLastResetTime {
|
|
|
|
message Pair {
|
|
|
|
int32 deviceId = 1;
|
|
|
|
int64 lastResetTime = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
repeated Pair resetTime = 1;
|
2021-01-20 09:03:21 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message Wallpaper {
|
|
|
|
message SingleColor {
|
|
|
|
int32 color = 1;
|
|
|
|
}
|
2021-01-19 21:54:10 -05:00
|
|
|
|
2021-01-20 09:03:21 -05:00
|
|
|
message LinearGradient {
|
|
|
|
float rotation = 1;
|
|
|
|
repeated int32 colors = 2;
|
|
|
|
repeated float positions = 3;
|
|
|
|
}
|
2021-01-19 21:54:10 -05:00
|
|
|
|
2021-01-20 09:03:21 -05:00
|
|
|
message File {
|
|
|
|
string uri = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
oneof wallpaper {
|
|
|
|
SingleColor singleColor = 1;
|
|
|
|
LinearGradient linearGradient = 2;
|
|
|
|
File file = 3;
|
|
|
|
}
|
|
|
|
|
2021-01-19 21:54:10 -05:00
|
|
|
float dimLevelInDarkTheme = 4;
|
2021-04-23 14:42:51 -04:00
|
|
|
}
|
|
|
|
|
2021-05-03 11:34:41 -03:00
|
|
|
message ChatColor {
|
|
|
|
message SingleColor {
|
|
|
|
int32 color = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message LinearGradient {
|
|
|
|
float rotation = 1;
|
|
|
|
repeated int32 colors = 2;
|
|
|
|
repeated float positions = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message File {
|
|
|
|
string uri = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
oneof chatColor {
|
|
|
|
SingleColor singleColor = 1;
|
|
|
|
LinearGradient linearGradient = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-23 14:42:51 -04:00
|
|
|
message RecipientExtras {
|
2022-04-21 17:29:02 -03:00
|
|
|
bool manuallyShownAvatar = 1;
|
|
|
|
bool hideStory = 2;
|
|
|
|
int64 lastStoryView = 3;
|
2021-07-20 13:08:52 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
message CustomAvatar {
|
|
|
|
|
|
|
|
message Text {
|
|
|
|
string text = 1;
|
|
|
|
string colors = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Vector {
|
|
|
|
string key = 1;
|
|
|
|
string colors = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Photo {
|
|
|
|
string uri = 1;
|
|
|
|
int64 size = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
oneof avatar {
|
|
|
|
Text text = 1;
|
|
|
|
Vector vector = 2;
|
|
|
|
Photo photo = 3;
|
|
|
|
}
|
2022-03-09 13:11:56 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message StoryTextPost {
|
|
|
|
enum Style {
|
|
|
|
DEFAULT = 0;
|
|
|
|
REGULAR = 1;
|
|
|
|
BOLD = 2;
|
|
|
|
SERIF = 3;
|
|
|
|
SCRIPT = 4;
|
|
|
|
CONDENSED = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
string body = 1;
|
|
|
|
Style style = 2;
|
|
|
|
int32 textForegroundColor = 3;
|
|
|
|
int32 textBackgroundColor = 4;
|
|
|
|
ChatColor background = 5;
|
2022-05-02 14:29:42 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
message GiftBadge {
|
|
|
|
enum RedemptionState {
|
|
|
|
PENDING = 0;
|
|
|
|
STARTED = 1;
|
|
|
|
REDEEMED = 2;
|
|
|
|
FAILED = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
bytes redemptionToken = 1;
|
|
|
|
RedemptionState redemptionState = 2;
|
2022-06-14 12:50:53 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
message SignalStoreList {
|
|
|
|
repeated string contents = 1;
|
2022-08-03 11:50:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message PendingChangeNumberMetadata {
|
|
|
|
bytes previousPni = 1;
|
|
|
|
bytes pniIdentityKeyPair = 2;
|
|
|
|
int32 pniRegistrationId = 3;
|
|
|
|
int32 pniSignedPreKeyId = 4;
|
|
|
|
}
|
2022-08-30 15:22:40 -03:00
|
|
|
|
|
|
|
message MessageExportState {
|
|
|
|
|
|
|
|
enum Progress {
|
|
|
|
INIT = 0;
|
|
|
|
STARTED = 1;
|
|
|
|
COMPLETED = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
int64 messageId = 1;
|
|
|
|
repeated string startedRecipients = 2;
|
|
|
|
repeated string completedRecipients = 3;
|
|
|
|
repeated string startedAttachments = 4;
|
|
|
|
repeated string completedAttachments = 5;
|
|
|
|
Progress progress = 6;
|
2022-09-21 09:02:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message ThreadMergeEvent {
|
|
|
|
string previousE164 = 1;
|
2023-01-24 20:49:59 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message SessionSwitchoverEvent {
|
|
|
|
string e164 = 1;
|
|
|
|
}
|
2023-10-11 10:18:15 -04:00
|
|
|
|
2023-10-16 12:58:20 -04:00
|
|
|
message DecimalValue {
|
|
|
|
uint32 scale = 1;
|
|
|
|
uint32 precision = 2;
|
|
|
|
bytes value = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FiatValue {
|
|
|
|
string currencyCode = 1;
|
|
|
|
DecimalValue amount = 2;
|
|
|
|
uint64 timestamp = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PendingOneTimeDonation {
|
|
|
|
enum PaymentMethodType {
|
|
|
|
CARD = 0;
|
|
|
|
SEPA_DEBIT = 1;
|
|
|
|
PAYPAL = 2;
|
2023-10-18 14:30:09 -04:00
|
|
|
IDEAL = 3;
|
2023-10-16 12:58:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
PaymentMethodType paymentMethodType = 1;
|
|
|
|
FiatValue amount = 2;
|
|
|
|
BadgeList.Badge badge = 3;
|
|
|
|
int64 timestamp = 4;
|
|
|
|
}
|
|
|
|
|
2023-10-11 10:18:15 -04:00
|
|
|
message DonationCompletedQueue {
|
|
|
|
message DonationCompleted {
|
|
|
|
int64 level = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
repeated DonationCompleted donationsCompleted = 1;
|
|
|
|
}
|