@archastro/sdk
    Preparing search index...

    Variable threadSchemaConst

    threadSchema: ZodObject<
        {
            agent_user: ZodOptional<ZodNullable<ZodString>>;
            created_at: ZodOptional<ZodString>;
            creator: ZodOptional<
                ZodNullable<
                    ZodUnion<
                        [
                            ZodString,
                            ZodObject<
                                {
                                    alias: ZodOptional<ZodNullable<ZodString>>;
                                    app: ZodOptional<ZodNullable<ZodString>>;
                                    app_name: ZodOptional<ZodNullable<ZodString>>;
                                    created_by_agent_user: ZodOptional<ZodNullable<ZodString>>;
                                    created_by_developer: ZodOptional<ZodNullable<ZodString>>;
                                    created_by_org: ZodOptional<ZodNullable<ZodString>>;
                                    created_by_team: ZodOptional<ZodNullable<ZodString>>;
                                    created_by_user: ZodOptional<ZodNullable<ZodString>>;
                                    email: ZodOptional<ZodNullable<ZodString>>;
                                    id: ZodString;
                                    is_system_user: ZodOptional<ZodBoolean>;
                                    metadata: ZodOptional<
                                        ZodRecord<ZodString, ZodType<(...), (...), (...)>>,
                                    >;
                                    name: ZodOptional<ZodNullable<ZodString>>;
                                    org: ZodOptional<ZodNullable<ZodString>>;
                                    org_name: ZodOptional<ZodNullable<ZodString>>;
                                    org_role: ZodOptional<ZodNullable<ZodString>>;
                                    org_slug: ZodOptional<ZodNullable<ZodString>>;
                                    sandbox: ZodOptional<ZodNullable<ZodString>>;
                                    sandbox_name: ZodOptional<ZodNullable<ZodString>>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    alias?: string
                                    | null;
                                    app?: string | null;
                                    app_name?: string | null;
                                    created_by_agent_user?: string | null;
                                    created_by_developer?: string | null;
                                    created_by_org?: string | null;
                                    created_by_team?: string | null;
                                    created_by_user?: string | null;
                                    email?: string | null;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<string, (...) | (...)>;
                                    name?: string | null;
                                    org?: string | null;
                                    org_name?: string | null;
                                    org_role?: string | null;
                                    org_slug?: string | null;
                                    sandbox?: string | null;
                                    sandbox_name?: string | null;
                                },
                                {
                                    alias?: string
                                    | null;
                                    app?: string | null;
                                    app_name?: string | null;
                                    created_by_agent_user?: string | null;
                                    created_by_developer?: string | null;
                                    created_by_org?: string | null;
                                    created_by_team?: string | null;
                                    created_by_user?: string | null;
                                    email?: string | null;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<string, (...) | (...)>;
                                    name?: string | null;
                                    org?: string | null;
                                    org_name?: string | null;
                                    org_role?: string | null;
                                    org_slug?: string | null;
                                    sandbox?: string | null;
                                    sandbox_name?: string | null;
                                },
                            >,
                        ],
                    >,
                >,
            >;
            description: ZodOptional<ZodNullable<ZodString>>;
            id: ZodString;
            is_channel: ZodOptional<ZodBoolean>;
            is_default: ZodOptional<ZodBoolean>;
            is_transient: ZodOptional<ZodBoolean>;
            is_unlisted: ZodOptional<ZodBoolean>;
            key: ZodOptional<ZodNullable<ZodString>>;
            kind: ZodOptional<ZodNullable<ZodString>>;
            last_activity: ZodOptional<ZodNullable<ZodString>>;
            last_message_preview: ZodOptional<ZodNullable<ZodString>>;
            last_message_sender: ZodOptional<ZodNullable<ZodString>>;
            metadata: ZodOptional<
                ZodNullable<
                    ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
                >,
            >;
            muted: ZodOptional<ZodBoolean>;
            org: ZodOptional<ZodNullable<ZodString>>;
            parent_message: ZodOptional<
                ZodNullable<
                    ZodObject<
                        {
                            acl: ZodOptional<
                                ZodNullable<
                                    ZodObject<
                                        {
                                            add: ZodOptional<(...)>;
                                            grants: ZodOptional<(...)>;
                                            remove: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            add?: (...)
                                            | (...);
                                            grants?: (...) | (...);
                                            remove?: (...) | (...);
                                        },
                                        {
                                            add?: (...)
                                            | (...);
                                            grants?: (...) | (...);
                                            remove?: (...) | (...);
                                        },
                                    >,
                                >,
                            >;
                            actors: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            alias: ZodOptional<(...)>;
                                            id: ZodOptional<(...)>;
                                            name: ZodOptional<(...)>;
                                            profile_picture: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            alias?: (...)
                                            | (...)
                                            | (...);
                                            id?: (...) | (...) | (...);
                                            name?: (...) | (...) | (...);
                                            profile_picture?: (...) | (...) | (...);
                                        },
                                        {
                                            alias?: (...)
                                            | (...)
                                            | (...);
                                            id?: (...) | (...) | (...);
                                            name?: (...) | (...) | (...);
                                            profile_picture?: (...) | (...) | (...);
                                        },
                                    >,
                                    "many",
                                >,
                            >;
                            agent: ZodOptional<ZodNullable<ZodString>>;
                            agent_mode: ZodOptional<ZodNullable<ZodEnum<["cli", "embedded"]>>>;
                            attachments: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            content_type: ZodOptional<(...)>;
                                            description: ZodOptional<(...)>;
                                            filename: ZodOptional<(...)>;
                                            height: ZodOptional<(...)>;
                                            id: ZodString;
                                            image_height: ZodOptional<(...)>;
                                            image_source: ZodOptional<(...)>;
                                            image_url: ZodOptional<(...)>;
                                            image_width: ZodOptional<(...)>;
                                            media_type: ZodOptional<(...)>;
                                            name: ZodOptional<(...)>;
                                            object: ZodOptional<(...)>;
                                            title: ZodOptional<(...)>;
                                            type: ZodString;
                                            url: ZodOptional<(...)>;
                                            variants: ZodOptional<(...)>;
                                            version: ZodOptional<(...)>;
                                            width: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            content_type?: (...)
                                            | (...)
                                            | (...);
                                            description?: (...) | (...) | (...);
                                            filename?: (...) | (...) | (...);
                                            height?: (...) | (...) | (...);
                                            id: string;
                                            image_height?: (...) | (...) | (...);
                                            image_source?: (...) | (...) | (...);
                                            image_url?: (...) | (...) | (...);
                                            image_width?: (...) | (...) | (...);
                                            media_type?: (...) | (...);
                                            name?: (...) | (...) | (...);
                                            object?: (...) | (...);
                                            title?: (...) | (...) | (...);
                                            type: string;
                                            url?: (...) | (...) | (...);
                                            variants?: (...) | (...);
                                            version?: (...) | (...) | (...);
                                            width?: (...) | (...) | (...);
                                        },
                                        {
                                            content_type?: (...)
                                            | (...)
                                            | (...);
                                            description?: (...) | (...) | (...);
                                            filename?: (...) | (...) | (...);
                                            height?: (...) | (...) | (...);
                                            id: string;
                                            image_height?: (...) | (...) | (...);
                                            image_source?: (...) | (...) | (...);
                                            image_url?: (...) | (...) | (...);
                                            image_width?: (...) | (...) | (...);
                                            media_type?: (...) | (...);
                                            name?: (...) | (...) | (...);
                                            object?: (...) | (...);
                                            title?: (...) | (...) | (...);
                                            type: string;
                                            url?: (...) | (...) | (...);
                                            variants?: (...) | (...);
                                            version?: (...) | (...) | (...);
                                            width?: (...) | (...) | (...);
                                        },
                                    >,
                                    "many",
                                >,
                            >;
                            branched_thread: ZodOptional<ZodNullable<ZodString>>;
                            content: ZodOptional<ZodNullable<ZodString>>;
                            context: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            attributes: ZodOptional<(...)>;
                                            content: ZodOptional<(...)>;
                                            title: ZodOptional<(...)>;
                                            type: ZodString;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            attributes?: (...)
                                            | (...);
                                            content?: (...) | (...) | (...);
                                            title?: (...) | (...) | (...);
                                            type: string;
                                        },
                                        {
                                            attributes?: (...)
                                            | (...);
                                            content?: (...) | (...) | (...);
                                            title?: (...) | (...) | (...);
                                            type: string;
                                        },
                                    >,
                                    "many",
                                >,
                            >;
                            created_at: ZodOptional<ZodString>;
                            has_replies: ZodOptional<ZodBoolean>;
                            id: ZodString;
                            idempotency_key: ZodOptional<ZodNullable<ZodString>>;
                            is_deleted: ZodOptional<ZodBoolean>;
                            legacy_agent: ZodOptional<ZodNullable<ZodString>>;
                            metadata: ZodOptional<
                                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
                            >;
                            org: ZodOptional<ZodNullable<ZodString>>;
                            reactions: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            payload: ZodOptional<(...)>;
                                            type: ZodString;
                                            user: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        { payload?: (...)
                                        | (...); type: string; user?: (...) | (...) },
                                        { payload?: (...) | (...); type: string; user?: (...) | (...) },
                                    >,
                                    "many",
                                >,
                            >;
                            rendering_mode: ZodOptional<ZodNullable<ZodString>>;
                            replies: ZodOptional<
                                ZodArray<
                                    ZodRecord<
                                        ZodString,
                                        ZodType<(...) | (...), ZodTypeDef, (...) | (...)>,
                                    >,
                                    "many",
                                >,
                            >;
                            replies_after_cursor: ZodOptional<ZodNullable<ZodString>>;
                            replies_before_cursor: ZodOptional<ZodNullable<ZodString>>;
                            reply_count: ZodOptional<ZodNumber>;
                            reply_to: ZodOptional<
                                ZodNullable<
                                    ZodRecord<
                                        ZodString,
                                        ZodType<(...) | (...), ZodTypeDef, (...) | (...)>,
                                    >,
                                >,
                            >;
                            root_message_id: ZodOptional<ZodNullable<ZodString>>;
                            sandbox: ZodOptional<ZodNullable<ZodString>>;
                            team: ZodOptional<ZodNullable<ZodString>>;
                            thread: ZodOptional<ZodString>;
                            type: ZodOptional<ZodNullable<ZodString>>;
                            user: ZodOptional<
                                ZodNullable<
                                    ZodUnion<
                                        [ZodString, ZodObject<(...), (...), (...), (...), (...)>],
                                    >,
                                >,
                            >;
                            visibility: ZodOptional<ZodEnum<["default", "private"]>>;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            acl?: | {
                                add?: { actions: ...; principal?: ...; principal_type: ... }[];
                                grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                                remove?: { principal?: ...; principal_type: ... }[];
                            }
                            | null;
                            actors?: {
                                alias?: string
                                | null;
                                id?: string | null;
                                name?: string | null;
                                profile_picture?:
                                    | {
                                        file?: ...;
                                        height?: ...;
                                        media?: ...;
                                        mime_type?: ...;
                                        refresh_url?: ...;
                                        url?: ...;
                                        width?: ...;
                                    }
                                    | null;
                            }[];
                            agent?: string
                            | null;
                            agent_mode?: "cli" | "embedded" | null;
                            attachments?: {
                                content_type?: string | null;
                                description?: string | null;
                                filename?: string | null;
                                height?: number | null;
                                id: string;
                                image_height?: number | null;
                                image_source?:
                                    | {
                                        file?: ...;
                                        height?: ...;
                                        media?: ...;
                                        mime_type?: ...;
                                        refresh_url?: ...;
                                        url?: ...;
                                        width?: ...;
                                    }
                                    | null;
                                image_url?: string
                                | null;
                                image_width?: number | null;
                                media_type?: string;
                                name?: string | null;
                                object?: Record<(...), (...)>;
                                title?: string | null;
                                type: string;
                                url?: string | null;
                                variants?: (...)[];
                                version?: number | null;
                                width?: number | null;
                            }[];
                            branched_thread?: string
                            | null;
                            content?: string | null;
                            context?: {
                                attributes?: Record<(...), (...)>;
                                content?: string | null;
                                title?: string | null;
                                type: string;
                            }[];
                            created_at?: string;
                            has_replies?: boolean;
                            id: string;
                            idempotency_key?: string
                            | null;
                            is_deleted?: boolean;
                            legacy_agent?: string | null;
                            metadata?: Record<string, {} | null>;
                            org?: string | null;
                            reactions?: {
                                payload?: Record<(...), (...)>;
                                type: string;
                                user?: string;
                            }[];
                            rendering_mode?: string
                            | null;
                            replies?: Record<string, {} | null>[];
                            replies_after_cursor?: string | null;
                            replies_before_cursor?: string | null;
                            reply_count?: number;
                            reply_to?: Record<string, {} | null> | null;
                            root_message_id?: string | null;
                            sandbox?: string | null;
                            team?: string | null;
                            thread?: string;
                            type?: string | null;
                            user?:
                                | string
                                | {
                                    alias?: string
                                    | null;
                                    app?: string | null;
                                    app_name?: string | null;
                                    created_by_agent_user?: string | null;
                                    created_by_developer?: string | null;
                                    created_by_org?: string | null;
                                    created_by_team?: string | null;
                                    created_by_user?: string | null;
                                    email?: string | null;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<string, (...) | (...)>;
                                    name?: string | null;
                                    org?: string | null;
                                    org_name?: string | null;
                                    org_role?: string | null;
                                    org_slug?: string | null;
                                    sandbox?: string | null;
                                    sandbox_name?: string | null;
                                }
                                | null;
                            visibility?: "default"
                            | "private";
                        },
                        {
                            acl?: | {
                                add?: { actions: ...; principal?: ...; principal_type: ... }[];
                                grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                                remove?: { principal?: ...; principal_type: ... }[];
                            }
                            | null;
                            actors?: {
                                alias?: string
                                | null;
                                id?: string | null;
                                name?: string | null;
                                profile_picture?:
                                    | {
                                        file?: ...;
                                        height?: ...;
                                        media?: ...;
                                        mime_type?: ...;
                                        refresh_url?: ...;
                                        url?: ...;
                                        width?: ...;
                                    }
                                    | null;
                            }[];
                            agent?: string
                            | null;
                            agent_mode?: "cli" | "embedded" | null;
                            attachments?: {
                                content_type?: string | null;
                                description?: string | null;
                                filename?: string | null;
                                height?: number | null;
                                id: string;
                                image_height?: number | null;
                                image_source?:
                                    | {
                                        file?: ...;
                                        height?: ...;
                                        media?: ...;
                                        mime_type?: ...;
                                        refresh_url?: ...;
                                        url?: ...;
                                        width?: ...;
                                    }
                                    | null;
                                image_url?: string
                                | null;
                                image_width?: number | null;
                                media_type?: string;
                                name?: string | null;
                                object?: Record<(...), (...)>;
                                title?: string | null;
                                type: string;
                                url?: string | null;
                                variants?: (...)[];
                                version?: number | null;
                                width?: number | null;
                            }[];
                            branched_thread?: string
                            | null;
                            content?: string | null;
                            context?: {
                                attributes?: Record<(...), (...)>;
                                content?: string | null;
                                title?: string | null;
                                type: string;
                            }[];
                            created_at?: string;
                            has_replies?: boolean;
                            id: string;
                            idempotency_key?: string
                            | null;
                            is_deleted?: boolean;
                            legacy_agent?: string | null;
                            metadata?: Record<string, {} | null>;
                            org?: string | null;
                            reactions?: {
                                payload?: Record<(...), (...)>;
                                type: string;
                                user?: string;
                            }[];
                            rendering_mode?: string
                            | null;
                            replies?: Record<string, {} | null>[];
                            replies_after_cursor?: string | null;
                            replies_before_cursor?: string | null;
                            reply_count?: number;
                            reply_to?: Record<string, {} | null> | null;
                            root_message_id?: string | null;
                            sandbox?: string | null;
                            team?: string | null;
                            thread?: string;
                            type?: string | null;
                            user?:
                                | string
                                | {
                                    alias?: string
                                    | null;
                                    app?: string | null;
                                    app_name?: string | null;
                                    created_by_agent_user?: string | null;
                                    created_by_developer?: string | null;
                                    created_by_org?: string | null;
                                    created_by_team?: string | null;
                                    created_by_user?: string | null;
                                    email?: string | null;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<string, (...) | (...)>;
                                    name?: string | null;
                                    org?: string | null;
                                    org_name?: string | null;
                                    org_role?: string | null;
                                    org_slug?: string | null;
                                    sandbox?: string | null;
                                    sandbox_name?: string | null;
                                }
                                | null;
                            visibility?: "default"
                            | "private";
                        },
                    >,
                >,
            >;
            participant: ZodOptional<ZodArray<ZodString, "many">>;
            participants: ZodOptional<
                ZodArray<
                    ZodObject<
                        {
                            alias: ZodOptional<ZodNullable<ZodString>>;
                            app: ZodOptional<ZodNullable<ZodString>>;
                            app_name: ZodOptional<ZodNullable<ZodString>>;
                            created_by_agent_user: ZodOptional<ZodNullable<ZodString>>;
                            created_by_developer: ZodOptional<ZodNullable<ZodString>>;
                            created_by_org: ZodOptional<ZodNullable<ZodString>>;
                            created_by_team: ZodOptional<ZodNullable<ZodString>>;
                            created_by_user: ZodOptional<ZodNullable<ZodString>>;
                            email: ZodOptional<ZodNullable<ZodString>>;
                            id: ZodString;
                            is_system_user: ZodOptional<ZodBoolean>;
                            metadata: ZodOptional<
                                ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
                            >;
                            name: ZodOptional<ZodNullable<ZodString>>;
                            org: ZodOptional<ZodNullable<ZodString>>;
                            org_name: ZodOptional<ZodNullable<ZodString>>;
                            org_role: ZodOptional<ZodNullable<ZodString>>;
                            org_slug: ZodOptional<ZodNullable<ZodString>>;
                            sandbox: ZodOptional<ZodNullable<ZodString>>;
                            sandbox_name: ZodOptional<ZodNullable<ZodString>>;
                        },
                        "strip",
                        ZodTypeAny,
                        {
                            alias?: string
                            | null;
                            app?: string | null;
                            app_name?: string | null;
                            created_by_agent_user?: string | null;
                            created_by_developer?: string | null;
                            created_by_org?: string | null;
                            created_by_team?: string | null;
                            created_by_user?: string | null;
                            email?: string | null;
                            id: string;
                            is_system_user?: boolean;
                            metadata?: Record<string, {} | null>;
                            name?: string | null;
                            org?: string | null;
                            org_name?: string | null;
                            org_role?: string | null;
                            org_slug?: string | null;
                            sandbox?: string | null;
                            sandbox_name?: string | null;
                        },
                        {
                            alias?: string
                            | null;
                            app?: string | null;
                            app_name?: string | null;
                            created_by_agent_user?: string | null;
                            created_by_developer?: string | null;
                            created_by_org?: string | null;
                            created_by_team?: string | null;
                            created_by_user?: string | null;
                            email?: string | null;
                            id: string;
                            is_system_user?: boolean;
                            metadata?: Record<string, {} | null>;
                            name?: string | null;
                            org?: string | null;
                            org_name?: string | null;
                            org_role?: string | null;
                            org_slug?: string | null;
                            sandbox?: string | null;
                            sandbox_name?: string | null;
                        },
                    >,
                    "many",
                >,
            >;
            participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
            participating_agents: ZodOptional<
                ZodNullable<
                    ZodArray<
                        ZodObject<
                            {
                                acl: ZodOptional<
                                    ZodNullable<
                                        ZodObject<
                                            { add: ...; grants: ...; remove: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { add?: ...; grants?: ...; remove?: ... },
                                            { add?: ...; grants?: ...; remove?: ... },
                                        >,
                                    >,
                                >;
                                app: ZodOptional<ZodString>;
                                created_at: ZodOptional<ZodString>;
                                default_model: ZodOptional<ZodNullable<ZodString>>;
                                description: ZodOptional<ZodNullable<ZodString>>;
                                email: ZodOptional<ZodNullable<ZodString>>;
                                id: ZodString;
                                identity: ZodOptional<ZodNullable<ZodString>>;
                                last_applied_template_config: ZodOptional<ZodNullable<ZodString>>;
                                lookup_key: ZodOptional<ZodNullable<ZodString>>;
                                metadata: ZodOptional<
                                    ZodRecord<
                                        ZodString,
                                        ZodType<(...) | (...), ZodTypeDef, (...) | (...)>,
                                    >,
                                >;
                                name: ZodOptional<ZodString>;
                                org: ZodOptional<ZodNullable<ZodString>>;
                                org_name: ZodOptional<ZodNullable<ZodString>>;
                                originator: ZodOptional<ZodNullable<ZodString>>;
                                phone_number: ZodOptional<ZodNullable<ZodString>>;
                                sandbox: ZodOptional<ZodNullable<ZodString>>;
                                source_solution: ZodOptional<
                                    ZodNullable<
                                        ZodObject<
                                            { current_solution: ...; solution: ...; template: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { current_solution?: ...; solution: ...; template: ... },
                                            { current_solution?: ...; solution: ...; template: ... },
                                        >,
                                    >,
                                >;
                                team: ZodOptional<ZodNullable<ZodString>>;
                                template_upgrade_available: ZodOptional<ZodNullable<ZodBoolean>>;
                                updated_at: ZodOptional<ZodString>;
                                user: ZodOptional<ZodNullable<ZodString>>;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
                                | null;
                                app?: string;
                                created_at?: string;
                                default_model?: string | null;
                                description?: string | null;
                                email?: string | null;
                                id: string;
                                identity?: string | null;
                                last_applied_template_config?: string | null;
                                lookup_key?: string | null;
                                metadata?: Record<string, {} | null>;
                                name?: string;
                                org?: string | null;
                                org_name?: string | null;
                                originator?: string | null;
                                phone_number?: string | null;
                                sandbox?: string | null;
                                source_solution?:
                                    | {
                                        current_solution?: {
                                            category_keys?: ...;
                                            created_at?: ...;
                                            description?: ...;
                                            events?: ...;
                                            id: ...;
                                            image_url?: ...;
                                            installed_config_ids: ...;
                                            kind: ...;
                                            latest_solution?: ...;
                                            latest_version?: ...;
                                            lookup_key?: ...;
                                            metadata?: ...;
                                            name?: ...;
                                            org?: ...;
                                            org_logo?: ...;
                                            org_name?: ...;
                                            org_slug?: ...;
                                            owners: ...;
                                            readme_url?: ...;
                                            screenshot_urls?: ...;
                                            solution_id?: ...;
                                            solution_version?: ...;
                                            tag_keys?: ...;
                                            template_kind?: ...;
                                            templates: ...;
                                            updated_at?: ...;
                                            upgrade_available: ...;
                                            virtual_path?: ...;
                                        };
                                        solution: {
                                            category_keys?: (...)
                                            | (...);
                                            created_at?: (...) | (...);
                                            description?: (...) | (...) | (...);
                                            events?: (...) | (...);
                                            id: string;
                                            image_url?: (...) | (...) | (...);
                                            installed_config_ids: (...)[];
                                            kind: string;
                                            latest_solution?: (...) | (...) | (...);
                                            latest_version?: (...) | (...) | (...);
                                            lookup_key?: (...) | (...) | (...);
                                            metadata?: (...) | (...);
                                            name?: (...) | (...) | (...);
                                            org?: (...) | (...) | (...);
                                            org_logo?: (...) | (...) | (...);
                                            org_name?: (...) | (...) | (...);
                                            org_slug?: (...) | (...) | (...);
                                            owners: (...)[];
                                            readme_url?: (...) | (...) | (...);
                                            screenshot_urls?: (...) | (...);
                                            solution_id?: (...) | (...) | (...);
                                            solution_version?: (...) | (...) | (...);
                                            tag_keys?: (...) | (...);
                                            template_kind?: (...) | (...) | (...);
                                            templates: (...)[];
                                            updated_at?: (...) | (...);
                                            upgrade_available: boolean;
                                            virtual_path?: (...) | (...) | (...);
                                        };
                                        template: {
                                            created_at?: (...)
                                            | (...);
                                            description?: (...) | (...) | (...);
                                            display_name?: (...) | (...) | (...);
                                            id: string;
                                            kind: string;
                                            lookup_key?: (...) | (...) | (...);
                                            name?: (...) | (...) | (...);
                                            updated_at?: (...) | (...);
                                            virtual_path?: (...) | (...) | (...);
                                        };
                                    }
                                    | null;
                                team?: string
                                | null;
                                template_upgrade_available?: boolean | null;
                                updated_at?: string;
                                user?: string | null;
                            },
                            {
                                acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] }
                                | null;
                                app?: string;
                                created_at?: string;
                                default_model?: string | null;
                                description?: string | null;
                                email?: string | null;
                                id: string;
                                identity?: string | null;
                                last_applied_template_config?: string | null;
                                lookup_key?: string | null;
                                metadata?: Record<string, {} | null>;
                                name?: string;
                                org?: string | null;
                                org_name?: string | null;
                                originator?: string | null;
                                phone_number?: string | null;
                                sandbox?: string | null;
                                source_solution?:
                                    | {
                                        current_solution?: {
                                            category_keys?: ...;
                                            created_at?: ...;
                                            description?: ...;
                                            events?: ...;
                                            id: ...;
                                            image_url?: ...;
                                            installed_config_ids: ...;
                                            kind: ...;
                                            latest_solution?: ...;
                                            latest_version?: ...;
                                            lookup_key?: ...;
                                            metadata?: ...;
                                            name?: ...;
                                            org?: ...;
                                            org_logo?: ...;
                                            org_name?: ...;
                                            org_slug?: ...;
                                            owners: ...;
                                            readme_url?: ...;
                                            screenshot_urls?: ...;
                                            solution_id?: ...;
                                            solution_version?: ...;
                                            tag_keys?: ...;
                                            template_kind?: ...;
                                            templates: ...;
                                            updated_at?: ...;
                                            upgrade_available: ...;
                                            virtual_path?: ...;
                                        };
                                        solution: {
                                            category_keys?: (...)
                                            | (...);
                                            created_at?: (...) | (...);
                                            description?: (...) | (...) | (...);
                                            events?: (...) | (...);
                                            id: string;
                                            image_url?: (...) | (...) | (...);
                                            installed_config_ids: (...)[];
                                            kind: string;
                                            latest_solution?: (...) | (...) | (...);
                                            latest_version?: (...) | (...) | (...);
                                            lookup_key?: (...) | (...) | (...);
                                            metadata?: (...) | (...);
                                            name?: (...) | (...) | (...);
                                            org?: (...) | (...) | (...);
                                            org_logo?: (...) | (...) | (...);
                                            org_name?: (...) | (...) | (...);
                                            org_slug?: (...) | (...) | (...);
                                            owners: (...)[];
                                            readme_url?: (...) | (...) | (...);
                                            screenshot_urls?: (...) | (...);
                                            solution_id?: (...) | (...) | (...);
                                            solution_version?: (...) | (...) | (...);
                                            tag_keys?: (...) | (...);
                                            template_kind?: (...) | (...) | (...);
                                            templates: (...)[];
                                            updated_at?: (...) | (...);
                                            upgrade_available: boolean;
                                            virtual_path?: (...) | (...) | (...);
                                        };
                                        template: {
                                            created_at?: (...)
                                            | (...);
                                            description?: (...) | (...) | (...);
                                            display_name?: (...) | (...) | (...);
                                            id: string;
                                            kind: string;
                                            lookup_key?: (...) | (...) | (...);
                                            name?: (...) | (...) | (...);
                                            updated_at?: (...) | (...);
                                            virtual_path?: (...) | (...) | (...);
                                        };
                                    }
                                    | null;
                                team?: string
                                | null;
                                template_upgrade_available?: boolean | null;
                                updated_at?: string;
                                user?: string | null;
                            },
                        >,
                        "many",
                    >,
                >,
            >;
            role: ZodOptional<ZodNullable<ZodString>>;
            sandbox: ZodOptional<ZodNullable<ZodString>>;
            settings: ZodOptional<
                ZodObject<
                    { agent_enabled: ZodOptional<ZodNullable<ZodBoolean>> },
                    "strip",
                    ZodTypeAny,
                    { agent_enabled?: boolean | null },
                    { agent_enabled?: boolean | null },
                >,
            >;
            slug: ZodOptional<ZodNullable<ZodString>>;
            sub_threads: ZodOptional<
                ZodNullable<
                    ZodArray<
                        ZodRecord<ZodString, ZodType<{} | null, ZodTypeDef, {} | null>>,
                        "many",
                    >,
                >,
            >;
            tags: ZodOptional<ZodArray<ZodString, "many">>;
            team: ZodOptional<ZodNullable<ZodString>>;
            title: ZodOptional<ZodNullable<ZodString>>;
            ttl: ZodOptional<ZodNullable<ZodString>>;
            unread_count: ZodOptional<ZodNullable<ZodNumber>>;
            updated_at: ZodOptional<ZodString>;
            user: ZodOptional<ZodNullable<ZodString>>;
            visibility: ZodEnum<["team", "restricted", "private"]>;
        },
        "strip",
        ZodTypeAny,
        {
            agent_user?: string
            | null;
            created_at?: string;
            creator?:
                | string
                | {
                    alias?: string
                    | null;
                    app?: string | null;
                    app_name?: string | null;
                    created_by_agent_user?: string | null;
                    created_by_developer?: string | null;
                    created_by_org?: string | null;
                    created_by_team?: string | null;
                    created_by_user?: string | null;
                    email?: string | null;
                    id: string;
                    is_system_user?: boolean;
                    metadata?: Record<string, {} | null>;
                    name?: string | null;
                    org?: string | null;
                    org_name?: string | null;
                    org_role?: string | null;
                    org_slug?: string | null;
                    sandbox?: string | null;
                    sandbox_name?: string | null;
                }
                | null;
            description?: string
            | null;
            id: string;
            is_channel?: boolean;
            is_default?: boolean;
            is_transient?: boolean;
            is_unlisted?: boolean;
            key?: string | null;
            kind?: string | null;
            last_activity?: string | null;
            last_message_preview?: string | null;
            last_message_sender?: string | null;
            metadata?: Record<string, {} | null> | null;
            muted?: boolean;
            org?: string | null;
            parent_message?:
                | {
                    acl?: | {
                        add?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        remove?: { principal?: string; principal_type: string }[];
                    }
                    | null;
                    actors?: {
                        alias?: string
                        | null;
                        id?: string | null;
                        name?: string | null;
                        profile_picture?:
                            | {
                                file?: string
                                | null;
                                height?: number | null;
                                media?: string | null;
                                mime_type?: string | null;
                                refresh_url?: string | null;
                                url?: string | null;
                                width?: number | null;
                            }
                            | null;
                    }[];
                    agent?: string
                    | null;
                    agent_mode?: "cli" | "embedded" | null;
                    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?: (...) | (...) | (...);
                            created_at?: (...) | (...);
                            file?: (...) | (...);
                            filename?: (...) | (...) | (...);
                            height?: (...) | (...) | (...);
                            id: string;
                            image_source?: (...) | (...) | (...);
                            updated_at?: (...) | (...);
                            url?: (...) | (...) | (...);
                            variant_key?: (...) | (...);
                            width?: (...) | (...) | (...);
                        }[];
                        version?: number
                        | null;
                        width?: number | null;
                    }[];
                    branched_thread?: string
                    | null;
                    content?: string | null;
                    context?: {
                        attributes?: Record<string, {} | null>;
                        content?: string | null;
                        title?: string | null;
                        type: string;
                    }[];
                    created_at?: string;
                    has_replies?: boolean;
                    id: string;
                    idempotency_key?: string
                    | null;
                    is_deleted?: boolean;
                    legacy_agent?: string | null;
                    metadata?: Record<string, {} | null>;
                    org?: string | null;
                    reactions?: {
                        payload?: Record<string, {} | null>;
                        type: string;
                        user?: string;
                    }[];
                    rendering_mode?: string
                    | null;
                    replies?: Record<string, {} | null>[];
                    replies_after_cursor?: string | null;
                    replies_before_cursor?: string | null;
                    reply_count?: number;
                    reply_to?: Record<string, {} | null> | null;
                    root_message_id?: string | null;
                    sandbox?: string | null;
                    team?: string | null;
                    thread?: string;
                    type?: string | null;
                    user?:
                        | string
                        | {
                            alias?: string
                            | null;
                            app?: string | null;
                            app_name?: string | null;
                            created_by_agent_user?: string | null;
                            created_by_developer?: string | null;
                            created_by_org?: string | null;
                            created_by_team?: string | null;
                            created_by_user?: string | null;
                            email?: string | null;
                            id: string;
                            is_system_user?: boolean;
                            metadata?: Record<string, {} | null>;
                            name?: string | null;
                            org?: string | null;
                            org_name?: string | null;
                            org_role?: string | null;
                            org_slug?: string | null;
                            sandbox?: string | null;
                            sandbox_name?: string | null;
                        }
                        | null;
                    visibility?: "default"
                    | "private";
                }
                | null;
            participant?: string[];
            participants?: {
                alias?: string
                | null;
                app?: string | null;
                app_name?: string | null;
                created_by_agent_user?: string | null;
                created_by_developer?: string | null;
                created_by_org?: string | null;
                created_by_team?: string | null;
                created_by_user?: string | null;
                email?: string | null;
                id: string;
                is_system_user?: boolean;
                metadata?: Record<string, {} | null>;
                name?: string | null;
                org?: string | null;
                org_name?: string | null;
                org_role?: string | null;
                org_slug?: string | null;
                sandbox?: string | null;
                sandbox_name?: string | null;
            }[];
            participating_actor?: string[];
            participating_agents?: | {
                acl?: | {
                    add?: {
                        actions: (...)[];
                        principal?: (...) | (...);
                        principal_type: string;
                    }[];
                    grants?: {
                        actions: (...)[];
                        principal?: (...) | (...);
                        principal_type: string;
                    }[];
                    remove?: { principal?: (...)
                    | (...); principal_type: string }[];
                }
                | null;
                app?: string;
                created_at?: string;
                default_model?: string
                | null;
                description?: string | null;
                email?: string | null;
                id: string;
                identity?: string | null;
                last_applied_template_config?: string | null;
                lookup_key?: string | null;
                metadata?: Record<string, {} | null>;
                name?: string;
                org?: string | null;
                org_name?: string | null;
                originator?: string | null;
                phone_number?: string | null;
                sandbox?: string | null;
                source_solution?:
                    | {
                        current_solution?: {
                            category_keys?: (...)[];
                            created_at?: string;
                            description?: string | null;
                            events?: Record<(...), (...)>;
                            id: string;
                            image_url?: string | null;
                            installed_config_ids: string[];
                            kind: string;
                            latest_solution?: string | null;
                            latest_version?: string | null;
                            lookup_key?: string | null;
                            metadata?: Record<(...), (...)>;
                            name?: string | null;
                            org?: string | null;
                            org_logo?:
                                | {
                                    file?: ...;
                                    height?: ...;
                                    media?: ...;
                                    mime_type?: ...;
                                    refresh_url?: ...;
                                    url?: ...;
                                    width?: ...;
                                }
                                | null;
                            org_name?: string
                            | null;
                            org_slug?: string | null;
                            owners: string[];
                            readme_url?: string | null;
                            screenshot_urls?: (...)[];
                            solution_id?: string | null;
                            solution_version?: string | null;
                            tag_keys?: (...)[];
                            template_kind?: string | null;
                            templates: {
                                description?: ...;
                                details?: ...;
                                display_name?: ...;
                                id?: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                readme_url?: ...;
                                virtual_path?: ...;
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string
                            | null;
                        };
                        solution: {
                            category_keys?: string[];
                            created_at?: string;
                            description?: string
                            | null;
                            events?: Record<string, (...) | (...)>;
                            id: string;
                            image_url?: string | null;
                            installed_config_ids: string[];
                            kind: string;
                            latest_solution?: string | null;
                            latest_version?: string | null;
                            lookup_key?: string | null;
                            metadata?: Record<string, (...) | (...)>;
                            name?: string | null;
                            org?: string | null;
                            org_logo?:
                                | {
                                    file?: (...)
                                    | (...)
                                    | (...);
                                    height?: (...) | (...) | (...);
                                    media?: (...) | (...) | (...);
                                    mime_type?: (...) | (...) | (...);
                                    refresh_url?: (...) | (...) | (...);
                                    url?: (...) | (...) | (...);
                                    width?: (...) | (...) | (...);
                                }
                                | null;
                            org_name?: string
                            | null;
                            org_slug?: string | null;
                            owners: string[];
                            readme_url?: string | null;
                            screenshot_urls?: string[];
                            solution_id?: string | null;
                            solution_version?: string | null;
                            tag_keys?: string[];
                            template_kind?: string | null;
                            templates: {
                                description?: (...) | (...) | (...);
                                details?: (...) | (...) | (...);
                                display_name?: (...) | (...) | (...);
                                id?: (...) | (...) | (...);
                                kind: string;
                                lookup_key?: (...) | (...) | (...);
                                name?: (...) | (...) | (...);
                                readme_url?: (...) | (...) | (...);
                                virtual_path?: (...) | (...) | (...);
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string
                            | null;
                        };
                        template: {
                            created_at?: string;
                            description?: string
                            | null;
                            display_name?: string | null;
                            id: string;
                            kind: string;
                            lookup_key?: string | null;
                            name?: string | null;
                            updated_at?: string;
                            virtual_path?: string | null;
                        };
                    }
                    | null;
                team?: string
                | null;
                template_upgrade_available?: boolean | null;
                updated_at?: string;
                user?: string | null;
            }[]
            | null;
            role?: string
            | null;
            sandbox?: string | null;
            settings?: { agent_enabled?: boolean | null };
            slug?: string | null;
            sub_threads?: Record<string, {} | null>[] | null;
            tags?: string[];
            team?: string | null;
            title?: string | null;
            ttl?: string | null;
            unread_count?: number | null;
            updated_at?: string;
            user?: string | null;
            visibility: "team" | "private" | "restricted";
        },
        {
            agent_user?: string
            | null;
            created_at?: string;
            creator?:
                | string
                | {
                    alias?: string
                    | null;
                    app?: string | null;
                    app_name?: string | null;
                    created_by_agent_user?: string | null;
                    created_by_developer?: string | null;
                    created_by_org?: string | null;
                    created_by_team?: string | null;
                    created_by_user?: string | null;
                    email?: string | null;
                    id: string;
                    is_system_user?: boolean;
                    metadata?: Record<string, {} | null>;
                    name?: string | null;
                    org?: string | null;
                    org_name?: string | null;
                    org_role?: string | null;
                    org_slug?: string | null;
                    sandbox?: string | null;
                    sandbox_name?: string | null;
                }
                | null;
            description?: string
            | null;
            id: string;
            is_channel?: boolean;
            is_default?: boolean;
            is_transient?: boolean;
            is_unlisted?: boolean;
            key?: string | null;
            kind?: string | null;
            last_activity?: string | null;
            last_message_preview?: string | null;
            last_message_sender?: string | null;
            metadata?: Record<string, {} | null> | null;
            muted?: boolean;
            org?: string | null;
            parent_message?:
                | {
                    acl?: | {
                        add?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: string[];
                            principal?: string;
                            principal_type: string;
                        }[];
                        remove?: { principal?: string; principal_type: string }[];
                    }
                    | null;
                    actors?: {
                        alias?: string
                        | null;
                        id?: string | null;
                        name?: string | null;
                        profile_picture?:
                            | {
                                file?: string
                                | null;
                                height?: number | null;
                                media?: string | null;
                                mime_type?: string | null;
                                refresh_url?: string | null;
                                url?: string | null;
                                width?: number | null;
                            }
                            | null;
                    }[];
                    agent?: string
                    | null;
                    agent_mode?: "cli" | "embedded" | null;
                    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?: (...) | (...) | (...);
                            created_at?: (...) | (...);
                            file?: (...) | (...);
                            filename?: (...) | (...) | (...);
                            height?: (...) | (...) | (...);
                            id: string;
                            image_source?: (...) | (...) | (...);
                            updated_at?: (...) | (...);
                            url?: (...) | (...) | (...);
                            variant_key?: (...) | (...);
                            width?: (...) | (...) | (...);
                        }[];
                        version?: number
                        | null;
                        width?: number | null;
                    }[];
                    branched_thread?: string
                    | null;
                    content?: string | null;
                    context?: {
                        attributes?: Record<string, {} | null>;
                        content?: string | null;
                        title?: string | null;
                        type: string;
                    }[];
                    created_at?: string;
                    has_replies?: boolean;
                    id: string;
                    idempotency_key?: string
                    | null;
                    is_deleted?: boolean;
                    legacy_agent?: string | null;
                    metadata?: Record<string, {} | null>;
                    org?: string | null;
                    reactions?: {
                        payload?: Record<string, {} | null>;
                        type: string;
                        user?: string;
                    }[];
                    rendering_mode?: string
                    | null;
                    replies?: Record<string, {} | null>[];
                    replies_after_cursor?: string | null;
                    replies_before_cursor?: string | null;
                    reply_count?: number;
                    reply_to?: Record<string, {} | null> | null;
                    root_message_id?: string | null;
                    sandbox?: string | null;
                    team?: string | null;
                    thread?: string;
                    type?: string | null;
                    user?:
                        | string
                        | {
                            alias?: string
                            | null;
                            app?: string | null;
                            app_name?: string | null;
                            created_by_agent_user?: string | null;
                            created_by_developer?: string | null;
                            created_by_org?: string | null;
                            created_by_team?: string | null;
                            created_by_user?: string | null;
                            email?: string | null;
                            id: string;
                            is_system_user?: boolean;
                            metadata?: Record<string, {} | null>;
                            name?: string | null;
                            org?: string | null;
                            org_name?: string | null;
                            org_role?: string | null;
                            org_slug?: string | null;
                            sandbox?: string | null;
                            sandbox_name?: string | null;
                        }
                        | null;
                    visibility?: "default"
                    | "private";
                }
                | null;
            participant?: string[];
            participants?: {
                alias?: string
                | null;
                app?: string | null;
                app_name?: string | null;
                created_by_agent_user?: string | null;
                created_by_developer?: string | null;
                created_by_org?: string | null;
                created_by_team?: string | null;
                created_by_user?: string | null;
                email?: string | null;
                id: string;
                is_system_user?: boolean;
                metadata?: Record<string, {} | null>;
                name?: string | null;
                org?: string | null;
                org_name?: string | null;
                org_role?: string | null;
                org_slug?: string | null;
                sandbox?: string | null;
                sandbox_name?: string | null;
            }[];
            participating_actor?: string[];
            participating_agents?: | {
                acl?: | {
                    add?: {
                        actions: (...)[];
                        principal?: (...) | (...);
                        principal_type: string;
                    }[];
                    grants?: {
                        actions: (...)[];
                        principal?: (...) | (...);
                        principal_type: string;
                    }[];
                    remove?: { principal?: (...)
                    | (...); principal_type: string }[];
                }
                | null;
                app?: string;
                created_at?: string;
                default_model?: string
                | null;
                description?: string | null;
                email?: string | null;
                id: string;
                identity?: string | null;
                last_applied_template_config?: string | null;
                lookup_key?: string | null;
                metadata?: Record<string, {} | null>;
                name?: string;
                org?: string | null;
                org_name?: string | null;
                originator?: string | null;
                phone_number?: string | null;
                sandbox?: string | null;
                source_solution?:
                    | {
                        current_solution?: {
                            category_keys?: (...)[];
                            created_at?: string;
                            description?: string | null;
                            events?: Record<(...), (...)>;
                            id: string;
                            image_url?: string | null;
                            installed_config_ids: string[];
                            kind: string;
                            latest_solution?: string | null;
                            latest_version?: string | null;
                            lookup_key?: string | null;
                            metadata?: Record<(...), (...)>;
                            name?: string | null;
                            org?: string | null;
                            org_logo?:
                                | {
                                    file?: ...;
                                    height?: ...;
                                    media?: ...;
                                    mime_type?: ...;
                                    refresh_url?: ...;
                                    url?: ...;
                                    width?: ...;
                                }
                                | null;
                            org_name?: string
                            | null;
                            org_slug?: string | null;
                            owners: string[];
                            readme_url?: string | null;
                            screenshot_urls?: (...)[];
                            solution_id?: string | null;
                            solution_version?: string | null;
                            tag_keys?: (...)[];
                            template_kind?: string | null;
                            templates: {
                                description?: ...;
                                details?: ...;
                                display_name?: ...;
                                id?: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                readme_url?: ...;
                                virtual_path?: ...;
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string
                            | null;
                        };
                        solution: {
                            category_keys?: string[];
                            created_at?: string;
                            description?: string
                            | null;
                            events?: Record<string, (...) | (...)>;
                            id: string;
                            image_url?: string | null;
                            installed_config_ids: string[];
                            kind: string;
                            latest_solution?: string | null;
                            latest_version?: string | null;
                            lookup_key?: string | null;
                            metadata?: Record<string, (...) | (...)>;
                            name?: string | null;
                            org?: string | null;
                            org_logo?:
                                | {
                                    file?: (...)
                                    | (...)
                                    | (...);
                                    height?: (...) | (...) | (...);
                                    media?: (...) | (...) | (...);
                                    mime_type?: (...) | (...) | (...);
                                    refresh_url?: (...) | (...) | (...);
                                    url?: (...) | (...) | (...);
                                    width?: (...) | (...) | (...);
                                }
                                | null;
                            org_name?: string
                            | null;
                            org_slug?: string | null;
                            owners: string[];
                            readme_url?: string | null;
                            screenshot_urls?: string[];
                            solution_id?: string | null;
                            solution_version?: string | null;
                            tag_keys?: string[];
                            template_kind?: string | null;
                            templates: {
                                description?: (...) | (...) | (...);
                                details?: (...) | (...) | (...);
                                display_name?: (...) | (...) | (...);
                                id?: (...) | (...) | (...);
                                kind: string;
                                lookup_key?: (...) | (...) | (...);
                                name?: (...) | (...) | (...);
                                readme_url?: (...) | (...) | (...);
                                virtual_path?: (...) | (...) | (...);
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string
                            | null;
                        };
                        template: {
                            created_at?: string;
                            description?: string
                            | null;
                            display_name?: string | null;
                            id: string;
                            kind: string;
                            lookup_key?: string | null;
                            name?: string | null;
                            updated_at?: string;
                            virtual_path?: string | null;
                        };
                    }
                    | null;
                team?: string
                | null;
                template_upgrade_available?: boolean | null;
                updated_at?: string;
                user?: string | null;
            }[]
            | null;
            role?: string
            | null;
            sandbox?: string | null;
            settings?: { agent_enabled?: boolean | null };
            slug?: string | null;
            sub_threads?: Record<string, {} | null>[] | null;
            tags?: string[];
            team?: string | null;
            title?: string | null;
            ttl?: string | null;
            unread_count?: number | null;
            updated_at?: string;
            user?: string | null;
            visibility: "team" | "private" | "restricted";
        },
    > = ...

    Runtime validator for Thread.