n8n-nodes-base
Version:
Base nodes of n8n
35 lines (30 loc) • 701 B
text/typescript
/**
* YouTube Node - Version 1
* Discriminator: resource=video, operation=rate
*/
interface Credentials {
youTubeOAuth2Api: CredentialReference;
}
/** Rate a video */
export type YouTubeV1VideoRateParams = {
resource: 'video';
operation: 'rate';
/**
* Video ID
*/
videoId?: string | Expression<string> | PlaceholderValue;
/**
* Rating
*/
rating?: 'dislike' | 'like' | 'none' | Expression<string>;
};
export type YouTubeV1VideoRateOutput = {
success?: boolean;
};
export type YouTubeV1VideoRateNode = {
type: 'n8n-nodes-base.youTube';
version: 1;
credentials?: Credentials;
config: NodeConfig<YouTubeV1VideoRateParams>;
output?: Items<YouTubeV1VideoRateOutput>;
};