@genfeedai/types 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-7NJUD2WZ.mjs +1 -0
- package/dist/chunk-KXAKQO3U.js +11 -0
- package/dist/chunk-OGJX4J7H.mjs +808 -0
- package/dist/chunk-P7K5LM6V.js +825 -0
- package/dist/chunk-RNGYPX4W.js +2 -0
- package/dist/chunk-WT2F5CAF.mjs +9 -0
- package/dist/comfyui.d.mts +91 -0
- package/dist/comfyui.d.ts +91 -0
- package/dist/comfyui.js +4 -0
- package/dist/comfyui.mjs +1 -0
- package/dist/index.d.mts +268 -0
- package/dist/index.d.ts +268 -0
- package/dist/index.js +185 -0
- package/dist/index.mjs +109 -0
- package/dist/nodes.d.mts +19 -0
- package/dist/nodes.d.ts +19 -0
- package/dist/nodes.js +54 -0
- package/dist/nodes.mjs +1 -0
- package/dist/replicate.d.mts +1092 -0
- package/dist/replicate.d.ts +1092 -0
- package/dist/replicate.js +2 -0
- package/dist/replicate.mjs +1 -0
- package/dist/union-CtYAY8Mv.d.mts +541 -0
- package/dist/union-CtYAY8Mv.d.ts +541 -0
- package/dist/workflow-CGpVuRPg.d.mts +99 -0
- package/dist/workflow-Di5vTrXa.d.ts +99 -0
- package/dist/workflow.d.mts +3 -0
- package/dist/workflow.d.ts +3 -0
- package/dist/workflow.js +10 -0
- package/dist/workflow.mjs +1 -0
- package/package.json +60 -0
- package/src/replicate/schemas.json +6636 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export { ComfyUIHistoryEntry, ComfyUIHistoryResponse, ComfyUINode, ComfyUINodeOutput, ComfyUIOutputFile, ComfyUIPrompt, ComfyUIPromptStatus, ComfyUIQueuePromptResponse, ComfyUITemplateInput, ComfyUIWorkflowTemplate } from './comfyui.js';
|
|
2
|
+
export { ab as AnimationNodeData, as as AnnotationNodeData, ar as AnnotationShapeData, s as AspectRatio, ad as AudioCodec, A as AudioInputNodeData, o as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, a4 as CameraMovement, a6 as CharacterOrientation, aa as CubicBezier, az as DownloadNodeData, a9 as EasingPreset, ai as FrameSelectionMode, ap as GridOutputFormat, G as GridPosition, b as HandleDefinition, a as HandleType, H as HandleTypeEnum, ax as ImageCompareNodeData, E as ImageGenNodeData, aq as ImageGridSplitNodeData, I as ImageInputNodeData, q as ImageModel, K as KlingQuality, a5 as KlingQualityMode, Q as LLMNodeData, X as LipSyncMode, W as LipSyncModel, Y as LipSyncNodeData, L as LumaAspectRatio, w as LumaReframeModel, e as ModelCapability, M as ModelCapabilityEnum, g as ModelUseCase, f as ModelUseCaseEnum, a3 as MotionControlMode, a8 as MotionControlNodeData, k as NodeCategory, j as NodeCategoryEnum, m as NodeStatus, l as NodeStatusEnum, i as NodeType, N as NodeTypeEnum, O as OutputFormat, aw as OutputGalleryNodeData, ay as OutputInputType, aA as OutputNodeData, ae as OutputQuality, P as ProcessingNodeType, p as PromptConstructorNodeData, n as PromptNodeData, h as ProviderModel, d as ProviderType, c as ProviderTypeEnum, ak as ReframeInputType, al as ReframeNodeData, R as ReframeNodeType, ag as ResizeNodeData, t as Resolution, S as SelectedModel, av as SubtitleNodeData, au as SubtitlePosition, at as SubtitleStyle, _ as TTSProvider, $ as TTSVoice, T as TemplateCategory, J as TextModel, a0 as TextToSpeechNodeData, x as TopazEnhanceModel, y as TopazUpscaleFactor, D as TopazVideoFPS, z as TopazVideoResolution, a7 as TrajectoryPoint, a1 as TranscribeLanguage, a2 as TranscribeNodeData, ac as TransitionType, am as UpscaleInputType, an as UpscaleModel, ao as UpscaleNodeData, U as UpscaleNodeType, v as VideoDuration, aj as VideoFrameExtractNodeData, F as VideoGenNodeData, V as VideoInputNodeData, r as VideoModel, u as VideoResolution, af as VideoStitchNodeData, ah as VideoTrimNodeData, Z as VoiceChangeNodeData, aK as WorkflowEdge, aJ as WorkflowEdgeData, aB as WorkflowInputNodeData, aF as WorkflowInterface, aD as WorkflowInterfaceInput, aE as WorkflowInterfaceOutput, aI as WorkflowNode, aH as WorkflowNodeData, aC as WorkflowOutputNodeData, aG as WorkflowRefNodeData } from './union-CtYAY8Mv.js';
|
|
3
|
+
export { C as CostEstimate, a as EdgeStyle, E as EdgeStyleEnum, e as ExecutionResult, G as GroupColor, N as NodeGroup, b as TemplateEdge, T as TemplateNode, V as ValidationError, d as ValidationResult, f as WorkflowCostEstimate, W as WorkflowFile, c as WorkflowTemplate } from './workflow-Di5vTrXa.js';
|
|
4
|
+
export { NODE_DEFINITIONS, NODE_ORDER, NodeDefinition, getNodesByCategory } from './nodes.js';
|
|
5
|
+
import '@xyflow/react';
|
|
6
|
+
|
|
7
|
+
type ActionCategory = 'crud' | 'ai' | 'data' | 'validation';
|
|
8
|
+
type CrudAction = 'add' | 'duplicate' | 'delete' | 'reorder';
|
|
9
|
+
type AIAction = 'enhance' | 'generate' | 'suggest';
|
|
10
|
+
type DataAction = 'copy' | 'paste' | 'import' | 'export';
|
|
11
|
+
type ValidationAction = 'validate' | 'autofill' | 'reset';
|
|
12
|
+
type InputGroupActionType = CrudAction | AIAction | DataAction | ValidationAction;
|
|
13
|
+
interface ActionConfig<TIcon = unknown> {
|
|
14
|
+
id: string;
|
|
15
|
+
type: InputGroupActionType;
|
|
16
|
+
category: ActionCategory;
|
|
17
|
+
label: string;
|
|
18
|
+
icon: TIcon;
|
|
19
|
+
shortcut?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
hidden?: boolean;
|
|
22
|
+
danger?: boolean;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
}
|
|
25
|
+
type ActionUIPattern = 'hover-toolbar' | 'context-menu' | 'inline-buttons' | 'dropdown-menu';
|
|
26
|
+
type InputGroupVariant = 'section' | 'inline' | 'card' | 'minimal';
|
|
27
|
+
interface InputGroupProps<TChildren = unknown, TIcon = unknown> {
|
|
28
|
+
/** Unique identifier for the group */
|
|
29
|
+
id: string;
|
|
30
|
+
/** Group title displayed in header */
|
|
31
|
+
title?: string;
|
|
32
|
+
/** Optional description text */
|
|
33
|
+
description?: string;
|
|
34
|
+
/** Visual variant */
|
|
35
|
+
variant?: InputGroupVariant;
|
|
36
|
+
/** Whether the group is collapsible */
|
|
37
|
+
collapsible?: boolean;
|
|
38
|
+
/** Initial collapsed state */
|
|
39
|
+
defaultCollapsed?: boolean;
|
|
40
|
+
/** Whether the group is in edit mode (inline editing) */
|
|
41
|
+
isEditing?: boolean;
|
|
42
|
+
/** Actions available at the group level */
|
|
43
|
+
actions?: ActionConfig<TIcon>[];
|
|
44
|
+
/** How to display actions */
|
|
45
|
+
actionPattern?: ActionUIPattern;
|
|
46
|
+
/** Whether the entire group is disabled */
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/** Whether the group is in loading state */
|
|
49
|
+
loading?: boolean;
|
|
50
|
+
/** Error message for the group */
|
|
51
|
+
error?: string;
|
|
52
|
+
/** Callback when edit mode changes */
|
|
53
|
+
onEditChange?: (isEditing: boolean) => void;
|
|
54
|
+
/** Callback when group is collapsed/expanded */
|
|
55
|
+
onCollapseChange?: (collapsed: boolean) => void;
|
|
56
|
+
/** Children - InputGroupField or InputGroupRow components */
|
|
57
|
+
children: TChildren;
|
|
58
|
+
/** Additional CSS classes */
|
|
59
|
+
className?: string;
|
|
60
|
+
}
|
|
61
|
+
interface InputGroupHeaderProps<TIcon = unknown> {
|
|
62
|
+
title: string;
|
|
63
|
+
description?: string;
|
|
64
|
+
collapsible?: boolean;
|
|
65
|
+
collapsed?: boolean;
|
|
66
|
+
onCollapseToggle?: () => void;
|
|
67
|
+
actions?: ActionConfig<TIcon>[];
|
|
68
|
+
actionPattern?: ActionUIPattern;
|
|
69
|
+
isEditing?: boolean;
|
|
70
|
+
onSave?: () => void;
|
|
71
|
+
onCancel?: () => void;
|
|
72
|
+
className?: string;
|
|
73
|
+
}
|
|
74
|
+
type FieldWidth = 'full' | 'half' | 'third' | 'quarter' | 'auto';
|
|
75
|
+
interface InputGroupFieldProps<TChildren = unknown, TIcon = unknown> {
|
|
76
|
+
/** Unique identifier */
|
|
77
|
+
id: string;
|
|
78
|
+
/** Field label */
|
|
79
|
+
label?: string;
|
|
80
|
+
/** Helper text below the field */
|
|
81
|
+
helperText?: string;
|
|
82
|
+
/** Whether field is required */
|
|
83
|
+
required?: boolean;
|
|
84
|
+
/** Validation error */
|
|
85
|
+
error?: string;
|
|
86
|
+
/** Actions for this specific field */
|
|
87
|
+
actions?: ActionConfig<TIcon>[];
|
|
88
|
+
/** How to display field-level actions */
|
|
89
|
+
actionPattern?: ActionUIPattern;
|
|
90
|
+
/** Whether field is disabled */
|
|
91
|
+
disabled?: boolean;
|
|
92
|
+
/** The actual input component */
|
|
93
|
+
children: TChildren;
|
|
94
|
+
/** Layout width */
|
|
95
|
+
width?: FieldWidth;
|
|
96
|
+
/** Additional CSS classes */
|
|
97
|
+
className?: string;
|
|
98
|
+
}
|
|
99
|
+
interface InputGroupRowProps<T = Record<string, unknown>, TChildren = unknown, TIcon = unknown> {
|
|
100
|
+
/** Row index in the list */
|
|
101
|
+
index: number;
|
|
102
|
+
/** Row data */
|
|
103
|
+
data: T;
|
|
104
|
+
/** Whether this row is being dragged */
|
|
105
|
+
isDragging?: boolean;
|
|
106
|
+
/** Whether rows can be reordered */
|
|
107
|
+
sortable?: boolean;
|
|
108
|
+
/** Actions available for this row */
|
|
109
|
+
actions?: ActionConfig<TIcon>[];
|
|
110
|
+
/** How to display row actions */
|
|
111
|
+
actionPattern?: ActionUIPattern;
|
|
112
|
+
/** Callback when data changes */
|
|
113
|
+
onChange: (data: T) => void;
|
|
114
|
+
/** Callback to delete this row */
|
|
115
|
+
onDelete?: () => void;
|
|
116
|
+
/** Callback to duplicate this row */
|
|
117
|
+
onDuplicate?: () => void;
|
|
118
|
+
/** The row content */
|
|
119
|
+
children: TChildren;
|
|
120
|
+
/** Additional CSS classes */
|
|
121
|
+
className?: string;
|
|
122
|
+
}
|
|
123
|
+
interface RowHelpers<T> {
|
|
124
|
+
update: (data: Partial<T>) => void;
|
|
125
|
+
remove: () => void;
|
|
126
|
+
duplicate: () => void;
|
|
127
|
+
moveUp: () => void;
|
|
128
|
+
moveDown: () => void;
|
|
129
|
+
}
|
|
130
|
+
interface DynamicListProps<T = Record<string, unknown>, TIcon = unknown> {
|
|
131
|
+
/** List of items */
|
|
132
|
+
items: T[];
|
|
133
|
+
/** Minimum number of items */
|
|
134
|
+
minItems?: number;
|
|
135
|
+
/** Maximum number of items */
|
|
136
|
+
maxItems?: number;
|
|
137
|
+
/** Whether items can be reordered */
|
|
138
|
+
sortable?: boolean;
|
|
139
|
+
/** Default value for new items */
|
|
140
|
+
defaultItem: T;
|
|
141
|
+
/** Callback when items change */
|
|
142
|
+
onChange: (items: T[]) => void;
|
|
143
|
+
/** Render function for each row */
|
|
144
|
+
renderRow: (item: T, index: number, helpers: RowHelpers<T>) => unknown;
|
|
145
|
+
/** Add button label */
|
|
146
|
+
addButtonLabel?: string;
|
|
147
|
+
/** Empty state message */
|
|
148
|
+
emptyMessage?: string;
|
|
149
|
+
/** Group-level actions */
|
|
150
|
+
actions?: ActionConfig<TIcon>[];
|
|
151
|
+
/** Additional CSS classes */
|
|
152
|
+
className?: string;
|
|
153
|
+
}
|
|
154
|
+
type ToolbarSize = 'sm' | 'md' | 'lg';
|
|
155
|
+
type ToolbarOrientation = 'horizontal' | 'vertical';
|
|
156
|
+
type ToolbarVisibility = boolean | 'hover';
|
|
157
|
+
interface ActionToolbarProps<TIcon = unknown> {
|
|
158
|
+
actions: ActionConfig<TIcon>[];
|
|
159
|
+
size?: ToolbarSize;
|
|
160
|
+
orientation?: ToolbarOrientation;
|
|
161
|
+
visible?: ToolbarVisibility;
|
|
162
|
+
className?: string;
|
|
163
|
+
}
|
|
164
|
+
type MenuAlign = 'start' | 'center' | 'end';
|
|
165
|
+
type MenuSide = 'top' | 'right' | 'bottom' | 'left';
|
|
166
|
+
interface ActionMenuProps<TIcon = unknown, TTriggerIcon = unknown> {
|
|
167
|
+
actions: ActionConfig<TIcon>[];
|
|
168
|
+
triggerIcon?: TTriggerIcon;
|
|
169
|
+
triggerLabel?: string;
|
|
170
|
+
align?: MenuAlign;
|
|
171
|
+
side?: MenuSide;
|
|
172
|
+
className?: string;
|
|
173
|
+
}
|
|
174
|
+
interface DimensionsValue {
|
|
175
|
+
width: number;
|
|
176
|
+
height: number;
|
|
177
|
+
unit?: 'px' | 'em' | 'rem' | '%' | 'vw' | 'vh';
|
|
178
|
+
}
|
|
179
|
+
interface KeyValuePair {
|
|
180
|
+
id: string;
|
|
181
|
+
key: string;
|
|
182
|
+
value: string;
|
|
183
|
+
}
|
|
184
|
+
interface DimensionsGroupProps {
|
|
185
|
+
value: DimensionsValue;
|
|
186
|
+
onChange: (value: DimensionsValue) => void;
|
|
187
|
+
disabled?: boolean;
|
|
188
|
+
error?: string;
|
|
189
|
+
showUnit?: boolean;
|
|
190
|
+
minWidth?: number;
|
|
191
|
+
maxWidth?: number;
|
|
192
|
+
minHeight?: number;
|
|
193
|
+
maxHeight?: number;
|
|
194
|
+
className?: string;
|
|
195
|
+
}
|
|
196
|
+
interface KeyValueListProps {
|
|
197
|
+
items: KeyValuePair[];
|
|
198
|
+
onChange: (items: KeyValuePair[]) => void;
|
|
199
|
+
disabled?: boolean;
|
|
200
|
+
keyPlaceholder?: string;
|
|
201
|
+
valuePlaceholder?: string;
|
|
202
|
+
addButtonLabel?: string;
|
|
203
|
+
minItems?: number;
|
|
204
|
+
maxItems?: number;
|
|
205
|
+
className?: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
interface IStyleSettings {
|
|
209
|
+
mood?: string;
|
|
210
|
+
style?: string;
|
|
211
|
+
camera?: string;
|
|
212
|
+
lighting?: string;
|
|
213
|
+
scene?: string;
|
|
214
|
+
}
|
|
215
|
+
declare const PROMPT_CATEGORIES: readonly ["ads", "anime", "product", "portrait", "landscape", "abstract", "fashion", "food", "architecture", "custom"];
|
|
216
|
+
type PromptCategory = (typeof PROMPT_CATEGORIES)[number];
|
|
217
|
+
interface IPrompt {
|
|
218
|
+
_id: string;
|
|
219
|
+
name: string;
|
|
220
|
+
description: string;
|
|
221
|
+
promptText: string;
|
|
222
|
+
styleSettings: IStyleSettings;
|
|
223
|
+
aspectRatio?: string;
|
|
224
|
+
preferredModel?: string;
|
|
225
|
+
category: PromptCategory;
|
|
226
|
+
tags: string[];
|
|
227
|
+
thumbnail?: string;
|
|
228
|
+
useCount: number;
|
|
229
|
+
isFeatured: boolean;
|
|
230
|
+
isSystem: boolean;
|
|
231
|
+
isDeleted: boolean;
|
|
232
|
+
createdAt: string;
|
|
233
|
+
updatedAt: string;
|
|
234
|
+
}
|
|
235
|
+
interface ICreatePrompt {
|
|
236
|
+
name: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
promptText: string;
|
|
239
|
+
styleSettings?: IStyleSettings;
|
|
240
|
+
aspectRatio?: string;
|
|
241
|
+
preferredModel?: string;
|
|
242
|
+
category?: PromptCategory;
|
|
243
|
+
tags?: string[];
|
|
244
|
+
thumbnail?: string;
|
|
245
|
+
isFeatured?: boolean;
|
|
246
|
+
}
|
|
247
|
+
interface IQueryPrompts {
|
|
248
|
+
category?: PromptCategory;
|
|
249
|
+
search?: string;
|
|
250
|
+
tag?: string;
|
|
251
|
+
limit?: number;
|
|
252
|
+
offset?: number;
|
|
253
|
+
sortBy?: 'createdAt' | 'useCount' | 'name';
|
|
254
|
+
sortOrder?: 'asc' | 'desc';
|
|
255
|
+
}
|
|
256
|
+
declare const MOOD_PRESETS: readonly ["cinematic", "dreamy", "gritty", "ethereal", "nostalgic", "futuristic", "mysterious", "peaceful", "energetic", "moody", "dramatic", "whimsical"];
|
|
257
|
+
declare const STYLE_PRESETS: readonly ["photorealistic", "anime", "3d-render", "oil-painting", "watercolor", "digital-art", "comic-book", "sketch", "pixel-art", "minimalist", "cyberpunk", "fantasy", "retro", "vintage"];
|
|
258
|
+
declare const CAMERA_PRESETS: readonly ["wide-angle", "macro", "telephoto", "drone", "portrait", "fisheye", "tilt-shift", "gopro", "close-up", "establishing", "eye-level", "low-angle", "high-angle", "dutch-angle"];
|
|
259
|
+
declare const LIGHTING_PRESETS: readonly ["golden-hour", "studio", "neon", "natural", "dramatic", "soft", "backlit", "rim-light", "high-key", "low-key", "candlelight", "moonlight", "fluorescent", "cinematic"];
|
|
260
|
+
declare const SCENE_PRESETS: readonly ["indoor", "outdoor", "urban", "nature", "studio", "underwater", "space", "abstract", "industrial", "domestic", "beach", "forest", "city-skyline", "desert"];
|
|
261
|
+
type MoodPreset = (typeof MOOD_PRESETS)[number];
|
|
262
|
+
type StylePreset = (typeof STYLE_PRESETS)[number];
|
|
263
|
+
type CameraPreset = (typeof CAMERA_PRESETS)[number];
|
|
264
|
+
type LightingPreset = (typeof LIGHTING_PRESETS)[number];
|
|
265
|
+
type ScenePreset = (typeof SCENE_PRESETS)[number];
|
|
266
|
+
declare const CATEGORY_LABELS: Record<PromptCategory, string>;
|
|
267
|
+
|
|
268
|
+
export { type AIAction, type ActionCategory, type ActionConfig, type ActionMenuProps, type ActionToolbarProps, type ActionUIPattern, CAMERA_PRESETS, CATEGORY_LABELS, type CameraPreset, type CrudAction, type DataAction, type DimensionsGroupProps, type DimensionsValue, type DynamicListProps, type FieldWidth, type ICreatePrompt, type IPrompt, type IQueryPrompts, type IStyleSettings, type InputGroupActionType, type InputGroupFieldProps, type InputGroupHeaderProps, type InputGroupProps, type InputGroupRowProps, type InputGroupVariant, type KeyValueListProps, type KeyValuePair, LIGHTING_PRESETS, type LightingPreset, MOOD_PRESETS, type MenuAlign, type MenuSide, type MoodPreset, PROMPT_CATEGORIES, type PromptCategory, type RowHelpers, SCENE_PRESETS, STYLE_PRESETS, type ScenePreset, type StylePreset, type ToolbarOrientation, type ToolbarSize, type ToolbarVisibility, type ValidationAction };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP7K5LM6V_js = require('./chunk-P7K5LM6V.js');
|
|
4
|
+
var chunkKXAKQO3U_js = require('./chunk-KXAKQO3U.js');
|
|
5
|
+
require('./chunk-RNGYPX4W.js');
|
|
6
|
+
|
|
7
|
+
// src/prompts.ts
|
|
8
|
+
var PROMPT_CATEGORIES = [
|
|
9
|
+
"ads",
|
|
10
|
+
"anime",
|
|
11
|
+
"product",
|
|
12
|
+
"portrait",
|
|
13
|
+
"landscape",
|
|
14
|
+
"abstract",
|
|
15
|
+
"fashion",
|
|
16
|
+
"food",
|
|
17
|
+
"architecture",
|
|
18
|
+
"custom"
|
|
19
|
+
];
|
|
20
|
+
var MOOD_PRESETS = [
|
|
21
|
+
"cinematic",
|
|
22
|
+
"dreamy",
|
|
23
|
+
"gritty",
|
|
24
|
+
"ethereal",
|
|
25
|
+
"nostalgic",
|
|
26
|
+
"futuristic",
|
|
27
|
+
"mysterious",
|
|
28
|
+
"peaceful",
|
|
29
|
+
"energetic",
|
|
30
|
+
"moody",
|
|
31
|
+
"dramatic",
|
|
32
|
+
"whimsical"
|
|
33
|
+
];
|
|
34
|
+
var STYLE_PRESETS = [
|
|
35
|
+
"photorealistic",
|
|
36
|
+
"anime",
|
|
37
|
+
"3d-render",
|
|
38
|
+
"oil-painting",
|
|
39
|
+
"watercolor",
|
|
40
|
+
"digital-art",
|
|
41
|
+
"comic-book",
|
|
42
|
+
"sketch",
|
|
43
|
+
"pixel-art",
|
|
44
|
+
"minimalist",
|
|
45
|
+
"cyberpunk",
|
|
46
|
+
"fantasy",
|
|
47
|
+
"retro",
|
|
48
|
+
"vintage"
|
|
49
|
+
];
|
|
50
|
+
var CAMERA_PRESETS = [
|
|
51
|
+
"wide-angle",
|
|
52
|
+
"macro",
|
|
53
|
+
"telephoto",
|
|
54
|
+
"drone",
|
|
55
|
+
"portrait",
|
|
56
|
+
"fisheye",
|
|
57
|
+
"tilt-shift",
|
|
58
|
+
"gopro",
|
|
59
|
+
"close-up",
|
|
60
|
+
"establishing",
|
|
61
|
+
"eye-level",
|
|
62
|
+
"low-angle",
|
|
63
|
+
"high-angle",
|
|
64
|
+
"dutch-angle"
|
|
65
|
+
];
|
|
66
|
+
var LIGHTING_PRESETS = [
|
|
67
|
+
"golden-hour",
|
|
68
|
+
"studio",
|
|
69
|
+
"neon",
|
|
70
|
+
"natural",
|
|
71
|
+
"dramatic",
|
|
72
|
+
"soft",
|
|
73
|
+
"backlit",
|
|
74
|
+
"rim-light",
|
|
75
|
+
"high-key",
|
|
76
|
+
"low-key",
|
|
77
|
+
"candlelight",
|
|
78
|
+
"moonlight",
|
|
79
|
+
"fluorescent",
|
|
80
|
+
"cinematic"
|
|
81
|
+
];
|
|
82
|
+
var SCENE_PRESETS = [
|
|
83
|
+
"indoor",
|
|
84
|
+
"outdoor",
|
|
85
|
+
"urban",
|
|
86
|
+
"nature",
|
|
87
|
+
"studio",
|
|
88
|
+
"underwater",
|
|
89
|
+
"space",
|
|
90
|
+
"abstract",
|
|
91
|
+
"industrial",
|
|
92
|
+
"domestic",
|
|
93
|
+
"beach",
|
|
94
|
+
"forest",
|
|
95
|
+
"city-skyline",
|
|
96
|
+
"desert"
|
|
97
|
+
];
|
|
98
|
+
var CATEGORY_LABELS = {
|
|
99
|
+
ads: "Ads & Marketing",
|
|
100
|
+
anime: "Anime & Manga",
|
|
101
|
+
product: "Product Photography",
|
|
102
|
+
portrait: "Portraits",
|
|
103
|
+
landscape: "Landscapes",
|
|
104
|
+
abstract: "Abstract Art",
|
|
105
|
+
fashion: "Fashion",
|
|
106
|
+
food: "Food & Culinary",
|
|
107
|
+
architecture: "Architecture",
|
|
108
|
+
custom: "Custom"
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
Object.defineProperty(exports, "CONNECTION_RULES", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunkP7K5LM6V_js.CONNECTION_RULES; }
|
|
114
|
+
});
|
|
115
|
+
Object.defineProperty(exports, "HandleTypeEnum", {
|
|
116
|
+
enumerable: true,
|
|
117
|
+
get: function () { return chunkP7K5LM6V_js.HandleTypeEnum; }
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "KlingQuality", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function () { return chunkP7K5LM6V_js.KlingQuality; }
|
|
122
|
+
});
|
|
123
|
+
Object.defineProperty(exports, "ModelCapabilityEnum", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () { return chunkP7K5LM6V_js.ModelCapabilityEnum; }
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(exports, "ModelUseCaseEnum", {
|
|
128
|
+
enumerable: true,
|
|
129
|
+
get: function () { return chunkP7K5LM6V_js.ModelUseCaseEnum; }
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "NODE_DEFINITIONS", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () { return chunkP7K5LM6V_js.NODE_DEFINITIONS; }
|
|
134
|
+
});
|
|
135
|
+
Object.defineProperty(exports, "NODE_ORDER", {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () { return chunkP7K5LM6V_js.NODE_ORDER; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "NodeCategoryEnum", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunkP7K5LM6V_js.NodeCategoryEnum; }
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "NodeStatusEnum", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return chunkP7K5LM6V_js.NodeStatusEnum; }
|
|
146
|
+
});
|
|
147
|
+
Object.defineProperty(exports, "NodeTypeEnum", {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: function () { return chunkP7K5LM6V_js.NodeTypeEnum; }
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "ProcessingNodeType", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return chunkP7K5LM6V_js.ProcessingNodeType; }
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "ProviderTypeEnum", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () { return chunkP7K5LM6V_js.ProviderTypeEnum; }
|
|
158
|
+
});
|
|
159
|
+
Object.defineProperty(exports, "ReframeNodeType", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
get: function () { return chunkP7K5LM6V_js.ReframeNodeType; }
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "TemplateCategory", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkP7K5LM6V_js.TemplateCategory; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "UpscaleNodeType", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkP7K5LM6V_js.UpscaleNodeType; }
|
|
170
|
+
});
|
|
171
|
+
Object.defineProperty(exports, "getNodesByCategory", {
|
|
172
|
+
enumerable: true,
|
|
173
|
+
get: function () { return chunkP7K5LM6V_js.getNodesByCategory; }
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "EdgeStyleEnum", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function () { return chunkKXAKQO3U_js.EdgeStyleEnum; }
|
|
178
|
+
});
|
|
179
|
+
exports.CAMERA_PRESETS = CAMERA_PRESETS;
|
|
180
|
+
exports.CATEGORY_LABELS = CATEGORY_LABELS;
|
|
181
|
+
exports.LIGHTING_PRESETS = LIGHTING_PRESETS;
|
|
182
|
+
exports.MOOD_PRESETS = MOOD_PRESETS;
|
|
183
|
+
exports.PROMPT_CATEGORIES = PROMPT_CATEGORIES;
|
|
184
|
+
exports.SCENE_PRESETS = SCENE_PRESETS;
|
|
185
|
+
exports.STYLE_PRESETS = STYLE_PRESETS;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export { CONNECTION_RULES, HandleTypeEnum, KlingQuality, ModelCapabilityEnum, ModelUseCaseEnum, NODE_DEFINITIONS, NODE_ORDER, NodeCategoryEnum, NodeStatusEnum, NodeTypeEnum, ProcessingNodeType, ProviderTypeEnum, ReframeNodeType, TemplateCategory, UpscaleNodeType, getNodesByCategory } from './chunk-OGJX4J7H.mjs';
|
|
2
|
+
export { EdgeStyleEnum } from './chunk-WT2F5CAF.mjs';
|
|
3
|
+
import './chunk-7NJUD2WZ.mjs';
|
|
4
|
+
|
|
5
|
+
// src/prompts.ts
|
|
6
|
+
var PROMPT_CATEGORIES = [
|
|
7
|
+
"ads",
|
|
8
|
+
"anime",
|
|
9
|
+
"product",
|
|
10
|
+
"portrait",
|
|
11
|
+
"landscape",
|
|
12
|
+
"abstract",
|
|
13
|
+
"fashion",
|
|
14
|
+
"food",
|
|
15
|
+
"architecture",
|
|
16
|
+
"custom"
|
|
17
|
+
];
|
|
18
|
+
var MOOD_PRESETS = [
|
|
19
|
+
"cinematic",
|
|
20
|
+
"dreamy",
|
|
21
|
+
"gritty",
|
|
22
|
+
"ethereal",
|
|
23
|
+
"nostalgic",
|
|
24
|
+
"futuristic",
|
|
25
|
+
"mysterious",
|
|
26
|
+
"peaceful",
|
|
27
|
+
"energetic",
|
|
28
|
+
"moody",
|
|
29
|
+
"dramatic",
|
|
30
|
+
"whimsical"
|
|
31
|
+
];
|
|
32
|
+
var STYLE_PRESETS = [
|
|
33
|
+
"photorealistic",
|
|
34
|
+
"anime",
|
|
35
|
+
"3d-render",
|
|
36
|
+
"oil-painting",
|
|
37
|
+
"watercolor",
|
|
38
|
+
"digital-art",
|
|
39
|
+
"comic-book",
|
|
40
|
+
"sketch",
|
|
41
|
+
"pixel-art",
|
|
42
|
+
"minimalist",
|
|
43
|
+
"cyberpunk",
|
|
44
|
+
"fantasy",
|
|
45
|
+
"retro",
|
|
46
|
+
"vintage"
|
|
47
|
+
];
|
|
48
|
+
var CAMERA_PRESETS = [
|
|
49
|
+
"wide-angle",
|
|
50
|
+
"macro",
|
|
51
|
+
"telephoto",
|
|
52
|
+
"drone",
|
|
53
|
+
"portrait",
|
|
54
|
+
"fisheye",
|
|
55
|
+
"tilt-shift",
|
|
56
|
+
"gopro",
|
|
57
|
+
"close-up",
|
|
58
|
+
"establishing",
|
|
59
|
+
"eye-level",
|
|
60
|
+
"low-angle",
|
|
61
|
+
"high-angle",
|
|
62
|
+
"dutch-angle"
|
|
63
|
+
];
|
|
64
|
+
var LIGHTING_PRESETS = [
|
|
65
|
+
"golden-hour",
|
|
66
|
+
"studio",
|
|
67
|
+
"neon",
|
|
68
|
+
"natural",
|
|
69
|
+
"dramatic",
|
|
70
|
+
"soft",
|
|
71
|
+
"backlit",
|
|
72
|
+
"rim-light",
|
|
73
|
+
"high-key",
|
|
74
|
+
"low-key",
|
|
75
|
+
"candlelight",
|
|
76
|
+
"moonlight",
|
|
77
|
+
"fluorescent",
|
|
78
|
+
"cinematic"
|
|
79
|
+
];
|
|
80
|
+
var SCENE_PRESETS = [
|
|
81
|
+
"indoor",
|
|
82
|
+
"outdoor",
|
|
83
|
+
"urban",
|
|
84
|
+
"nature",
|
|
85
|
+
"studio",
|
|
86
|
+
"underwater",
|
|
87
|
+
"space",
|
|
88
|
+
"abstract",
|
|
89
|
+
"industrial",
|
|
90
|
+
"domestic",
|
|
91
|
+
"beach",
|
|
92
|
+
"forest",
|
|
93
|
+
"city-skyline",
|
|
94
|
+
"desert"
|
|
95
|
+
];
|
|
96
|
+
var CATEGORY_LABELS = {
|
|
97
|
+
ads: "Ads & Marketing",
|
|
98
|
+
anime: "Anime & Manga",
|
|
99
|
+
product: "Product Photography",
|
|
100
|
+
portrait: "Portraits",
|
|
101
|
+
landscape: "Landscapes",
|
|
102
|
+
abstract: "Abstract Art",
|
|
103
|
+
fashion: "Fashion",
|
|
104
|
+
food: "Food & Culinary",
|
|
105
|
+
architecture: "Architecture",
|
|
106
|
+
custom: "Custom"
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export { CAMERA_PRESETS, CATEGORY_LABELS, LIGHTING_PRESETS, MOOD_PRESETS, PROMPT_CATEGORIES, SCENE_PRESETS, STYLE_PRESETS };
|
package/dist/nodes.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { i as NodeType, k as NodeCategory, b as HandleDefinition, aH as WorkflowNodeData } from './union-CtYAY8Mv.mjs';
|
|
2
|
+
export { ab as AnimationNodeData, as as AnnotationNodeData, ar as AnnotationShapeData, s as AspectRatio, ad as AudioCodec, A as AudioInputNodeData, o as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, a4 as CameraMovement, a6 as CharacterOrientation, aa as CubicBezier, az as DownloadNodeData, a9 as EasingPreset, ai as FrameSelectionMode, ap as GridOutputFormat, G as GridPosition, a as HandleType, H as HandleTypeEnum, ax as ImageCompareNodeData, E as ImageGenNodeData, aq as ImageGridSplitNodeData, I as ImageInputNodeData, q as ImageModel, K as KlingQuality, a5 as KlingQualityMode, Q as LLMNodeData, X as LipSyncMode, W as LipSyncModel, Y as LipSyncNodeData, L as LumaAspectRatio, w as LumaReframeModel, e as ModelCapability, M as ModelCapabilityEnum, g as ModelUseCase, f as ModelUseCaseEnum, a3 as MotionControlMode, a8 as MotionControlNodeData, j as NodeCategoryEnum, m as NodeStatus, l as NodeStatusEnum, N as NodeTypeEnum, O as OutputFormat, aw as OutputGalleryNodeData, ay as OutputInputType, aA as OutputNodeData, ae as OutputQuality, p as PromptConstructorNodeData, n as PromptNodeData, h as ProviderModel, d as ProviderType, c as ProviderTypeEnum, ak as ReframeInputType, al as ReframeNodeData, ag as ResizeNodeData, t as Resolution, S as SelectedModel, av as SubtitleNodeData, au as SubtitlePosition, at as SubtitleStyle, _ as TTSProvider, $ as TTSVoice, J as TextModel, a0 as TextToSpeechNodeData, x as TopazEnhanceModel, y as TopazUpscaleFactor, D as TopazVideoFPS, z as TopazVideoResolution, a7 as TrajectoryPoint, a1 as TranscribeLanguage, a2 as TranscribeNodeData, ac as TransitionType, am as UpscaleInputType, an as UpscaleModel, ao as UpscaleNodeData, v as VideoDuration, aj as VideoFrameExtractNodeData, F as VideoGenNodeData, V as VideoInputNodeData, r as VideoModel, u as VideoResolution, af as VideoStitchNodeData, ah as VideoTrimNodeData, Z as VoiceChangeNodeData, aK as WorkflowEdge, aJ as WorkflowEdgeData, aB as WorkflowInputNodeData, aF as WorkflowInterface, aD as WorkflowInterfaceInput, aE as WorkflowInterfaceOutput, aI as WorkflowNode, aC as WorkflowOutputNodeData, aG as WorkflowRefNodeData } from './union-CtYAY8Mv.mjs';
|
|
3
|
+
import '@xyflow/react';
|
|
4
|
+
|
|
5
|
+
interface NodeDefinition {
|
|
6
|
+
type: NodeType;
|
|
7
|
+
label: string;
|
|
8
|
+
description: string;
|
|
9
|
+
category: NodeCategory;
|
|
10
|
+
icon: string;
|
|
11
|
+
inputs: HandleDefinition[];
|
|
12
|
+
outputs: HandleDefinition[];
|
|
13
|
+
defaultData: Partial<WorkflowNodeData>;
|
|
14
|
+
}
|
|
15
|
+
declare const NODE_DEFINITIONS: Record<NodeType, NodeDefinition>;
|
|
16
|
+
declare const NODE_ORDER: Record<NodeCategory, NodeType[]>;
|
|
17
|
+
declare function getNodesByCategory(): Record<NodeCategory, NodeDefinition[]>;
|
|
18
|
+
|
|
19
|
+
export { HandleDefinition, NODE_DEFINITIONS, NODE_ORDER, NodeCategory, type NodeDefinition, NodeType, WorkflowNodeData, getNodesByCategory };
|
package/dist/nodes.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { i as NodeType, k as NodeCategory, b as HandleDefinition, aH as WorkflowNodeData } from './union-CtYAY8Mv.js';
|
|
2
|
+
export { ab as AnimationNodeData, as as AnnotationNodeData, ar as AnnotationShapeData, s as AspectRatio, ad as AudioCodec, A as AudioInputNodeData, o as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, a4 as CameraMovement, a6 as CharacterOrientation, aa as CubicBezier, az as DownloadNodeData, a9 as EasingPreset, ai as FrameSelectionMode, ap as GridOutputFormat, G as GridPosition, a as HandleType, H as HandleTypeEnum, ax as ImageCompareNodeData, E as ImageGenNodeData, aq as ImageGridSplitNodeData, I as ImageInputNodeData, q as ImageModel, K as KlingQuality, a5 as KlingQualityMode, Q as LLMNodeData, X as LipSyncMode, W as LipSyncModel, Y as LipSyncNodeData, L as LumaAspectRatio, w as LumaReframeModel, e as ModelCapability, M as ModelCapabilityEnum, g as ModelUseCase, f as ModelUseCaseEnum, a3 as MotionControlMode, a8 as MotionControlNodeData, j as NodeCategoryEnum, m as NodeStatus, l as NodeStatusEnum, N as NodeTypeEnum, O as OutputFormat, aw as OutputGalleryNodeData, ay as OutputInputType, aA as OutputNodeData, ae as OutputQuality, p as PromptConstructorNodeData, n as PromptNodeData, h as ProviderModel, d as ProviderType, c as ProviderTypeEnum, ak as ReframeInputType, al as ReframeNodeData, ag as ResizeNodeData, t as Resolution, S as SelectedModel, av as SubtitleNodeData, au as SubtitlePosition, at as SubtitleStyle, _ as TTSProvider, $ as TTSVoice, J as TextModel, a0 as TextToSpeechNodeData, x as TopazEnhanceModel, y as TopazUpscaleFactor, D as TopazVideoFPS, z as TopazVideoResolution, a7 as TrajectoryPoint, a1 as TranscribeLanguage, a2 as TranscribeNodeData, ac as TransitionType, am as UpscaleInputType, an as UpscaleModel, ao as UpscaleNodeData, v as VideoDuration, aj as VideoFrameExtractNodeData, F as VideoGenNodeData, V as VideoInputNodeData, r as VideoModel, u as VideoResolution, af as VideoStitchNodeData, ah as VideoTrimNodeData, Z as VoiceChangeNodeData, aK as WorkflowEdge, aJ as WorkflowEdgeData, aB as WorkflowInputNodeData, aF as WorkflowInterface, aD as WorkflowInterfaceInput, aE as WorkflowInterfaceOutput, aI as WorkflowNode, aC as WorkflowOutputNodeData, aG as WorkflowRefNodeData } from './union-CtYAY8Mv.js';
|
|
3
|
+
import '@xyflow/react';
|
|
4
|
+
|
|
5
|
+
interface NodeDefinition {
|
|
6
|
+
type: NodeType;
|
|
7
|
+
label: string;
|
|
8
|
+
description: string;
|
|
9
|
+
category: NodeCategory;
|
|
10
|
+
icon: string;
|
|
11
|
+
inputs: HandleDefinition[];
|
|
12
|
+
outputs: HandleDefinition[];
|
|
13
|
+
defaultData: Partial<WorkflowNodeData>;
|
|
14
|
+
}
|
|
15
|
+
declare const NODE_DEFINITIONS: Record<NodeType, NodeDefinition>;
|
|
16
|
+
declare const NODE_ORDER: Record<NodeCategory, NodeType[]>;
|
|
17
|
+
declare function getNodesByCategory(): Record<NodeCategory, NodeDefinition[]>;
|
|
18
|
+
|
|
19
|
+
export { HandleDefinition, NODE_DEFINITIONS, NODE_ORDER, NodeCategory, type NodeDefinition, NodeType, WorkflowNodeData, getNodesByCategory };
|
package/dist/nodes.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP7K5LM6V_js = require('./chunk-P7K5LM6V.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "CONNECTION_RULES", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkP7K5LM6V_js.CONNECTION_RULES; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "HandleTypeEnum", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkP7K5LM6V_js.HandleTypeEnum; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "KlingQuality", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkP7K5LM6V_js.KlingQuality; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "ModelCapabilityEnum", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkP7K5LM6V_js.ModelCapabilityEnum; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "ModelUseCaseEnum", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkP7K5LM6V_js.ModelUseCaseEnum; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "NODE_DEFINITIONS", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkP7K5LM6V_js.NODE_DEFINITIONS; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "NODE_ORDER", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunkP7K5LM6V_js.NODE_ORDER; }
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(exports, "NodeCategoryEnum", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function () { return chunkP7K5LM6V_js.NodeCategoryEnum; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "NodeStatusEnum", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkP7K5LM6V_js.NodeStatusEnum; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "NodeTypeEnum", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkP7K5LM6V_js.NodeTypeEnum; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "ProviderTypeEnum", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkP7K5LM6V_js.ProviderTypeEnum; }
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, "getNodesByCategory", {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () { return chunkP7K5LM6V_js.getNodesByCategory; }
|
|
54
|
+
});
|
package/dist/nodes.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CONNECTION_RULES, HandleTypeEnum, KlingQuality, ModelCapabilityEnum, ModelUseCaseEnum, NODE_DEFINITIONS, NODE_ORDER, NodeCategoryEnum, NodeStatusEnum, NodeTypeEnum, ProviderTypeEnum, getNodesByCategory } from './chunk-OGJX4J7H.mjs';
|