Skip to content

PersistentAI API Documentation / @persistentai/fireflow-types / resolveFileInput

Function: resolveFileInput()

resolveFileInput(input, deps, options): Promise<{ filename: string; id: string; metadata?: { createdAt?: number; custom?: Record<string, unknown>; description?: string; duration?: number; height?: number; originalUrl?: string; prompt?: string; sourceModel?: string; tags?: string[]; thumbnailFileId?: string; width?: number; }; mimeType: string; size: number; }>

Defined in: packages/fireflow-types/src/file/file-input.ts:128

Resolve any FileInput to a FileReference

This normalizes legacy formats (base64, URL) to FileReference.

Parameters

input

FileInput

deps

FileResolverDependencies

options

ResolveOptions

Returns

Promise<{ filename: string; id: string; metadata?: { createdAt?: number; custom?: Record<string, unknown>; description?: string; duration?: number; height?: number; originalUrl?: string; prompt?: string; sourceModel?: string; tags?: string[]; thumbnailFileId?: string; width?: number; }; mimeType: string; size: number; }>

Licensed under BUSL-1.1