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 { ApiChannelListParticipant } from './apiChannelListParticipant';
import type { ApiChannelListType } from './apiChannelListType';
import type { ApiChannelWithLatestAgentDm } from './apiChannelWithLatestAgentDm';
import type { ApiChannelWithLatestFrecencyScore } from './apiChannelWithLatestFrecencyScore';
import type { ApiChannelWithLatestInteractedAt } from './apiChannelWithLatestInteractedAt';
import type { ApiChannelWithLatestLatestMessage } from './apiChannelWithLatestLatestMessage';
import type { ApiChannelWithLatestLatestNonThreadMessage } from './apiChannelWithLatestLatestNonThreadMessage';
import type { ApiChannelWithLatestName } from './apiChannelWithLatestName';
import type { ApiChannelWithLatestOrgId } from './apiChannelWithLatestOrgId';
import type { ApiChannelWithLatestTeamId } from './apiChannelWithLatestTeamId';
import type { ApiChannelWithLatestViewedAt } from './apiChannelWithLatestViewedAt';
/**
* Channel list response item.
*/
export interface ApiChannelWithLatest {
agent_dm?: ApiChannelWithLatestAgentDm;
/** Whether team members automatically join the channel. */
auto_join_team: boolean;
/** Channel type. */
channel_type: ApiChannelListType;
/** Channel creation timestamp. */
created_at: string;
/** Aggregate frecency score. */
frecency_score?: ApiChannelWithLatestFrecencyScore;
/** Channel id. */
id: string;
/** Last interaction timestamp for requesting user. */
interacted_at?: ApiChannelWithLatestInteractedAt;
/** Whether the requesting user is an active participant of the channel. */
is_participant: boolean;
latest_message?: ApiChannelWithLatestLatestMessage;
latest_non_thread_message?: ApiChannelWithLatestLatestNonThreadMessage;
/** Channel name. */
name?: ApiChannelWithLatestName;
/**
* Organization id.
* @minimum 0
*/
org_id?: ApiChannelWithLatestOrgId;
/** Channel owner user id. */
owner_id: string;
/** Active participants. */
participants: ApiChannelListParticipant[];
/** Team id. */
team_id?: ApiChannelWithLatestTeamId;
/** Channel last-updated timestamp. */
updated_at: string;
/** Last viewed timestamp for requesting user. */
viewed_at?: ApiChannelWithLatestViewedAt;
}