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.
* search_service
* OpenAPI spec version: 0.1.0
*/
import type { ChannelMessageSearchResponseItemDeletedAt } from './channelMessageSearchResponseItemDeletedAt';
import type { ChannelMessageSearchResponseItemOwnerId } from './channelMessageSearchResponseItemOwnerId';
import type { ChannelMessageSearchResponseItemScore } from './channelMessageSearchResponseItemScore';
import type { ChannelMessageSearchResponseItemThreadId } from './channelMessageSearchResponseItemThreadId';
import type { SearchHighlight } from './searchHighlight';
/**
* A single channel-message content hit in the unified search response.
One item per matching message, timestamped by the message itself, so the
unified sort interleaves channel messages with other entity types by
their own recency.
*/
export interface ChannelMessageSearchResponseItem {
/** The id of the channel the message belongs to */
channel_id: string;
/** The type of channel */
channel_type: string;
/** When the channel message was created */
created_at: string;
/** When the channel message was deleted, if it has been */
deleted_at?: ChannelMessageSearchResponseItemDeletedAt;
/** The highlights for the channel message */
highlight: SearchHighlight;
/** Standardized id field shared by all item types; the channel id. */
id: string;
/** The channel message id */
message_id: string;
/** we don't store this for channels atm but keeping it here for consistency */
owner_id?: ChannelMessageSearchResponseItemOwnerId;
/** The score of the result */
score?: ChannelMessageSearchResponseItemScore;
/** The sender id */
sender_id: string;
/** The channel message thread id */
thread_id?: ChannelMessageSearchResponseItemThreadId;
/** When the channel message was last updated */
updated_at: string;
}