/** * YouTube Node - Version 1 * Discriminator: resource=video, operation=upload */ interface Credentials { youTubeOAuth2Api: CredentialReference; } /** Upload a video */ export type YouTubeV1VideoUploadParams = { resource: 'video'; operation: 'upload'; /** * Title */ title?: string | Expression | PlaceholderValue; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ regionCode?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ categoryId?: string | Expression; /** * Input Binary Field * @hint The name of the input binary field containing the file to be uploaded * @default data */ binaryProperty?: string | Expression | PlaceholderValue; /** * Options * @default {} */ options?: { /** The language of the text in the playlist resource's title and description properties. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ defaultLanguage?: string | Expression; /** The playlist's description */ description?: string | Expression | PlaceholderValue; /** Whether the video can be embedded on another website * @default false */ embeddable?: boolean | Expression; /** The video's license */ license?: 'creativeCommon' | 'youtube' | Expression; /** Whether YouTube should send a notification about the new video to users who subscribe to the video's channel * @default false */ notifySubscribers?: boolean | Expression; /** The playlist's privacy status */ privacyStatus?: 'private' | 'public' | 'unlisted' | Expression; /** Whether the extended video statistics on the video's watch page are publicly viewable * @default true */ publicStatsViewable?: boolean | Expression; /** If you set a value for this property, you must also set the status.privacyStatus property to private */ publishAt?: string | Expression; /** The date and time when the video was recorded */ recordingDate?: string | Expression; /** Whether the video is designated as child-directed, and it contains the current "made for kids" status of the video * @default false */ selfDeclaredMadeForKids?: boolean | Expression; /** Keyword tags associated with the playlist. Mulplie can be defined separated by comma. */ tags?: string | Expression | PlaceholderValue; }; }; export type YouTubeV1VideoUploadOutput = { uploadId?: string; }; export type YouTubeV1VideoUploadNode = { type: 'n8n-nodes-base.youTube'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };