ugcinc 4.5.86 → 4.5.88

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.
@@ -7,6 +7,11 @@
7
7
  import type { WorkflowDefinition, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, AutomationExport, AutomationRunExport, AutomationRunLog, PortValue, ScheduleConfig, AccountIterationConfig } from './types';
8
8
  import type { ApiResponse } from '../types';
9
9
  import { BaseClient } from '../base';
10
+ type AutomationStatusResponse = {
11
+ run: AutomationRun;
12
+ executors: ExecutorNode[];
13
+ edges: ExecutionEdge[];
14
+ };
10
15
  export declare class AutomationsClient extends BaseClient {
11
16
  /**
12
17
  * List all automation templates for an organization
@@ -54,6 +59,31 @@ export declare class AutomationsClient extends BaseClient {
54
59
  }): Promise<ApiResponse<{
55
60
  runIds: string[];
56
61
  }>>;
62
+ /**
63
+ * Run an inline ephemeral automation workflow without creating a saved automation.
64
+ */
65
+ runInline(params: {
66
+ workflowDefinition: WorkflowDefinition;
67
+ variableInputs?: Record<string, PortValue>;
68
+ tag?: string;
69
+ waitForCompletion?: boolean;
70
+ timeoutSeconds?: number;
71
+ name?: string;
72
+ description?: string;
73
+ }): Promise<ApiResponse<AutomationStatusResponse>>;
74
+ /**
75
+ * Run a single automation node by compiling it to a minimal inline workflow.
76
+ */
77
+ runNode(params: {
78
+ nodeType: 'scene-split' | 'generate-image' | 'generate-video';
79
+ inputs?: Record<string, PortValue>;
80
+ config?: Record<string, unknown>;
81
+ waitForCompletion?: boolean;
82
+ timeoutSeconds?: number;
83
+ tag?: string;
84
+ name?: string;
85
+ description?: string;
86
+ }): Promise<ApiResponse<AutomationStatusResponse>>;
57
87
  /**
58
88
  * Get automation run status
59
89
  * Returns executors (expanded nodes) and edges (data flow connections)
@@ -186,3 +216,4 @@ export declare class AutomationsClient extends BaseClient {
186
216
  runId: string;
187
217
  }): Promise<ApiResponse<AutomationRunLog[]>>;
188
218
  }
219
+ export {};
@@ -59,6 +59,24 @@ class AutomationsClient extends base_1.BaseClient {
59
59
  body: JSON.stringify(params),
60
60
  });
61
61
  }
62
+ /**
63
+ * Run an inline ephemeral automation workflow without creating a saved automation.
64
+ */
65
+ async runInline(params) {
66
+ return this.request('/automations/run-inline', {
67
+ method: 'POST',
68
+ body: JSON.stringify(params),
69
+ });
70
+ }
71
+ /**
72
+ * Run a single automation node by compiling it to a minimal inline workflow.
73
+ */
74
+ async runNode(params) {
75
+ return this.request('/automations/run-node', {
76
+ method: 'POST',
77
+ body: JSON.stringify(params),
78
+ });
79
+ }
62
80
  /**
63
81
  * Get automation run status
64
82
  * Returns executors (expanded nodes) and edges (data flow connections)
@@ -22,7 +22,7 @@ const definition = (0, types_1.defineNode)({
22
22
  inputs: [
23
23
  {
24
24
  id: 'media',
25
- type: ['image', 'video', 'audio'],
25
+ type: ['image', 'video', 'audio', 'text'],
26
26
  isArray: false,
27
27
  required: true,
28
28
  },
@@ -30,7 +30,7 @@ const definition = (0, types_1.defineNode)({
30
30
  outputs: [
31
31
  {
32
32
  id: 'media',
33
- type: ['image', 'video', 'audio'],
33
+ type: ['image', 'video', 'audio', 'text'],
34
34
  isArray: false,
35
35
  required: true,
36
36
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.86",
3
+ "version": "4.5.88",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",