@archastro/sdk
    Preparing search index...

    Interface ActivityFeedEntry

    A single event record in an activity feed, capturing what happened, who caused it, and which resources were involved.

    interface ActivityFeedEntry {
        agent?:
            | string
            | {
                acl?: {
                    add?: {
                        actions: string[];
                        principal?: string;
                        principal_type: string;
                    }[];
                    grants?: {
                        actions: string[];
                        principal?: string;
                        principal_type: string;
                    }[];
                    remove?: { principal?: string; principal_type: string }[];
                };
                app?: string;
                created_at?: string;
                default_model?: string;
                email?: string;
                id: string;
                identity?: string;
                last_applied_template_config?: string;
                lookup_key?: string;
                metadata?: Record<string, unknown>;
                name?: string;
                org?: string;
                org_name?: string;
                originator?: string;
                phone_number?: string;
                sandbox?: string;
                source_solution?: {
                    solution: {
                        category_keys?: string[];
                        created_at?: string;
                        description?: string;
                        id: string;
                        kind: string;
                        latest_solution?: string;
                        latest_version?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_logo?: {
                            file?: string;
                            height?: number;
                            media?: string;
                            mime_type?: string;
                            refresh_url?: string;
                            url?: string;
                            width?: number;
                        };
                        org_name?: string;
                        org_slug?: string;
                        owners: string[];
                        readme_url?: string;
                        solution_id?: string;
                        solution_version?: string;
                        tag_keys?: string[];
                        template_kind?: string;
                        templates: {
                            description?: string;
                            display_name?: string;
                            id?: string;
                            kind: string;
                            lookup_key?: string;
                            name?: string;
                            readme_url?: string;
                            virtual_path?: string;
                        }[];
                        updated_at?: string;
                        upgrade_available: boolean;
                        virtual_path?: string;
                    };
                    template: {
                        created_at?: string;
                        description?: string;
                        display_name?: string;
                        id: string;
                        kind: string;
                        lookup_key?: string;
                        name?: string;
                        updated_at?: string;
                        virtual_path?: string;
                    };
                };
                team?: string;
                template_upgrade_available?: boolean;
                updated_at?: string;
                user?: string;
            };
        app?: string;
        attachments?: Record<string, unknown>[];
        automation_run?: string;
        content?: string;
        correlation_id?: string;
        created_at?: string;
        id: string;
        kind?: string;
        level?: string;
        metadata?: Record<string, unknown>;
        org?: string;
        routine_run?: string;
        sandbox?: string;
        session_record?: string;
        team?: string;
        thread?: string;
        title?: string;
        updated_at?: string;
        user?:
            | string
            | {
                alias?: string;
                app?: string;
                app_name?: string;
                email?: string;
                id: string;
                is_system_user?: boolean;
                metadata?: Record<string, unknown>;
                name?: string;
                org?: string;
                org_name?: string;
                org_role?: string;
                sandbox?: string;
                sandbox_name?: string;
            };
    }
    Index

    Properties

    agent?:
        | string
        | {
            acl?: {
                add?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                grants?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                remove?: { principal?: string; principal_type: string }[];
            };
            app?: string;
            created_at?: string;
            default_model?: string;
            email?: string;
            id: string;
            identity?: string;
            last_applied_template_config?: string;
            lookup_key?: string;
            metadata?: Record<string, unknown>;
            name?: string;
            org?: string;
            org_name?: string;
            originator?: string;
            phone_number?: string;
            sandbox?: string;
            source_solution?: {
                solution: {
                    category_keys?: string[];
                    created_at?: string;
                    description?: string;
                    id: string;
                    kind: string;
                    latest_solution?: string;
                    latest_version?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_logo?: {
                        file?: string;
                        height?: number;
                        media?: string;
                        mime_type?: string;
                        refresh_url?: string;
                        url?: string;
                        width?: number;
                    };
                    org_name?: string;
                    org_slug?: string;
                    owners: string[];
                    readme_url?: string;
                    solution_id?: string;
                    solution_version?: string;
                    tag_keys?: string[];
                    template_kind?: string;
                    templates: {
                        description?: string;
                        display_name?: string;
                        id?: string;
                        kind: string;
                        lookup_key?: string;
                        name?: string;
                        readme_url?: string;
                        virtual_path?: string;
                    }[];
                    updated_at?: string;
                    upgrade_available: boolean;
                    virtual_path?: string;
                };
                template: {
                    created_at?: string;
                    description?: string;
                    display_name?: string;
                    id: string;
                    kind: string;
                    lookup_key?: string;
                    name?: string;
                    updated_at?: string;
                    virtual_path?: string;
                };
            };
            team?: string;
            template_upgrade_available?: boolean;
            updated_at?: string;
            user?: string;
        }

    The agent that produced this event. Returns an agent ID (agi_...) by default, or an expanded agent object when the association is loaded. null if no agent is associated.

    app?: string

    ID of the application that produced this entry (dap_...). null if not scoped to an app.

    attachments?: Record<string, unknown>[]

    Array of attachment objects associated with this entry. Each attachment has a type field (e.g. "file", "task", "artifact") and type-specific additional fields. Empty array when there are no attachments.

    automation_run?: string

    ID of the automation run that produced this entry (atr_...). null if not produced by an automation run.

    content?: string

    A longer explanation of the event rendered as Markdown. null if no additional content is available.

    correlation_id?: string

    An opaque string used to group related entries together. Entries sharing the same correlation_id belong to a single logical operation. null if not correlated.

    created_at?: string

    When this activity feed entry was created (ISO 8601).

    id: string

    Activity feed entry ID (afe_...).

    kind?: string

    The type of event this entry represents, e.g. "agent_step" or "tool_call". Determines how title, content, and attachments should be interpreted.

    level?: string

    Severity level of the event. One of "info", "warning", or "error". null if no severity is set.

    metadata?: Record<string, unknown>

    Arbitrary key-value metadata stored on this entry. Returns an empty object when no metadata is set.

    org?: string

    ID of the organization this entry belongs to (org_...). null if not org-scoped.

    routine_run?: string

    ID of the agent routine run that produced this entry (arr_...). null if not produced by a routine run.

    sandbox?: string

    Identifier of the sandbox environment this entry was generated in. null in production contexts.

    session_record?: string

    ID of the agent session record this entry belongs to (ase_...). null if not part of an agent session.

    team?: string

    ID of the team this entry is associated with (tem_...). null if not team-scoped.

    thread?: string

    ID of the thread this entry is associated with (thr_...). null if not linked to a thread.

    title?: string

    A one-line human-readable summary of the event. null if the entry has no title.

    updated_at?: string

    When this activity feed entry was last modified (ISO 8601).

    user?:
        | string
        | {
            alias?: string;
            app?: string;
            app_name?: string;
            email?: string;
            id: string;
            is_system_user?: boolean;
            metadata?: Record<string, unknown>;
            name?: string;
            org?: string;
            org_name?: string;
            org_role?: string;
            sandbox?: string;
            sandbox_name?: string;
        }

    The user who triggered this event. Returns a user ID (usr_...) by default, or an expanded user object when the association is loaded. null if no user is associated.