UNPKG

@imgly/plugin-ai-generation-web

Version:

AI generation plugin for the CE.SDK editor

42 lines (41 loc) 1.05 kB
import { Builder } from '@cesdk/cesdk-js'; import { OpenAPIV3 } from 'openapi-types'; export interface Property { id: string; schema?: OpenAPIV3.SchemaObject; } type PropertyInputForString = { id: string; type: 'string'; value: string; }; type PropertyInputForBoolean = { id: string; type: 'boolean'; value: boolean; }; type PropertyInputForInteger = { id: string; type: 'integer'; value: number; }; type PropertyInputForObject = { id: string; type: 'object'; value: Record<string, PropertyInput>; }; export type PropertyInput = PropertyInputForString | PropertyInputForBoolean | PropertyInputForInteger | PropertyInputForObject; export type GetPropertyInput = () => PropertyInput; type CustomIcon = string | (({ theme, iconSize }: { theme: 'light' | 'dark'; iconSize: 'normal' | 'large'; }) => string); export interface EnumValue { id: string; label: string | string[]; icon?: CustomIcon; } export interface ExtensionImglyBuilder { component?: keyof Builder; } export {};