UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

88 lines (83 loc) 3.02 kB
/** * 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<string> | PlaceholderValue; /** * Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt; */ regionCode?: string | Expression<string>; /** * Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt; */ categoryId?: string | Expression<string>; /** * Input Binary Field * @hint The name of the input binary field containing the file to be uploaded * @default data */ binaryProperty?: string | Expression<string> | 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 &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;. */ defaultLanguage?: string | Expression<string>; /** The playlist's description */ description?: string | Expression<string> | PlaceholderValue; /** Whether the video can be embedded on another website * @default false */ embeddable?: boolean | Expression<boolean>; /** The video's license */ license?: 'creativeCommon' | 'youtube' | Expression<string>; /** Whether YouTube should send a notification about the new video to users who subscribe to the video's channel * @default false */ notifySubscribers?: boolean | Expression<boolean>; /** The playlist's privacy status */ privacyStatus?: 'private' | 'public' | 'unlisted' | Expression<string>; /** Whether the extended video statistics on the video's watch page are publicly viewable * @default true */ publicStatsViewable?: boolean | Expression<boolean>; /** If you set a value for this property, you must also set the status.privacyStatus property to private */ publishAt?: string | Expression<string>; /** The date and time when the video was recorded */ recordingDate?: string | Expression<string>; /** 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<boolean>; /** Keyword tags associated with the playlist. Mulplie can be defined separated by comma. */ tags?: string | Expression<string> | PlaceholderValue; }; }; export type YouTubeV1VideoUploadOutput = { uploadId?: string; }; export type YouTubeV1VideoUploadNode = { type: 'n8n-nodes-base.youTube'; version: 1; credentials?: Credentials; config: NodeConfig<YouTubeV1VideoUploadParams>; output?: Items<YouTubeV1VideoUploadOutput>; };