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 Cognition Service
* OpenAPI spec version: 1.0.0
*/
import type { ImportEntityEntityId } from './importEntityEntityId';
import type { ImportEntityEntityType } from './importEntityEntityType';
import type { ImportEntityLastError } from './importEntityLastError';
import type { ImportEntityParentId } from './importEntityParentId';
import type { ImportEntityReviewId } from './importEntityReviewId';
import type { ImportEntityTeamId } from './importEntityTeamId';
import type { ImportEntityWaitingOn } from './importEntityWaitingOn';
import type { ImportKind } from './importKind';
import type { ImportSource } from './importSource';
import type { ImportStatus } from './importStatus';
import type { Initiator } from './initiator';
/**
* One row of the import ledger.
*/
export interface ImportEntity {
/** When the row was first staged. */
created_at: string;
/** The Macro entity it became, once imported. */
entity_id?: ImportEntityEntityId;
/** The Macro entity type (`task` | `md` | `channel`), once imported. */
entity_type?: ImportEntityEntityType;
/** Stable id in the source system (see
[`ImportSource::normalize_foreign_id`]). */
foreign_id: string;
/** Ledger row id. */
id: string;
/** Where it was first staged from. */
initiator: Initiator;
/** What the item is in its source system. */
kind: ImportKind;
/** Failure detail from the last import attempt, when one failed. */
last_error?: ImportEntityLastError;
/** Per-source metadata (shape depends on `source`; see
[`LinearIssueMeta`], [`NotionDocMeta`], [`SlackChannelMeta`]). */
metadata: unknown;
/** The import row this item was imported under (a subpage's parent page,
a row's database), when it was imported as part of a tree. */
parent_id?: ImportEntityParentId;
/** The agent session review that approved importing this item, when it
came from one. */
review_id?: ImportEntityReviewId;
/** The external system the item comes from. */
source: ImportSource;
/** Where the row is in its lifecycle. */
status: ImportStatus;
/** The team the created entity was shared with, when it was. */
team_id?: ImportEntityTeamId;
/** When the row last changed. */
updated_at: string;
/** The user who staged/imported it. Team-imported rows from teammates
are visible with their owner's id, so clients can say "created by a
teammate". */
user_id: string;
/** The teammate's row this one waits on: that teammate is writing the
same object for the team, and this row links to their copy once it
is imported. */
waiting_on?: ImportEntityWaitingOn;
}