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.2 KB
Raw Blame
/**
 * Generated by orval v7.21.0 🍺
 * Do not edit manually.
 * document_storage_service
 * OpenAPI spec version: 0.1.0
 */

import type { BotId } from './botId';
import type { MacroUserIdStr } from './macroUserIdStr';
import type { SessionIdentityOrigin } from './sessionIdentityOrigin';
import type { SessionSource } from './sessionSource';

/**
 * Who and what a session is; carried by every lifecycle event so a
consumer never has to look the session up.
 */
export interface SessionIdentity {
  /** Everyone with a stake in what happens next: the owner plus every user
who has prompted or answered this session. Resolved by the emitter so
a consumer fanning out never has to read the session's log. */
  audience?: MacroUserIdStr[];
  /** Bot the session runs for. */
  bot_id: BotId;
  /** The bot's display name at the time of the event. */
  bot_name: string;
  origin?: SessionIdentityOrigin;
  /** User who owns the session. */
  owner_id: MacroUserIdStr;
  /** The session. */
  session_id: string;
  /** User-facing session name at the time of the event. */
  session_name: string;
  /** Who started the session. Events from before it was recorded say
nothing and read as a person. */
  source?: SessionSource;
}