import { type drive_v3 } from "@googleapis/drive"; import * as z from "zod"; export declare const GOOGLE_DRIVE_READ_REQUIREMENT: import("@automate.ax/catalog").ScopeRequirementGroup; export declare const GOOGLE_SHARED_DRIVE_READ_REQUIREMENT: import("@automate.ax/catalog").ScopeRequirementGroup; export declare const GOOGLE_DRIVE_METADATA_READ_REQUIREMENT: import("@automate.ax/catalog").ScopeRequirementGroup; export declare const GOOGLE_DRIVE_WRITE_REQUIREMENT: import("@automate.ax/catalog").ScopeRequirementGroup; export declare const GOOGLE_DRIVE_METADATA_WRITE_REQUIREMENT: import("@automate.ax/catalog").ScopeRequirementGroup; export declare const GOOGLE_DRIVE_ADMIN_REQUIREMENT: import("@automate.ax/catalog").ScopeRequirementGroup; export declare const GOOGLE_DRIVE_FILE_SCHEMA: z.ZodObject<{ createdAt: z.ZodOptional; description: z.ZodOptional; driveId: z.ZodOptional; id: z.ZodString; mimeType: z.ZodString; modifiedAt: z.ZodOptional; name: z.ZodString; ownedByMe: z.ZodOptional; parents: z.ZodArray; shared: z.ZodOptional; size: z.ZodOptional; starred: z.ZodBoolean; trashed: z.ZodBoolean; version: z.ZodOptional; webContentLink: z.ZodOptional; webViewLink: z.ZodOptional; }, z.core.$strip>; export declare const GOOGLE_DRIVE_PERMISSION_SCHEMA: z.ZodObject<{ deleted: z.ZodBoolean; displayName: z.ZodOptional; domain: z.ZodOptional; emailAddress: z.ZodOptional; expirationTime: z.ZodOptional; id: z.ZodString; pendingOwner: z.ZodBoolean; role: z.ZodEnum<{ organizer: "organizer"; owner: "owner"; reader: "reader"; writer: "writer"; fileOrganizer: "fileOrganizer"; commenter: "commenter"; }>; type: z.ZodEnum<{ domain: "domain"; user: "user"; group: "group"; anyone: "anyone"; }>; }, z.core.$strip>; export declare const GOOGLE_DRIVE_REPLY_SCHEMA: z.ZodObject<{ author: z.ZodOptional; emailAddress: z.ZodOptional; me: z.ZodBoolean; photoLink: z.ZodOptional; }, z.core.$strip>>; content: z.ZodOptional; createdAt: z.ZodOptional; deleted: z.ZodBoolean; id: z.ZodString; modifiedAt: z.ZodOptional; }, z.core.$strip>; export declare const GOOGLE_DRIVE_COMMENT_SCHEMA: z.ZodObject<{ anchor: z.ZodOptional; author: z.ZodOptional; emailAddress: z.ZodOptional; me: z.ZodBoolean; photoLink: z.ZodOptional; }, z.core.$strip>>; content: z.ZodOptional; createdAt: z.ZodOptional; deleted: z.ZodBoolean; id: z.ZodString; modifiedAt: z.ZodOptional; quotedContent: z.ZodOptional; replies: z.ZodArray; emailAddress: z.ZodOptional; me: z.ZodBoolean; photoLink: z.ZodOptional; }, z.core.$strip>>; content: z.ZodOptional; createdAt: z.ZodOptional; deleted: z.ZodBoolean; id: z.ZodString; modifiedAt: z.ZodOptional; }, z.core.$strip>>; resolved: z.ZodBoolean; }, z.core.$strip>; export declare const GOOGLE_SHARED_DRIVE_SCHEMA: z.ZodObject<{ backgroundImageLink: z.ZodOptional; colorRgb: z.ZodOptional; createdAt: z.ZodOptional; hidden: z.ZodBoolean; id: z.ZodString; name: z.ZodString; orgUnitId: z.ZodOptional; themeId: z.ZodOptional; }, z.core.$strip>; /** * Creates the official Drive client from a refreshed Google secret. * * @param secret - Refreshed Google account secret. */ export declare function getGoogleDriveApi(secret: Record): drive_v3.Drive; /** @param prefix - Optional provider field-path prefix. */ export declare function googleDriveFileFields(prefix?: string): string; /** @param prefix - Optional provider field-path prefix. */ export declare function googleDrivePermissionFields(prefix?: string): string; /** @param prefix - Optional provider field-path prefix. */ export declare function googleDriveCommentFields(prefix?: string): string; /** @param prefix - Optional provider field-path prefix. */ export declare function googleDriveReplyFields(prefix?: string): string; /** @param prefix - Optional provider field-path prefix. */ export declare function googleSharedDriveFields(prefix?: string): string; /** * Converts provider file metadata to the stable public shape. * * @param file - Provider file response. * @throws When required file metadata is absent. */ export declare function normalizeGoogleDriveFile(file: drive_v3.Schema$File): { createdAt: Date | undefined; description: string | undefined; driveId: string | undefined; id: string; mimeType: string; modifiedAt: Date | undefined; name: string; ownedByMe: boolean | undefined; parents: string[]; shared: boolean | undefined; size: string | undefined; starred: boolean; trashed: boolean; version: string | undefined; webContentLink: string | undefined; webViewLink: string | undefined; }; /** * Converts a provider permission to the stable public shape. * * @param permission - Provider permission response. * @throws When required permission metadata is absent. */ export declare function normalizeGoogleDrivePermission(permission: drive_v3.Schema$Permission): { deleted: boolean; id: string; pendingOwner: boolean; role: "organizer" | "owner" | "reader" | "writer" | "fileOrganizer" | "commenter"; type: "domain" | "user" | "group" | "anyone"; displayName?: string | undefined; domain?: string | undefined; emailAddress?: string | undefined; expirationTime?: Date | undefined; }; /** * Converts a provider reply to the stable public shape. * * @param reply - Provider reply response. * @throws When the reply ID is absent. */ export declare function normalizeGoogleDriveReply(reply: drive_v3.Schema$Reply): { author: { displayName: string | undefined; emailAddress: string | undefined; me: boolean; photoLink: string | undefined; } | undefined; content: string | undefined; createdAt: Date | undefined; deleted: boolean; id: string; modifiedAt: Date | undefined; }; /** * Converts a provider comment to the stable public shape. * * @param comment - Provider comment response. * @throws When the comment ID is absent. */ export declare function normalizeGoogleDriveComment(comment: drive_v3.Schema$Comment): { anchor: string | undefined; author: { displayName: string | undefined; emailAddress: string | undefined; me: boolean; photoLink: string | undefined; } | undefined; content: string | undefined; createdAt: Date | undefined; deleted: boolean; id: string; modifiedAt: Date | undefined; quotedContent: string | undefined; replies: { author: { displayName: string | undefined; emailAddress: string | undefined; me: boolean; photoLink: string | undefined; } | undefined; content: string | undefined; createdAt: Date | undefined; deleted: boolean; id: string; modifiedAt: Date | undefined; }[]; resolved: boolean; }; /** * Converts provider shared-drive metadata to the stable public shape. * * @param value - Provider shared-drive response. * @throws When required shared-drive metadata is absent. */ export declare function normalizeGoogleSharedDrive(value: drive_v3.Schema$Drive): { backgroundImageLink: string | undefined; colorRgb: string | undefined; createdAt: Date | undefined; hidden: boolean; id: string; name: string; orgUnitId: string | undefined; themeId: string | undefined; }; //# sourceMappingURL=lib.d.ts.map