n8n-nodes-base
Version:
Base nodes of n8n
33 lines (29 loc) • 766 B
text/typescript
/**
* Google Drive Node - Version 2
* Discriminator: resource=file, operation=copy
*/
interface Credentials {
googleApi: CredentialReference;
googleDriveOAuth2Api: CredentialReference;
}
/** Copy a file */
export type GoogleDriveV2FileCopyParams = {
resource: 'file';
operation: 'copy';
/**
* Authentication
* @default oAuth2
*/
authentication?: 'oAuth2' | 'serviceAccount' | Expression<string>;
/**
* The ID of the file
* @default {"mode":"list","value":""}
*/
fileId?: { __rl: true; mode: 'list' | 'url' | 'id'; value: string; cachedResultName?: string };
};
export type GoogleDriveV2FileCopyNode = {
type: 'n8n-nodes-base.googleDrive';
version: 2;
credentials?: Credentials;
config: NodeConfig<GoogleDriveV2FileCopyParams>;
};