Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.2 KB
Raw Blame
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

syntax = "proto2";
package WAAdv;
option go_package = "go.mau.fi/whatsmeow/proto/waAdv";

enum ADVEncryptionType {
	E2EE = 0;
	HOSTED = 1;
}

message ADVKeyIndexList {
	optional uint32 rawID = 1;
	optional uint64 timestamp = 2;
	optional uint32 currentIndex = 3;
	repeated uint32 validIndexes = 4 [packed=true];
	optional ADVEncryptionType accountType = 5;
}

message ADVSignedKeyIndexList {
	optional bytes details = 1;
	optional bytes accountSignature = 2;
	optional bytes accountSignatureKey = 3;
}

message ADVDeviceIdentity {
	optional uint32 rawID = 1;
	optional uint64 timestamp = 2;
	optional uint32 keyIndex = 3;
	optional ADVEncryptionType accountType = 4;
	optional ADVEncryptionType deviceType = 5;
}

message ADVSignedDeviceIdentity {
	optional bytes details = 1;
	optional bytes accountSignatureKey = 2;
	optional bytes accountSignature = 3;
	optional bytes deviceSignature = 4;
}

message ADVSignedDeviceIdentityHMAC {
	optional bytes details = 1;
	optional bytes HMAC = 2;
	optional ADVEncryptionType accountType = 3;
}