@archastro/sdk
    Preparing search index...

    Variable chatForkThreadResponseSchemaConst

    chatForkThreadResponseSchema: ZodObject<
        {
            chat_model: ZodOptional<
                ZodObject<
                    {
                        after_cursor: ZodOptional<ZodString>;
                        agent: ZodOptional<
                            ZodObject<
                                {
                                    acl: ZodOptional<
                                        ZodObject<
                                            { add: ...; grants: ...; remove: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { add?: ...; grants?: ...; remove?: ... },
                                            { add?: ...; grants?: ...; remove?: ... },
                                        >,
                                    >;
                                    app: ZodOptional<ZodString>;
                                    created_at: ZodOptional<ZodString>;
                                    default_model: ZodOptional<ZodString>;
                                    email: ZodOptional<ZodString>;
                                    id: ZodString;
                                    identity: ZodOptional<ZodString>;
                                    last_applied_template_config: ZodOptional<ZodString>;
                                    lookup_key: ZodOptional<ZodString>;
                                    metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    name: ZodOptional<ZodString>;
                                    org: ZodOptional<ZodString>;
                                    org_name: ZodOptional<ZodString>;
                                    originator: ZodOptional<ZodString>;
                                    phone_number: ZodOptional<ZodString>;
                                    sandbox: ZodOptional<ZodString>;
                                    source_solution: ZodOptional<
                                        ZodObject<
                                            { solution: ...; template: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { solution: ...; template: ... },
                                            { solution: ...; template: ... },
                                        >,
                                    >;
                                    team: ZodOptional<ZodString>;
                                    template_upgrade_available: ZodOptional<ZodBoolean>;
                                    updated_at: ZodOptional<ZodString>;
                                    user: ZodOptional<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    acl?: {
                                        add?: (...)
                                        | (...);
                                        grants?: (...) | (...);
                                        remove?: (...) | (...);
                                    };
                                    app?: string;
                                    created_at?: string;
                                    default_model?: string;
                                    email?: string;
                                    id: string;
                                    identity?: string;
                                    last_applied_template_config?: string;
                                    lookup_key?: string;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    originator?: string;
                                    phone_number?: string;
                                    sandbox?: string;
                                    source_solution?: {
                                        solution: {
                                            category_keys?: ...;
                                            created_at?: ...;
                                            description?: ...;
                                            id: ...;
                                            kind: ...;
                                            latest_solution?: ...;
                                            latest_version?: ...;
                                            lookup_key?: ...;
                                            metadata?: ...;
                                            name?: ...;
                                            org?: ...;
                                            org_logo?: ...;
                                            org_name?: ...;
                                            org_slug?: ...;
                                            owners: ...;
                                            readme_url?: ...;
                                            solution_id?: ...;
                                            solution_version?: ...;
                                            tag_keys?: ...;
                                            template_kind?: ...;
                                            templates: ...;
                                            updated_at?: ...;
                                            upgrade_available: ...;
                                            virtual_path?: ...;
                                        };
                                        template: {
                                            created_at?: ...;
                                            description?: ...;
                                            display_name?: ...;
                                            id: ...;
                                            kind: ...;
                                            lookup_key?: ...;
                                            name?: ...;
                                            updated_at?: ...;
                                            virtual_path?: ...;
                                        };
                                    };
                                    team?: string;
                                    template_upgrade_available?: boolean;
                                    updated_at?: string;
                                    user?: string;
                                },
                                {
                                    acl?: {
                                        add?: (...)
                                        | (...);
                                        grants?: (...) | (...);
                                        remove?: (...) | (...);
                                    };
                                    app?: string;
                                    created_at?: string;
                                    default_model?: string;
                                    email?: string;
                                    id: string;
                                    identity?: string;
                                    last_applied_template_config?: string;
                                    lookup_key?: string;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    originator?: string;
                                    phone_number?: string;
                                    sandbox?: string;
                                    source_solution?: {
                                        solution: {
                                            category_keys?: ...;
                                            created_at?: ...;
                                            description?: ...;
                                            id: ...;
                                            kind: ...;
                                            latest_solution?: ...;
                                            latest_version?: ...;
                                            lookup_key?: ...;
                                            metadata?: ...;
                                            name?: ...;
                                            org?: ...;
                                            org_logo?: ...;
                                            org_name?: ...;
                                            org_slug?: ...;
                                            owners: ...;
                                            readme_url?: ...;
                                            solution_id?: ...;
                                            solution_version?: ...;
                                            tag_keys?: ...;
                                            template_kind?: ...;
                                            templates: ...;
                                            updated_at?: ...;
                                            upgrade_available: ...;
                                            virtual_path?: ...;
                                        };
                                        template: {
                                            created_at?: ...;
                                            description?: ...;
                                            display_name?: ...;
                                            id: ...;
                                            kind: ...;
                                            lookup_key?: ...;
                                            name?: ...;
                                            updated_at?: ...;
                                            virtual_path?: ...;
                                        };
                                    };
                                    team?: string;
                                    template_upgrade_available?: boolean;
                                    updated_at?: string;
                                    user?: string;
                                },
                            >,
                        >;
                        before_cursor: ZodOptional<ZodString>;
                        is_transient: ZodBoolean;
                        members: ZodArray<
                            ZodObject<
                                {
                                    agent: ZodOptional<
                                        ZodObject<
                                            {
                                                acl: ...;
                                                app: ...;
                                                created_at: ...;
                                                default_model: ...;
                                                email: ...;
                                                id: ...;
                                                identity: ...;
                                                last_applied_template_config: ...;
                                                lookup_key: ...;
                                                metadata: ...;
                                                name: ...;
                                                org: ...;
                                                org_name: ...;
                                                originator: ...;
                                                phone_number: ...;
                                                sandbox: ...;
                                                source_solution: ...;
                                                team: ...;
                                                template_upgrade_available: ...;
                                                updated_at: ...;
                                                user: ...;
                                            },
                                            "strip",
                                            ZodTypeAny,
                                            {
                                                acl?: ...;
                                                app?: ...;
                                                created_at?: ...;
                                                default_model?: ...;
                                                email?: ...;
                                                id: ...;
                                                identity?: ...;
                                                last_applied_template_config?: ...;
                                                lookup_key?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                originator?: ...;
                                                phone_number?: ...;
                                                sandbox?: ...;
                                                source_solution?: ...;
                                                team?: ...;
                                                template_upgrade_available?: ...;
                                                updated_at?: ...;
                                                user?: ...;
                                            },
                                            {
                                                acl?: ...;
                                                app?: ...;
                                                created_at?: ...;
                                                default_model?: ...;
                                                email?: ...;
                                                id: ...;
                                                identity?: ...;
                                                last_applied_template_config?: ...;
                                                lookup_key?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                originator?: ...;
                                                phone_number?: ...;
                                                sandbox?: ...;
                                                source_solution?: ...;
                                                team?: ...;
                                                template_upgrade_available?: ...;
                                                updated_at?: ...;
                                                user?: ...;
                                            },
                                        >,
                                    >;
                                    membership_type: ZodOptional<ZodString>;
                                    type: ZodString;
                                    user: ZodOptional<
                                        ZodObject<
                                            {
                                                alias: ...;
                                                app: ...;
                                                app_name: ...;
                                                email: ...;
                                                id: ...;
                                                is_system_user: ...;
                                                metadata: ...;
                                                name: ...;
                                                org: ...;
                                                org_name: ...;
                                                org_role: ...;
                                                sandbox: ...;
                                                sandbox_name: ...;
                                            },
                                            "strip",
                                            ZodTypeAny,
                                            {
                                                alias?: ...;
                                                app?: ...;
                                                app_name?: ...;
                                                email?: ...;
                                                id: ...;
                                                is_system_user?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                org_role?: ...;
                                                sandbox?: ...;
                                                sandbox_name?: ...;
                                            },
                                            {
                                                alias?: ...;
                                                app?: ...;
                                                app_name?: ...;
                                                email?: ...;
                                                id: ...;
                                                is_system_user?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                org_role?: ...;
                                                sandbox?: ...;
                                                sandbox_name?: ...;
                                            },
                                        >,
                                    >;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    agent?: {
                                        acl?: (...)
                                        | (...);
                                        app?: (...) | (...);
                                        created_at?: (...) | (...);
                                        default_model?: (...) | (...);
                                        email?: (...) | (...);
                                        id: string;
                                        identity?: (...) | (...);
                                        last_applied_template_config?: (...) | (...);
                                        lookup_key?: (...) | (...);
                                        metadata?: (...) | (...);
                                        name?: (...) | (...);
                                        org?: (...) | (...);
                                        org_name?: (...) | (...);
                                        originator?: (...) | (...);
                                        phone_number?: (...) | (...);
                                        sandbox?: (...) | (...);
                                        source_solution?: (...) | (...);
                                        team?: (...) | (...);
                                        template_upgrade_available?: (...) | (...) | (...);
                                        updated_at?: (...) | (...);
                                        user?: (...) | (...);
                                    };
                                    membership_type?: string;
                                    type: string;
                                    user?: {
                                        alias?: (...)
                                        | (...);
                                        app?: (...) | (...);
                                        app_name?: (...) | (...);
                                        email?: (...) | (...);
                                        id: string;
                                        is_system_user?: (...) | (...) | (...);
                                        metadata?: (...) | (...);
                                        name?: (...) | (...);
                                        org?: (...) | (...);
                                        org_name?: (...) | (...);
                                        org_role?: (...) | (...);
                                        sandbox?: (...) | (...);
                                        sandbox_name?: (...) | (...);
                                    };
                                },
                                {
                                    agent?: {
                                        acl?: (...)
                                        | (...);
                                        app?: (...) | (...);
                                        created_at?: (...) | (...);
                                        default_model?: (...) | (...);
                                        email?: (...) | (...);
                                        id: string;
                                        identity?: (...) | (...);
                                        last_applied_template_config?: (...) | (...);
                                        lookup_key?: (...) | (...);
                                        metadata?: (...) | (...);
                                        name?: (...) | (...);
                                        org?: (...) | (...);
                                        org_name?: (...) | (...);
                                        originator?: (...) | (...);
                                        phone_number?: (...) | (...);
                                        sandbox?: (...) | (...);
                                        source_solution?: (...) | (...);
                                        team?: (...) | (...);
                                        template_upgrade_available?: (...) | (...) | (...);
                                        updated_at?: (...) | (...);
                                        user?: (...) | (...);
                                    };
                                    membership_type?: string;
                                    type: string;
                                    user?: {
                                        alias?: (...)
                                        | (...);
                                        app?: (...) | (...);
                                        app_name?: (...) | (...);
                                        email?: (...) | (...);
                                        id: string;
                                        is_system_user?: (...) | (...) | (...);
                                        metadata?: (...) | (...);
                                        name?: (...) | (...);
                                        org?: (...) | (...);
                                        org_name?: (...) | (...);
                                        org_role?: (...) | (...);
                                        sandbox?: (...) | (...);
                                        sandbox_name?: (...) | (...);
                                    };
                                },
                            >,
                            "many",
                        >;
                        messages: ZodArray<
                            ZodObject<
                                {
                                    actors: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                    agent: ZodOptional<ZodString>;
                                    agent_mode: ZodOptional<ZodEnum<[(...), (...)]>>;
                                    attachments: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                    branched_thread: ZodOptional<ZodString>;
                                    content: ZodOptional<ZodString>;
                                    created_at: ZodOptional<ZodString>;
                                    has_replies: ZodOptional<ZodBoolean>;
                                    id: ZodString;
                                    idempotency_key: ZodOptional<ZodString>;
                                    legacy_agent: ZodOptional<ZodString>;
                                    metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    org: ZodOptional<ZodString>;
                                    reactions: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                    rendering_mode: ZodOptional<ZodString>;
                                    replies: ZodOptional<ZodArray<ZodRecord<(...), (...)>, "many">>;
                                    replies_after_cursor: ZodOptional<ZodString>;
                                    replies_before_cursor: ZodOptional<ZodString>;
                                    reply_count: ZodOptional<ZodNumber>;
                                    reply_to: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    sandbox: ZodOptional<ZodString>;
                                    team: ZodOptional<ZodString>;
                                    thread: ZodOptional<ZodString>;
                                    user: ZodOptional<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    actors?: {
                                        alias?: ...;
                                        id?: ...;
                                        name?: ...;
                                        profile_picture?: ...;
                                    }[];
                                    agent?: string;
                                    agent_mode?: "cli"
                                    | "embedded";
                                    attachments?: {
                                        content_type?: ...;
                                        description?: ...;
                                        filename?: ...;
                                        height?: ...;
                                        id: ...;
                                        image_height?: ...;
                                        image_source?: ...;
                                        image_url?: ...;
                                        image_width?: ...;
                                        media_type?: ...;
                                        name?: ...;
                                        object?: ...;
                                        title?: ...;
                                        type: ...;
                                        url?: ...;
                                        variants?: ...;
                                        version?: ...;
                                        width?: ...;
                                    }[];
                                    branched_thread?: string;
                                    content?: string;
                                    created_at?: string;
                                    has_replies?: boolean;
                                    id: string;
                                    idempotency_key?: string;
                                    legacy_agent?: string;
                                    metadata?: Record<string, unknown>;
                                    org?: string;
                                    reactions?: { payload?: ...; type: ...; user?: ... }[];
                                    rendering_mode?: string;
                                    replies?: Record<(...), (...)>[];
                                    replies_after_cursor?: string;
                                    replies_before_cursor?: string;
                                    reply_count?: number;
                                    reply_to?: Record<string, unknown>;
                                    sandbox?: string;
                                    team?: string;
                                    thread?: string;
                                    user?: string;
                                },
                                {
                                    actors?: {
                                        alias?: ...;
                                        id?: ...;
                                        name?: ...;
                                        profile_picture?: ...;
                                    }[];
                                    agent?: string;
                                    agent_mode?: "cli"
                                    | "embedded";
                                    attachments?: {
                                        content_type?: ...;
                                        description?: ...;
                                        filename?: ...;
                                        height?: ...;
                                        id: ...;
                                        image_height?: ...;
                                        image_source?: ...;
                                        image_url?: ...;
                                        image_width?: ...;
                                        media_type?: ...;
                                        name?: ...;
                                        object?: ...;
                                        title?: ...;
                                        type: ...;
                                        url?: ...;
                                        variants?: ...;
                                        version?: ...;
                                        width?: ...;
                                    }[];
                                    branched_thread?: string;
                                    content?: string;
                                    created_at?: string;
                                    has_replies?: boolean;
                                    id: string;
                                    idempotency_key?: string;
                                    legacy_agent?: string;
                                    metadata?: Record<string, unknown>;
                                    org?: string;
                                    reactions?: { payload?: ...; type: ...; user?: ... }[];
                                    rendering_mode?: string;
                                    replies?: Record<(...), (...)>[];
                                    replies_after_cursor?: string;
                                    replies_before_cursor?: string;
                                    reply_count?: number;
                                    reply_to?: Record<string, unknown>;
                                    sandbox?: string;
                                    team?: string;
                                    thread?: string;
                                    user?: string;
                                },
                            >,
                            "many",
                        >;
                        messages_loaded_on_last_update: ZodOptional<ZodNumber>;
                        team: ZodOptional<
                            ZodObject<
                                {
                                    acl: ZodOptional<
                                        ZodObject<
                                            { add: ...; grants: ...; remove: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { add?: ...; grants?: ...; remove?: ... },
                                            { add?: ...; grants?: ...; remove?: ... },
                                        >,
                                    >;
                                    app: ZodOptional<ZodString>;
                                    badges: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    created_at: ZodOptional<ZodString>;
                                    description: ZodOptional<ZodString>;
                                    id: ZodString;
                                    membership_status: ZodOptional<ZodString>;
                                    metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    name: ZodOptional<ZodString>;
                                    org: ZodOptional<ZodString>;
                                    sandbox: ZodOptional<ZodString>;
                                    slug: ZodOptional<ZodString>;
                                    updated_at: ZodOptional<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    acl?: {
                                        add?: (...)
                                        | (...);
                                        grants?: (...) | (...);
                                        remove?: (...) | (...);
                                    };
                                    app?: string;
                                    badges?: Record<string, unknown>;
                                    created_at?: string;
                                    description?: string;
                                    id: string;
                                    membership_status?: string;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    sandbox?: string;
                                    slug?: string;
                                    updated_at?: string;
                                },
                                {
                                    acl?: {
                                        add?: (...)
                                        | (...);
                                        grants?: (...) | (...);
                                        remove?: (...) | (...);
                                    };
                                    app?: string;
                                    badges?: Record<string, unknown>;
                                    created_at?: string;
                                    description?: string;
                                    id: string;
                                    membership_status?: string;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    sandbox?: string;
                                    slug?: string;
                                    updated_at?: string;
                                },
                            >,
                        >;
                        thread: ZodObject<
                            {
                                agent_user: ZodOptional<ZodString>;
                                created_at: ZodOptional<ZodString>;
                                creator: ZodOptional<
                                    ZodObject<
                                        {
                                            alias: ZodOptional<(...)>;
                                            app: ZodOptional<(...)>;
                                            app_name: ZodOptional<(...)>;
                                            email: ZodOptional<(...)>;
                                            id: ZodString;
                                            is_system_user: ZodOptional<(...)>;
                                            metadata: ZodOptional<(...)>;
                                            name: ZodOptional<(...)>;
                                            org: ZodOptional<(...)>;
                                            org_name: ZodOptional<(...)>;
                                            org_role: ZodOptional<(...)>;
                                            sandbox: ZodOptional<(...)>;
                                            sandbox_name: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            alias?: (...)
                                            | (...);
                                            app?: (...) | (...);
                                            app_name?: (...) | (...);
                                            email?: (...) | (...);
                                            id: string;
                                            is_system_user?: (...) | (...) | (...);
                                            metadata?: (...) | (...);
                                            name?: (...) | (...);
                                            org?: (...) | (...);
                                            org_name?: (...) | (...);
                                            org_role?: (...) | (...);
                                            sandbox?: (...) | (...);
                                            sandbox_name?: (...) | (...);
                                        },
                                        {
                                            alias?: (...)
                                            | (...);
                                            app?: (...) | (...);
                                            app_name?: (...) | (...);
                                            email?: (...) | (...);
                                            id: string;
                                            is_system_user?: (...) | (...) | (...);
                                            metadata?: (...) | (...);
                                            name?: (...) | (...);
                                            org?: (...) | (...);
                                            org_name?: (...) | (...);
                                            org_role?: (...) | (...);
                                            sandbox?: (...) | (...);
                                            sandbox_name?: (...) | (...);
                                        },
                                    >,
                                >;
                                description: ZodOptional<ZodString>;
                                id: ZodString;
                                is_channel: ZodOptional<ZodBoolean>;
                                is_default: ZodOptional<ZodBoolean>;
                                is_transient: ZodOptional<ZodBoolean>;
                                is_unlisted: ZodOptional<ZodBoolean>;
                                key: ZodOptional<ZodString>;
                                last_activity: ZodOptional<ZodString>;
                                metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                muted: ZodOptional<ZodBoolean>;
                                org: ZodOptional<ZodString>;
                                parent_message: ZodOptional<
                                    ZodObject<
                                        {
                                            actors: ZodOptional<(...)>;
                                            agent: ZodOptional<(...)>;
                                            agent_mode: ZodOptional<(...)>;
                                            attachments: ZodOptional<(...)>;
                                            branched_thread: ZodOptional<(...)>;
                                            content: ZodOptional<(...)>;
                                            created_at: ZodOptional<(...)>;
                                            has_replies: ZodOptional<(...)>;
                                            id: ZodString;
                                            idempotency_key: ZodOptional<(...)>;
                                            legacy_agent: ZodOptional<(...)>;
                                            metadata: ZodOptional<(...)>;
                                            org: ZodOptional<(...)>;
                                            reactions: ZodOptional<(...)>;
                                            rendering_mode: ZodOptional<(...)>;
                                            replies: ZodOptional<(...)>;
                                            replies_after_cursor: ZodOptional<(...)>;
                                            replies_before_cursor: ZodOptional<(...)>;
                                            reply_count: ZodOptional<(...)>;
                                            reply_to: ZodOptional<(...)>;
                                            sandbox: ZodOptional<(...)>;
                                            team: ZodOptional<(...)>;
                                            thread: ZodOptional<(...)>;
                                            user: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            actors?: (...)
                                            | (...);
                                            agent?: (...) | (...);
                                            agent_mode?: (...) | (...) | (...);
                                            attachments?: (...) | (...);
                                            branched_thread?: (...) | (...);
                                            content?: (...) | (...);
                                            created_at?: (...) | (...);
                                            has_replies?: (...) | (...) | (...);
                                            id: string;
                                            idempotency_key?: (...) | (...);
                                            legacy_agent?: (...) | (...);
                                            metadata?: (...) | (...);
                                            org?: (...) | (...);
                                            reactions?: (...) | (...);
                                            rendering_mode?: (...) | (...);
                                            replies?: (...) | (...);
                                            replies_after_cursor?: (...) | (...);
                                            replies_before_cursor?: (...) | (...);
                                            reply_count?: (...) | (...);
                                            reply_to?: (...) | (...);
                                            sandbox?: (...) | (...);
                                            team?: (...) | (...);
                                            thread?: (...) | (...);
                                            user?: (...) | (...);
                                        },
                                        {
                                            actors?: (...)
                                            | (...);
                                            agent?: (...) | (...);
                                            agent_mode?: (...) | (...) | (...);
                                            attachments?: (...) | (...);
                                            branched_thread?: (...) | (...);
                                            content?: (...) | (...);
                                            created_at?: (...) | (...);
                                            has_replies?: (...) | (...) | (...);
                                            id: string;
                                            idempotency_key?: (...) | (...);
                                            legacy_agent?: (...) | (...);
                                            metadata?: (...) | (...);
                                            org?: (...) | (...);
                                            reactions?: (...) | (...);
                                            rendering_mode?: (...) | (...);
                                            replies?: (...) | (...);
                                            replies_after_cursor?: (...) | (...);
                                            replies_before_cursor?: (...) | (...);
                                            reply_count?: (...) | (...);
                                            reply_to?: (...) | (...);
                                            sandbox?: (...) | (...);
                                            team?: (...) | (...);
                                            thread?: (...) | (...);
                                            user?: (...) | (...);
                                        },
                                    >,
                                >;
                                participant: ZodOptional<ZodArray<ZodString, "many">>;
                                participants: ZodOptional<
                                    ZodArray<
                                        ZodObject<
                                            {
                                                alias: ...;
                                                app: ...;
                                                app_name: ...;
                                                email: ...;
                                                id: ...;
                                                is_system_user: ...;
                                                metadata: ...;
                                                name: ...;
                                                org: ...;
                                                org_name: ...;
                                                org_role: ...;
                                                sandbox: ...;
                                                sandbox_name: ...;
                                            },
                                            "strip",
                                            ZodTypeAny,
                                            {
                                                alias?: ...;
                                                app?: ...;
                                                app_name?: ...;
                                                email?: ...;
                                                id: ...;
                                                is_system_user?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                org_role?: ...;
                                                sandbox?: ...;
                                                sandbox_name?: ...;
                                            },
                                            {
                                                alias?: ...;
                                                app?: ...;
                                                app_name?: ...;
                                                email?: ...;
                                                id: ...;
                                                is_system_user?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                org_role?: ...;
                                                sandbox?: ...;
                                                sandbox_name?: ...;
                                            },
                                        >,
                                        "many",
                                    >,
                                >;
                                participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
                                participating_agents: ZodOptional<
                                    ZodArray<
                                        ZodObject<
                                            {
                                                acl: ...;
                                                app: ...;
                                                created_at: ...;
                                                default_model: ...;
                                                email: ...;
                                                id: ...;
                                                identity: ...;
                                                last_applied_template_config: ...;
                                                lookup_key: ...;
                                                metadata: ...;
                                                name: ...;
                                                org: ...;
                                                org_name: ...;
                                                originator: ...;
                                                phone_number: ...;
                                                sandbox: ...;
                                                source_solution: ...;
                                                team: ...;
                                                template_upgrade_available: ...;
                                                updated_at: ...;
                                                user: ...;
                                            },
                                            "strip",
                                            ZodTypeAny,
                                            {
                                                acl?: ...;
                                                app?: ...;
                                                created_at?: ...;
                                                default_model?: ...;
                                                email?: ...;
                                                id: ...;
                                                identity?: ...;
                                                last_applied_template_config?: ...;
                                                lookup_key?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                originator?: ...;
                                                phone_number?: ...;
                                                sandbox?: ...;
                                                source_solution?: ...;
                                                team?: ...;
                                                template_upgrade_available?: ...;
                                                updated_at?: ...;
                                                user?: ...;
                                            },
                                            {
                                                acl?: ...;
                                                app?: ...;
                                                created_at?: ...;
                                                default_model?: ...;
                                                email?: ...;
                                                id: ...;
                                                identity?: ...;
                                                last_applied_template_config?: ...;
                                                lookup_key?: ...;
                                                metadata?: ...;
                                                name?: ...;
                                                org?: ...;
                                                org_name?: ...;
                                                originator?: ...;
                                                phone_number?: ...;
                                                sandbox?: ...;
                                                source_solution?: ...;
                                                team?: ...;
                                                template_upgrade_available?: ...;
                                                updated_at?: ...;
                                                user?: ...;
                                            },
                                        >,
                                        "many",
                                    >,
                                >;
                                role: ZodOptional<ZodString>;
                                sandbox: ZodOptional<ZodString>;
                                settings: ZodOptional<
                                    ZodObject<
                                        { agent_enabled: ZodOptional<(...)> },
                                        "strip",
                                        ZodTypeAny,
                                        { agent_enabled?: (...) | (...) | (...) },
                                        { agent_enabled?: (...) | (...) | (...) },
                                    >,
                                >;
                                slug: ZodOptional<ZodString>;
                                sub_threads: ZodOptional<
                                    ZodArray<ZodRecord<ZodString, ZodUnknown>, "many">,
                                >;
                                team: ZodOptional<ZodString>;
                                title: ZodOptional<ZodString>;
                                ttl: ZodOptional<ZodNumber>;
                                unread_count: ZodOptional<ZodNumber>;
                                updated_at: ZodOptional<ZodString>;
                                user: ZodOptional<ZodString>;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                agent_user?: string;
                                created_at?: string;
                                creator?: {
                                    alias?: string;
                                    app?: string;
                                    app_name?: string;
                                    email?: string;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<(...), (...)>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    org_role?: string;
                                    sandbox?: string;
                                    sandbox_name?: string;
                                };
                                description?: string;
                                id: string;
                                is_channel?: boolean;
                                is_default?: boolean;
                                is_transient?: boolean;
                                is_unlisted?: boolean;
                                key?: string;
                                last_activity?: string;
                                metadata?: Record<string, unknown>;
                                muted?: boolean;
                                org?: string;
                                parent_message?: {
                                    actors?: (...)[];
                                    agent?: string;
                                    agent_mode?: "cli" | "embedded";
                                    attachments?: (...)[];
                                    branched_thread?: string;
                                    content?: string;
                                    created_at?: string;
                                    has_replies?: boolean;
                                    id: string;
                                    idempotency_key?: string;
                                    legacy_agent?: string;
                                    metadata?: Record<(...), (...)>;
                                    org?: string;
                                    reactions?: (...)[];
                                    rendering_mode?: string;
                                    replies?: (...)[];
                                    replies_after_cursor?: string;
                                    replies_before_cursor?: string;
                                    reply_count?: number;
                                    reply_to?: Record<(...), (...)>;
                                    sandbox?: string;
                                    team?: string;
                                    thread?: string;
                                    user?: string;
                                };
                                participant?: string[];
                                participants?: {
                                    alias?: (...)
                                    | (...);
                                    app?: (...) | (...);
                                    app_name?: (...) | (...);
                                    email?: (...) | (...);
                                    id: string;
                                    is_system_user?: (...) | (...) | (...);
                                    metadata?: (...) | (...);
                                    name?: (...) | (...);
                                    org?: (...) | (...);
                                    org_name?: (...) | (...);
                                    org_role?: (...) | (...);
                                    sandbox?: (...) | (...);
                                    sandbox_name?: (...) | (...);
                                }[];
                                participating_actor?: string[];
                                participating_agents?: {
                                    acl?: (...)
                                    | (...);
                                    app?: (...) | (...);
                                    created_at?: (...) | (...);
                                    default_model?: (...) | (...);
                                    email?: (...) | (...);
                                    id: string;
                                    identity?: (...) | (...);
                                    last_applied_template_config?: (...) | (...);
                                    lookup_key?: (...) | (...);
                                    metadata?: (...) | (...);
                                    name?: (...) | (...);
                                    org?: (...) | (...);
                                    org_name?: (...) | (...);
                                    originator?: (...) | (...);
                                    phone_number?: (...) | (...);
                                    sandbox?: (...) | (...);
                                    source_solution?: (...) | (...);
                                    team?: (...) | (...);
                                    template_upgrade_available?: (...) | (...) | (...);
                                    updated_at?: (...) | (...);
                                    user?: (...) | (...);
                                }[];
                                role?: string;
                                sandbox?: string;
                                settings?: { agent_enabled?: boolean };
                                slug?: string;
                                sub_threads?: Record<string, unknown>[];
                                team?: string;
                                title?: string;
                                ttl?: number;
                                unread_count?: number;
                                updated_at?: string;
                                user?: string;
                            },
                            {
                                agent_user?: string;
                                created_at?: string;
                                creator?: {
                                    alias?: string;
                                    app?: string;
                                    app_name?: string;
                                    email?: string;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<(...), (...)>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    org_role?: string;
                                    sandbox?: string;
                                    sandbox_name?: string;
                                };
                                description?: string;
                                id: string;
                                is_channel?: boolean;
                                is_default?: boolean;
                                is_transient?: boolean;
                                is_unlisted?: boolean;
                                key?: string;
                                last_activity?: string;
                                metadata?: Record<string, unknown>;
                                muted?: boolean;
                                org?: string;
                                parent_message?: {
                                    actors?: (...)[];
                                    agent?: string;
                                    agent_mode?: "cli" | "embedded";
                                    attachments?: (...)[];
                                    branched_thread?: string;
                                    content?: string;
                                    created_at?: string;
                                    has_replies?: boolean;
                                    id: string;
                                    idempotency_key?: string;
                                    legacy_agent?: string;
                                    metadata?: Record<(...), (...)>;
                                    org?: string;
                                    reactions?: (...)[];
                                    rendering_mode?: string;
                                    replies?: (...)[];
                                    replies_after_cursor?: string;
                                    replies_before_cursor?: string;
                                    reply_count?: number;
                                    reply_to?: Record<(...), (...)>;
                                    sandbox?: string;
                                    team?: string;
                                    thread?: string;
                                    user?: string;
                                };
                                participant?: string[];
                                participants?: {
                                    alias?: (...)
                                    | (...);
                                    app?: (...) | (...);
                                    app_name?: (...) | (...);
                                    email?: (...) | (...);
                                    id: string;
                                    is_system_user?: (...) | (...) | (...);
                                    metadata?: (...) | (...);
                                    name?: (...) | (...);
                                    org?: (...) | (...);
                                    org_name?: (...) | (...);
                                    org_role?: (...) | (...);
                                    sandbox?: (...) | (...);
                                    sandbox_name?: (...) | (...);
                                }[];
                                participating_actor?: string[];
                                participating_agents?: {
                                    acl?: (...)
                                    | (...);
                                    app?: (...) | (...);
                                    created_at?: (...) | (...);
                                    default_model?: (...) | (...);
                                    email?: (...) | (...);
                                    id: string;
                                    identity?: (...) | (...);
                                    last_applied_template_config?: (...) | (...);
                                    lookup_key?: (...) | (...);
                                    metadata?: (...) | (...);
                                    name?: (...) | (...);
                                    org?: (...) | (...);
                                    org_name?: (...) | (...);
                                    originator?: (...) | (...);
                                    phone_number?: (...) | (...);
                                    sandbox?: (...) | (...);
                                    source_solution?: (...) | (...);
                                    team?: (...) | (...);
                                    template_upgrade_available?: (...) | (...) | (...);
                                    updated_at?: (...) | (...);
                                    user?: (...) | (...);
                                }[];
                                role?: string;
                                sandbox?: string;
                                settings?: { agent_enabled?: boolean };
                                slug?: string;
                                sub_threads?: Record<string, unknown>[];
                                team?: string;
                                title?: string;
                                ttl?: number;
                                unread_count?: number;
                                updated_at?: string;
                                user?: string;
                            },
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        after_cursor?: string;
                        agent?: {
                            acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] };
                            app?: string;
                            created_at?: string;
                            default_model?: string;
                            email?: string;
                            id: string;
                            identity?: string;
                            last_applied_template_config?: string;
                            lookup_key?: string;
                            metadata?: Record<string, unknown>;
                            name?: string;
                            org?: string;
                            org_name?: string;
                            originator?: string;
                            phone_number?: string;
                            sandbox?: string;
                            source_solution?: {
                                solution: {
                                    category_keys?: (...) | (...);
                                    created_at?: (...) | (...);
                                    description?: (...) | (...);
                                    id: string;
                                    kind: string;
                                    latest_solution?: (...) | (...);
                                    latest_version?: (...) | (...);
                                    lookup_key?: (...) | (...);
                                    metadata?: (...) | (...);
                                    name?: (...) | (...);
                                    org?: (...) | (...);
                                    org_logo?: (...) | (...);
                                    org_name?: (...) | (...);
                                    org_slug?: (...) | (...);
                                    owners: (...)[];
                                    readme_url?: (...) | (...);
                                    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?: (...) | (...);
                                };
                            };
                            team?: string;
                            template_upgrade_available?: boolean;
                            updated_at?: string;
                            user?: string;
                        };
                        before_cursor?: string;
                        is_transient: boolean;
                        members: {
                            agent?: {
                                acl?: { add?: ...; grants?: ...; remove?: ... };
                                app?: string;
                                created_at?: string;
                                default_model?: string;
                                email?: string;
                                id: string;
                                identity?: string;
                                last_applied_template_config?: string;
                                lookup_key?: string;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                originator?: string;
                                phone_number?: string;
                                sandbox?: string;
                                source_solution?: { solution: ...; template: ... };
                                team?: string;
                                template_upgrade_available?: boolean;
                                updated_at?: string;
                                user?: string;
                            };
                            membership_type?: string;
                            type: string;
                            user?: {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            };
                        }[];
                        messages: {
                            actors?: {
                                alias?: (...)
                                | (...);
                                id?: (...) | (...);
                                name?: (...) | (...);
                                profile_picture?: (...) | (...);
                            }[];
                            agent?: string;
                            agent_mode?: "cli"
                            | "embedded";
                            attachments?: {
                                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?: (...) | (...);
                            }[];
                            branched_thread?: string;
                            content?: string;
                            created_at?: string;
                            has_replies?: boolean;
                            id: string;
                            idempotency_key?: string;
                            legacy_agent?: string;
                            metadata?: Record<string, unknown>;
                            org?: string;
                            reactions?: {
                                payload?: (...) | (...);
                                type: string;
                                user?: (...) | (...);
                            }[];
                            rendering_mode?: string;
                            replies?: Record<string, unknown>[];
                            replies_after_cursor?: string;
                            replies_before_cursor?: string;
                            reply_count?: number;
                            reply_to?: Record<string, unknown>;
                            sandbox?: string;
                            team?: string;
                            thread?: string;
                            user?: string;
                        }[];
                        messages_loaded_on_last_update?: number;
                        team?: {
                            acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] };
                            app?: string;
                            badges?: Record<string, unknown>;
                            created_at?: string;
                            description?: string;
                            id: string;
                            membership_status?: string;
                            metadata?: Record<string, unknown>;
                            name?: string;
                            org?: string;
                            sandbox?: string;
                            slug?: string;
                            updated_at?: string;
                        };
                        thread: {
                            agent_user?: string;
                            created_at?: string;
                            creator?: {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<string, unknown>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            };
                            description?: string;
                            id: string;
                            is_channel?: boolean;
                            is_default?: boolean;
                            is_transient?: boolean;
                            is_unlisted?: boolean;
                            key?: string;
                            last_activity?: string;
                            metadata?: Record<string, unknown>;
                            muted?: boolean;
                            org?: string;
                            parent_message?: {
                                actors?: {
                                    alias?: ...;
                                    id?: ...;
                                    name?: ...;
                                    profile_picture?: ...;
                                }[];
                                agent?: string;
                                agent_mode?: "cli"
                                | "embedded";
                                attachments?: {
                                    content_type?: ...;
                                    description?: ...;
                                    filename?: ...;
                                    height?: ...;
                                    id: ...;
                                    image_height?: ...;
                                    image_source?: ...;
                                    image_url?: ...;
                                    image_width?: ...;
                                    media_type?: ...;
                                    name?: ...;
                                    object?: ...;
                                    title?: ...;
                                    type: ...;
                                    url?: ...;
                                    variants?: ...;
                                    version?: ...;
                                    width?: ...;
                                }[];
                                branched_thread?: string;
                                content?: string;
                                created_at?: string;
                                has_replies?: boolean;
                                id: string;
                                idempotency_key?: string;
                                legacy_agent?: string;
                                metadata?: Record<string, unknown>;
                                org?: string;
                                reactions?: { payload?: ...; type: ...; user?: ... }[];
                                rendering_mode?: string;
                                replies?: Record<(...), (...)>[];
                                replies_after_cursor?: string;
                                replies_before_cursor?: string;
                                reply_count?: number;
                                reply_to?: Record<string, unknown>;
                                sandbox?: string;
                                team?: string;
                                thread?: string;
                                user?: string;
                            };
                            participant?: string[];
                            participants?: {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            }[];
                            participating_actor?: string[];
                            participating_agents?: {
                                acl?: { add?: ...; grants?: ...; remove?: ... };
                                app?: string;
                                created_at?: string;
                                default_model?: string;
                                email?: string;
                                id: string;
                                identity?: string;
                                last_applied_template_config?: string;
                                lookup_key?: string;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                originator?: string;
                                phone_number?: string;
                                sandbox?: string;
                                source_solution?: { solution: ...; template: ... };
                                team?: string;
                                template_upgrade_available?: boolean;
                                updated_at?: string;
                                user?: string;
                            }[];
                            role?: string;
                            sandbox?: string;
                            settings?: { agent_enabled?: boolean };
                            slug?: string;
                            sub_threads?: Record<string, unknown>[];
                            team?: string;
                            title?: string;
                            ttl?: number;
                            unread_count?: number;
                            updated_at?: string;
                            user?: string;
                        };
                    },
                    {
                        after_cursor?: string;
                        agent?: {
                            acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] };
                            app?: string;
                            created_at?: string;
                            default_model?: string;
                            email?: string;
                            id: string;
                            identity?: string;
                            last_applied_template_config?: string;
                            lookup_key?: string;
                            metadata?: Record<string, unknown>;
                            name?: string;
                            org?: string;
                            org_name?: string;
                            originator?: string;
                            phone_number?: string;
                            sandbox?: string;
                            source_solution?: {
                                solution: {
                                    category_keys?: (...) | (...);
                                    created_at?: (...) | (...);
                                    description?: (...) | (...);
                                    id: string;
                                    kind: string;
                                    latest_solution?: (...) | (...);
                                    latest_version?: (...) | (...);
                                    lookup_key?: (...) | (...);
                                    metadata?: (...) | (...);
                                    name?: (...) | (...);
                                    org?: (...) | (...);
                                    org_logo?: (...) | (...);
                                    org_name?: (...) | (...);
                                    org_slug?: (...) | (...);
                                    owners: (...)[];
                                    readme_url?: (...) | (...);
                                    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?: (...) | (...);
                                };
                            };
                            team?: string;
                            template_upgrade_available?: boolean;
                            updated_at?: string;
                            user?: string;
                        };
                        before_cursor?: string;
                        is_transient: boolean;
                        members: {
                            agent?: {
                                acl?: { add?: ...; grants?: ...; remove?: ... };
                                app?: string;
                                created_at?: string;
                                default_model?: string;
                                email?: string;
                                id: string;
                                identity?: string;
                                last_applied_template_config?: string;
                                lookup_key?: string;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                originator?: string;
                                phone_number?: string;
                                sandbox?: string;
                                source_solution?: { solution: ...; template: ... };
                                team?: string;
                                template_upgrade_available?: boolean;
                                updated_at?: string;
                                user?: string;
                            };
                            membership_type?: string;
                            type: string;
                            user?: {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            };
                        }[];
                        messages: {
                            actors?: {
                                alias?: (...)
                                | (...);
                                id?: (...) | (...);
                                name?: (...) | (...);
                                profile_picture?: (...) | (...);
                            }[];
                            agent?: string;
                            agent_mode?: "cli"
                            | "embedded";
                            attachments?: {
                                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?: (...) | (...);
                            }[];
                            branched_thread?: string;
                            content?: string;
                            created_at?: string;
                            has_replies?: boolean;
                            id: string;
                            idempotency_key?: string;
                            legacy_agent?: string;
                            metadata?: Record<string, unknown>;
                            org?: string;
                            reactions?: {
                                payload?: (...) | (...);
                                type: string;
                                user?: (...) | (...);
                            }[];
                            rendering_mode?: string;
                            replies?: Record<string, unknown>[];
                            replies_after_cursor?: string;
                            replies_before_cursor?: string;
                            reply_count?: number;
                            reply_to?: Record<string, unknown>;
                            sandbox?: string;
                            team?: string;
                            thread?: string;
                            user?: string;
                        }[];
                        messages_loaded_on_last_update?: number;
                        team?: {
                            acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] };
                            app?: string;
                            badges?: Record<string, unknown>;
                            created_at?: string;
                            description?: string;
                            id: string;
                            membership_status?: string;
                            metadata?: Record<string, unknown>;
                            name?: string;
                            org?: string;
                            sandbox?: string;
                            slug?: string;
                            updated_at?: string;
                        };
                        thread: {
                            agent_user?: string;
                            created_at?: string;
                            creator?: {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<string, unknown>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            };
                            description?: string;
                            id: string;
                            is_channel?: boolean;
                            is_default?: boolean;
                            is_transient?: boolean;
                            is_unlisted?: boolean;
                            key?: string;
                            last_activity?: string;
                            metadata?: Record<string, unknown>;
                            muted?: boolean;
                            org?: string;
                            parent_message?: {
                                actors?: {
                                    alias?: ...;
                                    id?: ...;
                                    name?: ...;
                                    profile_picture?: ...;
                                }[];
                                agent?: string;
                                agent_mode?: "cli"
                                | "embedded";
                                attachments?: {
                                    content_type?: ...;
                                    description?: ...;
                                    filename?: ...;
                                    height?: ...;
                                    id: ...;
                                    image_height?: ...;
                                    image_source?: ...;
                                    image_url?: ...;
                                    image_width?: ...;
                                    media_type?: ...;
                                    name?: ...;
                                    object?: ...;
                                    title?: ...;
                                    type: ...;
                                    url?: ...;
                                    variants?: ...;
                                    version?: ...;
                                    width?: ...;
                                }[];
                                branched_thread?: string;
                                content?: string;
                                created_at?: string;
                                has_replies?: boolean;
                                id: string;
                                idempotency_key?: string;
                                legacy_agent?: string;
                                metadata?: Record<string, unknown>;
                                org?: string;
                                reactions?: { payload?: ...; type: ...; user?: ... }[];
                                rendering_mode?: string;
                                replies?: Record<(...), (...)>[];
                                replies_after_cursor?: string;
                                replies_before_cursor?: string;
                                reply_count?: number;
                                reply_to?: Record<string, unknown>;
                                sandbox?: string;
                                team?: string;
                                thread?: string;
                                user?: string;
                            };
                            participant?: string[];
                            participants?: {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            }[];
                            participating_actor?: string[];
                            participating_agents?: {
                                acl?: { add?: ...; grants?: ...; remove?: ... };
                                app?: string;
                                created_at?: string;
                                default_model?: string;
                                email?: string;
                                id: string;
                                identity?: string;
                                last_applied_template_config?: string;
                                lookup_key?: string;
                                metadata?: Record<(...), (...)>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                originator?: string;
                                phone_number?: string;
                                sandbox?: string;
                                source_solution?: { solution: ...; template: ... };
                                team?: string;
                                template_upgrade_available?: boolean;
                                updated_at?: string;
                                user?: string;
                            }[];
                            role?: string;
                            sandbox?: string;
                            settings?: { agent_enabled?: boolean };
                            slug?: string;
                            sub_threads?: Record<string, unknown>[];
                            team?: string;
                            title?: string;
                            ttl?: number;
                            unread_count?: number;
                            updated_at?: string;
                            user?: string;
                        };
                    },
                >,
            >;
            team: ZodOptional<
                ZodObject<
                    {
                        acl: ZodOptional<
                            ZodObject<
                                {
                                    add: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                    grants: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                    remove: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    add?: { actions: ...; principal?: ...; principal_type: ... }[];
                                    grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                                    remove?: { principal?: ...; principal_type: ... }[];
                                },
                                {
                                    add?: { actions: ...; principal?: ...; principal_type: ... }[];
                                    grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                                    remove?: { principal?: ...; principal_type: ... }[];
                                },
                            >,
                        >;
                        app: ZodOptional<ZodString>;
                        badges: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                        created_at: ZodOptional<ZodString>;
                        description: ZodOptional<ZodString>;
                        id: ZodString;
                        membership_status: ZodOptional<ZodString>;
                        metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                        name: ZodOptional<ZodString>;
                        org: ZodOptional<ZodString>;
                        sandbox: ZodOptional<ZodString>;
                        slug: ZodOptional<ZodString>;
                        updated_at: ZodOptional<ZodString>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        acl?: {
                            add?: {
                                actions: (...)[];
                                principal?: (...) | (...);
                                principal_type: string;
                            }[];
                            grants?: {
                                actions: (...)[];
                                principal?: (...) | (...);
                                principal_type: string;
                            }[];
                            remove?: { principal?: (...)
                            | (...); principal_type: string }[];
                        };
                        app?: string;
                        badges?: Record<string, unknown>;
                        created_at?: string;
                        description?: string;
                        id: string;
                        membership_status?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        sandbox?: string;
                        slug?: string;
                        updated_at?: string;
                    },
                    {
                        acl?: {
                            add?: {
                                actions: (...)[];
                                principal?: (...) | (...);
                                principal_type: string;
                            }[];
                            grants?: {
                                actions: (...)[];
                                principal?: (...) | (...);
                                principal_type: string;
                            }[];
                            remove?: { principal?: (...)
                            | (...); principal_type: string }[];
                        };
                        app?: string;
                        badges?: Record<string, unknown>;
                        created_at?: string;
                        description?: string;
                        id: string;
                        membership_status?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        sandbox?: string;
                        slug?: string;
                        updated_at?: string;
                    },
                >,
            >;
            thread: ZodObject<
                {
                    agent_user: ZodOptional<ZodString>;
                    created_at: ZodOptional<ZodString>;
                    creator: ZodOptional<
                        ZodObject<
                            {
                                alias: ZodOptional<ZodString>;
                                app: ZodOptional<ZodString>;
                                app_name: ZodOptional<ZodString>;
                                email: ZodOptional<ZodString>;
                                id: ZodString;
                                is_system_user: ZodOptional<ZodBoolean>;
                                metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                name: ZodOptional<ZodString>;
                                org: ZodOptional<ZodString>;
                                org_name: ZodOptional<ZodString>;
                                org_role: ZodOptional<ZodString>;
                                sandbox: ZodOptional<ZodString>;
                                sandbox_name: ZodOptional<ZodString>;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<string, unknown>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            },
                            {
                                alias?: string;
                                app?: string;
                                app_name?: string;
                                email?: string;
                                id: string;
                                is_system_user?: boolean;
                                metadata?: Record<string, unknown>;
                                name?: string;
                                org?: string;
                                org_name?: string;
                                org_role?: string;
                                sandbox?: string;
                                sandbox_name?: string;
                            },
                        >,
                    >;
                    description: ZodOptional<ZodString>;
                    id: ZodString;
                    is_channel: ZodOptional<ZodBoolean>;
                    is_default: ZodOptional<ZodBoolean>;
                    is_transient: ZodOptional<ZodBoolean>;
                    is_unlisted: ZodOptional<ZodBoolean>;
                    key: ZodOptional<ZodString>;
                    last_activity: ZodOptional<ZodString>;
                    metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                    muted: ZodOptional<ZodBoolean>;
                    org: ZodOptional<ZodString>;
                    parent_message: ZodOptional<
                        ZodObject<
                            {
                                actors: ZodOptional<
                                    ZodArray<
                                        ZodObject<
                                            { alias: ...; id: ...; name: ...; profile_picture: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { alias?: ...; id?: ...; name?: ...; profile_picture?: ... },
                                            { alias?: ...; id?: ...; name?: ...; profile_picture?: ... },
                                        >,
                                        "many",
                                    >,
                                >;
                                agent: ZodOptional<ZodString>;
                                agent_mode: ZodOptional<ZodEnum<["cli", "embedded"]>>;
                                attachments: ZodOptional<
                                    ZodArray<
                                        ZodObject<
                                            {
                                                content_type: ...;
                                                description: ...;
                                                filename: ...;
                                                height: ...;
                                                id: ...;
                                                image_height: ...;
                                                image_source: ...;
                                                image_url: ...;
                                                image_width: ...;
                                                media_type: ...;
                                                name: ...;
                                                object: ...;
                                                title: ...;
                                                type: ...;
                                                url: ...;
                                                variants: ...;
                                                version: ...;
                                                width: ...;
                                            },
                                            "strip",
                                            ZodTypeAny,
                                            {
                                                content_type?: ...;
                                                description?: ...;
                                                filename?: ...;
                                                height?: ...;
                                                id: ...;
                                                image_height?: ...;
                                                image_source?: ...;
                                                image_url?: ...;
                                                image_width?: ...;
                                                media_type?: ...;
                                                name?: ...;
                                                object?: ...;
                                                title?: ...;
                                                type: ...;
                                                url?: ...;
                                                variants?: ...;
                                                version?: ...;
                                                width?: ...;
                                            },
                                            {
                                                content_type?: ...;
                                                description?: ...;
                                                filename?: ...;
                                                height?: ...;
                                                id: ...;
                                                image_height?: ...;
                                                image_source?: ...;
                                                image_url?: ...;
                                                image_width?: ...;
                                                media_type?: ...;
                                                name?: ...;
                                                object?: ...;
                                                title?: ...;
                                                type: ...;
                                                url?: ...;
                                                variants?: ...;
                                                version?: ...;
                                                width?: ...;
                                            },
                                        >,
                                        "many",
                                    >,
                                >;
                                branched_thread: ZodOptional<ZodString>;
                                content: ZodOptional<ZodString>;
                                created_at: ZodOptional<ZodString>;
                                has_replies: ZodOptional<ZodBoolean>;
                                id: ZodString;
                                idempotency_key: ZodOptional<ZodString>;
                                legacy_agent: ZodOptional<ZodString>;
                                metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                org: ZodOptional<ZodString>;
                                reactions: ZodOptional<
                                    ZodArray<
                                        ZodObject<
                                            { payload: ...; type: ...; user: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { payload?: ...; type: ...; user?: ... },
                                            { payload?: ...; type: ...; user?: ... },
                                        >,
                                        "many",
                                    >,
                                >;
                                rendering_mode: ZodOptional<ZodString>;
                                replies: ZodOptional<
                                    ZodArray<ZodRecord<ZodString, ZodUnknown>, "many">,
                                >;
                                replies_after_cursor: ZodOptional<ZodString>;
                                replies_before_cursor: ZodOptional<ZodString>;
                                reply_count: ZodOptional<ZodNumber>;
                                reply_to: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                sandbox: ZodOptional<ZodString>;
                                team: ZodOptional<ZodString>;
                                thread: ZodOptional<ZodString>;
                                user: ZodOptional<ZodString>;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                actors?: {
                                    alias?: (...)
                                    | (...);
                                    id?: (...) | (...);
                                    name?: (...) | (...);
                                    profile_picture?: (...) | (...);
                                }[];
                                agent?: string;
                                agent_mode?: "cli"
                                | "embedded";
                                attachments?: {
                                    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?: (...) | (...);
                                }[];
                                branched_thread?: string;
                                content?: string;
                                created_at?: string;
                                has_replies?: boolean;
                                id: string;
                                idempotency_key?: string;
                                legacy_agent?: string;
                                metadata?: Record<string, unknown>;
                                org?: string;
                                reactions?: {
                                    payload?: (...) | (...);
                                    type: string;
                                    user?: (...) | (...);
                                }[];
                                rendering_mode?: string;
                                replies?: Record<string, unknown>[];
                                replies_after_cursor?: string;
                                replies_before_cursor?: string;
                                reply_count?: number;
                                reply_to?: Record<string, unknown>;
                                sandbox?: string;
                                team?: string;
                                thread?: string;
                                user?: string;
                            },
                            {
                                actors?: {
                                    alias?: (...)
                                    | (...);
                                    id?: (...) | (...);
                                    name?: (...) | (...);
                                    profile_picture?: (...) | (...);
                                }[];
                                agent?: string;
                                agent_mode?: "cli"
                                | "embedded";
                                attachments?: {
                                    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?: (...) | (...);
                                }[];
                                branched_thread?: string;
                                content?: string;
                                created_at?: string;
                                has_replies?: boolean;
                                id: string;
                                idempotency_key?: string;
                                legacy_agent?: string;
                                metadata?: Record<string, unknown>;
                                org?: string;
                                reactions?: {
                                    payload?: (...) | (...);
                                    type: string;
                                    user?: (...) | (...);
                                }[];
                                rendering_mode?: string;
                                replies?: Record<string, unknown>[];
                                replies_after_cursor?: string;
                                replies_before_cursor?: string;
                                reply_count?: number;
                                reply_to?: Record<string, unknown>;
                                sandbox?: string;
                                team?: string;
                                thread?: string;
                                user?: string;
                            },
                        >,
                    >;
                    participant: ZodOptional<ZodArray<ZodString, "many">>;
                    participants: ZodOptional<
                        ZodArray<
                            ZodObject<
                                {
                                    alias: ZodOptional<ZodString>;
                                    app: ZodOptional<ZodString>;
                                    app_name: ZodOptional<ZodString>;
                                    email: ZodOptional<ZodString>;
                                    id: ZodString;
                                    is_system_user: ZodOptional<ZodBoolean>;
                                    metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    name: ZodOptional<ZodString>;
                                    org: ZodOptional<ZodString>;
                                    org_name: ZodOptional<ZodString>;
                                    org_role: ZodOptional<ZodString>;
                                    sandbox: ZodOptional<ZodString>;
                                    sandbox_name: ZodOptional<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    alias?: string;
                                    app?: string;
                                    app_name?: string;
                                    email?: string;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    org_role?: string;
                                    sandbox?: string;
                                    sandbox_name?: string;
                                },
                                {
                                    alias?: string;
                                    app?: string;
                                    app_name?: string;
                                    email?: string;
                                    id: string;
                                    is_system_user?: boolean;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    org_role?: string;
                                    sandbox?: string;
                                    sandbox_name?: string;
                                },
                            >,
                            "many",
                        >,
                    >;
                    participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
                    participating_agents: ZodOptional<
                        ZodArray<
                            ZodObject<
                                {
                                    acl: ZodOptional<
                                        ZodObject<
                                            { add: ...; grants: ...; remove: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { add?: ...; grants?: ...; remove?: ... },
                                            { add?: ...; grants?: ...; remove?: ... },
                                        >,
                                    >;
                                    app: ZodOptional<ZodString>;
                                    created_at: ZodOptional<ZodString>;
                                    default_model: ZodOptional<ZodString>;
                                    email: ZodOptional<ZodString>;
                                    id: ZodString;
                                    identity: ZodOptional<ZodString>;
                                    last_applied_template_config: ZodOptional<ZodString>;
                                    lookup_key: ZodOptional<ZodString>;
                                    metadata: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
                                    name: ZodOptional<ZodString>;
                                    org: ZodOptional<ZodString>;
                                    org_name: ZodOptional<ZodString>;
                                    originator: ZodOptional<ZodString>;
                                    phone_number: ZodOptional<ZodString>;
                                    sandbox: ZodOptional<ZodString>;
                                    source_solution: ZodOptional<
                                        ZodObject<
                                            { solution: ...; template: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { solution: ...; template: ... },
                                            { solution: ...; template: ... },
                                        >,
                                    >;
                                    team: ZodOptional<ZodString>;
                                    template_upgrade_available: ZodOptional<ZodBoolean>;
                                    updated_at: ZodOptional<ZodString>;
                                    user: ZodOptional<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    acl?: {
                                        add?: (...)
                                        | (...);
                                        grants?: (...) | (...);
                                        remove?: (...) | (...);
                                    };
                                    app?: string;
                                    created_at?: string;
                                    default_model?: string;
                                    email?: string;
                                    id: string;
                                    identity?: string;
                                    last_applied_template_config?: string;
                                    lookup_key?: string;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    originator?: string;
                                    phone_number?: string;
                                    sandbox?: string;
                                    source_solution?: {
                                        solution: {
                                            category_keys?: ...;
                                            created_at?: ...;
                                            description?: ...;
                                            id: ...;
                                            kind: ...;
                                            latest_solution?: ...;
                                            latest_version?: ...;
                                            lookup_key?: ...;
                                            metadata?: ...;
                                            name?: ...;
                                            org?: ...;
                                            org_logo?: ...;
                                            org_name?: ...;
                                            org_slug?: ...;
                                            owners: ...;
                                            readme_url?: ...;
                                            solution_id?: ...;
                                            solution_version?: ...;
                                            tag_keys?: ...;
                                            template_kind?: ...;
                                            templates: ...;
                                            updated_at?: ...;
                                            upgrade_available: ...;
                                            virtual_path?: ...;
                                        };
                                        template: {
                                            created_at?: ...;
                                            description?: ...;
                                            display_name?: ...;
                                            id: ...;
                                            kind: ...;
                                            lookup_key?: ...;
                                            name?: ...;
                                            updated_at?: ...;
                                            virtual_path?: ...;
                                        };
                                    };
                                    team?: string;
                                    template_upgrade_available?: boolean;
                                    updated_at?: string;
                                    user?: string;
                                },
                                {
                                    acl?: {
                                        add?: (...)
                                        | (...);
                                        grants?: (...) | (...);
                                        remove?: (...) | (...);
                                    };
                                    app?: string;
                                    created_at?: string;
                                    default_model?: string;
                                    email?: string;
                                    id: string;
                                    identity?: string;
                                    last_applied_template_config?: string;
                                    lookup_key?: string;
                                    metadata?: Record<string, unknown>;
                                    name?: string;
                                    org?: string;
                                    org_name?: string;
                                    originator?: string;
                                    phone_number?: string;
                                    sandbox?: string;
                                    source_solution?: {
                                        solution: {
                                            category_keys?: ...;
                                            created_at?: ...;
                                            description?: ...;
                                            id: ...;
                                            kind: ...;
                                            latest_solution?: ...;
                                            latest_version?: ...;
                                            lookup_key?: ...;
                                            metadata?: ...;
                                            name?: ...;
                                            org?: ...;
                                            org_logo?: ...;
                                            org_name?: ...;
                                            org_slug?: ...;
                                            owners: ...;
                                            readme_url?: ...;
                                            solution_id?: ...;
                                            solution_version?: ...;
                                            tag_keys?: ...;
                                            template_kind?: ...;
                                            templates: ...;
                                            updated_at?: ...;
                                            upgrade_available: ...;
                                            virtual_path?: ...;
                                        };
                                        template: {
                                            created_at?: ...;
                                            description?: ...;
                                            display_name?: ...;
                                            id: ...;
                                            kind: ...;
                                            lookup_key?: ...;
                                            name?: ...;
                                            updated_at?: ...;
                                            virtual_path?: ...;
                                        };
                                    };
                                    team?: string;
                                    template_upgrade_available?: boolean;
                                    updated_at?: string;
                                    user?: string;
                                },
                            >,
                            "many",
                        >,
                    >;
                    role: ZodOptional<ZodString>;
                    sandbox: ZodOptional<ZodString>;
                    settings: ZodOptional<
                        ZodObject<
                            { agent_enabled: ZodOptional<ZodBoolean> },
                            "strip",
                            ZodTypeAny,
                            { agent_enabled?: boolean },
                            { agent_enabled?: boolean },
                        >,
                    >;
                    slug: ZodOptional<ZodString>;
                    sub_threads: ZodOptional<
                        ZodArray<ZodRecord<ZodString, ZodUnknown>, "many">,
                    >;
                    team: ZodOptional<ZodString>;
                    title: ZodOptional<ZodString>;
                    ttl: ZodOptional<ZodNumber>;
                    unread_count: ZodOptional<ZodNumber>;
                    updated_at: ZodOptional<ZodString>;
                    user: ZodOptional<ZodString>;
                },
                "strip",
                ZodTypeAny,
                {
                    agent_user?: string;
                    created_at?: string;
                    creator?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    };
                    description?: string;
                    id: string;
                    is_channel?: boolean;
                    is_default?: boolean;
                    is_transient?: boolean;
                    is_unlisted?: boolean;
                    key?: string;
                    last_activity?: string;
                    metadata?: Record<string, unknown>;
                    muted?: boolean;
                    org?: string;
                    parent_message?: {
                        actors?: {
                            alias?: string;
                            id?: string;
                            name?: string;
                            profile_picture?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                        }[];
                        agent?: string;
                        agent_mode?: "cli"
                        | "embedded";
                        attachments?: {
                            content_type?: string;
                            description?: string;
                            filename?: string;
                            height?: number;
                            id: string;
                            image_height?: number;
                            image_source?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                            image_url?: string;
                            image_width?: number;
                            media_type?: string;
                            name?: string;
                            object?: Record<(...), (...)>;
                            title?: string;
                            type: string;
                            url?: string;
                            variants?: (...)[];
                            version?: number;
                            width?: number;
                        }[];
                        branched_thread?: string;
                        content?: string;
                        created_at?: string;
                        has_replies?: boolean;
                        id: string;
                        idempotency_key?: string;
                        legacy_agent?: string;
                        metadata?: Record<string, unknown>;
                        org?: string;
                        reactions?: {
                            payload?: Record<(...), (...)>;
                            type: string;
                            user?: string;
                        }[];
                        rendering_mode?: string;
                        replies?: Record<string, unknown>[];
                        replies_after_cursor?: string;
                        replies_before_cursor?: string;
                        reply_count?: number;
                        reply_to?: Record<string, unknown>;
                        sandbox?: string;
                        team?: string;
                        thread?: string;
                        user?: string;
                    };
                    participant?: string[];
                    participants?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    }[];
                    participating_actor?: string[];
                    participating_agents?: {
                        acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] };
                        app?: string;
                        created_at?: string;
                        default_model?: string;
                        email?: string;
                        id: string;
                        identity?: string;
                        last_applied_template_config?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        originator?: string;
                        phone_number?: string;
                        sandbox?: string;
                        source_solution?: {
                            solution: {
                                category_keys?: (...) | (...);
                                created_at?: (...) | (...);
                                description?: (...) | (...);
                                id: string;
                                kind: string;
                                latest_solution?: (...) | (...);
                                latest_version?: (...) | (...);
                                lookup_key?: (...) | (...);
                                metadata?: (...) | (...);
                                name?: (...) | (...);
                                org?: (...) | (...);
                                org_logo?: (...) | (...);
                                org_name?: (...) | (...);
                                org_slug?: (...) | (...);
                                owners: (...)[];
                                readme_url?: (...) | (...);
                                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?: (...) | (...);
                            };
                        };
                        team?: string;
                        template_upgrade_available?: boolean;
                        updated_at?: string;
                        user?: string;
                    }[];
                    role?: string;
                    sandbox?: string;
                    settings?: { agent_enabled?: boolean };
                    slug?: string;
                    sub_threads?: Record<string, unknown>[];
                    team?: string;
                    title?: string;
                    ttl?: number;
                    unread_count?: number;
                    updated_at?: string;
                    user?: string;
                },
                {
                    agent_user?: string;
                    created_at?: string;
                    creator?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    };
                    description?: string;
                    id: string;
                    is_channel?: boolean;
                    is_default?: boolean;
                    is_transient?: boolean;
                    is_unlisted?: boolean;
                    key?: string;
                    last_activity?: string;
                    metadata?: Record<string, unknown>;
                    muted?: boolean;
                    org?: string;
                    parent_message?: {
                        actors?: {
                            alias?: string;
                            id?: string;
                            name?: string;
                            profile_picture?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                        }[];
                        agent?: string;
                        agent_mode?: "cli"
                        | "embedded";
                        attachments?: {
                            content_type?: string;
                            description?: string;
                            filename?: string;
                            height?: number;
                            id: string;
                            image_height?: number;
                            image_source?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                            image_url?: string;
                            image_width?: number;
                            media_type?: string;
                            name?: string;
                            object?: Record<(...), (...)>;
                            title?: string;
                            type: string;
                            url?: string;
                            variants?: (...)[];
                            version?: number;
                            width?: number;
                        }[];
                        branched_thread?: string;
                        content?: string;
                        created_at?: string;
                        has_replies?: boolean;
                        id: string;
                        idempotency_key?: string;
                        legacy_agent?: string;
                        metadata?: Record<string, unknown>;
                        org?: string;
                        reactions?: {
                            payload?: Record<(...), (...)>;
                            type: string;
                            user?: string;
                        }[];
                        rendering_mode?: string;
                        replies?: Record<string, unknown>[];
                        replies_after_cursor?: string;
                        replies_before_cursor?: string;
                        reply_count?: number;
                        reply_to?: Record<string, unknown>;
                        sandbox?: string;
                        team?: string;
                        thread?: string;
                        user?: string;
                    };
                    participant?: string[];
                    participants?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    }[];
                    participating_actor?: string[];
                    participating_agents?: {
                        acl?: { add?: (...)[]; grants?: (...)[]; remove?: (...)[] };
                        app?: string;
                        created_at?: string;
                        default_model?: string;
                        email?: string;
                        id: string;
                        identity?: string;
                        last_applied_template_config?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        originator?: string;
                        phone_number?: string;
                        sandbox?: string;
                        source_solution?: {
                            solution: {
                                category_keys?: (...) | (...);
                                created_at?: (...) | (...);
                                description?: (...) | (...);
                                id: string;
                                kind: string;
                                latest_solution?: (...) | (...);
                                latest_version?: (...) | (...);
                                lookup_key?: (...) | (...);
                                metadata?: (...) | (...);
                                name?: (...) | (...);
                                org?: (...) | (...);
                                org_logo?: (...) | (...);
                                org_name?: (...) | (...);
                                org_slug?: (...) | (...);
                                owners: (...)[];
                                readme_url?: (...) | (...);
                                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?: (...) | (...);
                            };
                        };
                        team?: string;
                        template_upgrade_available?: boolean;
                        updated_at?: string;
                        user?: string;
                    }[];
                    role?: string;
                    sandbox?: string;
                    settings?: { agent_enabled?: boolean };
                    slug?: string;
                    sub_threads?: Record<string, unknown>[];
                    team?: string;
                    title?: string;
                    ttl?: number;
                    unread_count?: number;
                    updated_at?: string;
                    user?: string;
                },
            >;
        },
        "strip",
        ZodTypeAny,
        {
            chat_model?: {
                after_cursor?: string;
                agent?: {
                    acl?: {
                        add?: { actions: ...; principal?: ...; principal_type: ... }[];
                        grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                        remove?: { principal?: ...; principal_type: ... }[];
                    };
                    app?: string;
                    created_at?: string;
                    default_model?: string;
                    email?: string;
                    id: string;
                    identity?: string;
                    last_applied_template_config?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    originator?: string;
                    phone_number?: string;
                    sandbox?: string;
                    source_solution?: {
                        solution: {
                            category_keys?: (...)[];
                            created_at?: string;
                            description?: string;
                            id: string;
                            kind: string;
                            latest_solution?: string;
                            latest_version?: string;
                            lookup_key?: string;
                            metadata?: Record<(...), (...)>;
                            name?: string;
                            org?: string;
                            org_logo?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                            org_name?: string;
                            org_slug?: string;
                            owners: string[];
                            readme_url?: string;
                            solution_id?: string;
                            solution_version?: string;
                            tag_keys?: (...)[];
                            template_kind?: string;
                            templates: {
                                description?: ...;
                                display_name?: ...;
                                id?: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                readme_url?: ...;
                                virtual_path?: ...;
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string;
                        };
                        template: {
                            created_at?: string;
                            description?: string;
                            display_name?: string;
                            id: string;
                            kind: string;
                            lookup_key?: string;
                            name?: string;
                            updated_at?: string;
                            virtual_path?: string;
                        };
                    };
                    team?: string;
                    template_upgrade_available?: boolean;
                    updated_at?: string;
                    user?: string;
                };
                before_cursor?: string;
                is_transient: boolean;
                members: {
                    agent?: {
                        acl?: {
                            add?: (...)
                            | (...);
                            grants?: (...) | (...);
                            remove?: (...) | (...);
                        };
                        app?: string;
                        created_at?: string;
                        default_model?: string;
                        email?: string;
                        id: string;
                        identity?: string;
                        last_applied_template_config?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        originator?: string;
                        phone_number?: string;
                        sandbox?: string;
                        source_solution?: {
                            solution: {
                                category_keys?: ...;
                                created_at?: ...;
                                description?: ...;
                                id: ...;
                                kind: ...;
                                latest_solution?: ...;
                                latest_version?: ...;
                                lookup_key?: ...;
                                metadata?: ...;
                                name?: ...;
                                org?: ...;
                                org_logo?: ...;
                                org_name?: ...;
                                org_slug?: ...;
                                owners: ...;
                                readme_url?: ...;
                                solution_id?: ...;
                                solution_version?: ...;
                                tag_keys?: ...;
                                template_kind?: ...;
                                templates: ...;
                                updated_at?: ...;
                                upgrade_available: ...;
                                virtual_path?: ...;
                            };
                            template: {
                                created_at?: ...;
                                description?: ...;
                                display_name?: ...;
                                id: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                updated_at?: ...;
                                virtual_path?: ...;
                            };
                        };
                        team?: string;
                        template_upgrade_available?: boolean;
                        updated_at?: string;
                        user?: string;
                    };
                    membership_type?: string;
                    type: string;
                    user?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    };
                }[];
                messages: {
                    actors?: {
                        alias?: string;
                        id?: string;
                        name?: string;
                        profile_picture?: {
                            file?: ...;
                            height?: ...;
                            media?: ...;
                            mime_type?: ...;
                            refresh_url?: ...;
                            url?: ...;
                            width?: ...;
                        };
                    }[];
                    agent?: string;
                    agent_mode?: "cli"
                    | "embedded";
                    attachments?: {
                        content_type?: string;
                        description?: string;
                        filename?: string;
                        height?: number;
                        id: string;
                        image_height?: number;
                        image_source?: {
                            file?: ...;
                            height?: ...;
                            media?: ...;
                            mime_type?: ...;
                            refresh_url?: ...;
                            url?: ...;
                            width?: ...;
                        };
                        image_url?: string;
                        image_width?: number;
                        media_type?: string;
                        name?: string;
                        object?: Record<(...), (...)>;
                        title?: string;
                        type: string;
                        url?: string;
                        variants?: (...)[];
                        version?: number;
                        width?: number;
                    }[];
                    branched_thread?: string;
                    content?: string;
                    created_at?: string;
                    has_replies?: boolean;
                    id: string;
                    idempotency_key?: string;
                    legacy_agent?: string;
                    metadata?: Record<string, unknown>;
                    org?: string;
                    reactions?: {
                        payload?: Record<(...), (...)>;
                        type: string;
                        user?: string;
                    }[];
                    rendering_mode?: string;
                    replies?: Record<string, unknown>[];
                    replies_after_cursor?: string;
                    replies_before_cursor?: string;
                    reply_count?: number;
                    reply_to?: Record<string, unknown>;
                    sandbox?: string;
                    team?: string;
                    thread?: string;
                    user?: string;
                }[];
                messages_loaded_on_last_update?: number;
                team?: {
                    acl?: {
                        add?: { actions: ...; principal?: ...; principal_type: ... }[];
                        grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                        remove?: { principal?: ...; principal_type: ... }[];
                    };
                    app?: string;
                    badges?: Record<string, unknown>;
                    created_at?: string;
                    description?: string;
                    id: string;
                    membership_status?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    sandbox?: string;
                    slug?: string;
                    updated_at?: string;
                };
                thread: {
                    agent_user?: string;
                    created_at?: string;
                    creator?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    };
                    description?: string;
                    id: string;
                    is_channel?: boolean;
                    is_default?: boolean;
                    is_transient?: boolean;
                    is_unlisted?: boolean;
                    key?: string;
                    last_activity?: string;
                    metadata?: Record<string, unknown>;
                    muted?: boolean;
                    org?: string;
                    parent_message?: {
                        actors?: {
                            alias?: (...) | (...);
                            id?: (...) | (...);
                            name?: (...) | (...);
                            profile_picture?: (...) | (...);
                        }[];
                        agent?: string;
                        agent_mode?: "cli"
                        | "embedded";
                        attachments?: {
                            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?: (...) | (...);
                        }[];
                        branched_thread?: string;
                        content?: string;
                        created_at?: string;
                        has_replies?: boolean;
                        id: string;
                        idempotency_key?: string;
                        legacy_agent?: string;
                        metadata?: Record<string, unknown>;
                        org?: string;
                        reactions?: {
                            payload?: (...) | (...);
                            type: string;
                            user?: (...) | (...);
                        }[];
                        rendering_mode?: string;
                        replies?: Record<string, unknown>[];
                        replies_after_cursor?: string;
                        replies_before_cursor?: string;
                        reply_count?: number;
                        reply_to?: Record<string, unknown>;
                        sandbox?: string;
                        team?: string;
                        thread?: string;
                        user?: string;
                    };
                    participant?: string[];
                    participants?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    }[];
                    participating_actor?: string[];
                    participating_agents?: {
                        acl?: {
                            add?: (...)
                            | (...);
                            grants?: (...) | (...);
                            remove?: (...) | (...);
                        };
                        app?: string;
                        created_at?: string;
                        default_model?: string;
                        email?: string;
                        id: string;
                        identity?: string;
                        last_applied_template_config?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        originator?: string;
                        phone_number?: string;
                        sandbox?: string;
                        source_solution?: {
                            solution: {
                                category_keys?: ...;
                                created_at?: ...;
                                description?: ...;
                                id: ...;
                                kind: ...;
                                latest_solution?: ...;
                                latest_version?: ...;
                                lookup_key?: ...;
                                metadata?: ...;
                                name?: ...;
                                org?: ...;
                                org_logo?: ...;
                                org_name?: ...;
                                org_slug?: ...;
                                owners: ...;
                                readme_url?: ...;
                                solution_id?: ...;
                                solution_version?: ...;
                                tag_keys?: ...;
                                template_kind?: ...;
                                templates: ...;
                                updated_at?: ...;
                                upgrade_available: ...;
                                virtual_path?: ...;
                            };
                            template: {
                                created_at?: ...;
                                description?: ...;
                                display_name?: ...;
                                id: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                updated_at?: ...;
                                virtual_path?: ...;
                            };
                        };
                        team?: string;
                        template_upgrade_available?: boolean;
                        updated_at?: string;
                        user?: string;
                    }[];
                    role?: string;
                    sandbox?: string;
                    settings?: { agent_enabled?: boolean };
                    slug?: string;
                    sub_threads?: Record<string, unknown>[];
                    team?: string;
                    title?: string;
                    ttl?: number;
                    unread_count?: number;
                    updated_at?: string;
                    user?: string;
                };
            };
            team?: {
                acl?: {
                    add?: {
                        actions: string[];
                        principal?: string;
                        principal_type: string;
                    }[];
                    grants?: {
                        actions: string[];
                        principal?: string;
                        principal_type: string;
                    }[];
                    remove?: { principal?: string; principal_type: string }[];
                };
                app?: string;
                badges?: Record<string, unknown>;
                created_at?: string;
                description?: string;
                id: string;
                membership_status?: string;
                metadata?: Record<string, unknown>;
                name?: string;
                org?: string;
                sandbox?: string;
                slug?: string;
                updated_at?: string;
            };
            thread: {
                agent_user?: string;
                created_at?: string;
                creator?: {
                    alias?: string;
                    app?: string;
                    app_name?: string;
                    email?: string;
                    id: string;
                    is_system_user?: boolean;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    org_role?: string;
                    sandbox?: string;
                    sandbox_name?: string;
                };
                description?: string;
                id: string;
                is_channel?: boolean;
                is_default?: boolean;
                is_transient?: boolean;
                is_unlisted?: boolean;
                key?: string;
                last_activity?: string;
                metadata?: Record<string, unknown>;
                muted?: boolean;
                org?: string;
                parent_message?: {
                    actors?: {
                        alias?: string;
                        id?: string;
                        name?: string;
                        profile_picture?: {
                            file?: (...) | (...);
                            height?: (...) | (...);
                            media?: (...) | (...);
                            mime_type?: (...) | (...);
                            refresh_url?: (...) | (...);
                            url?: (...) | (...);
                            width?: (...) | (...);
                        };
                    }[];
                    agent?: string;
                    agent_mode?: "cli"
                    | "embedded";
                    attachments?: {
                        content_type?: string;
                        description?: string;
                        filename?: string;
                        height?: number;
                        id: string;
                        image_height?: number;
                        image_source?: {
                            file?: (...) | (...);
                            height?: (...) | (...);
                            media?: (...) | (...);
                            mime_type?: (...) | (...);
                            refresh_url?: (...) | (...);
                            url?: (...) | (...);
                            width?: (...) | (...);
                        };
                        image_url?: string;
                        image_width?: number;
                        media_type?: string;
                        name?: string;
                        object?: Record<string, unknown>;
                        title?: string;
                        type: string;
                        url?: string;
                        variants?: {
                            content_type?: ...;
                            created_at?: ...;
                            file?: ...;
                            filename?: ...;
                            height?: ...;
                            id: ...;
                            image_source?: ...;
                            updated_at?: ...;
                            url?: ...;
                            variant_key?: ...;
                            width?: ...;
                        }[];
                        version?: number;
                        width?: number;
                    }[];
                    branched_thread?: string;
                    content?: string;
                    created_at?: string;
                    has_replies?: boolean;
                    id: string;
                    idempotency_key?: string;
                    legacy_agent?: string;
                    metadata?: Record<string, unknown>;
                    org?: string;
                    reactions?: {
                        payload?: Record<string, unknown>;
                        type: string;
                        user?: string;
                    }[];
                    rendering_mode?: string;
                    replies?: Record<string, unknown>[];
                    replies_after_cursor?: string;
                    replies_before_cursor?: string;
                    reply_count?: number;
                    reply_to?: Record<string, unknown>;
                    sandbox?: string;
                    team?: string;
                    thread?: string;
                    user?: string;
                };
                participant?: string[];
                participants?: {
                    alias?: string;
                    app?: string;
                    app_name?: string;
                    email?: string;
                    id: string;
                    is_system_user?: boolean;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    org_role?: string;
                    sandbox?: string;
                    sandbox_name?: string;
                }[];
                participating_actor?: string[];
                participating_agents?: {
                    acl?: {
                        add?: { actions: ...; principal?: ...; principal_type: ... }[];
                        grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                        remove?: { principal?: ...; principal_type: ... }[];
                    };
                    app?: string;
                    created_at?: string;
                    default_model?: string;
                    email?: string;
                    id: string;
                    identity?: string;
                    last_applied_template_config?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    originator?: string;
                    phone_number?: string;
                    sandbox?: string;
                    source_solution?: {
                        solution: {
                            category_keys?: (...)[];
                            created_at?: string;
                            description?: string;
                            id: string;
                            kind: string;
                            latest_solution?: string;
                            latest_version?: string;
                            lookup_key?: string;
                            metadata?: Record<(...), (...)>;
                            name?: string;
                            org?: string;
                            org_logo?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                            org_name?: string;
                            org_slug?: string;
                            owners: string[];
                            readme_url?: string;
                            solution_id?: string;
                            solution_version?: string;
                            tag_keys?: (...)[];
                            template_kind?: string;
                            templates: {
                                description?: ...;
                                display_name?: ...;
                                id?: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                readme_url?: ...;
                                virtual_path?: ...;
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string;
                        };
                        template: {
                            created_at?: string;
                            description?: string;
                            display_name?: string;
                            id: string;
                            kind: string;
                            lookup_key?: string;
                            name?: string;
                            updated_at?: string;
                            virtual_path?: string;
                        };
                    };
                    team?: string;
                    template_upgrade_available?: boolean;
                    updated_at?: string;
                    user?: string;
                }[];
                role?: string;
                sandbox?: string;
                settings?: { agent_enabled?: boolean };
                slug?: string;
                sub_threads?: Record<string, unknown>[];
                team?: string;
                title?: string;
                ttl?: number;
                unread_count?: number;
                updated_at?: string;
                user?: string;
            };
        },
        {
            chat_model?: {
                after_cursor?: string;
                agent?: {
                    acl?: {
                        add?: { actions: ...; principal?: ...; principal_type: ... }[];
                        grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                        remove?: { principal?: ...; principal_type: ... }[];
                    };
                    app?: string;
                    created_at?: string;
                    default_model?: string;
                    email?: string;
                    id: string;
                    identity?: string;
                    last_applied_template_config?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    originator?: string;
                    phone_number?: string;
                    sandbox?: string;
                    source_solution?: {
                        solution: {
                            category_keys?: (...)[];
                            created_at?: string;
                            description?: string;
                            id: string;
                            kind: string;
                            latest_solution?: string;
                            latest_version?: string;
                            lookup_key?: string;
                            metadata?: Record<(...), (...)>;
                            name?: string;
                            org?: string;
                            org_logo?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                            org_name?: string;
                            org_slug?: string;
                            owners: string[];
                            readme_url?: string;
                            solution_id?: string;
                            solution_version?: string;
                            tag_keys?: (...)[];
                            template_kind?: string;
                            templates: {
                                description?: ...;
                                display_name?: ...;
                                id?: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                readme_url?: ...;
                                virtual_path?: ...;
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string;
                        };
                        template: {
                            created_at?: string;
                            description?: string;
                            display_name?: string;
                            id: string;
                            kind: string;
                            lookup_key?: string;
                            name?: string;
                            updated_at?: string;
                            virtual_path?: string;
                        };
                    };
                    team?: string;
                    template_upgrade_available?: boolean;
                    updated_at?: string;
                    user?: string;
                };
                before_cursor?: string;
                is_transient: boolean;
                members: {
                    agent?: {
                        acl?: {
                            add?: (...)
                            | (...);
                            grants?: (...) | (...);
                            remove?: (...) | (...);
                        };
                        app?: string;
                        created_at?: string;
                        default_model?: string;
                        email?: string;
                        id: string;
                        identity?: string;
                        last_applied_template_config?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        originator?: string;
                        phone_number?: string;
                        sandbox?: string;
                        source_solution?: {
                            solution: {
                                category_keys?: ...;
                                created_at?: ...;
                                description?: ...;
                                id: ...;
                                kind: ...;
                                latest_solution?: ...;
                                latest_version?: ...;
                                lookup_key?: ...;
                                metadata?: ...;
                                name?: ...;
                                org?: ...;
                                org_logo?: ...;
                                org_name?: ...;
                                org_slug?: ...;
                                owners: ...;
                                readme_url?: ...;
                                solution_id?: ...;
                                solution_version?: ...;
                                tag_keys?: ...;
                                template_kind?: ...;
                                templates: ...;
                                updated_at?: ...;
                                upgrade_available: ...;
                                virtual_path?: ...;
                            };
                            template: {
                                created_at?: ...;
                                description?: ...;
                                display_name?: ...;
                                id: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                updated_at?: ...;
                                virtual_path?: ...;
                            };
                        };
                        team?: string;
                        template_upgrade_available?: boolean;
                        updated_at?: string;
                        user?: string;
                    };
                    membership_type?: string;
                    type: string;
                    user?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    };
                }[];
                messages: {
                    actors?: {
                        alias?: string;
                        id?: string;
                        name?: string;
                        profile_picture?: {
                            file?: ...;
                            height?: ...;
                            media?: ...;
                            mime_type?: ...;
                            refresh_url?: ...;
                            url?: ...;
                            width?: ...;
                        };
                    }[];
                    agent?: string;
                    agent_mode?: "cli"
                    | "embedded";
                    attachments?: {
                        content_type?: string;
                        description?: string;
                        filename?: string;
                        height?: number;
                        id: string;
                        image_height?: number;
                        image_source?: {
                            file?: ...;
                            height?: ...;
                            media?: ...;
                            mime_type?: ...;
                            refresh_url?: ...;
                            url?: ...;
                            width?: ...;
                        };
                        image_url?: string;
                        image_width?: number;
                        media_type?: string;
                        name?: string;
                        object?: Record<(...), (...)>;
                        title?: string;
                        type: string;
                        url?: string;
                        variants?: (...)[];
                        version?: number;
                        width?: number;
                    }[];
                    branched_thread?: string;
                    content?: string;
                    created_at?: string;
                    has_replies?: boolean;
                    id: string;
                    idempotency_key?: string;
                    legacy_agent?: string;
                    metadata?: Record<string, unknown>;
                    org?: string;
                    reactions?: {
                        payload?: Record<(...), (...)>;
                        type: string;
                        user?: string;
                    }[];
                    rendering_mode?: string;
                    replies?: Record<string, unknown>[];
                    replies_after_cursor?: string;
                    replies_before_cursor?: string;
                    reply_count?: number;
                    reply_to?: Record<string, unknown>;
                    sandbox?: string;
                    team?: string;
                    thread?: string;
                    user?: string;
                }[];
                messages_loaded_on_last_update?: number;
                team?: {
                    acl?: {
                        add?: { actions: ...; principal?: ...; principal_type: ... }[];
                        grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                        remove?: { principal?: ...; principal_type: ... }[];
                    };
                    app?: string;
                    badges?: Record<string, unknown>;
                    created_at?: string;
                    description?: string;
                    id: string;
                    membership_status?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    sandbox?: string;
                    slug?: string;
                    updated_at?: string;
                };
                thread: {
                    agent_user?: string;
                    created_at?: string;
                    creator?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    };
                    description?: string;
                    id: string;
                    is_channel?: boolean;
                    is_default?: boolean;
                    is_transient?: boolean;
                    is_unlisted?: boolean;
                    key?: string;
                    last_activity?: string;
                    metadata?: Record<string, unknown>;
                    muted?: boolean;
                    org?: string;
                    parent_message?: {
                        actors?: {
                            alias?: (...) | (...);
                            id?: (...) | (...);
                            name?: (...) | (...);
                            profile_picture?: (...) | (...);
                        }[];
                        agent?: string;
                        agent_mode?: "cli"
                        | "embedded";
                        attachments?: {
                            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?: (...) | (...);
                        }[];
                        branched_thread?: string;
                        content?: string;
                        created_at?: string;
                        has_replies?: boolean;
                        id: string;
                        idempotency_key?: string;
                        legacy_agent?: string;
                        metadata?: Record<string, unknown>;
                        org?: string;
                        reactions?: {
                            payload?: (...) | (...);
                            type: string;
                            user?: (...) | (...);
                        }[];
                        rendering_mode?: string;
                        replies?: Record<string, unknown>[];
                        replies_after_cursor?: string;
                        replies_before_cursor?: string;
                        reply_count?: number;
                        reply_to?: Record<string, unknown>;
                        sandbox?: string;
                        team?: string;
                        thread?: string;
                        user?: string;
                    };
                    participant?: string[];
                    participants?: {
                        alias?: string;
                        app?: string;
                        app_name?: string;
                        email?: string;
                        id: string;
                        is_system_user?: boolean;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        org_role?: string;
                        sandbox?: string;
                        sandbox_name?: string;
                    }[];
                    participating_actor?: string[];
                    participating_agents?: {
                        acl?: {
                            add?: (...)
                            | (...);
                            grants?: (...) | (...);
                            remove?: (...) | (...);
                        };
                        app?: string;
                        created_at?: string;
                        default_model?: string;
                        email?: string;
                        id: string;
                        identity?: string;
                        last_applied_template_config?: string;
                        lookup_key?: string;
                        metadata?: Record<string, unknown>;
                        name?: string;
                        org?: string;
                        org_name?: string;
                        originator?: string;
                        phone_number?: string;
                        sandbox?: string;
                        source_solution?: {
                            solution: {
                                category_keys?: ...;
                                created_at?: ...;
                                description?: ...;
                                id: ...;
                                kind: ...;
                                latest_solution?: ...;
                                latest_version?: ...;
                                lookup_key?: ...;
                                metadata?: ...;
                                name?: ...;
                                org?: ...;
                                org_logo?: ...;
                                org_name?: ...;
                                org_slug?: ...;
                                owners: ...;
                                readme_url?: ...;
                                solution_id?: ...;
                                solution_version?: ...;
                                tag_keys?: ...;
                                template_kind?: ...;
                                templates: ...;
                                updated_at?: ...;
                                upgrade_available: ...;
                                virtual_path?: ...;
                            };
                            template: {
                                created_at?: ...;
                                description?: ...;
                                display_name?: ...;
                                id: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                updated_at?: ...;
                                virtual_path?: ...;
                            };
                        };
                        team?: string;
                        template_upgrade_available?: boolean;
                        updated_at?: string;
                        user?: string;
                    }[];
                    role?: string;
                    sandbox?: string;
                    settings?: { agent_enabled?: boolean };
                    slug?: string;
                    sub_threads?: Record<string, unknown>[];
                    team?: string;
                    title?: string;
                    ttl?: number;
                    unread_count?: number;
                    updated_at?: string;
                    user?: string;
                };
            };
            team?: {
                acl?: {
                    add?: {
                        actions: string[];
                        principal?: string;
                        principal_type: string;
                    }[];
                    grants?: {
                        actions: string[];
                        principal?: string;
                        principal_type: string;
                    }[];
                    remove?: { principal?: string; principal_type: string }[];
                };
                app?: string;
                badges?: Record<string, unknown>;
                created_at?: string;
                description?: string;
                id: string;
                membership_status?: string;
                metadata?: Record<string, unknown>;
                name?: string;
                org?: string;
                sandbox?: string;
                slug?: string;
                updated_at?: string;
            };
            thread: {
                agent_user?: string;
                created_at?: string;
                creator?: {
                    alias?: string;
                    app?: string;
                    app_name?: string;
                    email?: string;
                    id: string;
                    is_system_user?: boolean;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    org_role?: string;
                    sandbox?: string;
                    sandbox_name?: string;
                };
                description?: string;
                id: string;
                is_channel?: boolean;
                is_default?: boolean;
                is_transient?: boolean;
                is_unlisted?: boolean;
                key?: string;
                last_activity?: string;
                metadata?: Record<string, unknown>;
                muted?: boolean;
                org?: string;
                parent_message?: {
                    actors?: {
                        alias?: string;
                        id?: string;
                        name?: string;
                        profile_picture?: {
                            file?: (...) | (...);
                            height?: (...) | (...);
                            media?: (...) | (...);
                            mime_type?: (...) | (...);
                            refresh_url?: (...) | (...);
                            url?: (...) | (...);
                            width?: (...) | (...);
                        };
                    }[];
                    agent?: string;
                    agent_mode?: "cli"
                    | "embedded";
                    attachments?: {
                        content_type?: string;
                        description?: string;
                        filename?: string;
                        height?: number;
                        id: string;
                        image_height?: number;
                        image_source?: {
                            file?: (...) | (...);
                            height?: (...) | (...);
                            media?: (...) | (...);
                            mime_type?: (...) | (...);
                            refresh_url?: (...) | (...);
                            url?: (...) | (...);
                            width?: (...) | (...);
                        };
                        image_url?: string;
                        image_width?: number;
                        media_type?: string;
                        name?: string;
                        object?: Record<string, unknown>;
                        title?: string;
                        type: string;
                        url?: string;
                        variants?: {
                            content_type?: ...;
                            created_at?: ...;
                            file?: ...;
                            filename?: ...;
                            height?: ...;
                            id: ...;
                            image_source?: ...;
                            updated_at?: ...;
                            url?: ...;
                            variant_key?: ...;
                            width?: ...;
                        }[];
                        version?: number;
                        width?: number;
                    }[];
                    branched_thread?: string;
                    content?: string;
                    created_at?: string;
                    has_replies?: boolean;
                    id: string;
                    idempotency_key?: string;
                    legacy_agent?: string;
                    metadata?: Record<string, unknown>;
                    org?: string;
                    reactions?: {
                        payload?: Record<string, unknown>;
                        type: string;
                        user?: string;
                    }[];
                    rendering_mode?: string;
                    replies?: Record<string, unknown>[];
                    replies_after_cursor?: string;
                    replies_before_cursor?: string;
                    reply_count?: number;
                    reply_to?: Record<string, unknown>;
                    sandbox?: string;
                    team?: string;
                    thread?: string;
                    user?: string;
                };
                participant?: string[];
                participants?: {
                    alias?: string;
                    app?: string;
                    app_name?: string;
                    email?: string;
                    id: string;
                    is_system_user?: boolean;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    org_role?: string;
                    sandbox?: string;
                    sandbox_name?: string;
                }[];
                participating_actor?: string[];
                participating_agents?: {
                    acl?: {
                        add?: { actions: ...; principal?: ...; principal_type: ... }[];
                        grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                        remove?: { principal?: ...; principal_type: ... }[];
                    };
                    app?: string;
                    created_at?: string;
                    default_model?: string;
                    email?: string;
                    id: string;
                    identity?: string;
                    last_applied_template_config?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    originator?: string;
                    phone_number?: string;
                    sandbox?: string;
                    source_solution?: {
                        solution: {
                            category_keys?: (...)[];
                            created_at?: string;
                            description?: string;
                            id: string;
                            kind: string;
                            latest_solution?: string;
                            latest_version?: string;
                            lookup_key?: string;
                            metadata?: Record<(...), (...)>;
                            name?: string;
                            org?: string;
                            org_logo?: {
                                file?: ...;
                                height?: ...;
                                media?: ...;
                                mime_type?: ...;
                                refresh_url?: ...;
                                url?: ...;
                                width?: ...;
                            };
                            org_name?: string;
                            org_slug?: string;
                            owners: string[];
                            readme_url?: string;
                            solution_id?: string;
                            solution_version?: string;
                            tag_keys?: (...)[];
                            template_kind?: string;
                            templates: {
                                description?: ...;
                                display_name?: ...;
                                id?: ...;
                                kind: ...;
                                lookup_key?: ...;
                                name?: ...;
                                readme_url?: ...;
                                virtual_path?: ...;
                            }[];
                            updated_at?: string;
                            upgrade_available: boolean;
                            virtual_path?: string;
                        };
                        template: {
                            created_at?: string;
                            description?: string;
                            display_name?: string;
                            id: string;
                            kind: string;
                            lookup_key?: string;
                            name?: string;
                            updated_at?: string;
                            virtual_path?: string;
                        };
                    };
                    team?: string;
                    template_upgrade_available?: boolean;
                    updated_at?: string;
                    user?: string;
                }[];
                role?: string;
                sandbox?: string;
                settings?: { agent_enabled?: boolean };
                slug?: string;
                sub_threads?: Record<string, unknown>[];
                team?: string;
                title?: string;
                ttl?: number;
                unread_count?: number;
                updated_at?: string;
                user?: string;
            };
        },
    > = ...

    Runtime validator for ChatForkThreadResponse.