signal-desktop/protos/DeviceMessages.proto

40 lines
999 B
Protocol Buffer
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2014 Signal Messenger, LLC
2021-07-20 20:18:35 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
Sync Protocol Buffers with `libsignal-service-java` (#2046) Synchronizes our protocol buffers with `libsignal-service-java` project. **Changes** - [x] **BREAKING:** Rename `package` from `textsecure` to `signalservice`. ⚠️~~Workaround: Rename back to `textsecure`.~~ Changed all protobuf `package` names across our project. - [x] Rename `java_` metadata. - [x] Move `NullMessage`, `ReceiptMessage`, and `Verified`. - [x] Rename `Contacts.isComplete` to `Contacts.complete`. Confirmed to be unreferenced in our project. - [x] Rename `Settings` to `Configuration` (`textsecure.protobuf.Settings` seems to be unused) - [x] Rename `libtextsecure` `MessageReceiver` `settings` event to `configuration`. - [x] Rename `ReceiptMessage.timestamps` to `ReceiptMessage.timestamp`. - [x] Add `AttachmentPointer` `width` and `height`. - [x] Renamed `IncomingPushMessageSignal.proto` to `SignalService.proto` to match server. --- commit 2b6aa19bf9ea5d8f2f4fd9e4102699a9d06a2b45 Author: Daniel Gasienica <daniel@gasienica.ch> Date: Wed Feb 14 19:41:24 2018 -0500 Rename protobuf `package`: `textsecure` --> `signalservice` Brings us closer to `libsignal-service-java`. commit 91612880a5bf2c9ae8a9334877ac24e91102b905 Author: Daniel Gasienica <daniel@gasienica.ch> Date: Wed Feb 14 19:19:35 2018 -0500 Rename `SyncMessage.Settings` to `SyncMessage.Configuration` commit 848eb9559928c54dffd3426bba8e7cd7b1687cdc Author: Daniel Gasienica <daniel@gasienica.ch> Date: Tue Feb 13 20:16:43 2018 -0500 Rename `ReadReceipt` `timestamps` --> `timestamp` commit 39859e64b41ddf41127b52d963fe7cc2b9fcad68 Author: Daniel Gasienica <daniel@gasienica.ch> Date: Wed Feb 14 18:43:42 2018 -0500 Rename `IncomingPushMessageSignal.proto` to `SignalService.proto` This matches the `libsignal-service-java` filename. commit fd4bfd76af57ffa44178caf21d350cca211dc048 Author: Daniel Gasienica <daniel@gasienica.ch> Date: Tue Feb 13 16:24:36 2018 -0500 Revert protobuf `package` to `textsecure` This was a breaking change and would need to be introduced with additional changes. commit 9f618fa91717a0349f1ea28bf6d365ef0a5c9ca5 Author: Daniel Gasienica <daniel@gasienica.ch> Date: Tue Feb 13 16:09:55 2018 -0500 Sync service protocol buffers with Java project Snapshot: https://github.com/signalapp/libsignal-service-java/blob/4684a49b2ed8f32be619e0d0eea423626b6cb2cb/protobuf/SignalService.proto
2018-02-15 19:59:46 +00:00
package signalservice;
2015-01-19 20:23:25 +00:00
message ProvisioningUuid {
optional string uuid = 1;
}
2015-01-23 21:19:29 +00:00
message ProvisionEnvelope {
optional bytes publicKey = 1;
optional bytes body = 2; // Encrypted ProvisionMessage
}
2015-01-23 21:19:29 +00:00
message ProvisionMessage {
2022-03-01 23:01:21 +00:00
optional bytes aciIdentityKeyPublic = 1;
optional bytes aciIdentityKeyPrivate = 2;
optional bytes pniIdentityKeyPublic = 11;
optional bytes pniIdentityKeyPrivate = 12;
optional string aci = 8;
optional string pni = 10;
optional string number = 3;
optional string provisioningCode = 4;
optional string userAgent = 5;
optional bytes profileKey = 6;
optional bool readReceipts = 7;
optional uint32 ProvisioningVersion = 9;
2023-10-30 20:31:39 +00:00
optional bytes masterKey = 13;
2024-10-18 17:15:03 +00:00
optional bytes ephemeralBackupKey = 14; // 32 bytes
}
enum ProvisioningVersion {
option allow_alias = true;
INITIAL = 0;
TABLET_SUPPORT = 1;
CURRENT = 1;
2021-07-20 20:18:35 +00:00
}