ugcinc 2.34.0 → 2.35.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.
@@ -227,6 +227,15 @@ function getAllNodes() {
227
227
  },
228
228
  ],
229
229
  },
230
+ {
231
+ type: "workflow",
232
+ label: "Workflow",
233
+ description: "Embed another workflow as a sub-workflow",
234
+ category: "Flow",
235
+ // Inputs and outputs are dynamic based on the embedded workflow
236
+ inputs: [],
237
+ outputs: [],
238
+ },
230
239
  ];
231
240
  }
232
241
  /**
package/dist/types.d.ts CHANGED
@@ -641,7 +641,7 @@ export interface NodeControlConfig {
641
641
  */
642
642
  supportsPerInputMode?: boolean;
643
643
  }
644
- export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'text' | 'image-editor' | 'video-editor' | 'llm' | 'output' | 'variable';
644
+ export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'text' | 'image-editor' | 'video-editor' | 'llm' | 'output' | 'variable' | 'workflow';
645
645
  export interface OutputSchemaProperty {
646
646
  type: 'string' | 'number' | 'boolean' | 'array' | 'object';
647
647
  items?: 'string' | 'number' | 'boolean';
@@ -667,6 +667,7 @@ export interface WorkflowNodeDefinition {
667
667
  outputMode?: OutputMode;
668
668
  variableType?: 'image' | 'video' | 'audio' | 'text';
669
669
  defaultValue?: string;
670
+ workflowTemplateId?: string;
670
671
  };
671
672
  }
672
673
  export interface CanvasState {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.34.0",
3
+ "version": "2.35.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",