ugcinc 2.16.0 → 2.16.1

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.
@@ -14,13 +14,17 @@ export declare class AutomationsClient extends BaseClient {
14
14
  templateId: string;
15
15
  }): Promise<ApiResponse<AutomationTemplate>>;
16
16
  /**
17
- * Create a new automation template
17
+ * Create or update an automation template
18
+ * @param templateId - If provided, updates existing template instead of creating new one
19
+ * @param skipValidation - If true, skips workflow validation (for saving drafts)
18
20
  */
19
21
  createTemplate(params: {
20
22
  orgId: string;
21
23
  name: string;
22
24
  description?: string;
23
25
  workflowDefinition: WorkflowDefinition;
26
+ templateId?: string;
27
+ skipValidation?: boolean;
24
28
  }): Promise<ApiResponse<string>>;
25
29
  /**
26
30
  * Delete an automation template
@@ -24,7 +24,9 @@ class AutomationsClient extends base_1.BaseClient {
24
24
  });
25
25
  }
26
26
  /**
27
- * Create a new automation template
27
+ * Create or update an automation template
28
+ * @param templateId - If provided, updates existing template instead of creating new one
29
+ * @param skipValidation - If true, skips workflow validation (for saving drafts)
28
30
  */
29
31
  async createTemplate(params) {
30
32
  return this.request('/automations/create', {
@@ -162,14 +164,7 @@ function getAllNodes() {
162
164
  label: "Video Editor",
163
165
  description: "Edit and transform videos",
164
166
  category: "Input",
165
- inputs: [
166
- {
167
- id: "video",
168
- title: "video",
169
- type: "video",
170
- required: true,
171
- },
172
- ],
167
+ inputs: [], // Dynamic inputs based on segments in editor config
173
168
  outputs: [
174
169
  {
175
170
  id: "output",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",