ugcinc 2.12.0 → 2.14.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/automations.js +15 -0
- package/dist/types.d.ts +10 -1
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -120,6 +120,21 @@ function getAllNodes() {
|
|
|
120
120
|
},
|
|
121
121
|
],
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
type: "text",
|
|
125
|
+
label: "Text",
|
|
126
|
+
description: "Create text with templated variables",
|
|
127
|
+
category: "Input",
|
|
128
|
+
inputs: [], // Dynamic inputs based on template variables
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
id: "text",
|
|
132
|
+
title: "text",
|
|
133
|
+
type: "text",
|
|
134
|
+
required: true,
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
123
138
|
{
|
|
124
139
|
type: "image-editor",
|
|
125
140
|
label: "Image Editor",
|
package/dist/types.d.ts
CHANGED
|
@@ -566,7 +566,7 @@ export interface NodeControlConfig {
|
|
|
566
566
|
inputs: NodePort[];
|
|
567
567
|
outputs: NodePort[];
|
|
568
568
|
}
|
|
569
|
-
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'image-editor' | 'video-editor' | 'llm' | 'output';
|
|
569
|
+
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'text' | 'image-editor' | 'video-editor' | 'llm' | 'output';
|
|
570
570
|
export interface OutputSchemaProperty {
|
|
571
571
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
572
572
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -575,12 +575,15 @@ export interface OutputSchemaProperty {
|
|
|
575
575
|
export interface WorkflowNodeDefinition {
|
|
576
576
|
id: string;
|
|
577
577
|
type: NodeTypeEnum;
|
|
578
|
+
x?: number;
|
|
579
|
+
y?: number;
|
|
578
580
|
inputs: Record<string, {
|
|
579
581
|
sourceNodeId: string;
|
|
580
582
|
sourceOutputId: string;
|
|
581
583
|
}>;
|
|
582
584
|
config?: {
|
|
583
585
|
urls?: string[];
|
|
586
|
+
textOptions?: string[];
|
|
584
587
|
videoEditor?: VideoEditorConfig;
|
|
585
588
|
imageEditor?: ImageEditorConfig;
|
|
586
589
|
outputSchema?: Record<string, OutputSchemaProperty>;
|
|
@@ -588,8 +591,14 @@ export interface WorkflowNodeDefinition {
|
|
|
588
591
|
selectionState?: SelectionState;
|
|
589
592
|
};
|
|
590
593
|
}
|
|
594
|
+
export interface CanvasState {
|
|
595
|
+
zoom: number;
|
|
596
|
+
panX: number;
|
|
597
|
+
panY: number;
|
|
598
|
+
}
|
|
591
599
|
export interface WorkflowDefinition {
|
|
592
600
|
nodes: WorkflowNodeDefinition[];
|
|
601
|
+
canvasState?: CanvasState;
|
|
593
602
|
}
|
|
594
603
|
export interface AutomationTemplate {
|
|
595
604
|
id: string;
|