import { z } from 'zod'; import { ServiceBubble } from '../../types/service-bubble-class.js'; import type { BubbleContext } from '../../types/bubble.js'; import { CredentialType } from '@bubblelab/shared-schemas'; declare const GoogleDriveParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; name: z.ZodString; content: z.ZodString; mimeType: z.ZodOptional; parent_folder_id: z.ZodOptional; convert_to_google_docs: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; content: string; operation: "upload_file"; convert_to_google_docs: boolean; credentials?: Partial> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; }, { name: string; content: string; operation: "upload_file"; credentials?: Partial> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; convert_to_google_docs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_id: z.ZodString; export_format: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; file_id: string; credentials?: Partial> | undefined; export_format?: string | undefined; }, { operation: "download_file"; file_id: string; credentials?: Partial> | undefined; export_format?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; folder_id: z.ZodOptional; query: z.ZodOptional; max_results: z.ZodDefault>; include_folders: z.ZodDefault>; order_by: z.ZodDefault>; page_token: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_files"; max_results: number; include_folders: boolean; order_by: string; credentials?: Partial> | undefined; query?: string | undefined; folder_id?: string | undefined; page_token?: string | undefined; }, { operation: "list_files"; credentials?: Partial> | undefined; query?: string | undefined; folder_id?: string | undefined; max_results?: number | undefined; include_folders?: boolean | undefined; order_by?: string | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; name: z.ZodString; parent_folder_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_folder"; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }, { name: string; operation: "create_folder"; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; file_id: z.ZodString; permanent: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_file"; file_id: string; permanent: boolean; credentials?: Partial> | undefined; }, { operation: "delete_file"; file_id: string; credentials?: Partial> | undefined; permanent?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; include_permissions: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; include_permissions: boolean; credentials?: Partial> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial> | undefined; include_permissions?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; file_id: z.ZodString; email_address: z.ZodOptional; role: z.ZodDefault>>; type: z.ZodDefault>>; send_notification: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "user" | "group" | "domain" | "anyone"; role: "writer" | "reader" | "commenter" | "owner"; operation: "share_file"; file_id: string; send_notification: boolean; credentials?: Partial> | undefined; email_address?: string | undefined; }, { operation: "share_file"; file_id: string; type?: "user" | "group" | "domain" | "anyone" | undefined; credentials?: Partial> | undefined; role?: "writer" | "reader" | "commenter" | "owner" | undefined; email_address?: string | undefined; send_notification?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"move_file">; file_id: z.ZodString; new_parent_folder_id: z.ZodOptional; remove_parent_folder_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "move_file"; file_id: string; credentials?: Partial> | undefined; new_parent_folder_id?: string | undefined; remove_parent_folder_id?: string | undefined; }, { operation: "move_file"; file_id: string; credentials?: Partial> | undefined; new_parent_folder_id?: string | undefined; remove_parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_doc">; document_id: z.ZodString; tab_id: z.ZodOptional; include_all_tabs: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_doc"; document_id: string; include_all_tabs: boolean; credentials?: Partial> | undefined; tab_id?: string | undefined; }, { operation: "get_doc"; document_id: string; credentials?: Partial> | undefined; tab_id?: string | undefined; include_all_tabs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_doc">; document_id: z.ZodString; content: z.ZodString; mode: z.ZodDefault>>; tab_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "update_doc"; mode: "replace" | "append"; document_id: string; credentials?: Partial> | undefined; tab_id?: string | undefined; }, { content: string; operation: "update_doc"; document_id: string; credentials?: Partial> | undefined; mode?: "replace" | "append" | undefined; tab_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"replace_text">; document_id: z.ZodString; replacements: z.ZodArray>; }, "strip", z.ZodTypeAny, { find: string; replace: string; match_case: boolean; }, { find: string; replace: string; match_case?: boolean | undefined; }>, "many">; tab_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "replace_text"; document_id: string; replacements: { find: string; replace: string; match_case: boolean; }[]; credentials?: Partial> | undefined; tab_id?: string | undefined; }, { operation: "replace_text"; document_id: string; replacements: { find: string; replace: string; match_case?: boolean | undefined; }[]; credentials?: Partial> | undefined; tab_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"copy_doc">; document_id: z.ZodString; new_name: z.ZodString; parent_folder_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "copy_doc"; document_id: string; new_name: string; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }, { operation: "copy_doc"; document_id: string; new_name: string; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }>]>; declare const GoogleDriveResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; success: z.ZodBoolean; file: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; success: z.ZodBoolean; content: z.ZodOptional; filename: z.ZodOptional; mimeType: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }, { error: string; success: boolean; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; success: z.ZodBoolean; files: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, "many">>; total_count: z.ZodOptional; next_page_token: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }, { error: string; success: boolean; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; success: z.ZodBoolean; folder: z.ZodOptional; parents: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; success: z.ZodBoolean; deleted_file_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_file"; deleted_file_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_file"; deleted_file_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; success: z.ZodBoolean; file: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; permissions: z.ZodOptional; displayName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; success: z.ZodBoolean; permission_id: z.ZodOptional; share_link: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }, { error: string; success: boolean; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"move_file">; success: z.ZodBoolean; file: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "move_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "move_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_doc">; success: z.ZodBoolean; document: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; plainText: z.ZodOptional; tabs: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; tabId: string; index: number; plainText?: string | undefined; }, { title: string; tabId: string; index: number; plainText?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_doc"; document?: z.objectOutputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough"> | undefined; plainText?: string | undefined; tabs?: { title: string; tabId: string; index: number; plainText?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_doc"; document?: z.objectInputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough"> | undefined; plainText?: string | undefined; tabs?: { title: string; tabId: string; index: number; plainText?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_doc">; success: z.ZodBoolean; documentId: z.ZodOptional; revisionId: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_doc"; documentId?: string | undefined; revisionId?: string | undefined; }, { error: string; success: boolean; operation: "update_doc"; documentId?: string | undefined; revisionId?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"replace_text">; success: z.ZodBoolean; replacements_made: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "replace_text"; replacements_made?: number | undefined; }, { error: string; success: boolean; operation: "replace_text"; replacements_made?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"copy_doc">; success: z.ZodBoolean; new_document_id: z.ZodOptional; new_document_url: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "copy_doc"; new_document_id?: string | undefined; new_document_url?: string | undefined; }, { error: string; success: boolean; operation: "copy_doc"; new_document_id?: string | undefined; new_document_url?: string | undefined; }>]>; type GoogleDriveResult = z.output; type GoogleDriveParams = z.input; export type GoogleDriveOperationResult = Extract; export type GoogleDriveParamsInput = z.input; export declare class GoogleDriveBubble extends ServiceBubble> { static readonly type: "service"; static readonly service = "google-drive"; static readonly authType: "oauth"; static readonly bubbleName = "google-drive"; static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; name: z.ZodString; content: z.ZodString; mimeType: z.ZodOptional; parent_folder_id: z.ZodOptional; convert_to_google_docs: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; content: string; operation: "upload_file"; convert_to_google_docs: boolean; credentials?: Partial> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; }, { name: string; content: string; operation: "upload_file"; credentials?: Partial> | undefined; mimeType?: string | undefined; parent_folder_id?: string | undefined; convert_to_google_docs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; file_id: z.ZodString; export_format: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "download_file"; file_id: string; credentials?: Partial> | undefined; export_format?: string | undefined; }, { operation: "download_file"; file_id: string; credentials?: Partial> | undefined; export_format?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; folder_id: z.ZodOptional; query: z.ZodOptional; max_results: z.ZodDefault>; include_folders: z.ZodDefault>; order_by: z.ZodDefault>; page_token: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "list_files"; max_results: number; include_folders: boolean; order_by: string; credentials?: Partial> | undefined; query?: string | undefined; folder_id?: string | undefined; page_token?: string | undefined; }, { operation: "list_files"; credentials?: Partial> | undefined; query?: string | undefined; folder_id?: string | undefined; max_results?: number | undefined; include_folders?: boolean | undefined; order_by?: string | undefined; page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; name: z.ZodString; parent_folder_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { name: string; operation: "create_folder"; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }, { name: string; operation: "create_folder"; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; file_id: z.ZodString; permanent: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "delete_file"; file_id: string; permanent: boolean; credentials?: Partial> | undefined; }, { operation: "delete_file"; file_id: string; credentials?: Partial> | undefined; permanent?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; file_id: z.ZodString; include_permissions: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_file_info"; file_id: string; include_permissions: boolean; credentials?: Partial> | undefined; }, { operation: "get_file_info"; file_id: string; credentials?: Partial> | undefined; include_permissions?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; file_id: z.ZodString; email_address: z.ZodOptional; role: z.ZodDefault>>; type: z.ZodDefault>>; send_notification: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { type: "user" | "group" | "domain" | "anyone"; role: "writer" | "reader" | "commenter" | "owner"; operation: "share_file"; file_id: string; send_notification: boolean; credentials?: Partial> | undefined; email_address?: string | undefined; }, { operation: "share_file"; file_id: string; type?: "user" | "group" | "domain" | "anyone" | undefined; credentials?: Partial> | undefined; role?: "writer" | "reader" | "commenter" | "owner" | undefined; email_address?: string | undefined; send_notification?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"move_file">; file_id: z.ZodString; new_parent_folder_id: z.ZodOptional; remove_parent_folder_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "move_file"; file_id: string; credentials?: Partial> | undefined; new_parent_folder_id?: string | undefined; remove_parent_folder_id?: string | undefined; }, { operation: "move_file"; file_id: string; credentials?: Partial> | undefined; new_parent_folder_id?: string | undefined; remove_parent_folder_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_doc">; document_id: z.ZodString; tab_id: z.ZodOptional; include_all_tabs: z.ZodDefault>; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "get_doc"; document_id: string; include_all_tabs: boolean; credentials?: Partial> | undefined; tab_id?: string | undefined; }, { operation: "get_doc"; document_id: string; credentials?: Partial> | undefined; tab_id?: string | undefined; include_all_tabs?: boolean | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_doc">; document_id: z.ZodString; content: z.ZodString; mode: z.ZodDefault>>; tab_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { content: string; operation: "update_doc"; mode: "replace" | "append"; document_id: string; credentials?: Partial> | undefined; tab_id?: string | undefined; }, { content: string; operation: "update_doc"; document_id: string; credentials?: Partial> | undefined; mode?: "replace" | "append" | undefined; tab_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"replace_text">; document_id: z.ZodString; replacements: z.ZodArray>; }, "strip", z.ZodTypeAny, { find: string; replace: string; match_case: boolean; }, { find: string; replace: string; match_case?: boolean | undefined; }>, "many">; tab_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "replace_text"; document_id: string; replacements: { find: string; replace: string; match_case: boolean; }[]; credentials?: Partial> | undefined; tab_id?: string | undefined; }, { operation: "replace_text"; document_id: string; replacements: { find: string; replace: string; match_case?: boolean | undefined; }[]; credentials?: Partial> | undefined; tab_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"copy_doc">; document_id: z.ZodString; new_name: z.ZodString; parent_folder_id: z.ZodOptional; credentials: z.ZodOptional, z.ZodString>>; }, "strip", z.ZodTypeAny, { operation: "copy_doc"; document_id: string; new_name: string; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }, { operation: "copy_doc"; document_id: string; new_name: string; credentials?: Partial> | undefined; parent_folder_id?: string | undefined; }>]>; static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{ operation: z.ZodLiteral<"upload_file">; success: z.ZodBoolean; file: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "upload_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"download_file">; success: z.ZodBoolean; content: z.ZodOptional; filename: z.ZodOptional; mimeType: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }, { error: string; success: boolean; operation: "download_file"; content?: string | undefined; mimeType?: string | undefined; filename?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"list_files">; success: z.ZodBoolean; files: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, "many">>; total_count: z.ZodOptional; next_page_token: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }, { error: string; success: boolean; operation: "list_files"; files?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }[] | undefined; total_count?: number | undefined; next_page_token?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"create_folder">; success: z.ZodBoolean; folder: z.ZodOptional; parents: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }, { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "create_folder"; folder?: { name: string; id: string; webViewLink?: string | undefined; parents?: string[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"delete_file">; success: z.ZodBoolean; deleted_file_id: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "delete_file"; deleted_file_id?: string | undefined; }, { error: string; success: boolean; operation: "delete_file"; deleted_file_id?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_file_info">; success: z.ZodBoolean; file: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; permissions: z.ZodOptional; displayName: z.ZodOptional; }, "strip", z.ZodTypeAny, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }, { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_file_info"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; permissions?: { type: string; id: string; role: string; displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"share_file">; success: z.ZodBoolean; permission_id: z.ZodOptional; share_link: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }, { error: string; success: boolean; operation: "share_file"; permission_id?: string | undefined; share_link?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"move_file">; success: z.ZodBoolean; file: z.ZodOptional; createdTime: z.ZodOptional; modifiedTime: z.ZodOptional; webViewLink: z.ZodOptional; webContentLink: z.ZodOptional; parents: z.ZodOptional>; shared: z.ZodOptional; owners: z.ZodOptional; emailAddress: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName?: string | undefined; emailAddress?: string | undefined; }, { displayName?: string | undefined; emailAddress?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }, { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; }>>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "move_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }, { error: string; success: boolean; operation: "move_file"; file?: { name: string; mimeType: string; id: string; size?: string | undefined; createdTime?: string | undefined; modifiedTime?: string | undefined; webViewLink?: string | undefined; webContentLink?: string | undefined; parents?: string[] | undefined; shared?: boolean | undefined; owners?: { displayName?: string | undefined; emailAddress?: string | undefined; }[] | undefined; } | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"get_doc">; success: z.ZodBoolean; document: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough">>>; plainText: z.ZodOptional; tabs: z.ZodOptional; }, "strip", z.ZodTypeAny, { title: string; tabId: string; index: number; plainText?: string | undefined; }, { title: string; tabId: string; index: number; plainText?: string | undefined; }>, "many">>; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "get_doc"; document?: z.objectOutputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough"> | undefined; plainText?: string | undefined; tabs?: { title: string; tabId: string; index: number; plainText?: string | undefined; }[] | undefined; }, { error: string; success: boolean; operation: "get_doc"; document?: z.objectInputType<{ documentId: z.ZodString; title: z.ZodString; revisionId: z.ZodOptional; body: z.ZodOptional>; suggestionsViewMode: z.ZodOptional; inlineObjects: z.ZodOptional>; lists: z.ZodOptional>; }, z.ZodTypeAny, "passthrough"> | undefined; plainText?: string | undefined; tabs?: { title: string; tabId: string; index: number; plainText?: string | undefined; }[] | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"update_doc">; success: z.ZodBoolean; documentId: z.ZodOptional; revisionId: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "update_doc"; documentId?: string | undefined; revisionId?: string | undefined; }, { error: string; success: boolean; operation: "update_doc"; documentId?: string | undefined; revisionId?: string | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"replace_text">; success: z.ZodBoolean; replacements_made: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "replace_text"; replacements_made?: number | undefined; }, { error: string; success: boolean; operation: "replace_text"; replacements_made?: number | undefined; }>, z.ZodObject<{ operation: z.ZodLiteral<"copy_doc">; success: z.ZodBoolean; new_document_id: z.ZodOptional; new_document_url: z.ZodOptional; error: z.ZodString; }, "strip", z.ZodTypeAny, { error: string; success: boolean; operation: "copy_doc"; new_document_id?: string | undefined; new_document_url?: string | undefined; }, { error: string; success: boolean; operation: "copy_doc"; new_document_id?: string | undefined; new_document_url?: string | undefined; }>]>; static readonly shortDescription = "Google Drive integration with full Google Docs tab support - read/write specific tabs, copy templates, and preserve formatting with find/replace"; static readonly longDescription = "\n Google Drive service integration for comprehensive file, folder, and Google Docs management.\n\n File & Folder Operations:\n - Upload files and documents to Google Drive\n - Download files with format conversion support\n - List and search files with advanced filtering\n - Create and organize folders\n - Share files and manage permissions\n - Get detailed file metadata and information\n\n Google Docs Tab Support:\n - Read content from specific tabs or all tabs (get_doc with tab_id/include_all_tabs)\n - Write content to specific tabs (update_doc with tab_id)\n\n Template & Formatting Operations:\n - Copy documents to create new docs from templates (copy_doc)\n - Find and replace text while preserving all formatting (replace_text)\n - Preserves bold, colors, underlines, tables, shaded boxes, etc.\n - Supports case-sensitive/insensitive matching\n - Can target specific tabs or apply to all tabs\n\n Security Features:\n - OAuth 2.0 authentication with Google\n - Scoped access permissions\n - Secure file handling and validation\n - User-controlled sharing and permissions\n "; static readonly alias = "gdrive"; constructor(params?: T, context?: BubbleContext); testCredential(): Promise; private makeGoogleApiRequest; protected performAction(context?: BubbleContext): Promise>; private uploadFile; private isTextMimeType; private downloadFile; private listFiles; private createFolder; private deleteFile; private getFileInfo; private shareFile; private moveFile; private getDoc; private updateDoc; /** * Adds tabId to range objects in formatting requests */ private addTabIdToRequest; private replaceText; private copyDoc; /** * Extracts plain text content from a Google Docs document body */ private extractPlainTextFromDoc; /** * Extracts plain text content from a Google Docs tab */ private extractPlainTextFromTab; /** * Extracts plain text from a content array, handling paragraphs, tables, and table of contents */ private extractPlainTextFromContent; private isBase64; private extractBase64Content; private findAndExtractBase64; private findBase64InObject; private detectMimeTypeFromBase64; protected chooseCredential(): string | undefined; } export {}; //# sourceMappingURL=google-drive.d.ts.map