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.

2.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 WAStatusAttributions;
option go_package = "go.mau.fi/whatsmeow/proto/waStatusAttributions";

message StatusAttribution {
	enum Type {
		UNKNOWN = 0;
		RESHARE = 1;
		EXTERNAL_SHARE = 2;
		MUSIC = 3;
		STATUS_MENTION = 4;
		GROUP_STATUS = 5;
		RL_ATTRIBUTION = 6;
		AI_CREATED = 7;
		LAYOUTS = 8;
		NEWSLETTER_STATUS = 9;
		STATUS_CLOSE_SHARING = 10;
	}

	message AiCreatedAttribution {
		enum Source {
			UNKNOWN = 0;
			STATUS_MIMICRY = 1;
		}

		optional Source source = 1;
	}

	message RLAttribution {
		enum Source {
			UNKNOWN = 0;
			RAY_BAN_META_GLASSES = 1;
			OAKLEY_META_GLASSES = 2;
			HYPERNOVA_GLASSES = 3;
		}

		optional Source source = 1;
	}

	message ExternalShare {
		enum Source {
			UNKNOWN = 0;
			INSTAGRAM = 1;
			FACEBOOK = 2;
			MESSENGER = 3;
			SPOTIFY = 4;
			YOUTUBE = 5;
			PINTEREST = 6;
			THREADS = 7;
			APPLE_MUSIC = 8;
			SHARECHAT = 9;
			GOOGLE_PHOTOS = 10;
			SOUNDCLOUD = 11;
		}

		optional string actionURL = 1;
		optional Source source = 2;
		optional int32 duration = 3;
		optional string actionFallbackURL = 4;
	}

	message StatusReshare {
		enum Source {
			UNKNOWN = 0;
			INTERNAL_RESHARE = 1;
			MENTION_RESHARE = 2;
			CHANNEL_RESHARE = 3;
			FORWARD = 4;
		}

		message Metadata {
			optional int32 duration = 1;
			optional string channelJID = 2;
			optional int32 channelMessageID = 3;
			optional bool hasMultipleReshares = 4;
		}

		optional Source source = 1;
		optional Metadata metadata = 2;
	}

	message GroupStatus {
		optional string authorJID = 1;
	}

	message Music {
		optional string authorName = 1;
		optional string songID = 2;
		optional string title = 3;
		optional string author = 4;
		optional string artistAttribution = 5;
		optional bool isExplicit = 6;
	}

	oneof attributionData {
		StatusReshare statusReshare = 3;
		ExternalShare externalShare = 4;
		Music music = 5;
		GroupStatus groupStatus = 6;
		RLAttribution rlAttribution = 7;
		AiCreatedAttribution aiCreatedAttribution = 8;
	}

	optional Type type = 1;
	optional string actionURL = 2;
}