ugcinc 2.32.0 → 2.34.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.
@@ -34,10 +34,12 @@ export declare class AutomationsClient extends BaseClient {
34
34
  }): Promise<ApiResponse<null>>;
35
35
  /**
36
36
  * Run an automation template
37
+ * @param variableInputs - Optional map of variable node IDs to their runtime values
37
38
  */
38
39
  run(params: {
39
40
  templateId: string;
40
41
  orgId: string;
42
+ variableInputs?: Record<string, string>;
41
43
  }): Promise<ApiResponse<{
42
44
  runId: string;
43
45
  }>>;
@@ -45,6 +45,7 @@ class AutomationsClient extends base_1.BaseClient {
45
45
  }
46
46
  /**
47
47
  * Run an automation template
48
+ * @param variableInputs - Optional map of variable node IDs to their runtime values
48
49
  */
49
50
  async run(params) {
50
51
  return this.request('/automations/run', {
@@ -211,6 +212,21 @@ function getAllNodes() {
211
212
  ],
212
213
  outputs: [],
213
214
  },
215
+ {
216
+ type: "variable",
217
+ label: "Variable",
218
+ description: "Runtime input - value provided when workflow runs",
219
+ category: "Input",
220
+ inputs: [],
221
+ outputs: [
222
+ {
223
+ id: "value",
224
+ title: "Value",
225
+ type: ["image", "video", "audio", "text"],
226
+ required: true,
227
+ },
228
+ ],
229
+ },
214
230
  ];
215
231
  }
216
232
  /**
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';
644
+ export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'text' | 'image-editor' | 'video-editor' | 'llm' | 'output' | 'variable';
645
645
  export interface OutputSchemaProperty {
646
646
  type: 'string' | 'number' | 'boolean' | 'array' | 'object';
647
647
  items?: 'string' | 'number' | 'boolean';
@@ -665,6 +665,8 @@ export interface WorkflowNodeDefinition {
665
665
  selectionConfig?: SelectionConfig;
666
666
  selectionState?: SelectionState;
667
667
  outputMode?: OutputMode;
668
+ variableType?: 'image' | 'video' | 'audio' | 'text';
669
+ defaultValue?: string;
668
670
  };
669
671
  }
670
672
  export interface CanvasState {
@@ -689,6 +691,7 @@ export interface AutomationRun {
689
691
  template_id: string;
690
692
  org_id: string;
691
693
  status: 'pending' | 'running' | 'completed' | 'failed';
694
+ variable_inputs: Record<string, string> | null;
692
695
  created_at: string;
693
696
  completed_at: string | null;
694
697
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.32.0",
3
+ "version": "2.34.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",