@genfeedai/types 0.2.2 → 0.3.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-KXAKQO3U.js → chunk-74STGUJY.js} +2 -0
- package/dist/chunk-74STGUJY.js.map +1 -0
- package/dist/{chunk-WT2F5CAF.mjs → chunk-CVFAILC4.mjs} +2 -0
- package/dist/chunk-CVFAILC4.mjs.map +1 -0
- package/dist/chunk-DVR3GE4F.js +4 -0
- package/dist/chunk-DVR3GE4F.js.map +1 -0
- package/dist/chunk-G2BD5ZTF.mjs +3 -0
- package/dist/chunk-G2BD5ZTF.mjs.map +1 -0
- package/dist/{chunk-P4XY3T5T.js → chunk-MRTGK3CK.js} +601 -578
- package/dist/chunk-MRTGK3CK.js.map +1 -0
- package/dist/{chunk-QNWQE2LJ.mjs → chunk-ZMENGANG.mjs} +601 -578
- package/dist/chunk-ZMENGANG.mjs.map +1 -0
- package/dist/comfyui.d.mts +44 -44
- package/dist/comfyui.d.ts +44 -44
- package/dist/comfyui.js +3 -1
- package/dist/comfyui.js.map +1 -0
- package/dist/comfyui.mjs +3 -1
- package/dist/comfyui.mjs.map +1 -0
- package/dist/index.d.mts +341 -3
- package/dist/index.d.ts +341 -3
- package/dist/index.js +28 -26
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -0
- package/dist/nodes.d.mts +2 -2
- package/dist/nodes.d.ts +2 -2
- package/dist/nodes.js +15 -13
- package/dist/nodes.js.map +1 -0
- package/dist/nodes.mjs +3 -1
- package/dist/nodes.mjs.map +1 -0
- package/dist/replicate.js +2 -0
- package/dist/replicate.js.map +1 -0
- package/dist/replicate.mjs +2 -0
- package/dist/replicate.mjs.map +1 -0
- package/dist/{union-BVaWc1Cx.d.mts → union-D5EesBEB.d.mts} +142 -142
- package/dist/{union-BVaWc1Cx.d.ts → union-D5EesBEB.d.ts} +142 -142
- package/dist/{workflow-B_Q38s-U.d.ts → workflow-Cd_F9hZk.d.ts} +1 -1
- package/dist/{workflow-BbAp7VSK.d.mts → workflow-D9M1Yoiy.d.mts} +1 -1
- package/dist/workflow.d.mts +2 -2
- package/dist/workflow.d.ts +2 -2
- package/dist/workflow.js +4 -2
- package/dist/workflow.js.map +1 -0
- package/dist/workflow.mjs +3 -1
- package/dist/workflow.mjs.map +1 -0
- package/package.json +37 -37
- package/src/replicate/schemas.json +319 -319
- package/dist/chunk-7NJUD2WZ.mjs +0 -1
- package/dist/chunk-RNGYPX4W.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ComfyUIHistoryEntry, ComfyUIHistoryResponse, ComfyUINode, ComfyUINodeOutput, ComfyUIOutputFile, ComfyUIPrompt, ComfyUIPromptStatus, ComfyUIQueuePromptResponse, ComfyUITemplateInput, ComfyUIWorkflowTemplate } from './comfyui.js';
|
|
2
|
-
|
|
3
|
-
export {
|
|
2
|
+
import { K as KlingQuality, R as ReframeNodeType, U as UpscaleNodeType } from './union-D5EesBEB.js';
|
|
3
|
+
export { A as AnimationNodeData, b as AnnotationNodeData, c as AnnotationShapeData, d as AspectRatio, e as AudioCodec, f as AudioInputNodeData, g as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, h as CameraMovement, i as CharacterOrientation, j as CubicBezier, D as DownloadNodeData, E as EasingPreset, F as FrameSelectionMode, G as GridOutputFormat, k as GridPosition, H as HandleDefinition, l as HandleType, m as HandleTypeEnum, I as ImageCompareNodeData, n as ImageGenNodeData, o as ImageGridSplitNodeData, p as ImageInputNodeData, q as ImageModel, r as KlingQualityMode, L as LLMNodeData, s as LipSyncMode, t as LipSyncModel, u as LipSyncNodeData, v as LumaAspectRatio, w as LumaReframeModel, M as ModelCapability, x as ModelCapabilityEnum, y as ModelUseCase, z as ModelUseCaseEnum, J as MotionControlMode, O as MotionControlNodeData, P as NodeCategory, Q as NodeCategoryEnum, S as NodeStatus, T as NodeStatusEnum, N as NodeType, V as NodeTypeEnum, X as OutputFormat, Y as OutputGalleryNodeData, Z as OutputInputType, _ as OutputNodeData, $ as OutputQuality, a0 as ProcessingNodeType, a1 as PromptConstructorNodeData, a2 as PromptNodeData, a3 as ProviderModel, a4 as ProviderType, a5 as ProviderTypeEnum, a6 as ReframeInputType, a7 as ReframeNodeData, a8 as ResizeNodeData, a9 as Resolution, aa as SelectedModel, ab as SubtitleNodeData, ac as SubtitlePosition, ad as SubtitleStyle, ae as TTSProvider, af as TTSVoice, ag as TextModel, ah as TextToSpeechNodeData, ai as TopazEnhanceModel, aj as TopazUpscaleFactor, ak as TopazVideoFPS, al as TopazVideoResolution, am as TrajectoryPoint, an as TranscribeLanguage, ao as TranscribeNodeData, ap as TransitionType, aq as UpscaleInputType, ar as UpscaleModel, as as UpscaleNodeData, at as VideoDuration, au as VideoFrameExtractNodeData, av as VideoGenNodeData, aw as VideoInputNodeData, ax as VideoModel, ay as VideoResolution, az as VideoStitchNodeData, aA as VideoTrimNodeData, aB as VoiceChangeNodeData, a as WorkflowEdge, aC as WorkflowEdgeData, aD as WorkflowInputNodeData, aE as WorkflowInterface, aF as WorkflowInterfaceInput, aG as WorkflowInterfaceOutput, W as WorkflowNode, aH as WorkflowNodeData, aI as WorkflowOutputNodeData, aJ as WorkflowRefNodeData, aK as WorkflowTemplateCategory } from './union-D5EesBEB.js';
|
|
4
|
+
export { E as EdgeStyle, a as EdgeStyleEnum, b as ExecutionResult, G as GroupColor, N as NodeGroup, T as TemplateEdge, c as TemplateNode, V as ValidationError, d as ValidationResult, W as WorkflowFile, e as WorkflowTemplate } from './workflow-Cd_F9hZk.js';
|
|
4
5
|
export { NODE_DEFINITIONS, NODE_ORDER, NodeDefinition, getNodesByCategory } from './nodes.js';
|
|
5
6
|
import '@xyflow/react';
|
|
6
7
|
|
|
@@ -30,6 +31,80 @@ interface CostSummary {
|
|
|
30
31
|
variance: number;
|
|
31
32
|
}
|
|
32
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Shared types for execution, job processing, and node I/O.
|
|
36
|
+
*/
|
|
37
|
+
/** Fields set during updateExecutionStatus — used as MongoDB $set payload. */
|
|
38
|
+
interface ExecutionStatusUpdate {
|
|
39
|
+
status: string;
|
|
40
|
+
error?: string;
|
|
41
|
+
startedAt?: Date;
|
|
42
|
+
completedAt?: Date;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Generic node output stored in execution nodeResults.
|
|
46
|
+
* Each node type writes different keys (image, video, text, etc.),
|
|
47
|
+
* so this is an open record with known optional fields.
|
|
48
|
+
*/
|
|
49
|
+
interface NodeOutput extends Record<string, unknown> {
|
|
50
|
+
image?: string;
|
|
51
|
+
images?: string[];
|
|
52
|
+
video?: string;
|
|
53
|
+
text?: string;
|
|
54
|
+
audio?: string;
|
|
55
|
+
localPath?: string;
|
|
56
|
+
localPaths?: string[];
|
|
57
|
+
saveError?: string;
|
|
58
|
+
imageCount?: number;
|
|
59
|
+
}
|
|
60
|
+
/** Metadata saved alongside a debug job to record the would-be API call. */
|
|
61
|
+
interface DebugPayload {
|
|
62
|
+
model: string;
|
|
63
|
+
input: Record<string, unknown>;
|
|
64
|
+
timestamp: string;
|
|
65
|
+
}
|
|
66
|
+
/** A node waiting in the execution queue with its dependencies. */
|
|
67
|
+
interface PendingNode {
|
|
68
|
+
nodeId: string;
|
|
69
|
+
nodeType: string;
|
|
70
|
+
nodeData: Record<string, unknown>;
|
|
71
|
+
dependsOn: string[];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Represents a Replicate model's input schema (JSON Schema subset).
|
|
75
|
+
* Used by SchemaMapperService to map canonical field names to model-specific ones.
|
|
76
|
+
*/
|
|
77
|
+
interface ModelInputSchema extends Record<string, unknown> {
|
|
78
|
+
properties?: Record<string, SchemaProperty>;
|
|
79
|
+
required?: string[];
|
|
80
|
+
type?: string;
|
|
81
|
+
}
|
|
82
|
+
/** A single property in a model input schema. */
|
|
83
|
+
interface SchemaProperty extends Record<string, unknown> {
|
|
84
|
+
type?: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
default?: unknown;
|
|
87
|
+
enum?: unknown[];
|
|
88
|
+
minimum?: number;
|
|
89
|
+
maximum?: number;
|
|
90
|
+
}
|
|
91
|
+
/** Fields set during updateJobStatus — used as MongoDB $set payload. */
|
|
92
|
+
interface JobStatusUpdatePayload {
|
|
93
|
+
status: string;
|
|
94
|
+
processedAt?: Date;
|
|
95
|
+
finishedAt?: Date;
|
|
96
|
+
result?: NodeOutput;
|
|
97
|
+
error?: string;
|
|
98
|
+
failedReason?: string;
|
|
99
|
+
attemptsMade?: number;
|
|
100
|
+
}
|
|
101
|
+
/** Dynamic parameters from a model's input schema. */
|
|
102
|
+
type SchemaParams = Record<string, unknown>;
|
|
103
|
+
/** Input payload sent to the Replicate predictions API. */
|
|
104
|
+
type ReplicateModelInput = Record<string, unknown>;
|
|
105
|
+
/** MongoDB query filter object built dynamically from optional parameters. */
|
|
106
|
+
type MongoFilterQuery = Record<string, unknown>;
|
|
107
|
+
|
|
33
108
|
type ActionCategory = 'crud' | 'ai' | 'data' | 'validation';
|
|
34
109
|
type CrudAction = 'add' | 'duplicate' | 'delete' | 'reorder';
|
|
35
110
|
type AIAction = 'enhance' | 'generate' | 'suggest';
|
|
@@ -231,6 +306,269 @@ interface KeyValueListProps {
|
|
|
231
306
|
className?: string;
|
|
232
307
|
}
|
|
233
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Job data types for BullMQ queue processing.
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
interface BaseJobData {
|
|
314
|
+
executionId: string;
|
|
315
|
+
workflowId: string;
|
|
316
|
+
timestamp: string;
|
|
317
|
+
/** Debug mode - skip API calls and return mock data */
|
|
318
|
+
debugMode?: boolean;
|
|
319
|
+
}
|
|
320
|
+
interface WorkflowJobData extends BaseJobData {
|
|
321
|
+
/** Selected node IDs for partial execution (empty = execute all) */
|
|
322
|
+
selectedNodeIds?: string[];
|
|
323
|
+
}
|
|
324
|
+
interface NodeJobData extends BaseJobData {
|
|
325
|
+
nodeId: string;
|
|
326
|
+
nodeType: string;
|
|
327
|
+
nodeData: Record<string, unknown>;
|
|
328
|
+
dependsOn?: string[];
|
|
329
|
+
}
|
|
330
|
+
interface SelectedModelInfo {
|
|
331
|
+
provider: string;
|
|
332
|
+
modelId: string;
|
|
333
|
+
displayName?: string;
|
|
334
|
+
inputSchema?: ModelInputSchema;
|
|
335
|
+
}
|
|
336
|
+
interface ImageJobData extends NodeJobData {
|
|
337
|
+
nodeType: 'imageGen';
|
|
338
|
+
nodeData: {
|
|
339
|
+
model: 'nano-banana' | 'nano-banana-pro';
|
|
340
|
+
prompt?: string;
|
|
341
|
+
inputPrompt?: string;
|
|
342
|
+
inputImages?: string[];
|
|
343
|
+
aspectRatio?: string;
|
|
344
|
+
resolution?: string;
|
|
345
|
+
outputFormat?: string;
|
|
346
|
+
selectedModel?: SelectedModelInfo;
|
|
347
|
+
schemaParams?: SchemaParams;
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
interface VideoJobData extends NodeJobData {
|
|
351
|
+
nodeType: 'videoGen';
|
|
352
|
+
nodeData: {
|
|
353
|
+
model: 'veo-3.1-fast' | 'veo-3.1';
|
|
354
|
+
prompt?: string;
|
|
355
|
+
inputPrompt?: string;
|
|
356
|
+
image?: string;
|
|
357
|
+
inputImage?: string;
|
|
358
|
+
lastFrame?: string;
|
|
359
|
+
referenceImages?: string[];
|
|
360
|
+
duration?: number;
|
|
361
|
+
aspectRatio?: string;
|
|
362
|
+
resolution?: string;
|
|
363
|
+
generateAudio?: boolean;
|
|
364
|
+
negativePrompt?: string;
|
|
365
|
+
seed?: number;
|
|
366
|
+
selectedModel?: SelectedModelInfo;
|
|
367
|
+
schemaParams?: SchemaParams;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
type LLMProvider = 'replicate' | 'ollama';
|
|
371
|
+
interface LLMJobData extends NodeJobData {
|
|
372
|
+
nodeType: 'llm';
|
|
373
|
+
nodeData: {
|
|
374
|
+
prompt?: string;
|
|
375
|
+
inputPrompt?: string;
|
|
376
|
+
systemPrompt?: string;
|
|
377
|
+
maxTokens?: number;
|
|
378
|
+
temperature?: number;
|
|
379
|
+
topP?: number;
|
|
380
|
+
provider?: LLMProvider;
|
|
381
|
+
ollamaModel?: string;
|
|
382
|
+
selectedModel?: SelectedModelInfo;
|
|
383
|
+
schemaParams?: SchemaParams;
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
interface MotionControlJobData extends NodeJobData {
|
|
387
|
+
nodeType: 'motionControl';
|
|
388
|
+
nodeData: {
|
|
389
|
+
image: string;
|
|
390
|
+
inputImage?: string;
|
|
391
|
+
video?: string;
|
|
392
|
+
inputVideo?: string;
|
|
393
|
+
prompt?: string;
|
|
394
|
+
inputPrompt?: string;
|
|
395
|
+
mode: 'trajectory' | 'camera' | 'combined' | 'video_transfer';
|
|
396
|
+
duration: 5 | 10;
|
|
397
|
+
aspectRatio: '16:9' | '9:16' | '1:1';
|
|
398
|
+
trajectoryPoints?: Array<{
|
|
399
|
+
x: number;
|
|
400
|
+
y: number;
|
|
401
|
+
frame: number;
|
|
402
|
+
}>;
|
|
403
|
+
cameraMovement?: string;
|
|
404
|
+
cameraIntensity?: number;
|
|
405
|
+
motionStrength?: number;
|
|
406
|
+
negativePrompt?: string;
|
|
407
|
+
seed?: number;
|
|
408
|
+
keepOriginalSound?: boolean;
|
|
409
|
+
characterOrientation?: 'from_image' | 'left' | 'right';
|
|
410
|
+
qualityMode?: KlingQuality;
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
interface ReframeJobData extends NodeJobData {
|
|
414
|
+
nodeType: ReframeNodeType;
|
|
415
|
+
nodeData: {
|
|
416
|
+
inputType: 'image' | 'video';
|
|
417
|
+
image?: string;
|
|
418
|
+
video?: string;
|
|
419
|
+
aspectRatio: string;
|
|
420
|
+
model?: 'photon-flash-1' | 'photon-1';
|
|
421
|
+
prompt?: string;
|
|
422
|
+
gridPosition?: {
|
|
423
|
+
x: number;
|
|
424
|
+
y: number;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
interface UpscaleJobData extends NodeJobData {
|
|
429
|
+
nodeType: UpscaleNodeType;
|
|
430
|
+
nodeData: {
|
|
431
|
+
inputType: 'image' | 'video';
|
|
432
|
+
image?: string;
|
|
433
|
+
video?: string;
|
|
434
|
+
model: string;
|
|
435
|
+
enhanceModel?: string;
|
|
436
|
+
upscaleFactor?: string;
|
|
437
|
+
outputFormat?: string;
|
|
438
|
+
faceEnhancement?: boolean;
|
|
439
|
+
faceEnhancementStrength?: number;
|
|
440
|
+
faceEnhancementCreativity?: number;
|
|
441
|
+
targetResolution?: string;
|
|
442
|
+
targetFps?: number;
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
interface VideoFrameExtractJobData extends NodeJobData {
|
|
446
|
+
nodeType: 'videoFrameExtract';
|
|
447
|
+
nodeData: {
|
|
448
|
+
video: string;
|
|
449
|
+
selectionMode: 'first' | 'last' | 'timestamp' | 'percentage';
|
|
450
|
+
timestampSeconds?: number;
|
|
451
|
+
percentagePosition?: number;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
interface LipSyncJobData extends NodeJobData {
|
|
455
|
+
nodeType: 'lipSync';
|
|
456
|
+
nodeData: {
|
|
457
|
+
image?: string;
|
|
458
|
+
video?: string;
|
|
459
|
+
audio?: string;
|
|
460
|
+
inputImage?: string;
|
|
461
|
+
inputVideo?: string;
|
|
462
|
+
inputAudio?: string;
|
|
463
|
+
model: 'sync/lipsync-2' | 'sync/lipsync-2-pro' | 'pixverse/lipsync';
|
|
464
|
+
syncMode?: 'loop' | 'bounce' | 'cut_off' | 'silence' | 'remap';
|
|
465
|
+
temperature?: number;
|
|
466
|
+
activeSpeaker?: boolean;
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
interface VoiceChangeJobData extends NodeJobData {
|
|
470
|
+
nodeType: 'voiceChange';
|
|
471
|
+
nodeData: {
|
|
472
|
+
video: string;
|
|
473
|
+
audio: string;
|
|
474
|
+
preserveOriginalAudio?: boolean;
|
|
475
|
+
audioMixLevel?: number;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
interface TextToSpeechJobData extends NodeJobData {
|
|
479
|
+
nodeType: 'textToSpeech';
|
|
480
|
+
nodeData: {
|
|
481
|
+
text?: string;
|
|
482
|
+
inputText?: string;
|
|
483
|
+
provider: 'elevenlabs' | 'openai';
|
|
484
|
+
voice: string;
|
|
485
|
+
stability?: number;
|
|
486
|
+
similarityBoost?: number;
|
|
487
|
+
speed?: number;
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
interface TranscribeJobData extends NodeJobData {
|
|
491
|
+
nodeType: 'transcribe';
|
|
492
|
+
nodeData: {
|
|
493
|
+
video?: string;
|
|
494
|
+
audio?: string;
|
|
495
|
+
inputVideo?: string;
|
|
496
|
+
inputAudio?: string;
|
|
497
|
+
language: string;
|
|
498
|
+
timestamps: boolean;
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
interface SubtitleJobData extends NodeJobData {
|
|
502
|
+
nodeType: 'subtitle';
|
|
503
|
+
nodeData: {
|
|
504
|
+
video: string;
|
|
505
|
+
text: string;
|
|
506
|
+
style: 'default' | 'modern' | 'minimal' | 'bold';
|
|
507
|
+
position: 'top' | 'center' | 'bottom';
|
|
508
|
+
fontSize: number;
|
|
509
|
+
fontColor: string;
|
|
510
|
+
backgroundColor: string | null;
|
|
511
|
+
fontFamily: string;
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
interface VideoStitchJobData extends NodeJobData {
|
|
515
|
+
nodeType: 'videoStitch';
|
|
516
|
+
nodeData: {
|
|
517
|
+
inputVideos: string[];
|
|
518
|
+
transitionType: 'cut' | 'crossfade' | 'wipe' | 'fade';
|
|
519
|
+
transitionDuration: number;
|
|
520
|
+
seamlessLoop: boolean;
|
|
521
|
+
audioCodec: 'aac' | 'mp3';
|
|
522
|
+
outputQuality: 'full' | 'draft';
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
interface WorkflowRefJobData extends NodeJobData {
|
|
526
|
+
nodeType: 'workflowRef';
|
|
527
|
+
nodeData: {
|
|
528
|
+
referencedWorkflowId: string;
|
|
529
|
+
inputMappings: Record<string, string | null>;
|
|
530
|
+
cachedInterface: {
|
|
531
|
+
inputs: Array<{
|
|
532
|
+
nodeId: string;
|
|
533
|
+
name: string;
|
|
534
|
+
type: string;
|
|
535
|
+
required: boolean;
|
|
536
|
+
}>;
|
|
537
|
+
outputs: Array<{
|
|
538
|
+
nodeId: string;
|
|
539
|
+
name: string;
|
|
540
|
+
type: string;
|
|
541
|
+
}>;
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
parentExecutionId: string;
|
|
545
|
+
parentNodeId: string;
|
|
546
|
+
depth: number;
|
|
547
|
+
}
|
|
548
|
+
type ProcessingJobData = ReframeJobData | UpscaleJobData | VideoFrameExtractJobData | LipSyncJobData | VoiceChangeJobData | TextToSpeechJobData | TranscribeJobData | SubtitleJobData | VideoStitchJobData | WorkflowRefJobData;
|
|
549
|
+
interface JobResult {
|
|
550
|
+
success: boolean;
|
|
551
|
+
output?: string | string[] | NodeOutput;
|
|
552
|
+
error?: string;
|
|
553
|
+
cost?: number;
|
|
554
|
+
predictTime?: number;
|
|
555
|
+
predictionId?: string;
|
|
556
|
+
}
|
|
557
|
+
interface JobProgress {
|
|
558
|
+
percent: number;
|
|
559
|
+
message?: string;
|
|
560
|
+
timestamp: string;
|
|
561
|
+
}
|
|
562
|
+
interface DLQJobData {
|
|
563
|
+
originalJobId: string;
|
|
564
|
+
originalQueue: string;
|
|
565
|
+
data: BaseJobData | NodeJobData;
|
|
566
|
+
error: string;
|
|
567
|
+
stack?: string;
|
|
568
|
+
attemptsMade: number;
|
|
569
|
+
failedAt: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
234
572
|
interface IStyleSettings {
|
|
235
573
|
mood?: string;
|
|
236
574
|
style?: string;
|
|
@@ -291,4 +629,4 @@ type LightingPreset = (typeof LIGHTING_PRESETS)[number];
|
|
|
291
629
|
type ScenePreset = (typeof SCENE_PRESETS)[number];
|
|
292
630
|
declare const CATEGORY_LABELS: Record<PromptCategory, string>;
|
|
293
631
|
|
|
294
|
-
export { type AIAction, type ActionCategory, type ActionConfig, type ActionMenuProps, type ActionToolbarProps, type ActionUIPattern, CAMERA_PRESETS, CATEGORY_LABELS, type CameraPreset, type CostBreakdown, type CostSummary, 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, type NodeCostEstimate, PROMPT_CATEGORIES, type PromptCategory, type RowHelpers, SCENE_PRESETS, STYLE_PRESETS, type ScenePreset, type StylePreset, type ToolbarOrientation, type ToolbarSize, type ToolbarVisibility, type ValidationAction };
|
|
632
|
+
export { type AIAction, type ActionCategory, type ActionConfig, type ActionMenuProps, type ActionToolbarProps, type ActionUIPattern, type BaseJobData, CAMERA_PRESETS, CATEGORY_LABELS, type CameraPreset, type CostBreakdown, type CostSummary, type CrudAction, type DLQJobData, type DataAction, type DebugPayload, type DimensionsGroupProps, type DimensionsValue, type DynamicListProps, type ExecutionStatusUpdate, type FieldWidth, type ICreatePrompt, type IPrompt, type IQueryPrompts, type IStyleSettings, type ImageJobData, type InputGroupActionType, type InputGroupFieldProps, type InputGroupHeaderProps, type InputGroupProps, type InputGroupRowProps, type InputGroupVariant, type JobProgress, type JobResult, type JobStatusUpdatePayload, type KeyValueListProps, type KeyValuePair, KlingQuality, LIGHTING_PRESETS, type LLMJobData, type LLMProvider, type LightingPreset, type LipSyncJobData, MOOD_PRESETS, type MenuAlign, type MenuSide, type ModelInputSchema, type MongoFilterQuery, type MoodPreset, type MotionControlJobData, type NodeCostEstimate, type NodeJobData, type NodeOutput, PROMPT_CATEGORIES, type PendingNode, type ProcessingJobData, type PromptCategory, type ReframeJobData, ReframeNodeType, type ReplicateModelInput, type RowHelpers, SCENE_PRESETS, STYLE_PRESETS, type ScenePreset, type SchemaParams, type SchemaProperty, type SelectedModelInfo, type StylePreset, type SubtitleJobData, type TextToSpeechJobData, type ToolbarOrientation, type ToolbarSize, type ToolbarVisibility, type TranscribeJobData, type UpscaleJobData, UpscaleNodeType, type ValidationAction, type VideoFrameExtractJobData, type VideoJobData, type VideoStitchJobData, type VoiceChangeJobData, type WorkflowJobData, type WorkflowRefJobData };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
3
|
+
require('./chunk-DVR3GE4F.js');
|
|
4
|
+
var chunkMRTGK3CK_js = require('./chunk-MRTGK3CK.js');
|
|
5
|
+
var chunk74STGUJY_js = require('./chunk-74STGUJY.js');
|
|
6
6
|
|
|
7
7
|
// src/prompts.ts
|
|
8
8
|
var PROMPT_CATEGORIES = [
|
|
@@ -96,85 +96,85 @@ var SCENE_PRESETS = [
|
|
|
96
96
|
"desert"
|
|
97
97
|
];
|
|
98
98
|
var CATEGORY_LABELS = {
|
|
99
|
+
abstract: "Abstract Art",
|
|
99
100
|
ads: "Ads & Marketing",
|
|
100
101
|
anime: "Anime & Manga",
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
landscape: "Landscapes",
|
|
104
|
-
abstract: "Abstract Art",
|
|
102
|
+
architecture: "Architecture",
|
|
103
|
+
custom: "Custom",
|
|
105
104
|
fashion: "Fashion",
|
|
106
105
|
food: "Food & Culinary",
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
landscape: "Landscapes",
|
|
107
|
+
portrait: "Portraits",
|
|
108
|
+
product: "Product Photography"
|
|
109
109
|
};
|
|
110
110
|
|
|
111
111
|
Object.defineProperty(exports, "CONNECTION_RULES", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkMRTGK3CK_js.CONNECTION_RULES; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "HandleTypeEnum", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkMRTGK3CK_js.HandleTypeEnum; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "KlingQuality", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkMRTGK3CK_js.KlingQuality; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "ModelCapabilityEnum", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkMRTGK3CK_js.ModelCapabilityEnum; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "ModelUseCaseEnum", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkMRTGK3CK_js.ModelUseCaseEnum; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "NODE_DEFINITIONS", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkMRTGK3CK_js.NODE_DEFINITIONS; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "NODE_ORDER", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkMRTGK3CK_js.NODE_ORDER; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "NodeCategoryEnum", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkMRTGK3CK_js.NodeCategoryEnum; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "NodeStatusEnum", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkMRTGK3CK_js.NodeStatusEnum; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "NodeTypeEnum", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkMRTGK3CK_js.NodeTypeEnum; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ProcessingNodeType", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkMRTGK3CK_js.ProcessingNodeType; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ProviderTypeEnum", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkMRTGK3CK_js.ProviderTypeEnum; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ReframeNodeType", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkMRTGK3CK_js.ReframeNodeType; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "UpscaleNodeType", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkMRTGK3CK_js.UpscaleNodeType; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "WorkflowTemplateCategory", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkMRTGK3CK_js.WorkflowTemplateCategory; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "getNodesByCategory", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkMRTGK3CK_js.getNodesByCategory; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "EdgeStyleEnum", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunk74STGUJY_js.EdgeStyleEnum; }
|
|
178
178
|
});
|
|
179
179
|
exports.CAMERA_PRESETS = CAMERA_PRESETS;
|
|
180
180
|
exports.CATEGORY_LABELS = CATEGORY_LABELS;
|
|
@@ -183,3 +183,5 @@ exports.MOOD_PRESETS = MOOD_PRESETS;
|
|
|
183
183
|
exports.PROMPT_CATEGORIES = PROMPT_CATEGORIES;
|
|
184
184
|
exports.SCENE_PRESETS = SCENE_PRESETS;
|
|
185
185
|
exports.STYLE_PRESETS = STYLE_PRESETS;
|
|
186
|
+
//# sourceMappingURL=index.js.map
|
|
187
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/prompts.ts"],"names":[],"mappings":";;;;;;;AAcO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,KAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF;AAqDO,IAAM,YAAA,GAAe;AAAA,EAC1B,WAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF;AAEO,IAAM,aAAA,GAAgB;AAAA,EAC3B,gBAAA;AAAA,EACA,OAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF;AAEO,IAAM,cAAA,GAAiB;AAAA,EAC5B,YAAA;AAAA,EACA,OAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF;AAEO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,aAAA;AAAA,EACA,QAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,aAAA;AAAA,EACA,WAAA;AAAA,EACA,aAAA;AAAA,EACA;AACF;AAEO,IAAM,aAAA,GAAgB;AAAA,EAC3B,QAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF;AAUO,IAAM,eAAA,GAAkD;AAAA,EAC7D,QAAA,EAAU,cAAA;AAAA,EACV,GAAA,EAAK,iBAAA;AAAA,EACL,KAAA,EAAO,eAAA;AAAA,EACP,YAAA,EAAc,cAAA;AAAA,EACd,MAAA,EAAQ,QAAA;AAAA,EACR,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,iBAAA;AAAA,EACN,SAAA,EAAW,YAAA;AAAA,EACX,QAAA,EAAU,WAAA;AAAA,EACV,OAAA,EAAS;AACX","file":"index.js","sourcesContent":["// =============================================================================\n// PROMPT LIBRARY TYPES\n// =============================================================================\n\n// Style settings for image generation\nexport interface IStyleSettings {\n mood?: string;\n style?: string;\n camera?: string;\n lighting?: string;\n scene?: string;\n}\n\n// Category values for organizing prompts\nexport const PROMPT_CATEGORIES = [\n 'ads',\n 'anime',\n 'product',\n 'portrait',\n 'landscape',\n 'abstract',\n 'fashion',\n 'food',\n 'architecture',\n 'custom',\n] as const;\n\nexport type PromptCategory = (typeof PROMPT_CATEGORIES)[number];\n\n// Main prompt interface\nexport interface IPrompt {\n _id: string;\n name: string;\n description: string;\n promptText: string;\n styleSettings: IStyleSettings;\n aspectRatio?: string;\n preferredModel?: string;\n category: PromptCategory;\n tags: string[];\n thumbnail?: string;\n useCount: number;\n isFeatured: boolean;\n isSystem: boolean;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\n// Create/Update DTO type (frontend)\nexport interface ICreatePrompt {\n name: string;\n description?: string;\n promptText: string;\n styleSettings?: IStyleSettings;\n aspectRatio?: string;\n preferredModel?: string;\n category?: PromptCategory;\n tags?: string[];\n thumbnail?: string;\n isFeatured?: boolean;\n}\n\n// Query params type (frontend)\nexport interface IQueryPrompts {\n category?: PromptCategory;\n search?: string;\n tag?: string;\n limit?: number;\n offset?: number;\n sortBy?: 'createdAt' | 'useCount' | 'name';\n sortOrder?: 'asc' | 'desc';\n}\n\n// =============================================================================\n// STYLE PRESETS\n// =============================================================================\n\nexport const MOOD_PRESETS = [\n 'cinematic',\n 'dreamy',\n 'gritty',\n 'ethereal',\n 'nostalgic',\n 'futuristic',\n 'mysterious',\n 'peaceful',\n 'energetic',\n 'moody',\n 'dramatic',\n 'whimsical',\n] as const;\n\nexport const STYLE_PRESETS = [\n 'photorealistic',\n 'anime',\n '3d-render',\n 'oil-painting',\n 'watercolor',\n 'digital-art',\n 'comic-book',\n 'sketch',\n 'pixel-art',\n 'minimalist',\n 'cyberpunk',\n 'fantasy',\n 'retro',\n 'vintage',\n] as const;\n\nexport const CAMERA_PRESETS = [\n 'wide-angle',\n 'macro',\n 'telephoto',\n 'drone',\n 'portrait',\n 'fisheye',\n 'tilt-shift',\n 'gopro',\n 'close-up',\n 'establishing',\n 'eye-level',\n 'low-angle',\n 'high-angle',\n 'dutch-angle',\n] as const;\n\nexport const LIGHTING_PRESETS = [\n 'golden-hour',\n 'studio',\n 'neon',\n 'natural',\n 'dramatic',\n 'soft',\n 'backlit',\n 'rim-light',\n 'high-key',\n 'low-key',\n 'candlelight',\n 'moonlight',\n 'fluorescent',\n 'cinematic',\n] as const;\n\nexport const SCENE_PRESETS = [\n 'indoor',\n 'outdoor',\n 'urban',\n 'nature',\n 'studio',\n 'underwater',\n 'space',\n 'abstract',\n 'industrial',\n 'domestic',\n 'beach',\n 'forest',\n 'city-skyline',\n 'desert',\n] as const;\n\n// Type helpers for presets\nexport type MoodPreset = (typeof MOOD_PRESETS)[number];\nexport type StylePreset = (typeof STYLE_PRESETS)[number];\nexport type CameraPreset = (typeof CAMERA_PRESETS)[number];\nexport type LightingPreset = (typeof LIGHTING_PRESETS)[number];\nexport type ScenePreset = (typeof SCENE_PRESETS)[number];\n\n// Category display names for UI\nexport const CATEGORY_LABELS: Record<PromptCategory, string> = {\n abstract: 'Abstract Art',\n ads: 'Ads & Marketing',\n anime: 'Anime & Manga',\n architecture: 'Architecture',\n custom: 'Custom',\n fashion: 'Fashion',\n food: 'Food & Culinary',\n landscape: 'Landscapes',\n portrait: 'Portraits',\n product: 'Product Photography',\n};\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import './chunk-G2BD5ZTF.mjs';
|
|
2
|
+
export { CONNECTION_RULES, HandleTypeEnum, KlingQuality, ModelCapabilityEnum, ModelUseCaseEnum, NODE_DEFINITIONS, NODE_ORDER, NodeCategoryEnum, NodeStatusEnum, NodeTypeEnum, ProcessingNodeType, ProviderTypeEnum, ReframeNodeType, UpscaleNodeType, WorkflowTemplateCategory, getNodesByCategory } from './chunk-ZMENGANG.mjs';
|
|
3
|
+
export { EdgeStyleEnum } from './chunk-CVFAILC4.mjs';
|
|
4
4
|
|
|
5
5
|
// src/prompts.ts
|
|
6
6
|
var PROMPT_CATEGORIES = [
|
|
@@ -94,16 +94,18 @@ var SCENE_PRESETS = [
|
|
|
94
94
|
"desert"
|
|
95
95
|
];
|
|
96
96
|
var CATEGORY_LABELS = {
|
|
97
|
+
abstract: "Abstract Art",
|
|
97
98
|
ads: "Ads & Marketing",
|
|
98
99
|
anime: "Anime & Manga",
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
landscape: "Landscapes",
|
|
102
|
-
abstract: "Abstract Art",
|
|
100
|
+
architecture: "Architecture",
|
|
101
|
+
custom: "Custom",
|
|
103
102
|
fashion: "Fashion",
|
|
104
103
|
food: "Food & Culinary",
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
landscape: "Landscapes",
|
|
105
|
+
portrait: "Portraits",
|
|
106
|
+
product: "Product Photography"
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
export { CAMERA_PRESETS, CATEGORY_LABELS, LIGHTING_PRESETS, MOOD_PRESETS, PROMPT_CATEGORIES, SCENE_PRESETS, STYLE_PRESETS };
|
|
110
|
+
//# sourceMappingURL=index.mjs.map
|
|
111
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/prompts.ts"],"names":[],"mappings":";;;;;AAcO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,KAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF;AAqDO,IAAM,YAAA,GAAe;AAAA,EAC1B,WAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF;AAEO,IAAM,aAAA,GAAgB;AAAA,EAC3B,gBAAA;AAAA,EACA,OAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA,QAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA;AACF;AAEO,IAAM,cAAA,GAAiB;AAAA,EAC5B,YAAA;AAAA,EACA,OAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF;AAEO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,aAAA;AAAA,EACA,QAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,aAAA;AAAA,EACA,WAAA;AAAA,EACA,aAAA;AAAA,EACA;AACF;AAEO,IAAM,aAAA,GAAgB;AAAA,EAC3B,QAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF;AAUO,IAAM,eAAA,GAAkD;AAAA,EAC7D,QAAA,EAAU,cAAA;AAAA,EACV,GAAA,EAAK,iBAAA;AAAA,EACL,KAAA,EAAO,eAAA;AAAA,EACP,YAAA,EAAc,cAAA;AAAA,EACd,MAAA,EAAQ,QAAA;AAAA,EACR,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,iBAAA;AAAA,EACN,SAAA,EAAW,YAAA;AAAA,EACX,QAAA,EAAU,WAAA;AAAA,EACV,OAAA,EAAS;AACX","file":"index.mjs","sourcesContent":["// =============================================================================\n// PROMPT LIBRARY TYPES\n// =============================================================================\n\n// Style settings for image generation\nexport interface IStyleSettings {\n mood?: string;\n style?: string;\n camera?: string;\n lighting?: string;\n scene?: string;\n}\n\n// Category values for organizing prompts\nexport const PROMPT_CATEGORIES = [\n 'ads',\n 'anime',\n 'product',\n 'portrait',\n 'landscape',\n 'abstract',\n 'fashion',\n 'food',\n 'architecture',\n 'custom',\n] as const;\n\nexport type PromptCategory = (typeof PROMPT_CATEGORIES)[number];\n\n// Main prompt interface\nexport interface IPrompt {\n _id: string;\n name: string;\n description: string;\n promptText: string;\n styleSettings: IStyleSettings;\n aspectRatio?: string;\n preferredModel?: string;\n category: PromptCategory;\n tags: string[];\n thumbnail?: string;\n useCount: number;\n isFeatured: boolean;\n isSystem: boolean;\n isDeleted: boolean;\n createdAt: string;\n updatedAt: string;\n}\n\n// Create/Update DTO type (frontend)\nexport interface ICreatePrompt {\n name: string;\n description?: string;\n promptText: string;\n styleSettings?: IStyleSettings;\n aspectRatio?: string;\n preferredModel?: string;\n category?: PromptCategory;\n tags?: string[];\n thumbnail?: string;\n isFeatured?: boolean;\n}\n\n// Query params type (frontend)\nexport interface IQueryPrompts {\n category?: PromptCategory;\n search?: string;\n tag?: string;\n limit?: number;\n offset?: number;\n sortBy?: 'createdAt' | 'useCount' | 'name';\n sortOrder?: 'asc' | 'desc';\n}\n\n// =============================================================================\n// STYLE PRESETS\n// =============================================================================\n\nexport const MOOD_PRESETS = [\n 'cinematic',\n 'dreamy',\n 'gritty',\n 'ethereal',\n 'nostalgic',\n 'futuristic',\n 'mysterious',\n 'peaceful',\n 'energetic',\n 'moody',\n 'dramatic',\n 'whimsical',\n] as const;\n\nexport const STYLE_PRESETS = [\n 'photorealistic',\n 'anime',\n '3d-render',\n 'oil-painting',\n 'watercolor',\n 'digital-art',\n 'comic-book',\n 'sketch',\n 'pixel-art',\n 'minimalist',\n 'cyberpunk',\n 'fantasy',\n 'retro',\n 'vintage',\n] as const;\n\nexport const CAMERA_PRESETS = [\n 'wide-angle',\n 'macro',\n 'telephoto',\n 'drone',\n 'portrait',\n 'fisheye',\n 'tilt-shift',\n 'gopro',\n 'close-up',\n 'establishing',\n 'eye-level',\n 'low-angle',\n 'high-angle',\n 'dutch-angle',\n] as const;\n\nexport const LIGHTING_PRESETS = [\n 'golden-hour',\n 'studio',\n 'neon',\n 'natural',\n 'dramatic',\n 'soft',\n 'backlit',\n 'rim-light',\n 'high-key',\n 'low-key',\n 'candlelight',\n 'moonlight',\n 'fluorescent',\n 'cinematic',\n] as const;\n\nexport const SCENE_PRESETS = [\n 'indoor',\n 'outdoor',\n 'urban',\n 'nature',\n 'studio',\n 'underwater',\n 'space',\n 'abstract',\n 'industrial',\n 'domestic',\n 'beach',\n 'forest',\n 'city-skyline',\n 'desert',\n] as const;\n\n// Type helpers for presets\nexport type MoodPreset = (typeof MOOD_PRESETS)[number];\nexport type StylePreset = (typeof STYLE_PRESETS)[number];\nexport type CameraPreset = (typeof CAMERA_PRESETS)[number];\nexport type LightingPreset = (typeof LIGHTING_PRESETS)[number];\nexport type ScenePreset = (typeof SCENE_PRESETS)[number];\n\n// Category display names for UI\nexport const CATEGORY_LABELS: Record<PromptCategory, string> = {\n abstract: 'Abstract Art',\n ads: 'Ads & Marketing',\n anime: 'Anime & Manga',\n architecture: 'Architecture',\n custom: 'Custom',\n fashion: 'Fashion',\n food: 'Food & Culinary',\n landscape: 'Landscapes',\n portrait: 'Portraits',\n product: 'Product Photography',\n};\n"]}
|
package/dist/nodes.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NodeType, P as NodeCategory, H as HandleDefinition, aH as WorkflowNodeData } from './union-
|
|
2
|
-
export { A as AnimationNodeData, b as AnnotationNodeData, c as AnnotationShapeData, d as AspectRatio, e as AudioCodec, f as AudioInputNodeData, g as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, h as CameraMovement, i as CharacterOrientation, j as CubicBezier, D as DownloadNodeData, E as EasingPreset, F as FrameSelectionMode, G as GridOutputFormat, k as GridPosition, l as HandleType, m as HandleTypeEnum, I as ImageCompareNodeData, n as ImageGenNodeData, o as ImageGridSplitNodeData, p as ImageInputNodeData, q as ImageModel, K as KlingQuality, r as KlingQualityMode, L as LLMNodeData, s as LipSyncMode, t as LipSyncModel, u as LipSyncNodeData, v as LumaAspectRatio, w as LumaReframeModel, M as ModelCapability, x as ModelCapabilityEnum, y as ModelUseCase, z as ModelUseCaseEnum, J as MotionControlMode, O as MotionControlNodeData, Q as NodeCategoryEnum,
|
|
1
|
+
import { N as NodeType, P as NodeCategory, H as HandleDefinition, aH as WorkflowNodeData } from './union-D5EesBEB.mjs';
|
|
2
|
+
export { A as AnimationNodeData, b as AnnotationNodeData, c as AnnotationShapeData, d as AspectRatio, e as AudioCodec, f as AudioInputNodeData, g as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, h as CameraMovement, i as CharacterOrientation, j as CubicBezier, D as DownloadNodeData, E as EasingPreset, F as FrameSelectionMode, G as GridOutputFormat, k as GridPosition, l as HandleType, m as HandleTypeEnum, I as ImageCompareNodeData, n as ImageGenNodeData, o as ImageGridSplitNodeData, p as ImageInputNodeData, q as ImageModel, K as KlingQuality, r as KlingQualityMode, L as LLMNodeData, s as LipSyncMode, t as LipSyncModel, u as LipSyncNodeData, v as LumaAspectRatio, w as LumaReframeModel, M as ModelCapability, x as ModelCapabilityEnum, y as ModelUseCase, z as ModelUseCaseEnum, J as MotionControlMode, O as MotionControlNodeData, Q as NodeCategoryEnum, S as NodeStatus, T as NodeStatusEnum, V as NodeTypeEnum, X as OutputFormat, Y as OutputGalleryNodeData, Z as OutputInputType, _ as OutputNodeData, $ as OutputQuality, a1 as PromptConstructorNodeData, a2 as PromptNodeData, a3 as ProviderModel, a4 as ProviderType, a5 as ProviderTypeEnum, a6 as ReframeInputType, a7 as ReframeNodeData, a8 as ResizeNodeData, a9 as Resolution, aa as SelectedModel, ab as SubtitleNodeData, ac as SubtitlePosition, ad as SubtitleStyle, ae as TTSProvider, af as TTSVoice, ag as TextModel, ah as TextToSpeechNodeData, ai as TopazEnhanceModel, aj as TopazUpscaleFactor, ak as TopazVideoFPS, al as TopazVideoResolution, am as TrajectoryPoint, an as TranscribeLanguage, ao as TranscribeNodeData, ap as TransitionType, aq as UpscaleInputType, ar as UpscaleModel, as as UpscaleNodeData, at as VideoDuration, au as VideoFrameExtractNodeData, av as VideoGenNodeData, aw as VideoInputNodeData, ax as VideoModel, ay as VideoResolution, az as VideoStitchNodeData, aA as VideoTrimNodeData, aB as VoiceChangeNodeData, a as WorkflowEdge, aC as WorkflowEdgeData, aD as WorkflowInputNodeData, aE as WorkflowInterface, aF as WorkflowInterfaceInput, aG as WorkflowInterfaceOutput, W as WorkflowNode, aI as WorkflowOutputNodeData, aJ as WorkflowRefNodeData } from './union-D5EesBEB.mjs';
|
|
3
3
|
import '@xyflow/react';
|
|
4
4
|
|
|
5
5
|
interface NodeDefinition {
|
package/dist/nodes.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as NodeType, P as NodeCategory, H as HandleDefinition, aH as WorkflowNodeData } from './union-
|
|
2
|
-
export { A as AnimationNodeData, b as AnnotationNodeData, c as AnnotationShapeData, d as AspectRatio, e as AudioCodec, f as AudioInputNodeData, g as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, h as CameraMovement, i as CharacterOrientation, j as CubicBezier, D as DownloadNodeData, E as EasingPreset, F as FrameSelectionMode, G as GridOutputFormat, k as GridPosition, l as HandleType, m as HandleTypeEnum, I as ImageCompareNodeData, n as ImageGenNodeData, o as ImageGridSplitNodeData, p as ImageInputNodeData, q as ImageModel, K as KlingQuality, r as KlingQualityMode, L as LLMNodeData, s as LipSyncMode, t as LipSyncModel, u as LipSyncNodeData, v as LumaAspectRatio, w as LumaReframeModel, M as ModelCapability, x as ModelCapabilityEnum, y as ModelUseCase, z as ModelUseCaseEnum, J as MotionControlMode, O as MotionControlNodeData, Q as NodeCategoryEnum,
|
|
1
|
+
import { N as NodeType, P as NodeCategory, H as HandleDefinition, aH as WorkflowNodeData } from './union-D5EesBEB.js';
|
|
2
|
+
export { A as AnimationNodeData, b as AnnotationNodeData, c as AnnotationShapeData, d as AspectRatio, e as AudioCodec, f as AudioInputNodeData, g as AvailableVariable, B as BaseNodeData, C as CONNECTION_RULES, h as CameraMovement, i as CharacterOrientation, j as CubicBezier, D as DownloadNodeData, E as EasingPreset, F as FrameSelectionMode, G as GridOutputFormat, k as GridPosition, l as HandleType, m as HandleTypeEnum, I as ImageCompareNodeData, n as ImageGenNodeData, o as ImageGridSplitNodeData, p as ImageInputNodeData, q as ImageModel, K as KlingQuality, r as KlingQualityMode, L as LLMNodeData, s as LipSyncMode, t as LipSyncModel, u as LipSyncNodeData, v as LumaAspectRatio, w as LumaReframeModel, M as ModelCapability, x as ModelCapabilityEnum, y as ModelUseCase, z as ModelUseCaseEnum, J as MotionControlMode, O as MotionControlNodeData, Q as NodeCategoryEnum, S as NodeStatus, T as NodeStatusEnum, V as NodeTypeEnum, X as OutputFormat, Y as OutputGalleryNodeData, Z as OutputInputType, _ as OutputNodeData, $ as OutputQuality, a1 as PromptConstructorNodeData, a2 as PromptNodeData, a3 as ProviderModel, a4 as ProviderType, a5 as ProviderTypeEnum, a6 as ReframeInputType, a7 as ReframeNodeData, a8 as ResizeNodeData, a9 as Resolution, aa as SelectedModel, ab as SubtitleNodeData, ac as SubtitlePosition, ad as SubtitleStyle, ae as TTSProvider, af as TTSVoice, ag as TextModel, ah as TextToSpeechNodeData, ai as TopazEnhanceModel, aj as TopazUpscaleFactor, ak as TopazVideoFPS, al as TopazVideoResolution, am as TrajectoryPoint, an as TranscribeLanguage, ao as TranscribeNodeData, ap as TransitionType, aq as UpscaleInputType, ar as UpscaleModel, as as UpscaleNodeData, at as VideoDuration, au as VideoFrameExtractNodeData, av as VideoGenNodeData, aw as VideoInputNodeData, ax as VideoModel, ay as VideoResolution, az as VideoStitchNodeData, aA as VideoTrimNodeData, aB as VoiceChangeNodeData, a as WorkflowEdge, aC as WorkflowEdgeData, aD as WorkflowInputNodeData, aE as WorkflowInterface, aF as WorkflowInterfaceInput, aG as WorkflowInterfaceOutput, W as WorkflowNode, aI as WorkflowOutputNodeData, aJ as WorkflowRefNodeData } from './union-D5EesBEB.js';
|
|
3
3
|
import '@xyflow/react';
|
|
4
4
|
|
|
5
5
|
interface NodeDefinition {
|