Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
import type { ExternalChatKind } from './externalChatKind';
import type { WhatsAppChatAdded } from './whatsAppChatAdded';
import type { WhatsAppChatCannotAddReason } from './whatsAppChatCannotAddReason';
import type { WhatsAppChatCommunity } from './whatsAppChatCommunity';
import type { WhatsAppChatLastActivityAt } from './whatsAppChatLastActivityAt';
import type { WhatsAppChatPhoneNumber } from './whatsAppChatPhoneNumber';
import type { WhatsAppChatShared } from './whatsAppChatShared';
/**
* One chat of the caller's WhatsApp chat list, as WhatsApp Web lists it.
*/
export interface WhatsAppChat {
added?: WhatsAppChatAdded;
/** Archived in WhatsApp. */
archived: boolean;
/** "Add to Macro" works now. */
canAdd: boolean;
cannotAddReason?: WhatsAppChatCannotAddReason;
community?: WhatsAppChatCommunity;
/** WhatsApp chat JID: a group, or the other person's phone-number JID
(LID when WhatsApp never told us the number). */
jid: string;
/** Group or direct chat. */
kind: ExternalChatKind;
/** Newest activity WhatsApp reported (message or history sync); `null`
when unknown, as for saved contacts never messaged. The list is
sorted by it, newest first, unknown last. */
lastActivityAt?: WhatsAppChatLastActivityAt;
/** Group: the subject, or member names for an unnamed group. Direct: the
contact or WhatsApp name, else `+<phone>`. Always non-empty. */
name: string;
/** The other person's phone number (`+<digits>`) of a direct chat, when
WhatsApp told us it. */
phoneNumber?: WhatsAppChatPhoneNumber;
/** Pinned in WhatsApp. */
pinned: boolean;
shared?: WhatsAppChatShared;
}