jodit-pro
Version:
PRO Version of Jodit Editor
19 lines (18 loc) • 535 B
TypeScript
import type { IDictionary } from "jodit/esm/types/index";
export type AIArtifactType = 'image' | 'audio' | 'file' | 'json';
export type AIArtifactStatus = 'pending' | 'generating' | 'ready' | 'failed';
export type AIArtifactData = {
kind: 'url';
url: string;
} | {
kind: 'base64';
base64: string;
};
export interface IAIArtifact<Data extends AIArtifactData = AIArtifactData> {
id: string;
type: AIArtifactType;
status: AIArtifactStatus;
mimeType?: string;
data?: Data;
metadata?: IDictionary;
}