2024-08-27 10:04:05 -07:00
|
|
|
syntax = "proto2";
|
2024-05-23 14:44:31 -07:00
|
|
|
package WAMultiDevice;
|
2024-08-27 10:04:05 -07:00
|
|
|
option go_package = "go.mau.fi/whatsmeow/proto/waMultiDevice";
|
2024-05-23 14:44:31 -07:00
|
|
|
|
|
|
|
message MultiDevice {
|
|
|
|
message Metadata {
|
|
|
|
}
|
|
|
|
|
|
|
|
message Payload {
|
|
|
|
oneof payload {
|
|
|
|
ApplicationData applicationData = 1;
|
|
|
|
Signal signal = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message ApplicationData {
|
|
|
|
message AppStateSyncKeyRequestMessage {
|
|
|
|
repeated AppStateSyncKeyId keyIDs = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AppStateSyncKeyShareMessage {
|
|
|
|
repeated AppStateSyncKey keys = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AppStateSyncKey {
|
|
|
|
message AppStateSyncKeyData {
|
|
|
|
message AppStateSyncKeyFingerprint {
|
2024-08-27 10:04:05 -07:00
|
|
|
optional uint32 rawID = 1;
|
|
|
|
optional uint32 currentIndex = 2;
|
2024-05-23 14:44:31 -07:00
|
|
|
repeated uint32 deviceIndexes = 3 [packed=true];
|
|
|
|
}
|
|
|
|
|
2024-08-27 10:04:05 -07:00
|
|
|
optional bytes keyData = 1;
|
|
|
|
optional AppStateSyncKeyFingerprint fingerprint = 2;
|
|
|
|
optional int64 timestamp = 3;
|
2024-05-23 14:44:31 -07:00
|
|
|
}
|
|
|
|
|
2024-08-27 10:04:05 -07:00
|
|
|
optional AppStateSyncKeyId keyID = 1;
|
|
|
|
optional AppStateSyncKeyData keyData = 2;
|
2024-05-23 14:44:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message AppStateSyncKeyId {
|
2024-08-27 10:04:05 -07:00
|
|
|
optional bytes keyID = 1;
|
2024-05-23 14:44:31 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
oneof applicationData {
|
|
|
|
AppStateSyncKeyShareMessage appStateSyncKeyShare = 1;
|
|
|
|
AppStateSyncKeyRequestMessage appStateSyncKeyRequest = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message Signal {
|
|
|
|
}
|
|
|
|
|
2024-08-27 10:04:05 -07:00
|
|
|
optional Payload payload = 1;
|
|
|
|
optional Metadata metadata = 2;
|
2024-05-23 14:44:31 -07:00
|
|
|
}
|