@archastro/sdk
    Preparing search index...

    Variable chatLoadMoreMessagesResponseSchemaConst

    chatLoadMoreMessagesResponseSchema: ZodObject<
        {
            data: ZodObject<
                {
                    after_cursor: ZodOptional<ZodString>;
                    agent: ZodOptional<
                        ZodObject<
                            {
                                acl: ZodOptional<
                                    ZodObject<
                                        {
                                            add: ZodOptional<(...)>;
                                            grants: ZodOptional<(...)>;
                                            remove: ZodOptional<(...)>;
                                        },
                                        "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: ZodObject<(...), (...), (...), (...), (...)>;
                                            template: ZodObject<(...), (...), (...), (...), (...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            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?: ...;
                                            };
                                        },
                                        {
                                            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: 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: 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;
                            },
                            {
                                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: ZodOptional<ZodString>;
                    is_transient: ZodBoolean;
                    members: ZodArray<
                        ZodObject<
                            {
                                agent: ZodOptional<
                                    ZodObject<
                                        {
                                            acl: ZodOptional<(...)>;
                                            app: ZodOptional<(...)>;
                                            created_at: ZodOptional<(...)>;
                                            default_model: ZodOptional<(...)>;
                                            email: ZodOptional<(...)>;
                                            id: ZodString;
                                            identity: ZodOptional<(...)>;
                                            last_applied_template_config: ZodOptional<(...)>;
                                            lookup_key: ZodOptional<(...)>;
                                            metadata: ZodOptional<(...)>;
                                            name: ZodOptional<(...)>;
                                            org: ZodOptional<(...)>;
                                            org_name: ZodOptional<(...)>;
                                            originator: ZodOptional<(...)>;
                                            phone_number: ZodOptional<(...)>;
                                            sandbox: ZodOptional<(...)>;
                                            source_solution: ZodOptional<(...)>;
                                            team: ZodOptional<(...)>;
                                            template_upgrade_available: ZodOptional<(...)>;
                                            updated_at: ZodOptional<(...)>;
                                            user: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            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?: (...) | (...);
                                        },
                                        {
                                            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: ZodOptional<ZodString>;
                                type: ZodString;
                                user: 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?: (...) | (...);
                                        },
                                    >,
                                >;
                            },
                            "strip",
                            ZodTypeAny,
                            {
                                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;
                                };
                            },
                            {
                                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;
                                };
                            },
                        >,
                        "many",
                    >;
                    messages: ZodArray<
                        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;
                            },
                        >,
                        "many",
                    >;
                    messages_loaded_on_last_update: ZodOptional<ZodNumber>;
                    team: ZodOptional<
                        ZodObject<
                            {
                                acl: ZodOptional<
                                    ZodObject<
                                        {
                                            add: ZodOptional<(...)>;
                                            grants: ZodOptional<(...)>;
                                            remove: ZodOptional<(...)>;
                                        },
                                        "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<ZodString>;
                                        app: ZodOptional<ZodString>;
                                        app_name: ZodOptional<ZodString>;
                                        email: ZodOptional<ZodString>;
                                        id: ZodString;
                                        is_system_user: ZodOptional<ZodBoolean>;
                                        metadata: ZodOptional<ZodRecord<(...), (...)>>;
                                        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<(...), (...)>;
                                        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<(...), (...)>;
                                        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<(...), (...)>>;
                                        agent: ZodOptional<ZodString>;
                                        agent_mode: ZodOptional<ZodEnum<(...)>>;
                                        attachments: ZodOptional<ZodArray<(...), (...)>>;
                                        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<(...), (...)>>;
                                        org: ZodOptional<ZodString>;
                                        reactions: ZodOptional<ZodArray<(...), (...)>>;
                                        rendering_mode: ZodOptional<ZodString>;
                                        replies: ZodOptional<ZodArray<(...), (...)>>;
                                        replies_after_cursor: ZodOptional<ZodString>;
                                        replies_before_cursor: ZodOptional<ZodString>;
                                        reply_count: ZodOptional<ZodNumber>;
                                        reply_to: ZodOptional<ZodRecord<(...), (...)>>;
                                        sandbox: ZodOptional<ZodString>;
                                        team: ZodOptional<ZodString>;
                                        thread: ZodOptional<ZodString>;
                                        user: ZodOptional<ZodString>;
                                    },
                                    "strip",
                                    ZodTypeAny,
                                    {
                                        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;
                                    },
                                    {
                                        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: ZodOptional<ZodArray<ZodString, "many">>;
                            participants: ZodOptional<
                                ZodArray<
                                    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?: (...) | (...);
                                        },
                                    >,
                                    "many",
                                >,
                            >;
                            participating_actor: ZodOptional<ZodArray<ZodString, "many">>;
                            participating_agents: ZodOptional<
                                ZodArray<
                                    ZodObject<
                                        {
                                            acl: ZodOptional<(...)>;
                                            app: ZodOptional<(...)>;
                                            created_at: ZodOptional<(...)>;
                                            default_model: ZodOptional<(...)>;
                                            email: ZodOptional<(...)>;
                                            id: ZodString;
                                            identity: ZodOptional<(...)>;
                                            last_applied_template_config: ZodOptional<(...)>;
                                            lookup_key: ZodOptional<(...)>;
                                            metadata: ZodOptional<(...)>;
                                            name: ZodOptional<(...)>;
                                            org: ZodOptional<(...)>;
                                            org_name: ZodOptional<(...)>;
                                            originator: ZodOptional<(...)>;
                                            phone_number: ZodOptional<(...)>;
                                            sandbox: ZodOptional<(...)>;
                                            source_solution: ZodOptional<(...)>;
                                            team: ZodOptional<(...)>;
                                            template_upgrade_available: ZodOptional<(...)>;
                                            updated_at: ZodOptional<(...)>;
                                            user: ZodOptional<(...)>;
                                        },
                                        "strip",
                                        ZodTypeAny,
                                        {
                                            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?: (...) | (...);
                                        },
                                        {
                                            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?: (...) | (...);
                                        },
                                    >,
                                    "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?: ...;
                                    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;
                        },
                        {
                            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;
                        },
                    >;
                },
                "strip",
                ZodTypeAny,
                {
                    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;
                    };
                },
                {
                    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;
                    };
                },
            >;
        },
        "strip",
        ZodTypeAny,
        {
            data: {
                after_cursor?: string;
                agent?: {
                    acl?: {
                        add?: {
                            actions: (...)[];
                            principal?: (...) | (...);
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: (...)[];
                            principal?: (...) | (...);
                            principal_type: string;
                        }[];
                        remove?: { principal?: (...)
                        | (...); principal_type: string }[];
                    };
                    app?: string;
                    created_at?: string;
                    default_model?: string;
                    email?: string;
                    id: string;
                    identity?: string;
                    last_applied_template_config?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    originator?: string;
                    phone_number?: string;
                    sandbox?: string;
                    source_solution?: {
                        solution: {
                            category_keys?: string[];
                            created_at?: string;
                            description?: string;
                            id: string;
                            kind: string;
                            latest_solution?: string;
                            latest_version?: string;
                            lookup_key?: string;
                            metadata?: Record<string, unknown>;
                            name?: string;
                            org?: string;
                            org_logo?: {
                                file?: (...) | (...);
                                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?: string[];
                            template_kind?: string;
                            templates: {
                                description?: (...)
                                | (...);
                                display_name?: (...) | (...);
                                id?: (...) | (...);
                                kind: string;
                                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: 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;
                    };
                    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<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;
                }[];
                messages_loaded_on_last_update?: number;
                team?: {
                    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: {
                    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;
                };
            };
        },
        {
            data: {
                after_cursor?: string;
                agent?: {
                    acl?: {
                        add?: {
                            actions: (...)[];
                            principal?: (...) | (...);
                            principal_type: string;
                        }[];
                        grants?: {
                            actions: (...)[];
                            principal?: (...) | (...);
                            principal_type: string;
                        }[];
                        remove?: { principal?: (...)
                        | (...); principal_type: string }[];
                    };
                    app?: string;
                    created_at?: string;
                    default_model?: string;
                    email?: string;
                    id: string;
                    identity?: string;
                    last_applied_template_config?: string;
                    lookup_key?: string;
                    metadata?: Record<string, unknown>;
                    name?: string;
                    org?: string;
                    org_name?: string;
                    originator?: string;
                    phone_number?: string;
                    sandbox?: string;
                    source_solution?: {
                        solution: {
                            category_keys?: string[];
                            created_at?: string;
                            description?: string;
                            id: string;
                            kind: string;
                            latest_solution?: string;
                            latest_version?: string;
                            lookup_key?: string;
                            metadata?: Record<string, unknown>;
                            name?: string;
                            org?: string;
                            org_logo?: {
                                file?: (...) | (...);
                                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?: string[];
                            template_kind?: string;
                            templates: {
                                description?: (...)
                                | (...);
                                display_name?: (...) | (...);
                                id?: (...) | (...);
                                kind: string;
                                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: 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;
                    };
                    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<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;
                }[];
                messages_loaded_on_last_update?: number;
                team?: {
                    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: {
                    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;
                };
            };
        },
    > = ...

    Runtime validator for ChatLoadMoreMessagesResponse.