/** * Google Drive Node - Version 2 * Discriminator: resource=folder, operation=share */ interface Credentials { googleApi: CredentialReference; googleDriveOAuth2Api: CredentialReference; } /** Share a file */ export type GoogleDriveV2FolderShareParams = { resource: 'folder'; operation: 'share'; /** * Authentication * @default oAuth2 */ authentication?: 'oAuth2' | 'serviceAccount' | Expression; /** * The ID of the folder * @default {"mode":"list","value":""} */ fileId?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string }; /** * Permissions * @default {} */ permissionsUi?: { /** Permission */ permissionsValues?: { /** Role */ role?: 'commenter' | 'fileOrganizer' | 'organizer' | 'owner' | 'reader' | 'writer' | Expression; /** Information about the different types can be found <a href="https://developers.google.com/drive/api/v3/ref-roles">here</a> */ type?: 'user' | 'group' | 'domain' | 'anyone' | Expression; /** The email address of the user or group to which this permission refers * @displayOptions.show { type: ["user", "group"] } */ emailAddress?: string | Expression | PlaceholderValue; /** The domain to which this permission refers * @displayOptions.show { type: ["domain"] } */ domain?: string | Expression | PlaceholderValue; /** Whether the permission allows the file to be discovered through search * @displayOptions.show { type: ["domain", "anyone"] } * @default false */ allowFileDiscovery?: boolean | Expression; }; }; }; export type GoogleDriveV2FolderShareNode = { type: 'n8n-nodes-base.googleDrive'; version: 2; credentials?: Credentials; config: NodeConfig; };