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.6 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 WACommon;
option go_package = "go.mau.fi/whatsmeow/proto/waCommon";

enum FutureProofBehavior {
	PLACEHOLDER = 0;
	NO_PLACEHOLDER = 1;
	IGNORE = 2;
}

message MessageKey {
	optional string remoteJID = 1;
	optional bool fromMe = 2;
	optional string ID = 3;
	optional string participant = 4;
}

message Command {
	enum CommandType {
		EVERYONE = 1;
		SILENT = 2;
		AI = 3;
		AI_IMAGINE = 4;
	}

	optional CommandType commandType = 1;
	optional uint32 offset = 2;
	optional uint32 length = 3;
	optional string validationToken = 4;
}

message Mention {
	enum MentionType {
		PROFILE = 0;
	}

	optional MentionType mentionType = 1;
	optional string mentionedJID = 2;
	optional uint32 offset = 3;
	optional uint32 length = 4;
}

message MessageText {
	optional string text = 1;
	repeated string mentionedJID = 2;
	repeated Command commands = 3;
	repeated Mention mentions = 4;
}

message SubProtocol {
	optional bytes payload = 1;
	optional int32 version = 2;
}

message LimitSharing {
	enum Trigger {
		UNKNOWN = 0;
		CHAT_SETTING = 1;
		BIZ_SUPPORTS_FB_HOSTING = 2;
		UNKNOWN_GROUP = 3;
	}

	optional bool sharingLimited = 1;
	optional Trigger trigger = 2;
	optional int64 limitSharingSettingTimestamp = 3;
	optional bool initiatedByMe = 4;
}

message ACP2Setting {
	optional bool enabled = 1;
	optional LimitSharing.Trigger trigger = 2;
	optional int64 settingTimestamp = 3;
	optional bool initiatedByMe = 4;
}