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.9 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 WAWinUIApi;
option go_package = "go.mau.fi/whatsmeow/proto/waWinUIApi";

enum PositronDataSource {
	MESSAGES = 1;
	CHATS = 2;
	CONTACTS = 3;
	GROUP_METADATA = 4;
	GROUP_PARTICIPANTS = 5;
	REACTIONS = 6;
}

message PositronMessage {
	message MsgKey {
		optional bool fromMe = 1;
		optional WID remote = 2;
		optional string ID = 3;
		optional WID participant = 4;
	}

	message WID {
		optional string serialized = 1;
	}

	optional int64 timestamp = 1;
	optional string type = 2;
	optional string body = 3;
	optional MsgKey ID = 4;
	optional string JSON = 99;
}

message PositronChat {
	optional string ID = 1;
	optional string name = 2;
	optional int64 timestamp = 3;
	optional int64 unreadCount = 4;
	optional string JSON = 99;
}

message PositronContact {
	optional string ID = 1;
	optional string phoneNumber = 2;
	optional string name = 3;
	optional bool isAddressBookContact = 4;
	optional string JSON = 99;
}

message PositronGroupMetadata {
	optional string ID = 1;
	optional string subject = 2;
	optional string JSON = 99;
}

message PositronGroupParticipants {
	optional string ID = 1;
	repeated string participants = 2;
	optional string JSON = 99;
}

message PositronReaction {
	optional string ID = 1;
	optional string parentMsgKey = 2;
	optional string reactionText = 3;
	optional int64 timestamp = 4;
	optional string senderUserJID = 5;
	optional string JSON = 99;
}

message PositronData {
	optional PositronDataSource dataSource = 1;
	repeated PositronMessage messages = 2;
	repeated PositronChat chats = 3;
	repeated PositronContact contacts = 4;
	repeated PositronGroupMetadata groupMetadata = 5;
	repeated PositronGroupParticipants groupParticipants = 6;
	repeated PositronReaction reactions = 7;
}