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.7 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * notification_service
 * OpenAPI spec version: 0.1.0
 */
import type { AgentSessionNotificationRefAnnouncementMessageId } from './agentSessionNotificationRefAnnouncementMessageId';
import type { AgentSessionNotificationRefChannelId } from './agentSessionNotificationRefChannelId';
import type { AgentSessionNotificationRefParent } from './agentSessionNotificationRefParent';
import type { AgentSessionNotificationRefThreadId } from './agentSessionNotificationRefThreadId';

/**
 * Flattened into each agent-session kind so the wire keeps these keys at the
top level of the metadata, the way [`CommonChannelMetadata`] does.
 */
export interface AgentSessionNotificationRef {
  /** The magic-chip message for the turn in question, when one was posted. */
  announcementMessageId?: AgentSessionNotificationRefAnnouncementMessageId;
  /** The bot the session runs for. A string on the wire: system bots have
fixed ids like `00000000-0000-0000-0000-00000000a2a2`, which are not
RFC 4122 uuids and fail a `format: uuid` check on the client. */
  botId: string;
  /** The bot's display name; agent notifications have no user sender, so
this is who they read as being from. */
  botName: string;
  /** The channel the session was opened from, when it was opened from a
channel thread. */
  channelId?: AgentSessionNotificationRefChannelId;
  parent?: AgentSessionNotificationRefParent;
  /** The session; what a click opens. */
  sessionId: string;
  /** The session's name at the time of the event. */
  sessionName: string;
  /** The thread the session was opened from, when it was. */
  threadId?: AgentSessionNotificationRefThreadId;
}