updated protobuf

This commit is contained in:
otsmr 2026-04-19 23:10:58 +02:00
parent 1629b8b1a9
commit 6517473603
24 changed files with 904 additions and 739 deletions

View file

@ -230,12 +230,12 @@ struct PushKey: Sendable {
// MARK: - Code below here is support for the SwiftProtobuf runtime. // MARK: - Code below here is support for the SwiftProtobuf runtime.
extension PushKind: SwiftProtobuf._ProtoNameProviding { extension PushKind: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0reaction\0\u{1}response\0\u{1}text\0\u{1}video\0\u{1}twonly\0\u{1}image\0\u{1}contactRequest\0\u{1}acceptRequest\0\u{1}storedMediaFile\0\u{1}testNotification\0\u{1}reopenedMedia\0\u{1}reactionToVideo\0\u{1}reactionToText\0\u{1}reactionToImage\0\u{1}reactionToAudio\0\u{1}addedToGroup\0\u{1}audio\0") static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0REACTION\0\u{1}RESPONSE\0\u{1}TEXT\0\u{1}VIDEO\0\u{1}TWONLY\0\u{1}IMAGE\0\u{1}CONTACT_REQUEST\0\u{1}ACCEPT_REQUEST\0\u{1}STORED_MEDIA_FILE\0\u{1}TEST_NOTIFICATION\0\u{1}REOPENED_MEDIA\0\u{1}REACTION_TO_VIDEO\0\u{1}REACTION_TO_TEXT\0\u{1}REACTION_TO_IMAGE\0\u{1}REACTION_TO_AUDIO\0\u{1}ADDED_TO_GROUP\0\u{1}AUDIO\0")
} }
extension EncryptedPushNotification: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { extension EncryptedPushNotification: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = "EncryptedPushNotification" static let protoMessageName: String = "EncryptedPushNotification"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}keyId\0\u{1}nonce\0\u{1}ciphertext\0\u{1}mac\0") static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}key_id\0\u{1}nonce\0\u{1}ciphertext\0\u{1}mac\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() { while let fieldNumber = try decoder.nextFieldNumber() {
@ -280,7 +280,7 @@ extension EncryptedPushNotification: SwiftProtobuf.Message, SwiftProtobuf._Messa
extension PushNotification: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { extension PushNotification: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = "PushNotification" static let protoMessageName: String = "PushNotification"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}kind\0\u{1}messageId\0\u{1}additionalContent\0") static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}kind\0\u{3}message_id\0\u{3}additional_content\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() { while let fieldNumber = try decoder.nextFieldNumber() {
@ -354,7 +354,7 @@ extension PushUsers: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementation
extension PushUser: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { extension PushUser: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = "PushUser" static let protoMessageName: String = "PushUser"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}userId\0\u{1}displayName\0\u{1}blocked\0\u{1}lastMessageId\0\u{1}pushKeys\0") static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}user_id\0\u{3}display_name\0\u{1}blocked\0\u{3}last_message_id\0\u{3}push_keys\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() { while let fieldNumber = try decoder.nextFieldNumber() {
@ -408,7 +408,7 @@ extension PushUser: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationB
extension PushKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding { extension PushKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = "PushKey" static let protoMessageName: String = "PushKey"
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}key\0\u{1}createdAtUnixTimestamp\0") static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}key\0\u{3}created_at_unix_timestamp\0")
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws { mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() { while let fieldNumber = try decoder.nextFieldNumber() {

View file

@ -308,31 +308,6 @@ PODS:
- sqflite_darwin (0.0.4): - sqflite_darwin (0.0.4):
- Flutter - Flutter
- FlutterMacOS - FlutterMacOS
- sqlite3 (3.52.0):
- sqlite3/common (= 3.52.0)
- sqlite3/common (3.52.0)
- sqlite3/dbstatvtab (3.52.0):
- sqlite3/common
- sqlite3/fts5 (3.52.0):
- sqlite3/common
- sqlite3/math (3.52.0):
- sqlite3/common
- sqlite3/perf-threadsafe (3.52.0):
- sqlite3/common
- sqlite3/rtree (3.52.0):
- sqlite3/common
- sqlite3/session (3.52.0):
- sqlite3/common
- sqlite3_flutter_libs (0.0.1):
- Flutter
- FlutterMacOS
- sqlite3 (~> 3.52.0)
- sqlite3/dbstatvtab
- sqlite3/fts5
- sqlite3/math
- sqlite3/perf-threadsafe
- sqlite3/rtree
- sqlite3/session
- SwiftProtobuf (1.36.1) - SwiftProtobuf (1.36.1)
- SwiftyGif (5.4.5) - SwiftyGif (5.4.5)
- url_launcher_ios (0.0.1): - url_launcher_ios (0.0.1):
@ -386,7 +361,6 @@ DEPENDENCIES:
- share_plus (from `.symlinks/plugins/share_plus/ios`) - share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`) - sqflite_darwin (from `.symlinks/plugins/sqflite_darwin/darwin`)
- sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/darwin`)
- SwiftProtobuf - SwiftProtobuf
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`) - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
- video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`) - video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
@ -421,7 +395,6 @@ SPEC REPOS:
- SDWebImage - SDWebImage
- SDWebImageWebPCoder - SDWebImageWebPCoder
- Sentry - Sentry
- sqlite3
- SwiftProtobuf - SwiftProtobuf
- SwiftyGif - SwiftyGif
@ -500,8 +473,6 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin" :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite_darwin: sqflite_darwin:
:path: ".symlinks/plugins/sqflite_darwin/darwin" :path: ".symlinks/plugins/sqflite_darwin/darwin"
sqlite3_flutter_libs:
:path: ".symlinks/plugins/sqlite3_flutter_libs/darwin"
url_launcher_ios: url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios" :path: ".symlinks/plugins/url_launcher_ios/ios"
video_player_avfoundation: video_player_avfoundation:
@ -574,8 +545,6 @@ SPEC CHECKSUMS:
share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a share_plus: 50da8cb520a8f0f65671c6c6a99b3617ed10a58a
shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb
sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0 sqflite_darwin: 20b2a3a3b70e43edae938624ce550a3cbf66a3d0
sqlite3: a51c07cf16e023d6c48abd5e5791a61a47354921
sqlite3_flutter_libs: b3e120efe9a82017e5552a620f696589ed4f62ab
SwiftProtobuf: 9e106a71456f4d3f6a3b0c8fd87ef0be085efc38 SwiftProtobuf: 9e106a71456f4d3f6a3b0c8fd87ef0be085efc38
SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4 SwiftyGif: 706c60cf65fa2bc5ee0313beece843c8eb8194d4
url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b url_launcher_ios: 7a95fa5b60cc718a708b8f2966718e93db0cef1b

View file

@ -1,12 +1,12 @@
syntax = "proto3"; syntax = "proto3";
message TwonlySafeBackupContent { message TwonlySafeBackupContent {
string secureStorageJson = 1; string secure_storage_json = 1;
bytes twonlyDatabase = 2; bytes twonly_database = 2;
} }
message TwonlySafeBackupEncrypted { message TwonlySafeBackupEncrypted {
bytes mac = 1; bytes mac = 1;
bytes nonce = 2; bytes nonce = 2;
bytes cipherText = 3; bytes cipher_text = 3;
} }

View file

@ -39,11 +39,9 @@ class TwonlySafeBackupContent extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'TwonlySafeBackupContent', _omitMessageNames ? '' : 'TwonlySafeBackupContent',
createEmptyInstance: create) createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'secureStorageJson', ..aOS(1, _omitFieldNames ? '' : 'secureStorageJson')
protoName: 'secureStorageJson')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'twonlyDatabase', $pb.PbFieldType.OY, 2, _omitFieldNames ? '' : 'twonlyDatabase', $pb.PbFieldType.OY)
protoName: 'twonlyDatabase')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -118,8 +116,7 @@ class TwonlySafeBackupEncrypted extends $pb.GeneratedMessage {
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) 2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
3, _omitFieldNames ? '' : 'cipherText', $pb.PbFieldType.OY, 3, _omitFieldNames ? '' : 'cipherText', $pb.PbFieldType.OY)
protoName: 'cipherText')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')

View file

@ -19,20 +19,21 @@ const TwonlySafeBackupContent$json = {
'1': 'TwonlySafeBackupContent', '1': 'TwonlySafeBackupContent',
'2': [ '2': [
{ {
'1': 'secureStorageJson', '1': 'secure_storage_json',
'3': 1, '3': 1,
'4': 1, '4': 1,
'5': 9, '5': 9,
'10': 'secureStorageJson' '10': 'secureStorageJson'
}, },
{'1': 'twonlyDatabase', '3': 2, '4': 1, '5': 12, '10': 'twonlyDatabase'}, {'1': 'twonly_database', '3': 2, '4': 1, '5': 12, '10': 'twonlyDatabase'},
], ],
}; };
/// Descriptor for `TwonlySafeBackupContent`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `TwonlySafeBackupContent`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List twonlySafeBackupContentDescriptor = $convert.base64Decode( final $typed_data.Uint8List twonlySafeBackupContentDescriptor = $convert.base64Decode(
'ChdUd29ubHlTYWZlQmFja3VwQ29udGVudBIsChFzZWN1cmVTdG9yYWdlSnNvbhgBIAEoCVIRc2' 'ChdUd29ubHlTYWZlQmFja3VwQ29udGVudBIuChNzZWN1cmVfc3RvcmFnZV9qc29uGAEgASgJUh'
'VjdXJlU3RvcmFnZUpzb24SJgoOdHdvbmx5RGF0YWJhc2UYAiABKAxSDnR3b25seURhdGFiYXNl'); 'FzZWN1cmVTdG9yYWdlSnNvbhInCg90d29ubHlfZGF0YWJhc2UYAiABKAxSDnR3b25seURhdGFi'
'YXNl');
@$core.Deprecated('Use twonlySafeBackupEncryptedDescriptor instead') @$core.Deprecated('Use twonlySafeBackupEncryptedDescriptor instead')
const TwonlySafeBackupEncrypted$json = { const TwonlySafeBackupEncrypted$json = {
@ -40,7 +41,7 @@ const TwonlySafeBackupEncrypted$json = {
'2': [ '2': [
{'1': 'mac', '3': 1, '4': 1, '5': 12, '10': 'mac'}, {'1': 'mac', '3': 1, '4': 1, '5': 12, '10': 'mac'},
{'1': 'nonce', '3': 2, '4': 1, '5': 12, '10': 'nonce'}, {'1': 'nonce', '3': 2, '4': 1, '5': 12, '10': 'nonce'},
{'1': 'cipherText', '3': 3, '4': 1, '5': 12, '10': 'cipherText'}, {'1': 'cipher_text', '3': 3, '4': 1, '5': 12, '10': 'cipherText'},
], ],
}; };
@ -48,4 +49,4 @@ const TwonlySafeBackupEncrypted$json = {
final $typed_data.Uint8List twonlySafeBackupEncryptedDescriptor = final $typed_data.Uint8List twonlySafeBackupEncryptedDescriptor =
$convert.base64Decode( $convert.base64Decode(
'ChlUd29ubHlTYWZlQmFja3VwRW5jcnlwdGVkEhAKA21hYxgBIAEoDFIDbWFjEhQKBW5vbmNlGA' 'ChlUd29ubHlTYWZlQmFja3VwRW5jcnlwdGVkEhAKA21hYxgBIAEoDFIDbWFjEhQKBW5vbmNlGA'
'IgASgMUgVub25jZRIeCgpjaXBoZXJUZXh0GAMgASgMUgpjaXBoZXJUZXh0'); 'IgASgMUgVub25jZRIfCgtjaXBoZXJfdGV4dBgDIAEoDFIKY2lwaGVyVGV4dA==');

View file

@ -53,13 +53,10 @@ class EncryptedGroupState extends $pb.GeneratedMessage {
_omitMessageNames ? '' : 'EncryptedGroupState', _omitMessageNames ? '' : 'EncryptedGroupState',
createEmptyInstance: create) createEmptyInstance: create)
..p<$fixnum.Int64>( ..p<$fixnum.Int64>(
1, _omitFieldNames ? '' : 'memberIds', $pb.PbFieldType.K6, 1, _omitFieldNames ? '' : 'memberIds', $pb.PbFieldType.K6)
protoName: 'memberIds') ..p<$fixnum.Int64>(2, _omitFieldNames ? '' : 'adminIds', $pb.PbFieldType.K6)
..p<$fixnum.Int64>(2, _omitFieldNames ? '' : 'adminIds', $pb.PbFieldType.K6, ..aOS(3, _omitFieldNames ? '' : 'groupName')
protoName: 'adminIds') ..aInt64(4, _omitFieldNames ? '' : 'deleteMessagesAfterMilliseconds')
..aOS(3, _omitFieldNames ? '' : 'groupName', protoName: 'groupName')
..aInt64(4, _omitFieldNames ? '' : 'deleteMessagesAfterMilliseconds',
protoName: 'deleteMessagesAfterMilliseconds')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
5, _omitFieldNames ? '' : 'padding', $pb.PbFieldType.OY) 5, _omitFieldNames ? '' : 'padding', $pb.PbFieldType.OY)
..hasRequiredFields = false; ..hasRequiredFields = false;
@ -212,8 +209,7 @@ class EncryptedGroupStateEnvelop extends $pb.GeneratedMessage {
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) 1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY, 2, _omitFieldNames ? '' : 'encryptedGroupState', $pb.PbFieldType.OY)
protoName: 'encryptedGroupState')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
3, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY) 3, _omitFieldNames ? '' : 'mac', $pb.PbFieldType.OY)
..hasRequiredFields = false; ..hasRequiredFields = false;

View file

@ -18,11 +18,11 @@ import 'dart:typed_data' as $typed_data;
const EncryptedGroupState$json = { const EncryptedGroupState$json = {
'1': 'EncryptedGroupState', '1': 'EncryptedGroupState',
'2': [ '2': [
{'1': 'memberIds', '3': 1, '4': 3, '5': 3, '10': 'memberIds'}, {'1': 'member_ids', '3': 1, '4': 3, '5': 3, '10': 'memberIds'},
{'1': 'adminIds', '3': 2, '4': 3, '5': 3, '10': 'adminIds'}, {'1': 'admin_ids', '3': 2, '4': 3, '5': 3, '10': 'adminIds'},
{'1': 'groupName', '3': 3, '4': 1, '5': 9, '10': 'groupName'}, {'1': 'group_name', '3': 3, '4': 1, '5': 9, '10': 'groupName'},
{ {
'1': 'deleteMessagesAfterMilliseconds', '1': 'delete_messages_after_milliseconds',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -33,17 +33,17 @@ const EncryptedGroupState$json = {
{'1': 'padding', '3': 5, '4': 1, '5': 12, '10': 'padding'}, {'1': 'padding', '3': 5, '4': 1, '5': 12, '10': 'padding'},
], ],
'8': [ '8': [
{'1': '_deleteMessagesAfterMilliseconds'}, {'1': '_delete_messages_after_milliseconds'},
], ],
}; };
/// Descriptor for `EncryptedGroupState`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `EncryptedGroupState`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List encryptedGroupStateDescriptor = $convert.base64Decode( final $typed_data.Uint8List encryptedGroupStateDescriptor = $convert.base64Decode(
'ChNFbmNyeXB0ZWRHcm91cFN0YXRlEhwKCW1lbWJlcklkcxgBIAMoA1IJbWVtYmVySWRzEhoKCG' 'ChNFbmNyeXB0ZWRHcm91cFN0YXRlEh0KCm1lbWJlcl9pZHMYASADKANSCW1lbWJlcklkcxIbCg'
'FkbWluSWRzGAIgAygDUghhZG1pbklkcxIcCglncm91cE5hbWUYAyABKAlSCWdyb3VwTmFtZRJN' 'lhZG1pbl9pZHMYAiADKANSCGFkbWluSWRzEh0KCmdyb3VwX25hbWUYAyABKAlSCWdyb3VwTmFt'
'Ch9kZWxldGVNZXNzYWdlc0FmdGVyTWlsbGlzZWNvbmRzGAQgASgDSABSH2RlbGV0ZU1lc3NhZ2' 'ZRJQCiJkZWxldGVfbWVzc2FnZXNfYWZ0ZXJfbWlsbGlzZWNvbmRzGAQgASgDSABSH2RlbGV0ZU'
'VzQWZ0ZXJNaWxsaXNlY29uZHOIAQESGAoHcGFkZGluZxgFIAEoDFIHcGFkZGluZ0IiCiBfZGVs' '1lc3NhZ2VzQWZ0ZXJNaWxsaXNlY29uZHOIAQESGAoHcGFkZGluZxgFIAEoDFIHcGFkZGluZ0Il'
'ZXRlTWVzc2FnZXNBZnRlck1pbGxpc2Vjb25kcw=='); 'CiNfZGVsZXRlX21lc3NhZ2VzX2FmdGVyX21pbGxpc2Vjb25kcw==');
@$core.Deprecated('Use encryptedAppendedGroupStateDescriptor instead') @$core.Deprecated('Use encryptedAppendedGroupStateDescriptor instead')
const EncryptedAppendedGroupState$json = { const EncryptedAppendedGroupState$json = {
@ -81,7 +81,7 @@ const EncryptedGroupStateEnvelop$json = {
'2': [ '2': [
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'}, {'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
{ {
'1': 'encryptedGroupState', '1': 'encrypted_group_state',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -94,6 +94,6 @@ const EncryptedGroupStateEnvelop$json = {
/// Descriptor for `EncryptedGroupStateEnvelop`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `EncryptedGroupStateEnvelop`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List encryptedGroupStateEnvelopDescriptor = final $typed_data.Uint8List encryptedGroupStateEnvelopDescriptor =
$convert.base64Decode( $convert.base64Decode(
'ChpFbmNyeXB0ZWRHcm91cFN0YXRlRW52ZWxvcBIUCgVub25jZRgBIAEoDFIFbm9uY2USMAoTZW' 'ChpFbmNyeXB0ZWRHcm91cFN0YXRlRW52ZWxvcBIUCgVub25jZRgBIAEoDFIFbm9uY2USMgoVZW'
'5jcnlwdGVkR3JvdXBTdGF0ZRgCIAEoDFITZW5jcnlwdGVkR3JvdXBTdGF0ZRIQCgNtYWMYAyAB' '5jcnlwdGVkX2dyb3VwX3N0YXRlGAIgASgMUhNlbmNyeXB0ZWRHcm91cFN0YXRlEhAKA21hYxgD'
'KAxSA21hYw=='); 'IAEoDFIDbWFj');

View file

@ -52,12 +52,11 @@ class Message extends $pb.GeneratedMessage {
defaultOrMaker: Message_Type.SENDER_DELIVERY_RECEIPT, defaultOrMaker: Message_Type.SENDER_DELIVERY_RECEIPT,
valueOf: Message_Type.valueOf, valueOf: Message_Type.valueOf,
enumValues: Message_Type.values) enumValues: Message_Type.values)
..aOS(2, _omitFieldNames ? '' : 'receiptId', protoName: 'receiptId') ..aOS(2, _omitFieldNames ? '' : 'receiptId')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
3, _omitFieldNames ? '' : 'encryptedContent', $pb.PbFieldType.OY, 3, _omitFieldNames ? '' : 'encryptedContent', $pb.PbFieldType.OY)
protoName: 'encryptedContent')
..aOM<PlaintextContent>(4, _omitFieldNames ? '' : 'plaintextContent', ..aOM<PlaintextContent>(4, _omitFieldNames ? '' : 'plaintextContent',
protoName: 'plaintextContent', subBuilder: PlaintextContent.create) subBuilder: PlaintextContent.create)
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -255,11 +254,9 @@ class PlaintextContent extends $pb.GeneratedMessage {
createEmptyInstance: create) createEmptyInstance: create)
..aOM<PlaintextContent_DecryptionErrorMessage>( ..aOM<PlaintextContent_DecryptionErrorMessage>(
1, _omitFieldNames ? '' : 'decryptionErrorMessage', 1, _omitFieldNames ? '' : 'decryptionErrorMessage',
protoName: 'decryptionErrorMessage',
subBuilder: PlaintextContent_DecryptionErrorMessage.create) subBuilder: PlaintextContent_DecryptionErrorMessage.create)
..aOM<PlaintextContent_RetryErrorMessage>( ..aOM<PlaintextContent_RetryErrorMessage>(
2, _omitFieldNames ? '' : 'retryControlError', 2, _omitFieldNames ? '' : 'retryControlError',
protoName: 'retryControlError',
subBuilder: PlaintextContent_RetryErrorMessage.create) subBuilder: PlaintextContent_RetryErrorMessage.create)
..hasRequiredFields = false; ..hasRequiredFields = false;
@ -411,11 +408,9 @@ class EncryptedContent_GroupCreate extends $pb.GeneratedMessage {
_omitMessageNames ? '' : 'EncryptedContent.GroupCreate', _omitMessageNames ? '' : 'EncryptedContent.GroupCreate',
createEmptyInstance: create) createEmptyInstance: create)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
3, _omitFieldNames ? '' : 'stateKey', $pb.PbFieldType.OY, 3, _omitFieldNames ? '' : 'stateKey', $pb.PbFieldType.OY)
protoName: 'stateKey')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
4, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY, 4, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY)
protoName: 'groupPublicKey')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -485,8 +480,7 @@ class EncryptedContent_GroupJoin extends $pb.GeneratedMessage {
_omitMessageNames ? '' : 'EncryptedContent.GroupJoin', _omitMessageNames ? '' : 'EncryptedContent.GroupJoin',
createEmptyInstance: create) createEmptyInstance: create)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
1, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY, 1, _omitFieldNames ? '' : 'groupPublicKey', $pb.PbFieldType.OY)
protoName: 'groupPublicKey')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -598,13 +592,10 @@ class EncryptedContent_GroupUpdate extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.GroupUpdate', _omitMessageNames ? '' : 'EncryptedContent.GroupUpdate',
createEmptyInstance: create) createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'groupActionType', ..aOS(1, _omitFieldNames ? '' : 'groupActionType')
protoName: 'groupActionType') ..aInt64(2, _omitFieldNames ? '' : 'affectedContactId')
..aInt64(2, _omitFieldNames ? '' : 'affectedContactId', ..aOS(3, _omitFieldNames ? '' : 'newGroupName')
protoName: 'affectedContactId') ..aInt64(4, _omitFieldNames ? '' : 'newDeleteMessagesAfterMilliseconds')
..aOS(3, _omitFieldNames ? '' : 'newGroupName', protoName: 'newGroupName')
..aInt64(4, _omitFieldNames ? '' : 'newDeleteMessagesAfterMilliseconds',
protoName: 'newDeleteMessagesAfterMilliseconds')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -697,12 +688,10 @@ class EncryptedContent_TextMessage extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.TextMessage', _omitMessageNames ? '' : 'EncryptedContent.TextMessage',
createEmptyInstance: create) createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'senderMessageId', ..aOS(1, _omitFieldNames ? '' : 'senderMessageId')
protoName: 'senderMessageId')
..aOS(2, _omitFieldNames ? '' : 'text') ..aOS(2, _omitFieldNames ? '' : 'text')
..aInt64(3, _omitFieldNames ? '' : 'timestamp') ..aInt64(3, _omitFieldNames ? '' : 'timestamp')
..aOS(4, _omitFieldNames ? '' : 'quoteMessageId', ..aOS(4, _omitFieldNames ? '' : 'quoteMessageId')
protoName: 'quoteMessageId')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -892,8 +881,7 @@ class EncryptedContent_Reaction extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.Reaction', _omitMessageNames ? '' : 'EncryptedContent.Reaction',
createEmptyInstance: create) createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'targetMessageId', ..aOS(1, _omitFieldNames ? '' : 'targetMessageId')
protoName: 'targetMessageId')
..aOS(2, _omitFieldNames ? '' : 'emoji') ..aOS(2, _omitFieldNames ? '' : 'emoji')
..aOB(3, _omitFieldNames ? '' : 'remove') ..aOB(3, _omitFieldNames ? '' : 'remove')
..hasRequiredFields = false; ..hasRequiredFields = false;
@ -984,10 +972,8 @@ class EncryptedContent_MessageUpdate extends $pb.GeneratedMessage {
defaultOrMaker: EncryptedContent_MessageUpdate_Type.DELETE, defaultOrMaker: EncryptedContent_MessageUpdate_Type.DELETE,
valueOf: EncryptedContent_MessageUpdate_Type.valueOf, valueOf: EncryptedContent_MessageUpdate_Type.valueOf,
enumValues: EncryptedContent_MessageUpdate_Type.values) enumValues: EncryptedContent_MessageUpdate_Type.values)
..aOS(2, _omitFieldNames ? '' : 'senderMessageId', ..aOS(2, _omitFieldNames ? '' : 'senderMessageId')
protoName: 'senderMessageId') ..pPS(3, _omitFieldNames ? '' : 'multipleTargetMessageIds')
..pPS(3, _omitFieldNames ? '' : 'multipleTargetMessageIds',
protoName: 'multipleTargetMessageIds')
..aOS(4, _omitFieldNames ? '' : 'text') ..aOS(4, _omitFieldNames ? '' : 'text')
..aInt64(5, _omitFieldNames ? '' : 'timestamp') ..aInt64(5, _omitFieldNames ? '' : 'timestamp')
..hasRequiredFields = false; ..hasRequiredFields = false;
@ -1101,32 +1087,24 @@ class EncryptedContent_Media extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.Media', _omitMessageNames ? '' : 'EncryptedContent.Media',
createEmptyInstance: create) createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'senderMessageId', ..aOS(1, _omitFieldNames ? '' : 'senderMessageId')
protoName: 'senderMessageId')
..e<EncryptedContent_Media_Type>( ..e<EncryptedContent_Media_Type>(
2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, 2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE,
defaultOrMaker: EncryptedContent_Media_Type.REUPLOAD, defaultOrMaker: EncryptedContent_Media_Type.REUPLOAD,
valueOf: EncryptedContent_Media_Type.valueOf, valueOf: EncryptedContent_Media_Type.valueOf,
enumValues: EncryptedContent_Media_Type.values) enumValues: EncryptedContent_Media_Type.values)
..aInt64(3, _omitFieldNames ? '' : 'displayLimitInMilliseconds', ..aInt64(3, _omitFieldNames ? '' : 'displayLimitInMilliseconds')
protoName: 'displayLimitInMilliseconds') ..aOB(4, _omitFieldNames ? '' : 'requiresAuthentication')
..aOB(4, _omitFieldNames ? '' : 'requiresAuthentication',
protoName: 'requiresAuthentication')
..aInt64(5, _omitFieldNames ? '' : 'timestamp') ..aInt64(5, _omitFieldNames ? '' : 'timestamp')
..aOS(6, _omitFieldNames ? '' : 'quoteMessageId', ..aOS(6, _omitFieldNames ? '' : 'quoteMessageId')
protoName: 'quoteMessageId')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
7, _omitFieldNames ? '' : 'downloadToken', $pb.PbFieldType.OY, 7, _omitFieldNames ? '' : 'downloadToken', $pb.PbFieldType.OY)
protoName: 'downloadToken')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
8, _omitFieldNames ? '' : 'encryptionKey', $pb.PbFieldType.OY, 8, _omitFieldNames ? '' : 'encryptionKey', $pb.PbFieldType.OY)
protoName: 'encryptionKey')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
9, _omitFieldNames ? '' : 'encryptionMac', $pb.PbFieldType.OY, 9, _omitFieldNames ? '' : 'encryptionMac', $pb.PbFieldType.OY)
protoName: 'encryptionMac')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
10, _omitFieldNames ? '' : 'encryptionNonce', $pb.PbFieldType.OY, 10, _omitFieldNames ? '' : 'encryptionNonce', $pb.PbFieldType.OY)
protoName: 'encryptionNonce')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
11, _omitFieldNames ? '' : 'additionalMessageData', $pb.PbFieldType.OY) 11, _omitFieldNames ? '' : 'additionalMessageData', $pb.PbFieldType.OY)
..hasRequiredFields = false; ..hasRequiredFields = false;
@ -1283,8 +1261,7 @@ class EncryptedContent_MediaUpdate extends $pb.GeneratedMessage {
defaultOrMaker: EncryptedContent_MediaUpdate_Type.REOPENED, defaultOrMaker: EncryptedContent_MediaUpdate_Type.REOPENED,
valueOf: EncryptedContent_MediaUpdate_Type.valueOf, valueOf: EncryptedContent_MediaUpdate_Type.valueOf,
enumValues: EncryptedContent_MediaUpdate_Type.values) enumValues: EncryptedContent_MediaUpdate_Type.values)
..aOS(2, _omitFieldNames ? '' : 'targetMessageId', ..aOS(2, _omitFieldNames ? '' : 'targetMessageId')
protoName: 'targetMessageId')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -1429,10 +1406,9 @@ class EncryptedContent_ContactUpdate extends $pb.GeneratedMessage {
valueOf: EncryptedContent_ContactUpdate_Type.valueOf, valueOf: EncryptedContent_ContactUpdate_Type.valueOf,
enumValues: EncryptedContent_ContactUpdate_Type.values) enumValues: EncryptedContent_ContactUpdate_Type.values)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'avatarSvgCompressed', $pb.PbFieldType.OY, 2, _omitFieldNames ? '' : 'avatarSvgCompressed', $pb.PbFieldType.OY)
protoName: 'avatarSvgCompressed')
..aOS(3, _omitFieldNames ? '' : 'username') ..aOS(3, _omitFieldNames ? '' : 'username')
..aOS(4, _omitFieldNames ? '' : 'displayName', protoName: 'displayName') ..aOS(4, _omitFieldNames ? '' : 'displayName')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -1529,10 +1505,10 @@ class EncryptedContent_PushKeys extends $pb.GeneratedMessage {
defaultOrMaker: EncryptedContent_PushKeys_Type.REQUEST, defaultOrMaker: EncryptedContent_PushKeys_Type.REQUEST,
valueOf: EncryptedContent_PushKeys_Type.valueOf, valueOf: EncryptedContent_PushKeys_Type.valueOf,
enumValues: EncryptedContent_PushKeys_Type.values) enumValues: EncryptedContent_PushKeys_Type.values)
..aInt64(2, _omitFieldNames ? '' : 'keyId', protoName: 'keyId') ..aInt64(2, _omitFieldNames ? '' : 'keyId')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
3, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY) 3, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY)
..aInt64(4, _omitFieldNames ? '' : 'createdAt', protoName: 'createdAt') ..aInt64(4, _omitFieldNames ? '' : 'createdAt')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -1623,12 +1599,10 @@ class EncryptedContent_FlameSync extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.FlameSync', _omitMessageNames ? '' : 'EncryptedContent.FlameSync',
createEmptyInstance: create) createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'flameCounter', ..aInt64(1, _omitFieldNames ? '' : 'flameCounter')
protoName: 'flameCounter') ..aInt64(2, _omitFieldNames ? '' : 'lastFlameCounterChange')
..aInt64(2, _omitFieldNames ? '' : 'lastFlameCounterChange', ..aOB(3, _omitFieldNames ? '' : 'bestFriend')
protoName: 'lastFlameCounterChange') ..aOB(4, _omitFieldNames ? '' : 'forceUpdate')
..aOB(3, _omitFieldNames ? '' : 'bestFriend', protoName: 'bestFriend')
..aOB(4, _omitFieldNames ? '' : 'forceUpdate', protoName: 'forceUpdate')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -1765,6 +1739,124 @@ class EncryptedContent_TypingIndicator extends $pb.GeneratedMessage {
void clearCreatedAt() => $_clearField(2); void clearCreatedAt() => $_clearField(2);
} }
class EncryptedContent_UserDiscoveryRequest extends $pb.GeneratedMessage {
factory EncryptedContent_UserDiscoveryRequest({
$core.List<$core.int>? currentVersion,
}) {
final result = create();
if (currentVersion != null) result.currentVersion = currentVersion;
return result;
}
EncryptedContent_UserDiscoveryRequest._();
factory EncryptedContent_UserDiscoveryRequest.fromBuffer(
$core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory EncryptedContent_UserDiscoveryRequest.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.UserDiscoveryRequest',
createEmptyInstance: create)
..a<$core.List<$core.int>>(
1, _omitFieldNames ? '' : 'currentVersion', $pb.PbFieldType.OY)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EncryptedContent_UserDiscoveryRequest clone() =>
EncryptedContent_UserDiscoveryRequest()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EncryptedContent_UserDiscoveryRequest copyWith(
void Function(EncryptedContent_UserDiscoveryRequest) updates) =>
super.copyWith((message) =>
updates(message as EncryptedContent_UserDiscoveryRequest))
as EncryptedContent_UserDiscoveryRequest;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EncryptedContent_UserDiscoveryRequest create() =>
EncryptedContent_UserDiscoveryRequest._();
@$core.override
EncryptedContent_UserDiscoveryRequest createEmptyInstance() => create();
static $pb.PbList<EncryptedContent_UserDiscoveryRequest> createRepeated() =>
$pb.PbList<EncryptedContent_UserDiscoveryRequest>();
@$core.pragma('dart2js:noInline')
static EncryptedContent_UserDiscoveryRequest getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<
EncryptedContent_UserDiscoveryRequest>(create);
static EncryptedContent_UserDiscoveryRequest? _defaultInstance;
@$pb.TagNumber(1)
$core.List<$core.int> get currentVersion => $_getN(0);
@$pb.TagNumber(1)
set currentVersion($core.List<$core.int> value) => $_setBytes(0, value);
@$pb.TagNumber(1)
$core.bool hasCurrentVersion() => $_has(0);
@$pb.TagNumber(1)
void clearCurrentVersion() => $_clearField(1);
}
class EncryptedContent_UserDiscoveryUpdate extends $pb.GeneratedMessage {
factory EncryptedContent_UserDiscoveryUpdate({
$core.Iterable<$core.List<$core.int>>? messages,
}) {
final result = create();
if (messages != null) result.messages.addAll(messages);
return result;
}
EncryptedContent_UserDiscoveryUpdate._();
factory EncryptedContent_UserDiscoveryUpdate.fromBuffer(
$core.List<$core.int> data,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(data, registry);
factory EncryptedContent_UserDiscoveryUpdate.fromJson($core.String json,
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(json, registry);
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent.UserDiscoveryUpdate',
createEmptyInstance: create)
..p<$core.List<$core.int>>(
1, _omitFieldNames ? '' : 'messages', $pb.PbFieldType.PY)
..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EncryptedContent_UserDiscoveryUpdate clone() =>
EncryptedContent_UserDiscoveryUpdate()..mergeFromMessage(this);
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
EncryptedContent_UserDiscoveryUpdate copyWith(
void Function(EncryptedContent_UserDiscoveryUpdate) updates) =>
super.copyWith((message) =>
updates(message as EncryptedContent_UserDiscoveryUpdate))
as EncryptedContent_UserDiscoveryUpdate;
@$core.override
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static EncryptedContent_UserDiscoveryUpdate create() =>
EncryptedContent_UserDiscoveryUpdate._();
@$core.override
EncryptedContent_UserDiscoveryUpdate createEmptyInstance() => create();
static $pb.PbList<EncryptedContent_UserDiscoveryUpdate> createRepeated() =>
$pb.PbList<EncryptedContent_UserDiscoveryUpdate>();
@$core.pragma('dart2js:noInline')
static EncryptedContent_UserDiscoveryUpdate getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<
EncryptedContent_UserDiscoveryUpdate>(create);
static EncryptedContent_UserDiscoveryUpdate? _defaultInstance;
@$pb.TagNumber(1)
$pb.PbList<$core.List<$core.int>> get messages => $_getList(0);
}
class EncryptedContent extends $pb.GeneratedMessage { class EncryptedContent extends $pb.GeneratedMessage {
factory EncryptedContent({ factory EncryptedContent({
$core.String? groupId, $core.String? groupId,
@ -1786,6 +1878,9 @@ class EncryptedContent extends $pb.GeneratedMessage {
EncryptedContent_ErrorMessages? errorMessages, EncryptedContent_ErrorMessages? errorMessages,
EncryptedContent_AdditionalDataMessage? additionalDataMessage, EncryptedContent_AdditionalDataMessage? additionalDataMessage,
EncryptedContent_TypingIndicator? typingIndicator, EncryptedContent_TypingIndicator? typingIndicator,
$core.List<$core.int>? senderUserDiscoveryVersion,
EncryptedContent_UserDiscoveryRequest? userDiscoveryRequest,
EncryptedContent_UserDiscoveryUpdate? userDiscoveryUpdate,
}) { }) {
final result = create(); final result = create();
if (groupId != null) result.groupId = groupId; if (groupId != null) result.groupId = groupId;
@ -1810,6 +1905,12 @@ class EncryptedContent extends $pb.GeneratedMessage {
if (additionalDataMessage != null) if (additionalDataMessage != null)
result.additionalDataMessage = additionalDataMessage; result.additionalDataMessage = additionalDataMessage;
if (typingIndicator != null) result.typingIndicator = typingIndicator; if (typingIndicator != null) result.typingIndicator = typingIndicator;
if (senderUserDiscoveryVersion != null)
result.senderUserDiscoveryVersion = senderUserDiscoveryVersion;
if (userDiscoveryRequest != null)
result.userDiscoveryRequest = userDiscoveryRequest;
if (userDiscoveryUpdate != null)
result.userDiscoveryUpdate = userDiscoveryUpdate;
return result; return result;
} }
@ -1825,50 +1926,41 @@ class EncryptedContent extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedContent', _omitMessageNames ? '' : 'EncryptedContent',
createEmptyInstance: create) createEmptyInstance: create)
..aOS(2, _omitFieldNames ? '' : 'groupId', protoName: 'groupId') ..aOS(2, _omitFieldNames ? '' : 'groupId')
..aOB(3, _omitFieldNames ? '' : 'isDirectChat', protoName: 'isDirectChat') ..aOB(3, _omitFieldNames ? '' : 'isDirectChat')
..aInt64(4, _omitFieldNames ? '' : 'senderProfileCounter', ..aInt64(4, _omitFieldNames ? '' : 'senderProfileCounter')
protoName: 'senderProfileCounter')
..aOM<EncryptedContent_MessageUpdate>( ..aOM<EncryptedContent_MessageUpdate>(
5, _omitFieldNames ? '' : 'messageUpdate', 5, _omitFieldNames ? '' : 'messageUpdate',
protoName: 'messageUpdate',
subBuilder: EncryptedContent_MessageUpdate.create) subBuilder: EncryptedContent_MessageUpdate.create)
..aOM<EncryptedContent_Media>(6, _omitFieldNames ? '' : 'media', ..aOM<EncryptedContent_Media>(6, _omitFieldNames ? '' : 'media',
subBuilder: EncryptedContent_Media.create) subBuilder: EncryptedContent_Media.create)
..aOM<EncryptedContent_MediaUpdate>(7, _omitFieldNames ? '' : 'mediaUpdate', ..aOM<EncryptedContent_MediaUpdate>(7, _omitFieldNames ? '' : 'mediaUpdate',
protoName: 'mediaUpdate',
subBuilder: EncryptedContent_MediaUpdate.create) subBuilder: EncryptedContent_MediaUpdate.create)
..aOM<EncryptedContent_ContactUpdate>( ..aOM<EncryptedContent_ContactUpdate>(
8, _omitFieldNames ? '' : 'contactUpdate', 8, _omitFieldNames ? '' : 'contactUpdate',
protoName: 'contactUpdate',
subBuilder: EncryptedContent_ContactUpdate.create) subBuilder: EncryptedContent_ContactUpdate.create)
..aOM<EncryptedContent_ContactRequest>( ..aOM<EncryptedContent_ContactRequest>(
9, _omitFieldNames ? '' : 'contactRequest', 9, _omitFieldNames ? '' : 'contactRequest',
protoName: 'contactRequest',
subBuilder: EncryptedContent_ContactRequest.create) subBuilder: EncryptedContent_ContactRequest.create)
..aOM<EncryptedContent_FlameSync>(10, _omitFieldNames ? '' : 'flameSync', ..aOM<EncryptedContent_FlameSync>(10, _omitFieldNames ? '' : 'flameSync',
protoName: 'flameSync', subBuilder: EncryptedContent_FlameSync.create) subBuilder: EncryptedContent_FlameSync.create)
..aOM<EncryptedContent_PushKeys>(11, _omitFieldNames ? '' : 'pushKeys', ..aOM<EncryptedContent_PushKeys>(11, _omitFieldNames ? '' : 'pushKeys',
protoName: 'pushKeys', subBuilder: EncryptedContent_PushKeys.create) subBuilder: EncryptedContent_PushKeys.create)
..aOM<EncryptedContent_Reaction>(12, _omitFieldNames ? '' : 'reaction', ..aOM<EncryptedContent_Reaction>(12, _omitFieldNames ? '' : 'reaction',
subBuilder: EncryptedContent_Reaction.create) subBuilder: EncryptedContent_Reaction.create)
..aOM<EncryptedContent_TextMessage>( ..aOM<EncryptedContent_TextMessage>(
13, _omitFieldNames ? '' : 'textMessage', 13, _omitFieldNames ? '' : 'textMessage',
protoName: 'textMessage',
subBuilder: EncryptedContent_TextMessage.create) subBuilder: EncryptedContent_TextMessage.create)
..aOM<EncryptedContent_GroupCreate>( ..aOM<EncryptedContent_GroupCreate>(
14, _omitFieldNames ? '' : 'groupCreate', 14, _omitFieldNames ? '' : 'groupCreate',
protoName: 'groupCreate',
subBuilder: EncryptedContent_GroupCreate.create) subBuilder: EncryptedContent_GroupCreate.create)
..aOM<EncryptedContent_GroupJoin>(15, _omitFieldNames ? '' : 'groupJoin', ..aOM<EncryptedContent_GroupJoin>(15, _omitFieldNames ? '' : 'groupJoin',
protoName: 'groupJoin', subBuilder: EncryptedContent_GroupJoin.create) subBuilder: EncryptedContent_GroupJoin.create)
..aOM<EncryptedContent_GroupUpdate>( ..aOM<EncryptedContent_GroupUpdate>(
16, _omitFieldNames ? '' : 'groupUpdate', 16, _omitFieldNames ? '' : 'groupUpdate',
protoName: 'groupUpdate',
subBuilder: EncryptedContent_GroupUpdate.create) subBuilder: EncryptedContent_GroupUpdate.create)
..aOM<EncryptedContent_ResendGroupPublicKey>( ..aOM<EncryptedContent_ResendGroupPublicKey>(
17, _omitFieldNames ? '' : 'resendGroupPublicKey', 17, _omitFieldNames ? '' : 'resendGroupPublicKey',
protoName: 'resendGroupPublicKey',
subBuilder: EncryptedContent_ResendGroupPublicKey.create) subBuilder: EncryptedContent_ResendGroupPublicKey.create)
..aOM<EncryptedContent_ErrorMessages>( ..aOM<EncryptedContent_ErrorMessages>(
18, _omitFieldNames ? '' : 'errorMessages', 18, _omitFieldNames ? '' : 'errorMessages',
@ -1879,6 +1971,14 @@ class EncryptedContent extends $pb.GeneratedMessage {
..aOM<EncryptedContent_TypingIndicator>( ..aOM<EncryptedContent_TypingIndicator>(
20, _omitFieldNames ? '' : 'typingIndicator', 20, _omitFieldNames ? '' : 'typingIndicator',
subBuilder: EncryptedContent_TypingIndicator.create) subBuilder: EncryptedContent_TypingIndicator.create)
..a<$core.List<$core.int>>(21,
_omitFieldNames ? '' : 'senderUserDiscoveryVersion', $pb.PbFieldType.OY)
..aOM<EncryptedContent_UserDiscoveryRequest>(
22, _omitFieldNames ? '' : 'userDiscoveryRequest',
subBuilder: EncryptedContent_UserDiscoveryRequest.create)
..aOM<EncryptedContent_UserDiscoveryUpdate>(
23, _omitFieldNames ? '' : 'userDiscoveryUpdate',
subBuilder: EncryptedContent_UserDiscoveryUpdate.create)
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -2115,6 +2215,42 @@ class EncryptedContent extends $pb.GeneratedMessage {
void clearTypingIndicator() => $_clearField(20); void clearTypingIndicator() => $_clearField(20);
@$pb.TagNumber(20) @$pb.TagNumber(20)
EncryptedContent_TypingIndicator ensureTypingIndicator() => $_ensure(18); EncryptedContent_TypingIndicator ensureTypingIndicator() => $_ensure(18);
@$pb.TagNumber(21)
$core.List<$core.int> get senderUserDiscoveryVersion => $_getN(19);
@$pb.TagNumber(21)
set senderUserDiscoveryVersion($core.List<$core.int> value) =>
$_setBytes(19, value);
@$pb.TagNumber(21)
$core.bool hasSenderUserDiscoveryVersion() => $_has(19);
@$pb.TagNumber(21)
void clearSenderUserDiscoveryVersion() => $_clearField(21);
@$pb.TagNumber(22)
EncryptedContent_UserDiscoveryRequest get userDiscoveryRequest => $_getN(20);
@$pb.TagNumber(22)
set userDiscoveryRequest(EncryptedContent_UserDiscoveryRequest value) =>
$_setField(22, value);
@$pb.TagNumber(22)
$core.bool hasUserDiscoveryRequest() => $_has(20);
@$pb.TagNumber(22)
void clearUserDiscoveryRequest() => $_clearField(22);
@$pb.TagNumber(22)
EncryptedContent_UserDiscoveryRequest ensureUserDiscoveryRequest() =>
$_ensure(20);
@$pb.TagNumber(23)
EncryptedContent_UserDiscoveryUpdate get userDiscoveryUpdate => $_getN(21);
@$pb.TagNumber(23)
set userDiscoveryUpdate(EncryptedContent_UserDiscoveryUpdate value) =>
$_setField(23, value);
@$pb.TagNumber(23)
$core.bool hasUserDiscoveryUpdate() => $_has(21);
@$pb.TagNumber(23)
void clearUserDiscoveryUpdate() => $_clearField(23);
@$pb.TagNumber(23)
EncryptedContent_UserDiscoveryUpdate ensureUserDiscoveryUpdate() =>
$_ensure(21);
} }
const $core.bool _omitFieldNames = const $core.bool _omitFieldNames =

View file

@ -19,9 +19,9 @@ const Message$json = {
'1': 'Message', '1': 'Message',
'2': [ '2': [
{'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.Message.Type', '10': 'type'}, {'1': 'type', '3': 1, '4': 1, '5': 14, '6': '.Message.Type', '10': 'type'},
{'1': 'receiptId', '3': 2, '4': 1, '5': 9, '10': 'receiptId'}, {'1': 'receipt_id', '3': 2, '4': 1, '5': 9, '10': 'receiptId'},
{ {
'1': 'encryptedContent', '1': 'encrypted_content',
'3': 3, '3': 3,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -30,7 +30,7 @@ const Message$json = {
'17': true '17': true
}, },
{ {
'1': 'plaintextContent', '1': 'plaintext_content',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 11, '5': 11,
@ -42,8 +42,8 @@ const Message$json = {
], ],
'4': [Message_Type$json], '4': [Message_Type$json],
'8': [ '8': [
{'1': '_encryptedContent'}, {'1': '_encrypted_content'},
{'1': '_plaintextContent'}, {'1': '_plaintext_content'},
], ],
}; };
@ -61,20 +61,20 @@ const Message_Type$json = {
/// Descriptor for `Message`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `Message`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List messageDescriptor = $convert.base64Decode( final $typed_data.Uint8List messageDescriptor = $convert.base64Decode(
'CgdNZXNzYWdlEiEKBHR5cGUYASABKA4yDS5NZXNzYWdlLlR5cGVSBHR5cGUSHAoJcmVjZWlwdE' 'CgdNZXNzYWdlEiEKBHR5cGUYASABKA4yDS5NZXNzYWdlLlR5cGVSBHR5cGUSHQoKcmVjZWlwdF'
'lkGAIgASgJUglyZWNlaXB0SWQSLwoQZW5jcnlwdGVkQ29udGVudBgDIAEoDEgAUhBlbmNyeXB0' '9pZBgCIAEoCVIJcmVjZWlwdElkEjAKEWVuY3J5cHRlZF9jb250ZW50GAMgASgMSABSEGVuY3J5'
'ZWRDb250ZW50iAEBEkIKEHBsYWludGV4dENvbnRlbnQYBCABKAsyES5QbGFpbnRleHRDb250ZW' 'cHRlZENvbnRlbnSIAQESQwoRcGxhaW50ZXh0X2NvbnRlbnQYBCABKAsyES5QbGFpbnRleHRDb2'
'50SAFSEHBsYWludGV4dENvbnRlbnSIAQEidAoEVHlwZRIbChdTRU5ERVJfREVMSVZFUllfUkVD' '50ZW50SAFSEHBsYWludGV4dENvbnRlbnSIAQEidAoEVHlwZRIbChdTRU5ERVJfREVMSVZFUllf'
'RUlQVBAAEhUKEVBMQUlOVEVYVF9DT05URU5UEAESDgoKQ0lQSEVSVEVYVBACEhEKDVBSRUtFWV' 'UkVDRUlQVBAAEhUKEVBMQUlOVEVYVF9DT05URU5UEAESDgoKQ0lQSEVSVEVYVBACEhEKDVBSRU'
'9CVU5ETEUQAxIVChFURVNUX05PVElGSUNBVElPThAEQhMKEV9lbmNyeXB0ZWRDb250ZW50QhMK' 'tFWV9CVU5ETEUQAxIVChFURVNUX05PVElGSUNBVElPThAEQhQKEl9lbmNyeXB0ZWRfY29udGVu'
'EV9wbGFpbnRleHRDb250ZW50'); 'dEIUChJfcGxhaW50ZXh0X2NvbnRlbnQ=');
@$core.Deprecated('Use plaintextContentDescriptor instead') @$core.Deprecated('Use plaintextContentDescriptor instead')
const PlaintextContent$json = { const PlaintextContent$json = {
'1': 'PlaintextContent', '1': 'PlaintextContent',
'2': [ '2': [
{ {
'1': 'decryptionErrorMessage', '1': 'decryption_error_message',
'3': 1, '3': 1,
'4': 1, '4': 1,
'5': 11, '5': 11,
@ -84,7 +84,7 @@ const PlaintextContent$json = {
'17': true '17': true
}, },
{ {
'1': 'retryControlError', '1': 'retry_control_error',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 11, '5': 11,
@ -99,8 +99,8 @@ const PlaintextContent$json = {
PlaintextContent_DecryptionErrorMessage$json PlaintextContent_DecryptionErrorMessage$json
], ],
'8': [ '8': [
{'1': '_decryptionErrorMessage'}, {'1': '_decryption_error_message'},
{'1': '_retryControlError'}, {'1': '_retry_control_error'},
], ],
}; };
@ -136,21 +136,21 @@ const PlaintextContent_DecryptionErrorMessage_Type$json = {
/// Descriptor for `PlaintextContent`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `PlaintextContent`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List plaintextContentDescriptor = $convert.base64Decode( final $typed_data.Uint8List plaintextContentDescriptor = $convert.base64Decode(
'ChBQbGFpbnRleHRDb250ZW50EmUKFmRlY3J5cHRpb25FcnJvck1lc3NhZ2UYASABKAsyKC5QbG' 'ChBQbGFpbnRleHRDb250ZW50EmcKGGRlY3J5cHRpb25fZXJyb3JfbWVzc2FnZRgBIAEoCzIoLl'
'FpbnRleHRDb250ZW50LkRlY3J5cHRpb25FcnJvck1lc3NhZ2VIAFIWZGVjcnlwdGlvbkVycm9y' 'BsYWludGV4dENvbnRlbnQuRGVjcnlwdGlvbkVycm9yTWVzc2FnZUgAUhZkZWNyeXB0aW9uRXJy'
'TWVzc2FnZYgBARJWChFyZXRyeUNvbnRyb2xFcnJvchgCIAEoCzIjLlBsYWludGV4dENvbnRlbn' 'b3JNZXNzYWdliAEBElgKE3JldHJ5X2NvbnRyb2xfZXJyb3IYAiABKAsyIy5QbGFpbnRleHRDb2'
'QuUmV0cnlFcnJvck1lc3NhZ2VIAVIRcmV0cnlDb250cm9sRXJyb3KIAQEaEwoRUmV0cnlFcnJv' '50ZW50LlJldHJ5RXJyb3JNZXNzYWdlSAFSEXJldHJ5Q29udHJvbEVycm9yiAEBGhMKEVJldHJ5'
'ck1lc3NhZ2UahAEKFkRlY3J5cHRpb25FcnJvck1lc3NhZ2USQQoEdHlwZRgBIAEoDjItLlBsYW' 'RXJyb3JNZXNzYWdlGoQBChZEZWNyeXB0aW9uRXJyb3JNZXNzYWdlEkEKBHR5cGUYASABKA4yLS'
'ludGV4dENvbnRlbnQuRGVjcnlwdGlvbkVycm9yTWVzc2FnZS5UeXBlUgR0eXBlIicKBFR5cGUS' '5QbGFpbnRleHRDb250ZW50LkRlY3J5cHRpb25FcnJvck1lc3NhZ2UuVHlwZVIEdHlwZSInCgRU'
'CwoHVU5LTk9XThAAEhIKDlBSRUtFWV9VTktOT1dOEAFCGQoXX2RlY3J5cHRpb25FcnJvck1lc3' 'eXBlEgsKB1VOS05PV04QABISCg5QUkVLRVlfVU5LTk9XThABQhsKGV9kZWNyeXB0aW9uX2Vycm'
'NhZ2VCFAoSX3JldHJ5Q29udHJvbEVycm9y'); '9yX21lc3NhZ2VCFgoUX3JldHJ5X2NvbnRyb2xfZXJyb3I=');
@$core.Deprecated('Use encryptedContentDescriptor instead') @$core.Deprecated('Use encryptedContentDescriptor instead')
const EncryptedContent$json = { const EncryptedContent$json = {
'1': 'EncryptedContent', '1': 'EncryptedContent',
'2': [ '2': [
{ {
'1': 'groupId', '1': 'group_id',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -159,7 +159,7 @@ const EncryptedContent$json = {
'17': true '17': true
}, },
{ {
'1': 'isDirectChat', '1': 'is_direct_chat',
'3': 3, '3': 3,
'4': 1, '4': 1,
'5': 8, '5': 8,
@ -168,7 +168,7 @@ const EncryptedContent$json = {
'17': true '17': true
}, },
{ {
'1': 'senderProfileCounter', '1': 'sender_profile_counter',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -177,12 +177,21 @@ const EncryptedContent$json = {
'17': true '17': true
}, },
{ {
'1': 'messageUpdate', '1': 'sender_user_discovery_version',
'3': 21,
'4': 1,
'5': 12,
'9': 3,
'10': 'senderUserDiscoveryVersion',
'17': true
},
{
'1': 'message_update',
'3': 5, '3': 5,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.MessageUpdate', '6': '.EncryptedContent.MessageUpdate',
'9': 3, '9': 4,
'10': 'messageUpdate', '10': 'messageUpdate',
'17': true '17': true
}, },
@ -192,57 +201,57 @@ const EncryptedContent$json = {
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.Media', '6': '.EncryptedContent.Media',
'9': 4, '9': 5,
'10': 'media', '10': 'media',
'17': true '17': true
}, },
{ {
'1': 'mediaUpdate', '1': 'media_update',
'3': 7, '3': 7,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.MediaUpdate', '6': '.EncryptedContent.MediaUpdate',
'9': 5, '9': 6,
'10': 'mediaUpdate', '10': 'mediaUpdate',
'17': true '17': true
}, },
{ {
'1': 'contactUpdate', '1': 'contact_update',
'3': 8, '3': 8,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.ContactUpdate', '6': '.EncryptedContent.ContactUpdate',
'9': 6, '9': 7,
'10': 'contactUpdate', '10': 'contactUpdate',
'17': true '17': true
}, },
{ {
'1': 'contactRequest', '1': 'contact_request',
'3': 9, '3': 9,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.ContactRequest', '6': '.EncryptedContent.ContactRequest',
'9': 7, '9': 8,
'10': 'contactRequest', '10': 'contactRequest',
'17': true '17': true
}, },
{ {
'1': 'flameSync', '1': 'flame_sync',
'3': 10, '3': 10,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.FlameSync', '6': '.EncryptedContent.FlameSync',
'9': 8, '9': 9,
'10': 'flameSync', '10': 'flameSync',
'17': true '17': true
}, },
{ {
'1': 'pushKeys', '1': 'push_keys',
'3': 11, '3': 11,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.PushKeys', '6': '.EncryptedContent.PushKeys',
'9': 9, '9': 10,
'10': 'pushKeys', '10': 'pushKeys',
'17': true '17': true
}, },
@ -252,57 +261,57 @@ const EncryptedContent$json = {
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.Reaction', '6': '.EncryptedContent.Reaction',
'9': 10, '9': 11,
'10': 'reaction', '10': 'reaction',
'17': true '17': true
}, },
{ {
'1': 'textMessage', '1': 'text_message',
'3': 13, '3': 13,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.TextMessage', '6': '.EncryptedContent.TextMessage',
'9': 11, '9': 12,
'10': 'textMessage', '10': 'textMessage',
'17': true '17': true
}, },
{ {
'1': 'groupCreate', '1': 'group_create',
'3': 14, '3': 14,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.GroupCreate', '6': '.EncryptedContent.GroupCreate',
'9': 12, '9': 13,
'10': 'groupCreate', '10': 'groupCreate',
'17': true '17': true
}, },
{ {
'1': 'groupJoin', '1': 'group_join',
'3': 15, '3': 15,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.GroupJoin', '6': '.EncryptedContent.GroupJoin',
'9': 13, '9': 14,
'10': 'groupJoin', '10': 'groupJoin',
'17': true '17': true
}, },
{ {
'1': 'groupUpdate', '1': 'group_update',
'3': 16, '3': 16,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.GroupUpdate', '6': '.EncryptedContent.GroupUpdate',
'9': 14, '9': 15,
'10': 'groupUpdate', '10': 'groupUpdate',
'17': true '17': true
}, },
{ {
'1': 'resendGroupPublicKey', '1': 'resend_group_public_key',
'3': 17, '3': 17,
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.ResendGroupPublicKey', '6': '.EncryptedContent.ResendGroupPublicKey',
'9': 15, '9': 16,
'10': 'resendGroupPublicKey', '10': 'resendGroupPublicKey',
'17': true '17': true
}, },
@ -312,7 +321,7 @@ const EncryptedContent$json = {
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.ErrorMessages', '6': '.EncryptedContent.ErrorMessages',
'9': 16, '9': 17,
'10': 'errorMessages', '10': 'errorMessages',
'17': true '17': true
}, },
@ -322,7 +331,7 @@ const EncryptedContent$json = {
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.AdditionalDataMessage', '6': '.EncryptedContent.AdditionalDataMessage',
'9': 17, '9': 18,
'10': 'additionalDataMessage', '10': 'additionalDataMessage',
'17': true '17': true
}, },
@ -332,10 +341,30 @@ const EncryptedContent$json = {
'4': 1, '4': 1,
'5': 11, '5': 11,
'6': '.EncryptedContent.TypingIndicator', '6': '.EncryptedContent.TypingIndicator',
'9': 18, '9': 19,
'10': 'typingIndicator', '10': 'typingIndicator',
'17': true '17': true
}, },
{
'1': 'user_discovery_request',
'3': 22,
'4': 1,
'5': 11,
'6': '.EncryptedContent.UserDiscoveryRequest',
'9': 20,
'10': 'userDiscoveryRequest',
'17': true
},
{
'1': 'user_discovery_update',
'3': 23,
'4': 1,
'5': 11,
'6': '.EncryptedContent.UserDiscoveryUpdate',
'9': 21,
'10': 'userDiscoveryUpdate',
'17': true
},
], ],
'3': [ '3': [
EncryptedContent_ErrorMessages$json, EncryptedContent_ErrorMessages$json,
@ -353,28 +382,33 @@ const EncryptedContent$json = {
EncryptedContent_ContactUpdate$json, EncryptedContent_ContactUpdate$json,
EncryptedContent_PushKeys$json, EncryptedContent_PushKeys$json,
EncryptedContent_FlameSync$json, EncryptedContent_FlameSync$json,
EncryptedContent_TypingIndicator$json EncryptedContent_TypingIndicator$json,
EncryptedContent_UserDiscoveryRequest$json,
EncryptedContent_UserDiscoveryUpdate$json
], ],
'8': [ '8': [
{'1': '_groupId'}, {'1': '_group_id'},
{'1': '_isDirectChat'}, {'1': '_is_direct_chat'},
{'1': '_senderProfileCounter'}, {'1': '_sender_profile_counter'},
{'1': '_messageUpdate'}, {'1': '_sender_user_discovery_version'},
{'1': '_message_update'},
{'1': '_media'}, {'1': '_media'},
{'1': '_mediaUpdate'}, {'1': '_media_update'},
{'1': '_contactUpdate'}, {'1': '_contact_update'},
{'1': '_contactRequest'}, {'1': '_contact_request'},
{'1': '_flameSync'}, {'1': '_flame_sync'},
{'1': '_pushKeys'}, {'1': '_push_keys'},
{'1': '_reaction'}, {'1': '_reaction'},
{'1': '_textMessage'}, {'1': '_text_message'},
{'1': '_groupCreate'}, {'1': '_group_create'},
{'1': '_groupJoin'}, {'1': '_group_join'},
{'1': '_groupUpdate'}, {'1': '_group_update'},
{'1': '_resendGroupPublicKey'}, {'1': '_resend_group_public_key'},
{'1': '_error_messages'}, {'1': '_error_messages'},
{'1': '_additional_data_message'}, {'1': '_additional_data_message'},
{'1': '_typing_indicator'}, {'1': '_typing_indicator'},
{'1': '_user_discovery_request'},
{'1': '_user_discovery_update'},
], ],
}; };
@ -415,8 +449,8 @@ const EncryptedContent_ErrorMessages_Type$json = {
const EncryptedContent_GroupCreate$json = { const EncryptedContent_GroupCreate$json = {
'1': 'GroupCreate', '1': 'GroupCreate',
'2': [ '2': [
{'1': 'stateKey', '3': 3, '4': 1, '5': 12, '10': 'stateKey'}, {'1': 'state_key', '3': 3, '4': 1, '5': 12, '10': 'stateKey'},
{'1': 'groupPublicKey', '3': 4, '4': 1, '5': 12, '10': 'groupPublicKey'}, {'1': 'group_public_key', '3': 4, '4': 1, '5': 12, '10': 'groupPublicKey'},
], ],
}; };
@ -424,7 +458,7 @@ const EncryptedContent_GroupCreate$json = {
const EncryptedContent_GroupJoin$json = { const EncryptedContent_GroupJoin$json = {
'1': 'GroupJoin', '1': 'GroupJoin',
'2': [ '2': [
{'1': 'groupPublicKey', '3': 1, '4': 1, '5': 12, '10': 'groupPublicKey'}, {'1': 'group_public_key', '3': 1, '4': 1, '5': 12, '10': 'groupPublicKey'},
], ],
}; };
@ -437,9 +471,9 @@ const EncryptedContent_ResendGroupPublicKey$json = {
const EncryptedContent_GroupUpdate$json = { const EncryptedContent_GroupUpdate$json = {
'1': 'GroupUpdate', '1': 'GroupUpdate',
'2': [ '2': [
{'1': 'groupActionType', '3': 1, '4': 1, '5': 9, '10': 'groupActionType'}, {'1': 'group_action_type', '3': 1, '4': 1, '5': 9, '10': 'groupActionType'},
{ {
'1': 'affectedContactId', '1': 'affected_contact_id',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -448,7 +482,7 @@ const EncryptedContent_GroupUpdate$json = {
'17': true '17': true
}, },
{ {
'1': 'newGroupName', '1': 'new_group_name',
'3': 3, '3': 3,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -457,7 +491,7 @@ const EncryptedContent_GroupUpdate$json = {
'17': true '17': true
}, },
{ {
'1': 'newDeleteMessagesAfterMilliseconds', '1': 'new_delete_messages_after_milliseconds',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -467,9 +501,9 @@ const EncryptedContent_GroupUpdate$json = {
}, },
], ],
'8': [ '8': [
{'1': '_affectedContactId'}, {'1': '_affected_contact_id'},
{'1': '_newGroupName'}, {'1': '_new_group_name'},
{'1': '_newDeleteMessagesAfterMilliseconds'}, {'1': '_new_delete_messages_after_milliseconds'},
], ],
}; };
@ -477,11 +511,11 @@ const EncryptedContent_GroupUpdate$json = {
const EncryptedContent_TextMessage$json = { const EncryptedContent_TextMessage$json = {
'1': 'TextMessage', '1': 'TextMessage',
'2': [ '2': [
{'1': 'senderMessageId', '3': 1, '4': 1, '5': 9, '10': 'senderMessageId'}, {'1': 'sender_message_id', '3': 1, '4': 1, '5': 9, '10': 'senderMessageId'},
{'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'}, {'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'},
{'1': 'timestamp', '3': 3, '4': 1, '5': 3, '10': 'timestamp'}, {'1': 'timestamp', '3': 3, '4': 1, '5': 3, '10': 'timestamp'},
{ {
'1': 'quoteMessageId', '1': 'quote_message_id',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -491,7 +525,7 @@ const EncryptedContent_TextMessage$json = {
}, },
], ],
'8': [ '8': [
{'1': '_quoteMessageId'}, {'1': '_quote_message_id'},
], ],
}; };
@ -521,7 +555,7 @@ const EncryptedContent_AdditionalDataMessage$json = {
const EncryptedContent_Reaction$json = { const EncryptedContent_Reaction$json = {
'1': 'Reaction', '1': 'Reaction',
'2': [ '2': [
{'1': 'targetMessageId', '3': 1, '4': 1, '5': 9, '10': 'targetMessageId'}, {'1': 'target_message_id', '3': 1, '4': 1, '5': 9, '10': 'targetMessageId'},
{'1': 'emoji', '3': 2, '4': 1, '5': 9, '10': 'emoji'}, {'1': 'emoji', '3': 2, '4': 1, '5': 9, '10': 'emoji'},
{'1': 'remove', '3': 3, '4': 1, '5': 8, '10': 'remove'}, {'1': 'remove', '3': 3, '4': 1, '5': 8, '10': 'remove'},
], ],
@ -540,7 +574,7 @@ const EncryptedContent_MessageUpdate$json = {
'10': 'type' '10': 'type'
}, },
{ {
'1': 'senderMessageId', '1': 'sender_message_id',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -549,7 +583,7 @@ const EncryptedContent_MessageUpdate$json = {
'17': true '17': true
}, },
{ {
'1': 'multipleTargetMessageIds', '1': 'multiple_target_message_ids',
'3': 3, '3': 3,
'4': 3, '4': 3,
'5': 9, '5': 9,
@ -560,7 +594,7 @@ const EncryptedContent_MessageUpdate$json = {
], ],
'4': [EncryptedContent_MessageUpdate_Type$json], '4': [EncryptedContent_MessageUpdate_Type$json],
'8': [ '8': [
{'1': '_senderMessageId'}, {'1': '_sender_message_id'},
{'1': '_text'}, {'1': '_text'},
], ],
}; };
@ -579,7 +613,7 @@ const EncryptedContent_MessageUpdate_Type$json = {
const EncryptedContent_Media$json = { const EncryptedContent_Media$json = {
'1': 'Media', '1': 'Media',
'2': [ '2': [
{'1': 'senderMessageId', '3': 1, '4': 1, '5': 9, '10': 'senderMessageId'}, {'1': 'sender_message_id', '3': 1, '4': 1, '5': 9, '10': 'senderMessageId'},
{ {
'1': 'type', '1': 'type',
'3': 2, '3': 2,
@ -589,7 +623,7 @@ const EncryptedContent_Media$json = {
'10': 'type' '10': 'type'
}, },
{ {
'1': 'displayLimitInMilliseconds', '1': 'display_limit_in_milliseconds',
'3': 3, '3': 3,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -598,7 +632,7 @@ const EncryptedContent_Media$json = {
'17': true '17': true
}, },
{ {
'1': 'requiresAuthentication', '1': 'requires_authentication',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 8, '5': 8,
@ -606,7 +640,7 @@ const EncryptedContent_Media$json = {
}, },
{'1': 'timestamp', '3': 5, '4': 1, '5': 3, '10': 'timestamp'}, {'1': 'timestamp', '3': 5, '4': 1, '5': 3, '10': 'timestamp'},
{ {
'1': 'quoteMessageId', '1': 'quote_message_id',
'3': 6, '3': 6,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -615,7 +649,7 @@ const EncryptedContent_Media$json = {
'17': true '17': true
}, },
{ {
'1': 'downloadToken', '1': 'download_token',
'3': 7, '3': 7,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -624,7 +658,7 @@ const EncryptedContent_Media$json = {
'17': true '17': true
}, },
{ {
'1': 'encryptionKey', '1': 'encryption_key',
'3': 8, '3': 8,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -633,7 +667,7 @@ const EncryptedContent_Media$json = {
'17': true '17': true
}, },
{ {
'1': 'encryptionMac', '1': 'encryption_mac',
'3': 9, '3': 9,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -642,7 +676,7 @@ const EncryptedContent_Media$json = {
'17': true '17': true
}, },
{ {
'1': 'encryptionNonce', '1': 'encryption_nonce',
'3': 10, '3': 10,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -662,12 +696,12 @@ const EncryptedContent_Media$json = {
], ],
'4': [EncryptedContent_Media_Type$json], '4': [EncryptedContent_Media_Type$json],
'8': [ '8': [
{'1': '_displayLimitInMilliseconds'}, {'1': '_display_limit_in_milliseconds'},
{'1': '_quoteMessageId'}, {'1': '_quote_message_id'},
{'1': '_downloadToken'}, {'1': '_download_token'},
{'1': '_encryptionKey'}, {'1': '_encryption_key'},
{'1': '_encryptionMac'}, {'1': '_encryption_mac'},
{'1': '_encryptionNonce'}, {'1': '_encryption_nonce'},
{'1': '_additional_message_data'}, {'1': '_additional_message_data'},
], ],
}; };
@ -696,7 +730,7 @@ const EncryptedContent_MediaUpdate$json = {
'6': '.EncryptedContent.MediaUpdate.Type', '6': '.EncryptedContent.MediaUpdate.Type',
'10': 'type' '10': 'type'
}, },
{'1': 'targetMessageId', '3': 2, '4': 1, '5': 9, '10': 'targetMessageId'}, {'1': 'target_message_id', '3': 2, '4': 1, '5': 9, '10': 'targetMessageId'},
], ],
'4': [EncryptedContent_MediaUpdate_Type$json], '4': [EncryptedContent_MediaUpdate_Type$json],
}; };
@ -750,7 +784,7 @@ const EncryptedContent_ContactUpdate$json = {
'10': 'type' '10': 'type'
}, },
{ {
'1': 'avatarSvgCompressed', '1': 'avatar_svg_compressed',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 12, '5': 12,
@ -768,7 +802,7 @@ const EncryptedContent_ContactUpdate$json = {
'17': true '17': true
}, },
{ {
'1': 'displayName', '1': 'display_name',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -779,9 +813,9 @@ const EncryptedContent_ContactUpdate$json = {
], ],
'4': [EncryptedContent_ContactUpdate_Type$json], '4': [EncryptedContent_ContactUpdate_Type$json],
'8': [ '8': [
{'1': '_avatarSvgCompressed'}, {'1': '_avatar_svg_compressed'},
{'1': '_username'}, {'1': '_username'},
{'1': '_displayName'}, {'1': '_display_name'},
], ],
}; };
@ -806,10 +840,10 @@ const EncryptedContent_PushKeys$json = {
'6': '.EncryptedContent.PushKeys.Type', '6': '.EncryptedContent.PushKeys.Type',
'10': 'type' '10': 'type'
}, },
{'1': 'keyId', '3': 2, '4': 1, '5': 3, '9': 0, '10': 'keyId', '17': true}, {'1': 'key_id', '3': 2, '4': 1, '5': 3, '9': 0, '10': 'keyId', '17': true},
{'1': 'key', '3': 3, '4': 1, '5': 12, '9': 1, '10': 'key', '17': true}, {'1': 'key', '3': 3, '4': 1, '5': 12, '9': 1, '10': 'key', '17': true},
{ {
'1': 'createdAt', '1': 'created_at',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -820,9 +854,9 @@ const EncryptedContent_PushKeys$json = {
], ],
'4': [EncryptedContent_PushKeys_Type$json], '4': [EncryptedContent_PushKeys_Type$json],
'8': [ '8': [
{'1': '_keyId'}, {'1': '_key_id'},
{'1': '_key'}, {'1': '_key'},
{'1': '_createdAt'}, {'1': '_created_at'},
], ],
}; };
@ -839,16 +873,16 @@ const EncryptedContent_PushKeys_Type$json = {
const EncryptedContent_FlameSync$json = { const EncryptedContent_FlameSync$json = {
'1': 'FlameSync', '1': 'FlameSync',
'2': [ '2': [
{'1': 'flameCounter', '3': 1, '4': 1, '5': 3, '10': 'flameCounter'}, {'1': 'flame_counter', '3': 1, '4': 1, '5': 3, '10': 'flameCounter'},
{ {
'1': 'lastFlameCounterChange', '1': 'last_flame_counter_change',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 3, '5': 3,
'10': 'lastFlameCounterChange' '10': 'lastFlameCounterChange'
}, },
{'1': 'bestFriend', '3': 3, '4': 1, '5': 8, '10': 'bestFriend'}, {'1': 'best_friend', '3': 3, '4': 1, '5': 8, '10': 'bestFriend'},
{'1': 'forceUpdate', '3': 4, '4': 1, '5': 8, '10': 'forceUpdate'}, {'1': 'force_update', '3': 4, '4': 1, '5': 8, '10': 'forceUpdate'},
], ],
}; };
@ -861,95 +895,121 @@ const EncryptedContent_TypingIndicator$json = {
], ],
}; };
@$core.Deprecated('Use encryptedContentDescriptor instead')
const EncryptedContent_UserDiscoveryRequest$json = {
'1': 'UserDiscoveryRequest',
'2': [
{'1': 'current_version', '3': 1, '4': 1, '5': 12, '10': 'currentVersion'},
],
};
@$core.Deprecated('Use encryptedContentDescriptor instead')
const EncryptedContent_UserDiscoveryUpdate$json = {
'1': 'UserDiscoveryUpdate',
'2': [
{'1': 'messages', '3': 1, '4': 3, '5': 12, '10': 'messages'},
],
};
/// Descriptor for `EncryptedContent`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `EncryptedContent`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List encryptedContentDescriptor = $convert.base64Decode( final $typed_data.Uint8List encryptedContentDescriptor = $convert.base64Decode(
'ChBFbmNyeXB0ZWRDb250ZW50Eh0KB2dyb3VwSWQYAiABKAlIAFIHZ3JvdXBJZIgBARInCgxpc0' 'ChBFbmNyeXB0ZWRDb250ZW50Eh4KCGdyb3VwX2lkGAIgASgJSABSB2dyb3VwSWSIAQESKQoOaX'
'RpcmVjdENoYXQYAyABKAhIAVIMaXNEaXJlY3RDaGF0iAEBEjcKFHNlbmRlclByb2ZpbGVDb3Vu' 'NfZGlyZWN0X2NoYXQYAyABKAhIAVIMaXNEaXJlY3RDaGF0iAEBEjkKFnNlbmRlcl9wcm9maWxl'
'dGVyGAQgASgDSAJSFHNlbmRlclByb2ZpbGVDb3VudGVyiAEBEkoKDW1lc3NhZ2VVcGRhdGUYBS' 'X2NvdW50ZXIYBCABKANIAlIUc2VuZGVyUHJvZmlsZUNvdW50ZXKIAQESRgodc2VuZGVyX3VzZX'
'ABKAsyHy5FbmNyeXB0ZWRDb250ZW50Lk1lc3NhZ2VVcGRhdGVIA1INbWVzc2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X2dyb3VwX2NyZWF0ZUINCgtfZ3JvdXBfam9pbkIPCg'
'1fZ3JvdXBfdXBkYXRlQhoKGF9yZXNlbmRfZ3JvdXBfcHVibGljX2tleUIRCg9fZXJyb3JfbWVz'
'c2FnZXNCGgoYX2FkZGl0aW9uYWxfZGF0YV9tZXNzYWdlQhMKEV90eXBpbmdfaW5kaWNhdG9yQh'
'kKF191c2VyX2Rpc2NvdmVyeV9yZXF1ZXN0QhgKFl91c2VyX2Rpc2NvdmVyeV91cGRhdGU=');

View file

@ -48,7 +48,7 @@ class EncryptedPushNotification extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'EncryptedPushNotification', _omitMessageNames ? '' : 'EncryptedPushNotification',
createEmptyInstance: create) createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'keyId', protoName: 'keyId') ..aInt64(1, _omitFieldNames ? '' : 'keyId')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY) 2, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
@ -143,12 +143,11 @@ class PushNotification extends $pb.GeneratedMessage {
_omitMessageNames ? '' : 'PushNotification', _omitMessageNames ? '' : 'PushNotification',
createEmptyInstance: create) createEmptyInstance: create)
..e<PushKind>(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE, ..e<PushKind>(1, _omitFieldNames ? '' : 'kind', $pb.PbFieldType.OE,
defaultOrMaker: PushKind.reaction, defaultOrMaker: PushKind.REACTION,
valueOf: PushKind.valueOf, valueOf: PushKind.valueOf,
enumValues: PushKind.values) enumValues: PushKind.values)
..aOS(2, _omitFieldNames ? '' : 'messageId', protoName: 'messageId') ..aOS(2, _omitFieldNames ? '' : 'messageId')
..aOS(3, _omitFieldNames ? '' : 'additionalContent', ..aOS(3, _omitFieldNames ? '' : 'additionalContent')
protoName: 'additionalContent')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -277,12 +276,12 @@ class PushUser extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo( static final $pb.BuilderInfo _i = $pb.BuilderInfo(
_omitMessageNames ? '' : 'PushUser', _omitMessageNames ? '' : 'PushUser',
createEmptyInstance: create) createEmptyInstance: create)
..aInt64(1, _omitFieldNames ? '' : 'userId', protoName: 'userId') ..aInt64(1, _omitFieldNames ? '' : 'userId')
..aOS(2, _omitFieldNames ? '' : 'displayName', protoName: 'displayName') ..aOS(2, _omitFieldNames ? '' : 'displayName')
..aOB(3, _omitFieldNames ? '' : 'blocked') ..aOB(3, _omitFieldNames ? '' : 'blocked')
..aOS(4, _omitFieldNames ? '' : 'lastMessageId', protoName: 'lastMessageId') ..aOS(4, _omitFieldNames ? '' : 'lastMessageId')
..pc<PushKey>(5, _omitFieldNames ? '' : 'pushKeys', $pb.PbFieldType.PM, ..pc<PushKey>(5, _omitFieldNames ? '' : 'pushKeys', $pb.PbFieldType.PM,
protoName: 'pushKeys', subBuilder: PushKey.create) subBuilder: PushKey.create)
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
@ -373,8 +372,7 @@ class PushKey extends $pb.GeneratedMessage {
..aInt64(1, _omitFieldNames ? '' : 'id') ..aInt64(1, _omitFieldNames ? '' : 'id')
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(
2, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY) 2, _omitFieldNames ? '' : 'key', $pb.PbFieldType.OY)
..aInt64(3, _omitFieldNames ? '' : 'createdAtUnixTimestamp', ..aInt64(3, _omitFieldNames ? '' : 'createdAtUnixTimestamp')
protoName: 'createdAtUnixTimestamp')
..hasRequiredFields = false; ..hasRequiredFields = false;
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')

View file

@ -15,54 +15,54 @@ import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb; import 'package:protobuf/protobuf.dart' as $pb;
class PushKind extends $pb.ProtobufEnum { class PushKind extends $pb.ProtobufEnum {
static const PushKind reaction = static const PushKind REACTION =
PushKind._(0, _omitEnumNames ? '' : 'reaction'); PushKind._(0, _omitEnumNames ? '' : 'REACTION');
static const PushKind response = static const PushKind RESPONSE =
PushKind._(1, _omitEnumNames ? '' : 'response'); PushKind._(1, _omitEnumNames ? '' : 'RESPONSE');
static const PushKind text = PushKind._(2, _omitEnumNames ? '' : 'text'); static const PushKind TEXT = PushKind._(2, _omitEnumNames ? '' : 'TEXT');
static const PushKind video = PushKind._(3, _omitEnumNames ? '' : 'video'); static const PushKind VIDEO = PushKind._(3, _omitEnumNames ? '' : 'VIDEO');
static const PushKind twonly = PushKind._(4, _omitEnumNames ? '' : 'twonly'); static const PushKind TWONLY = PushKind._(4, _omitEnumNames ? '' : 'TWONLY');
static const PushKind image = PushKind._(5, _omitEnumNames ? '' : 'image'); static const PushKind IMAGE = PushKind._(5, _omitEnumNames ? '' : 'IMAGE');
static const PushKind contactRequest = static const PushKind CONTACT_REQUEST =
PushKind._(6, _omitEnumNames ? '' : 'contactRequest'); PushKind._(6, _omitEnumNames ? '' : 'CONTACT_REQUEST');
static const PushKind acceptRequest = static const PushKind ACCEPT_REQUEST =
PushKind._(7, _omitEnumNames ? '' : 'acceptRequest'); PushKind._(7, _omitEnumNames ? '' : 'ACCEPT_REQUEST');
static const PushKind storedMediaFile = static const PushKind STORED_MEDIA_FILE =
PushKind._(8, _omitEnumNames ? '' : 'storedMediaFile'); PushKind._(8, _omitEnumNames ? '' : 'STORED_MEDIA_FILE');
static const PushKind testNotification = static const PushKind TEST_NOTIFICATION =
PushKind._(9, _omitEnumNames ? '' : 'testNotification'); PushKind._(9, _omitEnumNames ? '' : 'TEST_NOTIFICATION');
static const PushKind reopenedMedia = static const PushKind REOPENED_MEDIA =
PushKind._(10, _omitEnumNames ? '' : 'reopenedMedia'); PushKind._(10, _omitEnumNames ? '' : 'REOPENED_MEDIA');
static const PushKind reactionToVideo = static const PushKind REACTION_TO_VIDEO =
PushKind._(11, _omitEnumNames ? '' : 'reactionToVideo'); PushKind._(11, _omitEnumNames ? '' : 'REACTION_TO_VIDEO');
static const PushKind reactionToText = static const PushKind REACTION_TO_TEXT =
PushKind._(12, _omitEnumNames ? '' : 'reactionToText'); PushKind._(12, _omitEnumNames ? '' : 'REACTION_TO_TEXT');
static const PushKind reactionToImage = static const PushKind REACTION_TO_IMAGE =
PushKind._(13, _omitEnumNames ? '' : 'reactionToImage'); PushKind._(13, _omitEnumNames ? '' : 'REACTION_TO_IMAGE');
static const PushKind reactionToAudio = static const PushKind REACTION_TO_AUDIO =
PushKind._(14, _omitEnumNames ? '' : 'reactionToAudio'); PushKind._(14, _omitEnumNames ? '' : 'REACTION_TO_AUDIO');
static const PushKind addedToGroup = static const PushKind ADDED_TO_GROUP =
PushKind._(15, _omitEnumNames ? '' : 'addedToGroup'); PushKind._(15, _omitEnumNames ? '' : 'ADDED_TO_GROUP');
static const PushKind audio = PushKind._(16, _omitEnumNames ? '' : 'audio'); static const PushKind AUDIO = PushKind._(16, _omitEnumNames ? '' : 'AUDIO');
static const $core.List<PushKind> values = <PushKind>[ static const $core.List<PushKind> values = <PushKind>[
reaction, REACTION,
response, RESPONSE,
text, TEXT,
video, VIDEO,
twonly, TWONLY,
image, IMAGE,
contactRequest, CONTACT_REQUEST,
acceptRequest, ACCEPT_REQUEST,
storedMediaFile, STORED_MEDIA_FILE,
testNotification, TEST_NOTIFICATION,
reopenedMedia, REOPENED_MEDIA,
reactionToVideo, REACTION_TO_VIDEO,
reactionToText, REACTION_TO_TEXT,
reactionToImage, REACTION_TO_IMAGE,
reactionToAudio, REACTION_TO_AUDIO,
addedToGroup, ADDED_TO_GROUP,
audio, AUDIO,
]; ];
static final $core.List<PushKind?> _byValue = static final $core.List<PushKind?> _byValue =

View file

@ -18,40 +18,40 @@ import 'dart:typed_data' as $typed_data;
const PushKind$json = { const PushKind$json = {
'1': 'PushKind', '1': 'PushKind',
'2': [ '2': [
{'1': 'reaction', '2': 0}, {'1': 'REACTION', '2': 0},
{'1': 'response', '2': 1}, {'1': 'RESPONSE', '2': 1},
{'1': 'text', '2': 2}, {'1': 'TEXT', '2': 2},
{'1': 'video', '2': 3}, {'1': 'VIDEO', '2': 3},
{'1': 'twonly', '2': 4}, {'1': 'TWONLY', '2': 4},
{'1': 'image', '2': 5}, {'1': 'IMAGE', '2': 5},
{'1': 'contactRequest', '2': 6}, {'1': 'CONTACT_REQUEST', '2': 6},
{'1': 'acceptRequest', '2': 7}, {'1': 'ACCEPT_REQUEST', '2': 7},
{'1': 'storedMediaFile', '2': 8}, {'1': 'STORED_MEDIA_FILE', '2': 8},
{'1': 'testNotification', '2': 9}, {'1': 'TEST_NOTIFICATION', '2': 9},
{'1': 'reopenedMedia', '2': 10}, {'1': 'REOPENED_MEDIA', '2': 10},
{'1': 'reactionToVideo', '2': 11}, {'1': 'REACTION_TO_VIDEO', '2': 11},
{'1': 'reactionToText', '2': 12}, {'1': 'REACTION_TO_TEXT', '2': 12},
{'1': 'reactionToImage', '2': 13}, {'1': 'REACTION_TO_IMAGE', '2': 13},
{'1': 'reactionToAudio', '2': 14}, {'1': 'REACTION_TO_AUDIO', '2': 14},
{'1': 'addedToGroup', '2': 15}, {'1': 'ADDED_TO_GROUP', '2': 15},
{'1': 'audio', '2': 16}, {'1': 'AUDIO', '2': 16},
], ],
}; };
/// Descriptor for `PushKind`. Decode as a `google.protobuf.EnumDescriptorProto`. /// Descriptor for `PushKind`. Decode as a `google.protobuf.EnumDescriptorProto`.
final $typed_data.Uint8List pushKindDescriptor = $convert.base64Decode( final $typed_data.Uint8List pushKindDescriptor = $convert.base64Decode(
'CghQdXNoS2luZBIMCghyZWFjdGlvbhAAEgwKCHJlc3BvbnNlEAESCAoEdGV4dBACEgkKBXZpZG' 'CghQdXNoS2luZBIMCghSRUFDVElPThAAEgwKCFJFU1BPTlNFEAESCAoEVEVYVBACEgkKBVZJRE'
'VvEAMSCgoGdHdvbmx5EAQSCQoFaW1hZ2UQBRISCg5jb250YWN0UmVxdWVzdBAGEhEKDWFjY2Vw' 'VPEAMSCgoGVFdPTkxZEAQSCQoFSU1BR0UQBRITCg9DT05UQUNUX1JFUVVFU1QQBhISCg5BQ0NF'
'dFJlcXVlc3QQBxITCg9zdG9yZWRNZWRpYUZpbGUQCBIUChB0ZXN0Tm90aWZpY2F0aW9uEAkSEQ' 'UFRfUkVRVUVTVBAHEhUKEVNUT1JFRF9NRURJQV9GSUxFEAgSFQoRVEVTVF9OT1RJRklDQVRJT0'
'oNcmVvcGVuZWRNZWRpYRAKEhMKD3JlYWN0aW9uVG9WaWRlbxALEhIKDnJlYWN0aW9uVG9UZXh0' '4QCRISCg5SRU9QRU5FRF9NRURJQRAKEhUKEVJFQUNUSU9OX1RPX1ZJREVPEAsSFAoQUkVBQ1RJ'
'EAwSEwoPcmVhY3Rpb25Ub0ltYWdlEA0SEwoPcmVhY3Rpb25Ub0F1ZGlvEA4SEAoMYWRkZWRUb0' 'T05fVE9fVEVYVBAMEhUKEVJFQUNUSU9OX1RPX0lNQUdFEA0SFQoRUkVBQ1RJT05fVE9fQVVESU'
'dyb3VwEA8SCQoFYXVkaW8QEA=='); '8QDhISCg5BRERFRF9UT19HUk9VUBAPEgkKBUFVRElPEBA=');
@$core.Deprecated('Use encryptedPushNotificationDescriptor instead') @$core.Deprecated('Use encryptedPushNotificationDescriptor instead')
const EncryptedPushNotification$json = { const EncryptedPushNotification$json = {
'1': 'EncryptedPushNotification', '1': 'EncryptedPushNotification',
'2': [ '2': [
{'1': 'keyId', '3': 1, '4': 1, '5': 3, '10': 'keyId'}, {'1': 'key_id', '3': 1, '4': 1, '5': 3, '10': 'keyId'},
{'1': 'nonce', '3': 2, '4': 1, '5': 12, '10': 'nonce'}, {'1': 'nonce', '3': 2, '4': 1, '5': 12, '10': 'nonce'},
{'1': 'ciphertext', '3': 3, '4': 1, '5': 12, '10': 'ciphertext'}, {'1': 'ciphertext', '3': 3, '4': 1, '5': 12, '10': 'ciphertext'},
{'1': 'mac', '3': 4, '4': 1, '5': 12, '10': 'mac'}, {'1': 'mac', '3': 4, '4': 1, '5': 12, '10': 'mac'},
@ -60,9 +60,9 @@ const EncryptedPushNotification$json = {
/// Descriptor for `EncryptedPushNotification`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `EncryptedPushNotification`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List encryptedPushNotificationDescriptor = $convert.base64Decode( final $typed_data.Uint8List encryptedPushNotificationDescriptor = $convert.base64Decode(
'ChlFbmNyeXB0ZWRQdXNoTm90aWZpY2F0aW9uEhQKBWtleUlkGAEgASgDUgVrZXlJZBIUCgVub2' 'ChlFbmNyeXB0ZWRQdXNoTm90aWZpY2F0aW9uEhUKBmtleV9pZBgBIAEoA1IFa2V5SWQSFAoFbm'
'5jZRgCIAEoDFIFbm9uY2USHgoKY2lwaGVydGV4dBgDIAEoDFIKY2lwaGVydGV4dBIQCgNtYWMY' '9uY2UYAiABKAxSBW5vbmNlEh4KCmNpcGhlcnRleHQYAyABKAxSCmNpcGhlcnRleHQSEAoDbWFj'
'BCABKAxSA21hYw=='); 'GAQgASgMUgNtYWM=');
@$core.Deprecated('Use pushNotificationDescriptor instead') @$core.Deprecated('Use pushNotificationDescriptor instead')
const PushNotification$json = { const PushNotification$json = {
@ -70,7 +70,7 @@ const PushNotification$json = {
'2': [ '2': [
{'1': 'kind', '3': 1, '4': 1, '5': 14, '6': '.PushKind', '10': 'kind'}, {'1': 'kind', '3': 1, '4': 1, '5': 14, '6': '.PushKind', '10': 'kind'},
{ {
'1': 'messageId', '1': 'message_id',
'3': 2, '3': 2,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -79,7 +79,7 @@ const PushNotification$json = {
'17': true '17': true
}, },
{ {
'1': 'additionalContent', '1': 'additional_content',
'3': 3, '3': 3,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -89,17 +89,17 @@ const PushNotification$json = {
}, },
], ],
'8': [ '8': [
{'1': '_messageId'}, {'1': '_message_id'},
{'1': '_additionalContent'}, {'1': '_additional_content'},
], ],
}; };
/// Descriptor for `PushNotification`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `PushNotification`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List pushNotificationDescriptor = $convert.base64Decode( final $typed_data.Uint8List pushNotificationDescriptor = $convert.base64Decode(
'ChBQdXNoTm90aWZpY2F0aW9uEh0KBGtpbmQYASABKA4yCS5QdXNoS2luZFIEa2luZBIhCgltZX' 'ChBQdXNoTm90aWZpY2F0aW9uEh0KBGtpbmQYASABKA4yCS5QdXNoS2luZFIEa2luZBIiCgptZX'
'NzYWdlSWQYAiABKAlIAFIJbWVzc2FnZUlkiAEBEjEKEWFkZGl0aW9uYWxDb250ZW50GAMgASgJ' 'NzYWdlX2lkGAIgASgJSABSCW1lc3NhZ2VJZIgBARIyChJhZGRpdGlvbmFsX2NvbnRlbnQYAyAB'
'SAFSEWFkZGl0aW9uYWxDb250ZW50iAEBQgwKCl9tZXNzYWdlSWRCFAoSX2FkZGl0aW9uYWxDb2' 'KAlIAVIRYWRkaXRpb25hbENvbnRlbnSIAQFCDQoLX21lc3NhZ2VfaWRCFQoTX2FkZGl0aW9uYW'
'50ZW50'); 'xfY29udGVudA==');
@$core.Deprecated('Use pushUsersDescriptor instead') @$core.Deprecated('Use pushUsersDescriptor instead')
const PushUsers$json = { const PushUsers$json = {
@ -117,11 +117,11 @@ final $typed_data.Uint8List pushUsersDescriptor = $convert.base64Decode(
const PushUser$json = { const PushUser$json = {
'1': 'PushUser', '1': 'PushUser',
'2': [ '2': [
{'1': 'userId', '3': 1, '4': 1, '5': 3, '10': 'userId'}, {'1': 'user_id', '3': 1, '4': 1, '5': 3, '10': 'userId'},
{'1': 'displayName', '3': 2, '4': 1, '5': 9, '10': 'displayName'}, {'1': 'display_name', '3': 2, '4': 1, '5': 9, '10': 'displayName'},
{'1': 'blocked', '3': 3, '4': 1, '5': 8, '10': 'blocked'}, {'1': 'blocked', '3': 3, '4': 1, '5': 8, '10': 'blocked'},
{ {
'1': 'lastMessageId', '1': 'last_message_id',
'3': 4, '3': 4,
'4': 1, '4': 1,
'5': 9, '5': 9,
@ -130,7 +130,7 @@ const PushUser$json = {
'17': true '17': true
}, },
{ {
'1': 'pushKeys', '1': 'push_keys',
'3': 5, '3': 5,
'4': 3, '4': 3,
'5': 11, '5': 11,
@ -139,16 +139,16 @@ const PushUser$json = {
}, },
], ],
'8': [ '8': [
{'1': '_lastMessageId'}, {'1': '_last_message_id'},
], ],
}; };
/// Descriptor for `PushUser`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `PushUser`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List pushUserDescriptor = $convert.base64Decode( final $typed_data.Uint8List pushUserDescriptor = $convert.base64Decode(
'CghQdXNoVXNlchIWCgZ1c2VySWQYASABKANSBnVzZXJJZBIgCgtkaXNwbGF5TmFtZRgCIAEoCV' 'CghQdXNoVXNlchIXCgd1c2VyX2lkGAEgASgDUgZ1c2VySWQSIQoMZGlzcGxheV9uYW1lGAIgAS'
'ILZGlzcGxheU5hbWUSGAoHYmxvY2tlZBgDIAEoCFIHYmxvY2tlZBIpCg1sYXN0TWVzc2FnZUlk' 'gJUgtkaXNwbGF5TmFtZRIYCgdibG9ja2VkGAMgASgIUgdibG9ja2VkEisKD2xhc3RfbWVzc2Fn'
'GAQgASgJSABSDWxhc3RNZXNzYWdlSWSIAQESJAoIcHVzaEtleXMYBSADKAsyCC5QdXNoS2V5Ug' 'ZV9pZBgEIAEoCUgAUg1sYXN0TWVzc2FnZUlkiAEBEiUKCXB1c2hfa2V5cxgFIAMoCzIILlB1c2'
'hwdXNoS2V5c0IQCg5fbGFzdE1lc3NhZ2VJZA=='); 'hLZXlSCHB1c2hLZXlzQhIKEF9sYXN0X21lc3NhZ2VfaWQ=');
@$core.Deprecated('Use pushKeyDescriptor instead') @$core.Deprecated('Use pushKeyDescriptor instead')
const PushKey$json = { const PushKey$json = {
@ -157,7 +157,7 @@ const PushKey$json = {
{'1': 'id', '3': 1, '4': 1, '5': 3, '10': 'id'}, {'1': 'id', '3': 1, '4': 1, '5': 3, '10': 'id'},
{'1': 'key', '3': 2, '4': 1, '5': 12, '10': 'key'}, {'1': 'key', '3': 2, '4': 1, '5': 12, '10': 'key'},
{ {
'1': 'createdAtUnixTimestamp', '1': 'created_at_unix_timestamp',
'3': 3, '3': 3,
'4': 1, '4': 1,
'5': 3, '5': 3,
@ -168,5 +168,5 @@ const PushKey$json = {
/// Descriptor for `PushKey`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `PushKey`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List pushKeyDescriptor = $convert.base64Decode( final $typed_data.Uint8List pushKeyDescriptor = $convert.base64Decode(
'CgdQdXNoS2V5Eg4KAmlkGAEgASgDUgJpZBIQCgNrZXkYAiABKAxSA2tleRI2ChZjcmVhdGVkQX' 'CgdQdXNoS2V5Eg4KAmlkGAEgASgDUgJpZBIQCgNrZXkYAiABKAxSA2tleRI5ChljcmVhdGVkX2'
'RVbml4VGltZXN0YW1wGAMgASgDUhZjcmVhdGVkQXRVbml4VGltZXN0YW1w'); 'F0X3VuaXhfdGltZXN0YW1wGAMgASgDUhZjcmVhdGVkQXRVbml4VGltZXN0YW1w');

View file

@ -45,7 +45,7 @@ class QREnvelope extends $pb.GeneratedMessage {
_omitMessageNames ? '' : 'QREnvelope', _omitMessageNames ? '' : 'QREnvelope',
createEmptyInstance: create) createEmptyInstance: create)
..e<QREnvelope_Type>(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, ..e<QREnvelope_Type>(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE,
defaultOrMaker: QREnvelope_Type.PublicProfile, defaultOrMaker: QREnvelope_Type.PUBLIC_PROFILE,
valueOf: QREnvelope_Type.valueOf, valueOf: QREnvelope_Type.valueOf,
enumValues: QREnvelope_Type.values) enumValues: QREnvelope_Type.values)
..a<$core.List<$core.int>>( ..a<$core.List<$core.int>>(

View file

@ -15,11 +15,11 @@ import 'dart:core' as $core;
import 'package:protobuf/protobuf.dart' as $pb; import 'package:protobuf/protobuf.dart' as $pb;
class QREnvelope_Type extends $pb.ProtobufEnum { class QREnvelope_Type extends $pb.ProtobufEnum {
static const QREnvelope_Type PublicProfile = static const QREnvelope_Type PUBLIC_PROFILE =
QREnvelope_Type._(0, _omitEnumNames ? '' : 'PublicProfile'); QREnvelope_Type._(0, _omitEnumNames ? '' : 'PUBLIC_PROFILE');
static const $core.List<QREnvelope_Type> values = <QREnvelope_Type>[ static const $core.List<QREnvelope_Type> values = <QREnvelope_Type>[
PublicProfile, PUBLIC_PROFILE,
]; ];
static final $core.List<QREnvelope_Type?> _byValue = static final $core.List<QREnvelope_Type?> _byValue =

View file

@ -35,14 +35,14 @@ const QREnvelope$json = {
const QREnvelope_Type$json = { const QREnvelope_Type$json = {
'1': 'Type', '1': 'Type',
'2': [ '2': [
{'1': 'PublicProfile', '2': 0}, {'1': 'PUBLIC_PROFILE', '2': 0},
], ],
}; };
/// Descriptor for `QREnvelope`. Decode as a `google.protobuf.DescriptorProto`. /// Descriptor for `QREnvelope`. Decode as a `google.protobuf.DescriptorProto`.
final $typed_data.Uint8List qREnvelopeDescriptor = $convert.base64Decode( final $typed_data.Uint8List qREnvelopeDescriptor = $convert.base64Decode(
'CgpRUkVudmVsb3BlEiQKBHR5cGUYAiABKA4yEC5RUkVudmVsb3BlLlR5cGVSBHR5cGUSEgoEZG' 'CgpRUkVudmVsb3BlEiQKBHR5cGUYAiABKA4yEC5RUkVudmVsb3BlLlR5cGVSBHR5cGUSEgoEZG'
'F0YRgDIAEoDFIEZGF0YSIZCgRUeXBlEhEKDVB1YmxpY1Byb2ZpbGUQAA=='); 'F0YRgDIAEoDFIEZGF0YSIaCgRUeXBlEhIKDlBVQkxJQ19QUk9GSUxFEAA=');
@$core.Deprecated('Use publicProfileDescriptor instead') @$core.Deprecated('Use publicProfileDescriptor instead')
const PublicProfile$json = { const PublicProfile$json = {

View file

@ -2,10 +2,10 @@ syntax = "proto3";
// Stored encrypted on the server in the members columns. // Stored encrypted on the server in the members columns.
message EncryptedGroupState { message EncryptedGroupState {
repeated int64 memberIds = 1; repeated int64 member_ids = 1;
repeated int64 adminIds = 2; repeated int64 admin_ids = 2;
string groupName = 3; string group_name = 3;
optional int64 deleteMessagesAfterMilliseconds = 4; optional int64 delete_messages_after_milliseconds = 4;
bytes padding = 5; bytes padding = 5;
} }
@ -18,6 +18,6 @@ message EncryptedAppendedGroupState {
message EncryptedGroupStateEnvelop { message EncryptedGroupStateEnvelop {
bytes nonce = 1; bytes nonce = 1;
bytes encryptedGroupState = 2; bytes encrypted_group_state = 2;
bytes mac = 3; bytes mac = 3;
} }

View file

@ -9,14 +9,14 @@ message Message {
TEST_NOTIFICATION = 4; TEST_NOTIFICATION = 4;
} }
Type type = 1; Type type = 1;
string receiptId = 2; string receipt_id = 2;
optional bytes encryptedContent = 3; optional bytes encrypted_content = 3;
optional PlaintextContent plaintextContent = 4; optional PlaintextContent plaintext_content = 4;
} }
message PlaintextContent { message PlaintextContent {
optional DecryptionErrorMessage decryptionErrorMessage = 1; optional DecryptionErrorMessage decryption_error_message = 1;
optional RetryErrorMessage retryControlError = 2; optional RetryErrorMessage retry_control_error = 2;
message RetryErrorMessage { } message RetryErrorMessage { }
@ -29,31 +29,33 @@ message PlaintextContent {
} }
} }
message EncryptedContent { message EncryptedContent {
optional string groupId = 2; optional string group_id = 2;
optional bool isDirectChat = 3; optional bool is_direct_chat = 3;
/// This can be added, so the receiver can check weather he is up to date with the current profile /// This can be added, so the receiver can check weather he is up to date with the current profile
optional int64 senderProfileCounter = 4; optional int64 sender_profile_counter = 4;
optional bytes sender_user_discovery_version = 21;
optional MessageUpdate messageUpdate = 5; optional MessageUpdate message_update = 5;
optional Media media = 6; optional Media media = 6;
optional MediaUpdate mediaUpdate = 7; optional MediaUpdate media_update = 7;
optional ContactUpdate contactUpdate = 8; optional ContactUpdate contact_update = 8;
optional ContactRequest contactRequest = 9; optional ContactRequest contact_request = 9;
optional FlameSync flameSync = 10; optional FlameSync flame_sync = 10;
optional PushKeys pushKeys = 11; optional PushKeys push_keys = 11;
optional Reaction reaction = 12; optional Reaction reaction = 12;
optional TextMessage textMessage = 13; optional TextMessage text_message = 13;
optional GroupCreate groupCreate = 14; optional GroupCreate group_create = 14;
optional GroupJoin groupJoin = 15; optional GroupJoin group_join = 15;
optional GroupUpdate groupUpdate = 16; optional GroupUpdate group_update = 16;
optional ResendGroupPublicKey resendGroupPublicKey = 17; optional ResendGroupPublicKey resend_group_public_key = 17;
optional ErrorMessages error_messages = 18; optional ErrorMessages error_messages = 18;
optional AdditionalDataMessage additional_data_message = 19; optional AdditionalDataMessage additional_data_message = 19;
optional TypingIndicator typing_indicator = 20; optional TypingIndicator typing_indicator = 20;
optional UserDiscoveryRequest user_discovery_request = 22;
optional UserDiscoveryUpdate user_discovery_update = 23;
message ErrorMessages { message ErrorMessages {
enum Type { enum Type {
@ -65,16 +67,15 @@ message EncryptedContent {
string related_receipt_id = 2; string related_receipt_id = 2;
} }
message GroupCreate { message GroupCreate {
// key for the state stored on the server // key for the state stored on the server
bytes stateKey = 3; bytes state_key = 3;
bytes groupPublicKey = 4; bytes group_public_key = 4;
} }
message GroupJoin { message GroupJoin {
// key for the state stored on the server // key for the state stored on the server
bytes groupPublicKey = 1; bytes group_public_key = 1;
} }
message ResendGroupPublicKey { message ResendGroupPublicKey {
@ -82,17 +83,17 @@ message EncryptedContent {
} }
message GroupUpdate { message GroupUpdate {
string groupActionType = 1; // GroupActionType.name string group_action_type = 1; // GroupActionType.name
optional int64 affectedContactId = 2; optional int64 affected_contact_id = 2;
optional string newGroupName = 3; optional string new_group_name = 3;
optional int64 newDeleteMessagesAfterMilliseconds = 4; optional int64 new_delete_messages_after_milliseconds = 4;
} }
message TextMessage { message TextMessage {
string senderMessageId = 1; string sender_message_id = 1;
string text = 2; string text = 2;
int64 timestamp = 3; int64 timestamp = 3;
optional string quoteMessageId = 4; optional string quote_message_id = 4;
} }
message AdditionalDataMessage { message AdditionalDataMessage {
@ -103,7 +104,7 @@ message EncryptedContent {
} }
message Reaction { message Reaction {
string targetMessageId = 1; string target_message_id = 1;
string emoji = 2; string emoji = 2;
bool remove = 3; bool remove = 3;
} }
@ -115,8 +116,8 @@ message EncryptedContent {
OPENED = 2; OPENED = 2;
} }
Type type = 1; Type type = 1;
optional string senderMessageId = 2; optional string sender_message_id = 2;
repeated string multipleTargetMessageIds = 3; repeated string multiple_target_message_ids = 3;
optional string text = 4; optional string text = 4;
int64 timestamp = 5; int64 timestamp = 5;
} }
@ -130,17 +131,17 @@ message EncryptedContent {
AUDIO = 4; AUDIO = 4;
} }
string senderMessageId = 1; string sender_message_id = 1;
Type type = 2; Type type = 2;
optional int64 displayLimitInMilliseconds = 3; optional int64 display_limit_in_milliseconds = 3;
bool requiresAuthentication = 4; bool requires_authentication = 4;
int64 timestamp = 5; int64 timestamp = 5;
optional string quoteMessageId = 6; optional string quote_message_id = 6;
optional bytes downloadToken = 7; optional bytes download_token = 7;
optional bytes encryptionKey = 8; optional bytes encryption_key = 8;
optional bytes encryptionMac = 9; optional bytes encryption_mac = 9;
optional bytes encryptionNonce = 10; optional bytes encryption_nonce = 10;
optional bytes additional_message_data = 11; optional bytes additional_message_data = 11;
} }
@ -152,7 +153,7 @@ message EncryptedContent {
DECRYPTION_ERROR = 2; DECRYPTION_ERROR = 2;
} }
Type type = 1; Type type = 1;
string targetMessageId = 2; string target_message_id = 2;
} }
message ContactRequest { message ContactRequest {
@ -171,9 +172,9 @@ message EncryptedContent {
} }
Type type = 1; Type type = 1;
optional bytes avatarSvgCompressed = 2; optional bytes avatar_svg_compressed = 2;
optional string username = 3; optional string username = 3;
optional string displayName = 4; optional string display_name = 4;
} }
message PushKeys { message PushKeys {
@ -183,16 +184,16 @@ message EncryptedContent {
} }
Type type = 1; Type type = 1;
optional int64 keyId = 2; optional int64 key_id = 2;
optional bytes key = 3; optional bytes key = 3;
optional int64 createdAt = 4; optional int64 created_at = 4;
} }
message FlameSync { message FlameSync {
int64 flameCounter = 1; int64 flame_counter = 1;
int64 lastFlameCounterChange = 2; int64 last_flame_counter_change = 2;
bool bestFriend = 3; bool best_friend = 3;
bool forceUpdate = 4; bool force_update = 4;
} }
message TypingIndicator { message TypingIndicator {
@ -200,4 +201,12 @@ message EncryptedContent {
int64 created_at = 2; int64 created_at = 2;
} }
message UserDiscoveryRequest {
bytes current_version = 1;
}
message UserDiscoveryUpdate {
repeated bytes messages = 1;
}
} }

View file

@ -1,53 +1,52 @@
syntax = "proto3"; syntax = "proto3";
message EncryptedPushNotification { message EncryptedPushNotification {
int64 keyId = 1; int64 key_id = 1;
bytes nonce = 2; bytes nonce = 2;
bytes ciphertext = 3; bytes ciphertext = 3;
bytes mac = 4; bytes mac = 4;
} }
enum PushKind { enum PushKind {
reaction = 0; REACTION = 0;
response = 1; RESPONSE = 1;
text = 2; TEXT = 2;
video = 3; VIDEO = 3;
twonly = 4; TWONLY = 4;
image = 5; IMAGE = 5;
contactRequest = 6; CONTACT_REQUEST = 6;
acceptRequest = 7; ACCEPT_REQUEST = 7;
storedMediaFile = 8; STORED_MEDIA_FILE = 8;
testNotification = 9; TEST_NOTIFICATION = 9;
reopenedMedia = 10; REOPENED_MEDIA = 10;
reactionToVideo = 11; REACTION_TO_VIDEO = 11;
reactionToText = 12; REACTION_TO_TEXT = 12;
reactionToImage = 13; REACTION_TO_IMAGE = 13;
reactionToAudio = 14; REACTION_TO_AUDIO = 14;
addedToGroup = 15; ADDED_TO_GROUP = 15;
audio = 16; AUDIO = 16;
}; };
message PushNotification { message PushNotification {
PushKind kind = 1; PushKind kind = 1;
optional string messageId = 2; optional string message_id = 2;
optional string additionalContent = 3; optional string additional_content = 3;
} }
message PushUsers { message PushUsers {
repeated PushUser users = 1; repeated PushUser users = 1;
} }
message PushUser { message PushUser {
int64 userId = 1; int64 user_id = 1;
string displayName = 2; string display_name = 2;
bool blocked = 3; bool blocked = 3;
optional string lastMessageId = 4; optional string last_message_id = 4;
repeated PushKey pushKeys = 5; repeated PushKey push_keys = 5;
} }
message PushKey { message PushKey {
int64 id = 1; int64 id = 1;
bytes key = 2; bytes key = 2;
int64 createdAtUnixTimestamp = 3; int64 created_at_unix_timestamp = 3;
} }

View file

@ -2,7 +2,7 @@ syntax = "proto3";
message QREnvelope { message QREnvelope {
enum Type { enum Type {
PublicProfile = 0; PUBLIC_PROFILE = 0;
} }
Type type = 2; Type type = 2;
bytes data = 3; bytes data = 3;

View file

@ -120,7 +120,7 @@ Future<(Uint8List, Uint8List?)?> tryToSendCompleteMessage({
} }
if (message.type == pb.Message_Type.TEST_NOTIFICATION) { if (message.type == pb.Message_Type.TEST_NOTIFICATION) {
pushData = (PushNotification()..kind = PushKind.testNotification) pushData = (PushNotification()..kind = PushKind.TEST_NOTIFICATION)
.writeToBuffer(); .writeToBuffer();
} }

View file

@ -100,7 +100,7 @@ Future<void> handlePushData(String pushDataB64) async {
} }
if (pushNotification != null) { if (pushNotification != null) {
if (pushNotification.kind == PushKind.testNotification) { if (pushNotification.kind == PushKind.TEST_NOTIFICATION) {
await customLocalPushNotification( await customLocalPushNotification(
'Test notification', 'Test notification',
'This is a test notification.', 'This is a test notification.',
@ -206,13 +206,13 @@ Future<void> showLocalPushNotification(
String? payload; String? payload;
if (groupId != null && if (groupId != null &&
(pushNotification.kind == PushKind.text || (pushNotification.kind == PushKind.TEXT ||
pushNotification.kind == PushKind.response || pushNotification.kind == PushKind.RESPONSE ||
pushNotification.kind == PushKind.reactionToAudio || pushNotification.kind == PushKind.REACTION_TO_AUDIO ||
pushNotification.kind == PushKind.storedMediaFile || pushNotification.kind == PushKind.STORED_MEDIA_FILE ||
pushNotification.kind == PushKind.reactionToImage || pushNotification.kind == PushKind.REACTION_TO_IMAGE ||
pushNotification.kind == PushKind.reactionToText || pushNotification.kind == PushKind.REACTION_TO_TEXT ||
pushNotification.kind == PushKind.reactionToAudio)) { pushNotification.kind == PushKind.REACTION_TO_VIDEO)) {
payload = Routes.chatsMessages(groupId); payload = Routes.chatsMessages(groupId);
} }
@ -234,7 +234,7 @@ Future<void> showLocalPushNotificationWithoutUserId(
var title = lang.notificationTitleUnknown; var title = lang.notificationTitleUnknown;
var body = lang.notificationBodyUnknown; var body = lang.notificationBodyUnknown;
if (pushNotification.kind == PushKind.contactRequest) { if (pushNotification.kind == PushKind.CONTACT_REQUEST) {
title = lang.you; title = lang.you;
body = lang.notificationContactRequestUnknownUser; body = lang.notificationContactRequestUnknownUser;
} }
@ -291,30 +291,30 @@ String getPushNotificationText(PushNotification pushNotification) {
} }
final pushNotificationText = { final pushNotificationText = {
PushKind.text.name: lang.notificationText(inGroup), PushKind.TEXT.name: lang.notificationText(inGroup),
PushKind.twonly.name: lang.notificationTwonly(inGroup), PushKind.TWONLY.name: lang.notificationTwonly(inGroup),
PushKind.video.name: lang.notificationVideo(inGroup), PushKind.VIDEO.name: lang.notificationVideo(inGroup),
PushKind.image.name: lang.notificationImage(inGroup), PushKind.IMAGE.name: lang.notificationImage(inGroup),
PushKind.audio.name: lang.notificationAudio(inGroup), PushKind.AUDIO.name: lang.notificationAudio(inGroup),
PushKind.contactRequest.name: lang.notificationContactRequest, PushKind.CONTACT_REQUEST.name: lang.notificationContactRequest,
PushKind.acceptRequest.name: lang.notificationAcceptRequest, PushKind.ACCEPT_REQUEST.name: lang.notificationAcceptRequest,
PushKind.storedMediaFile.name: lang.notificationStoredMediaFile, PushKind.STORED_MEDIA_FILE.name: lang.notificationStoredMediaFile,
PushKind.reaction.name: lang.notificationReaction, PushKind.REACTION.name: lang.notificationReaction,
PushKind.reopenedMedia.name: lang.notificationReopenedMedia, PushKind.REOPENED_MEDIA.name: lang.notificationReopenedMedia,
PushKind.reactionToVideo.name: lang.notificationReactionToVideo( PushKind.REACTION_TO_VIDEO.name: lang.notificationReactionToVideo(
pushNotification.additionalContent, pushNotification.additionalContent,
), ),
PushKind.reactionToAudio.name: lang.notificationReactionToAudio( PushKind.REACTION_TO_AUDIO.name: lang.notificationReactionToAudio(
pushNotification.additionalContent, pushNotification.additionalContent,
), ),
PushKind.reactionToText.name: lang.notificationReactionToText( PushKind.REACTION_TO_TEXT.name: lang.notificationReactionToText(
pushNotification.additionalContent, pushNotification.additionalContent,
), ),
PushKind.reactionToImage.name: lang.notificationReactionToImage( PushKind.REACTION_TO_IMAGE.name: lang.notificationReactionToImage(
pushNotification.additionalContent, pushNotification.additionalContent,
), ),
PushKind.response.name: lang.notificationResponse(inGroup), PushKind.RESPONSE.name: lang.notificationResponse(inGroup),
PushKind.addedToGroup.name: lang.notificationAddedToGroup( PushKind.ADDED_TO_GROUP.name: lang.notificationAddedToGroup(
pushNotification.additionalContent, pushNotification.additionalContent,
), ),
}; };

View file

@ -216,28 +216,28 @@ Future<PushNotification?> getPushNotificationFromEncryptedContent(
return null; return null;
} }
if (msg.content != null) { if (msg.content != null) {
kind = PushKind.reactionToText; kind = PushKind.REACTION_TO_TEXT;
} else if (msg.mediaId != null) { } else if (msg.mediaId != null) {
final media = await twonlyDB.mediaFilesDao.getMediaFileById(msg.mediaId!); final media = await twonlyDB.mediaFilesDao.getMediaFileById(msg.mediaId!);
if (media == null) return null; if (media == null) return null;
switch (media.type) { switch (media.type) {
case MediaType.image: case MediaType.image:
kind = PushKind.reactionToImage; kind = PushKind.REACTION_TO_IMAGE;
case MediaType.audio: case MediaType.audio:
kind = PushKind.reactionToAudio; kind = PushKind.REACTION_TO_AUDIO;
case MediaType.video: case MediaType.video:
kind = PushKind.reactionToVideo; kind = PushKind.REACTION_TO_VIDEO;
case MediaType.gif: case MediaType.gif:
kind = PushKind.reaction; kind = PushKind.REACTION;
} }
} }
additionalContent = content.reaction.emoji; additionalContent = content.reaction.emoji;
} }
if (content.hasTextMessage()) { if (content.hasTextMessage()) {
kind = PushKind.text; kind = PushKind.TEXT;
if (content.textMessage.hasQuoteMessageId()) { if (content.textMessage.hasQuoteMessageId()) {
kind = PushKind.response; kind = PushKind.RESPONSE;
} }
final group = await twonlyDB.groupsDao.getGroup(content.groupId); final group = await twonlyDB.groupsDao.getGroup(content.groupId);
if (group != null && !group.isDirectChat) { if (group != null && !group.isDirectChat) {
@ -246,7 +246,7 @@ Future<PushNotification?> getPushNotificationFromEncryptedContent(
} }
if (content.hasAdditionalDataMessage()) { if (content.hasAdditionalDataMessage()) {
kind = PushKind.text; kind = PushKind.TEXT;
} }
if (content.hasMedia()) { if (content.hasMedia()) {
@ -254,16 +254,16 @@ Future<PushNotification?> getPushNotificationFromEncryptedContent(
case EncryptedContent_Media_Type.REUPLOAD: case EncryptedContent_Media_Type.REUPLOAD:
return null; return null;
case EncryptedContent_Media_Type.IMAGE: case EncryptedContent_Media_Type.IMAGE:
kind = PushKind.image; kind = PushKind.IMAGE;
case EncryptedContent_Media_Type.VIDEO: case EncryptedContent_Media_Type.VIDEO:
kind = PushKind.video; kind = PushKind.VIDEO;
case EncryptedContent_Media_Type.GIF: case EncryptedContent_Media_Type.GIF:
kind = PushKind.image; kind = PushKind.IMAGE;
case EncryptedContent_Media_Type.AUDIO: case EncryptedContent_Media_Type.AUDIO:
kind = PushKind.audio; kind = PushKind.AUDIO;
} }
if (content.media.requiresAuthentication) { if (content.media.requiresAuthentication) {
kind = PushKind.twonly; kind = PushKind.TWONLY;
} }
final group = await twonlyDB.groupsDao.getGroup(content.groupId); final group = await twonlyDB.groupsDao.getGroup(content.groupId);
if (group != null && !group.isDirectChat) { if (group != null && !group.isDirectChat) {
@ -274,9 +274,9 @@ Future<PushNotification?> getPushNotificationFromEncryptedContent(
if (content.hasContactRequest()) { if (content.hasContactRequest()) {
switch (content.contactRequest.type) { switch (content.contactRequest.type) {
case EncryptedContent_ContactRequest_Type.REQUEST: case EncryptedContent_ContactRequest_Type.REQUEST:
kind = PushKind.contactRequest; kind = PushKind.CONTACT_REQUEST;
case EncryptedContent_ContactRequest_Type.ACCEPT: case EncryptedContent_ContactRequest_Type.ACCEPT:
kind = PushKind.acceptRequest; kind = PushKind.ACCEPT_REQUEST;
case EncryptedContent_ContactRequest_Type.REJECT: case EncryptedContent_ContactRequest_Type.REJECT:
return null; return null;
} }
@ -292,16 +292,16 @@ Future<PushNotification?> getPushNotificationFromEncryptedContent(
} }
switch (content.mediaUpdate.type) { switch (content.mediaUpdate.type) {
case EncryptedContent_MediaUpdate_Type.REOPENED: case EncryptedContent_MediaUpdate_Type.REOPENED:
kind = PushKind.reopenedMedia; kind = PushKind.REOPENED_MEDIA;
case EncryptedContent_MediaUpdate_Type.STORED: case EncryptedContent_MediaUpdate_Type.STORED:
kind = PushKind.storedMediaFile; kind = PushKind.STORED_MEDIA_FILE;
case EncryptedContent_MediaUpdate_Type.DECRYPTION_ERROR: case EncryptedContent_MediaUpdate_Type.DECRYPTION_ERROR:
return null; return null;
} }
} }
if (content.hasGroupCreate()) { if (content.hasGroupCreate()) {
kind = PushKind.addedToGroup; kind = PushKind.ADDED_TO_GROUP;
final group = await twonlyDB.groupsDao.getGroup(content.groupId); final group = await twonlyDB.groupsDao.getGroup(content.groupId);
additionalContent = group!.groupName; additionalContent = group!.groupName;
} }
@ -344,9 +344,9 @@ Future<Uint8List?> encryptPushNotification(
// user does not have send any push keys // user does not have send any push keys
// only allow accept request and contact request to be send in an insecure way :/ // only allow accept request and contact request to be send in an insecure way :/
// In future find a better way, e.g. use the signal protocol in a native way.. // In future find a better way, e.g. use the signal protocol in a native way..
if (content.kind != PushKind.acceptRequest && if (content.kind != PushKind.ACCEPT_REQUEST &&
content.kind != PushKind.contactRequest && content.kind != PushKind.CONTACT_REQUEST &&
content.kind != PushKind.testNotification) { content.kind != PushKind.TEST_NOTIFICATION) {
// this will be enforced after every app uses this system... :/ // this will be enforced after every app uses this system... :/
// return null; // return null;
Log.warn('Using insecure key as the receiver does not send a push key!'); Log.warn('Using insecure key as the receiver does not send a push key!');

View file

@ -31,7 +31,7 @@ Future<Uint8List> getProfileQrCodeData() async {
final data = publicProfile.writeToBuffer(); final data = publicProfile.writeToBuffer();
final qrEnvelope = QREnvelope( final qrEnvelope = QREnvelope(
type: QREnvelope_Type.PublicProfile, type: QREnvelope_Type.PUBLIC_PROFILE,
data: data, data: data,
); );
@ -47,7 +47,7 @@ Future<Uint8List> getUserPublicKey() async {
PublicProfile? parseQrCodeData(Uint8List rawBytes) { PublicProfile? parseQrCodeData(Uint8List rawBytes) {
try { try {
final envelop = QREnvelope.fromBuffer(rawBytes); final envelop = QREnvelope.fromBuffer(rawBytes);
if (envelop.type == QREnvelope_Type.PublicProfile) { if (envelop.type == QREnvelope_Type.PUBLIC_PROFILE) {
return PublicProfile.fromBuffer(envelop.data); return PublicProfile.fromBuffer(envelop.data);
} }
} catch (e) { } catch (e) {

View file

@ -61,7 +61,7 @@ class _NotificationViewState extends State<NotificationView> {
user.userId, user.userId,
PushNotification( PushNotification(
messageId: uuid.v4(), messageId: uuid.v4(),
kind: PushKind.testNotification, kind: PushKind.TEST_NOTIFICATION,
), ),
); );
await apiService.sendTextMessage( await apiService.sendTextMessage(