/** * Box Node - Version 1 * Discriminator: resource=folder, operation=share */ interface Credentials { boxOAuth2Api: CredentialReference; } /** Share a file */ export type BoxV1FolderShareParams = { resource: 'folder'; operation: 'share'; /** * The ID of the folder to share */ folderId?: string | Expression | PlaceholderValue; /** * The type of object the file will be shared with * @default user */ accessibleBy?: 'user' | 'group' | Expression; /** * Whether identify the user by email or ID * @displayOptions.show { accessibleBy: ["user"] } * @default true */ useEmail?: boolean | Expression; /** * The user's email address to share the folder with * @displayOptions.show { accessibleBy: ["user"], useEmail: [true] } */ email?: string | Expression | PlaceholderValue; /** * The user's ID to share the folder with * @displayOptions.show { accessibleBy: ["user"], useEmail: [false] } */ userId?: string | Expression | PlaceholderValue; /** * The group's ID to share the folder with * @displayOptions.show { accessibleBy: ["group"] } */ groupId?: string | Expression | PlaceholderValue; /** * The level of access granted * @default editor */ role?: 'coOwner' | 'editor' | 'previewer' | 'previewerUploader' | 'uploader' | 'viewer' | 'viewerUploader' | Expression; /** * Options * @default {} */ options?: { /** Whether the invited users can see the entire parent path to the associated folder. The user will not gain privileges in any parent folder and therefore cannot see content the user is not collaborated on. * @default false */ can_view_path?: boolean | Expression; /** Set the expiration date for the collaboration. At this date, the collaboration will be automatically removed from the item. */ expires_at?: string | Expression; /** A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response. */ fields?: string | Expression | PlaceholderValue; /** Whether if users should receive email notification for the action performed * @default false */ notify?: boolean | Expression; }; }; export type BoxV1FolderShareNode = { type: 'n8n-nodes-base.box'; version: 1; credentials?: Credentials; config: NodeConfig; };