@mcp-z/mcp-gmail
    Preparing search index...

    Variable GmailQuerySchemaConst

    GmailQuerySchema: ZodType<
        schemas.GmailQuery,
        unknown,
        $ZodTypeInternals<schemas.GmailQuery, unknown>,
    > = ...

    Gmail-specific query schema with recursive operators and Gmail features.

    Includes Gmail-specific features:

    • fuzzyPhrase: Approximate phrase matching (Gmail's quoted string behavior with relevance ranking)
    • categories: Gmail system categories (primary, social, promotions, updates, forums)
    • label: User-created Gmail labels (case-sensitive, discovered via gmail-labels-list)
    • rawGmailQuery: Escape hatch for advanced Gmail query syntax

    Plus all base fields from baseEmailQueryFields:

    • Email addresses: from, to, cc, bcc (support string or field operators)
    • Content: subject, body, text
    • Flags: hasAttachment, isRead
    • Date range: date { $gte, $lt }
    • Logical operators: $and, $or, $not (recursive)

    Note: Cast through unknown to work around Zod's lazy schema type inference issue with exactOptionalPropertyTypes. The runtime schema is correct; this cast ensures TypeScript sees the strict GmailQuery type everywhere the schema is used.