Interface PlanInterface

Base entity interface for all platform resources

All entities in the Mosaia platform extend this interface to provide consistent base properties across all resource types. This ensures that all entities have common fields for identification, status, and integration capabilities.

const entity: BaseEntity = {
id: 'entity-123',
active: true,
external_id: 'external-system-id',
extensors: {
custom_field: 'custom_value'
}
};
interface PlanInterface {
    record_history?: RecordHistory;
    id?: string;
    agent?: string | { id?: string; [key: string]: any };
    log?: string | { id?: string; [key: string]: any };
    parent_log?: string | { id?: string; [key: string]: any };
    org?: string | { id?: string; [key: string]: any };
    user?: string | { id?: string; [key: string]: any };
    name?: string;
    content?: string;
    status?: PlanStatus;
    active?: boolean;
    keywords?: string[];
    tags?: string[];
    external_id?: string;
    extensors?: Record<string, any>;
    tasks?: any;
}

Hierarchy (View Summary)

Properties

record_history?: RecordHistory

Record history tracking information

id?: string

Unique identifier for the entity

agent?: string | { id?: string; [key: string]: any }

Agent reference (optional)

log?: string | { id?: string; [key: string]: any }

Agent log reference for execution tracking (optional)

parent_log?: string | { id?: string; [key: string]: any }

AgentLog reference when this plan was created (optional)

org?: string | { id?: string; [key: string]: any }

Organization reference (optional)

user?: string | { id?: string; [key: string]: any }

User reference (optional)

name?: string
content?: string

Markdown content defining the plan (required on create)

status?: PlanStatus
active?: boolean

Whether the entity is active

keywords?: string[]
tags?: string[]
external_id?: string

External system identifier for integration with third-party systems

extensors?: Record<string, any>

Extended properties for custom integrations

tasks?: any