UNPKG

@n8n/n8n-nodes-langchain

Version:
69 lines (64 loc) • 2.54 kB
/** * Google Gemini Node - Version 1 * Discriminator: resource=video, operation=generate */ interface Credentials { googlePalmApi: CredentialReference; } /** Creates an image from a text prompt */ export type LcGoogleGeminiV1VideoGenerateParams = { resource: 'video'; operation: 'generate'; /** * Model * @builderHint Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid. * @searchListMethod videoGenerationModelSearch * @default {"mode":"list","value":""} */ modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * A text description of the desired video */ prompt?: string | Expression<string>; /** * Whether to return the video as a binary file or a URL that can be used to download the video later * @default video */ returnAs?: 'video' | 'url' | Expression<string>; /** * Options * @default {} */ options?: { /** How many videos to generate * @default 1 */ sampleCount?: number | Expression<number>; /** Length of the generated video in seconds. Supported only by certain models. * @default 8 */ durationSeconds?: number | Expression<number>; /** Aspect Ratio * @default 16:9 */ aspectRatio?: '16:9' | '9:16' | Expression<string>; /** Person Generation * @default dont_allow */ personGeneration?: 'dont_allow' | 'allow_adult' | 'allow_all' | Expression<string>; /** Put Output in Field * @hint The name of the output field to put the binary file data in * @default data */ binaryPropertyOutput?: string | Expression<string>; }; }; export interface LcGoogleGeminiV1VideoGenerateSubnodeConfig { tools?: ToolInstance[]; } export type LcGoogleGeminiV1VideoGenerateNode = { type: '@n8n/n8n-nodes-langchain.googleGemini'; version: 1; isTrigger: true; config: NodeConfig<LcGoogleGeminiV1VideoGenerateParams> & { credentials?: Credentials } & { subnodes?: LcGoogleGeminiV1VideoGenerateSubnodeConfig }; };