Browse Source

feat: add missing ref fields for media externalization

Add audioFileRef, imageARef, imageBRef, and capturedImageRef fields
to AudioInputNodeData, ImageCompareNodeData, and GLBViewerNodeData
to support external media storage optimization.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
handoff-20260429-1057
Shrimbly 4 months ago
committed by shrimbly
parent
commit
65e01cb64a
  1. 4
      src/types/nodes.ts

4
src/types/nodes.ts

@ -68,6 +68,7 @@ export interface ImageInputNodeData extends BaseNodeData {
*/
export interface AudioInputNodeData extends BaseNodeData {
audioFile: string | null; // Base64 data URL of the audio file
audioFileRef?: string; // External audio reference for storage optimization
filename: string | null; // Original filename for display
duration: number | null; // Duration in seconds
format: string | null; // MIME type (audio/mp3, audio/wav, etc.)
@ -299,7 +300,9 @@ export interface OutputGalleryNodeData extends BaseNodeData {
*/
export interface ImageCompareNodeData extends BaseNodeData {
imageA: string | null;
imageARef?: string; // External image reference for storage optimization
imageB: string | null;
imageBRef?: string; // External image reference for storage optimization
}
/**
@ -444,6 +447,7 @@ export interface GLBViewerNodeData extends BaseNodeData {
glbUrl: string | null; // Object URL for the loaded GLB file
filename: string | null; // Original filename for display
capturedImage: string | null; // Base64 PNG snapshot of the 3D viewport
capturedImageRef?: string; // External image reference for storage optimization
}
/**

Loading…
Cancel
Save