Drive query object schema with recursive operators and Drive features.
Includes Drive-specific features:
name: Search by file/folder name (supports string or field operators)
mimeType: Filter by MIME type (e.g., "application/pdf", "application/vnd.google-apps.folder")
fullText: Search file content and metadata
parentId: Search within specific folder (supports string or field operators)
starred: Filter by starred status
shared: Filter by shared status
modifiedTime: Date range filtering with $gte and $lt
owner: Filter by owner email (supports string or field operators)
rawDriveQuery: Escape hatch for advanced Drive query syntax
Logical operators:
$and: Array of conditions that must ALL match (recursive)
$or: Array of conditions where ANY must match (recursive)
$not: Nested condition that must NOT match (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 DriveQueryObject type everywhere the schema is used.
Drive query object schema with recursive operators and Drive features.
Includes Drive-specific features:
Logical operators:
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 DriveQueryObject type everywhere the schema is used.