@archastro/sdk
    Preparing search index...

    Variable threadMessageSchemaConst

    threadMessageSchema: ZodObject<
        {
            acl: ZodOptional<
                ZodObject<
                    {
                        add: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    {
                                        actions: ZodArray<ZodString, "many">;
                                        principal: ZodOptional<ZodString>;
                                        principal_type: ZodString;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    { actions: string[]; principal?: string; principal_type: string },
                                    { actions: string[]; principal?: string; principal_type: string },
                                >,
                                "many",
                            >,
                        >;
                        grants: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    {
                                        actions: ZodArray<ZodString, "many">;
                                        principal: ZodOptional<ZodString>;
                                        principal_type: ZodString;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    { actions: string[]; principal?: string; principal_type: string },
                                    { actions: string[]; principal?: string; principal_type: string },
                                >,
                                "many",
                            >,
                        >;
                        remove: ZodOptional<
                            ZodArray<
                                ZodObject<
                                    { principal: ZodOptional<ZodString>; principal_type: ZodString },
                                    "strip",
                                    ZodTypeAny,
                                    { principal?: string; principal_type: string },
                                    { principal?: string; principal_type: string },
                                >,
                                "many",
                            >,
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        add?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        remove?: { principal?: string; principal_type: string }[];
                    },
                    {
                        add?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        remove?: { principal?: string; principal_type: string }[];
                    },
                >,
            >;
            admin: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            agent: ZodOptional<ZodString>;
            agent_mode: ZodOptional<ZodEnum<["cli", "embedded"]>>;
            app: ZodOptional<ZodString>;
            attachments: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            content_type: ZodOptional<ZodNullable<ZodString>>;
                            description: ZodOptional<ZodNullable<ZodString>>;
                            filename: ZodOptional<ZodNullable<ZodString>>;
                            height: ZodOptional<ZodNullable<ZodNumber>>;
                            id: ZodString;
                            image_height: ZodOptional<ZodNullable<ZodNumber>>;
                            image_source: ZodOptional<
                                ZodNullable<
                                    ZodObject<
                                        {
                                            file: ZodOptional<(...)>;
                                            height: ZodOptional<(...)>;
                                            media: ZodOptional<(...)>;
                                            mime_type: ZodOptional<(...)>;
                                            refresh_url: ZodOptional<(...)>;
                                            url: ZodOptional<(...)>;
                                            width: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            file?: (...)
                                            | (...)
                                            | (...);
                                            height?: (...) | (...) | (...);
                                            media?: (...) | (...) | (...);
                                            mime_type?: (...) | (...) | (...);
                                            refresh_url?: (...) | (...) | (...);
                                            url?: (...) | (...) | (...);
                                            width?: (...) | (...) | (...);
                                        },
                                        {
                                            file?: (...)
                                            | (...)
                                            | (...);
                                            height?: (...) | (...) | (...);
                                            media?: (...) | (...) | (...);
                                            mime_type?: (...) | (...) | (...);
                                            refresh_url?: (...) | (...) | (...);
                                            url?: (...) | (...) | (...);
                                            width?: (...) | (...) | (...);
                                        },
                                    >,
                                >,
                            >;
                            image_url: ZodOptional<ZodNullable<ZodString>>;
                            image_width: ZodOptional<ZodNullable<ZodNumber>>;
                            media_type: ZodOptional<ZodString>;
                            name: ZodOptional<ZodNullable<ZodString>>;
                            object: ZodOptional<
                                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
                            >;
                            title: ZodOptional<ZodNullable<ZodString>>;
                            type: ZodString;
                            url: ZodOptional<ZodNullable<ZodString>>;
                            variants: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            content_type: ZodOptional<(...)>;
                                            created_at: ZodOptional<(...)>;
                                            file: ZodOptional<(...)>;
                                            filename: ZodOptional<(...)>;
                                            height: ZodOptional<(...)>;
                                            id: ZodString;
                                            image_source: ZodOptional<(...)>;
                                            updated_at: ZodOptional<(...)>;
                                            url: ZodOptional<(...)>;
                                            variant_key: ZodOptional<(...)>;
                                            width: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            content_type?: (...)
                                            | (...)
                                            | (...);
                                            created_at?: (...) | (...);
                                            file?: (...) | (...);
                                            filename?: (...) | (...) | (...);
                                            height?: (...) | (...) | (...);
                                            id: string;
                                            image_source?: (...) | (...) | (...);
                                            updated_at?: (...) | (...);
                                            url?: (...) | (...) | (...);
                                            variant_key?: (...) | (...);
                                            width?: (...) | (...) | (...);
                                        },
                                        {
                                            content_type?: (...)
                                            | (...)
                                            | (...);
                                            created_at?: (...) | (...);
                                            file?: (...) | (...);
                                            filename?: (...) | (...) | (...);
                                            height?: (...) | (...) | (...);
                                            id: string;
                                            image_source?: (...) | (...) | (...);
                                            updated_at?: (...) | (...);
                                            url?: (...) | (...) | (...);
                                            variant_key?: (...) | (...);
                                            width?: (...) | (...) | (...);
                                        },
                                    >,
                                    "many",
                                >,
                            >;
                            version: ZodOptional<ZodNullable<ZodNumber>>;
                            width: ZodOptional<ZodNullable<ZodNumber>>;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            content_type?: string
                            | null;
                            description?: string | null;
                            filename?: string | null;
                            height?: number | null;
                            id: string;
                            image_height?: number | null;
                            image_source?:
                                | {
                                    file?: string
                                    | null;
                                    height?: number | null;
                                    media?: string | null;
                                    mime_type?: string | null;
                                    refresh_url?: string | null;
                                    url?: string | null;
                                    width?: number | null;
                                }
                                | null;
                            image_url?: string
                            | null;
                            image_width?: number | null;
                            media_type?: string;
                            name?: string | null;
                            object?: Record<string, {} | null>;
                            title?: string | null;
                            type: string;
                            url?: string | null;
                            variants?: {
                                content_type?: string | null;
                                created_at?: string;
                                file?: string;
                                filename?: string | null;
                                height?: number | null;
                                id: string;
                                image_source?:
                                    | {
                                        file?: ...;
                                        height?: ...;
                                        media?: ...;
                                        mime_type?: ...;
                                        refresh_url?: ...;
                                        url?: ...;
                                        width?: ...;
                                    }
                                    | null;
                                updated_at?: string;
                                url?: string
                                | null;
                                variant_key?: string;
                                width?: number | null;
                            }[];
                            version?: number
                            | null;
                            width?: number | null;
                        },
                        {
                            content_type?: string
                            | null;
                            description?: string | null;
                            filename?: string | null;
                            height?: number | null;
                            id: string;
                            image_height?: number | null;
                            image_source?:
                                | {
                                    file?: string
                                    | null;
                                    height?: number | null;
                                    media?: string | null;
                                    mime_type?: string | null;
                                    refresh_url?: string | null;
                                    url?: string | null;
                                    width?: number | null;
                                }
                                | null;
                            image_url?: string
                            | null;
                            image_width?: number | null;
                            media_type?: string;
                            name?: string | null;
                            object?: Record<string, {} | null>;
                            title?: string | null;
                            type: string;
                            url?: string | null;
                            variants?: {
                                content_type?: string | null;
                                created_at?: string;
                                file?: string;
                                filename?: string | null;
                                height?: number | null;
                                id: string;
                                image_source?:
                                    | {
                                        file?: ...;
                                        height?: ...;
                                        media?: ...;
                                        mime_type?: ...;
                                        refresh_url?: ...;
                                        url?: ...;
                                        width?: ...;
                                    }
                                    | null;
                                updated_at?: string;
                                url?: string
                                | null;
                                variant_key?: string;
                                width?: number | null;
                            }[];
                            version?: number
                            | null;
                            width?: number | null;
                        },
                    >,
                    "many",
                >,
            >;
            content: ZodOptional<ZodString>;
            created_at: ZodOptional<ZodString>;
            id: ZodString;
            metadata: ZodOptional<
                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
            >;
            org: ZodOptional<ZodString>;
            root_message_id: ZodOptional<ZodNullable<ZodString>>;
            sandbox: ZodOptional<ZodString>;
            sender: ZodOptional<ZodString>;
            sender_name: ZodOptional<ZodString>;
            sender_type: ZodOptional<ZodString>;
            team: ZodOptional<ZodString>;
            type: ZodOptional<ZodString>;
            user: ZodOptional<ZodString>;
            visibility: ZodOptional<ZodEnum<["default", "private"]>>;
        },
        "strip",
        ZodTypeAny,
        {
            acl?: {
                add?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                grants?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                remove?: { principal?: string; principal_type: string }[];
            };
            admin?: Record<string, {} | null>;
            agent?: string;
            agent_mode?: "cli" | "embedded";
            app?: string;
            attachments?: {
                content_type?: string | null;
                description?: string | null;
                filename?: string | null;
                height?: number | null;
                id: string;
                image_height?: number | null;
                image_source?:
                    | {
                        file?: string
                        | null;
                        height?: number | null;
                        media?: string | null;
                        mime_type?: string | null;
                        refresh_url?: string | null;
                        url?: string | null;
                        width?: number | null;
                    }
                    | null;
                image_url?: string
                | null;
                image_width?: number | null;
                media_type?: string;
                name?: string | null;
                object?: Record<string, {} | null>;
                title?: string | null;
                type: string;
                url?: string | null;
                variants?: {
                    content_type?: string | null;
                    created_at?: string;
                    file?: string;
                    filename?: string | null;
                    height?: number | null;
                    id: string;
                    image_source?:
                        | {
                            file?: (...)
                            | (...)
                            | (...);
                            height?: (...) | (...) | (...);
                            media?: (...) | (...) | (...);
                            mime_type?: (...) | (...) | (...);
                            refresh_url?: (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                            width?: (...) | (...) | (...);
                        }
                        | null;
                    updated_at?: string;
                    url?: string
                    | null;
                    variant_key?: string;
                    width?: number | null;
                }[];
                version?: number
                | null;
                width?: number | null;
            }[];
            content?: string;
            created_at?: string;
            id: string;
            metadata?: Record<string, {} | null>;
            org?: string;
            root_message_id?: string | null;
            sandbox?: string;
            sender?: string;
            sender_name?: string;
            sender_type?: string;
            team?: string;
            type?: string;
            user?: string;
            visibility?: "default" | "private";
        },
        {
            acl?: {
                add?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                grants?: {
                    actions: string[];
                    principal?: string;
                    principal_type: string;
                }[];
                remove?: { principal?: string; principal_type: string }[];
            };
            admin?: Record<string, {} | null>;
            agent?: string;
            agent_mode?: "cli" | "embedded";
            app?: string;
            attachments?: {
                content_type?: string | null;
                description?: string | null;
                filename?: string | null;
                height?: number | null;
                id: string;
                image_height?: number | null;
                image_source?:
                    | {
                        file?: string
                        | null;
                        height?: number | null;
                        media?: string | null;
                        mime_type?: string | null;
                        refresh_url?: string | null;
                        url?: string | null;
                        width?: number | null;
                    }
                    | null;
                image_url?: string
                | null;
                image_width?: number | null;
                media_type?: string;
                name?: string | null;
                object?: Record<string, {} | null>;
                title?: string | null;
                type: string;
                url?: string | null;
                variants?: {
                    content_type?: string | null;
                    created_at?: string;
                    file?: string;
                    filename?: string | null;
                    height?: number | null;
                    id: string;
                    image_source?:
                        | {
                            file?: (...)
                            | (...)
                            | (...);
                            height?: (...) | (...) | (...);
                            media?: (...) | (...) | (...);
                            mime_type?: (...) | (...) | (...);
                            refresh_url?: (...) | (...) | (...);
                            url?: (...) | (...) | (...);
                            width?: (...) | (...) | (...);
                        }
                        | null;
                    updated_at?: string;
                    url?: string
                    | null;
                    variant_key?: string;
                    width?: number | null;
                }[];
                version?: number
                | null;
                width?: number | null;
            }[];
            content?: string;
            created_at?: string;
            id: string;
            metadata?: Record<string, {} | null>;
            org?: string;
            root_message_id?: string | null;
            sandbox?: string;
            sender?: string;
            sender_name?: string;
            sender_type?: string;
            team?: string;
            type?: string;
            user?: string;
            visibility?: "default" | "private";
        },
    > = ...

    Runtime validator for ThreadMessage.