ugcinc 4.5.87 → 4.5.89

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)
@@ -380,7 +380,7 @@ export declare const nodeDefinitions: {
380
380
  __TOutputs: import("./video-composer").VideoComposerNodeOutputs;
381
381
  };
382
382
  readonly 'video-import': NodeDefinition<"video-import", "source", {
383
- platform: import("./video-import").VideoImportPlatform | undefined;
383
+ platform: import("./video-import").VideoImportPlatform;
384
384
  videoQuality: import("./video-import").VideoImportQuality;
385
385
  outputMode: import("./types").OutputMode;
386
386
  selectionMode: import("./types").SelectionMode;
@@ -6,10 +6,10 @@ export interface VideoImportNodeInputs {
6
6
  export interface VideoImportNodeOutputs {
7
7
  video: VideoValue;
8
8
  }
9
- export type VideoImportPlatform = 'youtube' | 'tiktok' | 'instagram';
9
+ export type VideoImportPlatform = 'detect' | 'youtube' | 'tiktok' | 'instagram';
10
10
  export type VideoImportQuality = '360' | '480' | '720' | '1080' | '1440' | '2160';
11
11
  declare const definition: import("./types").NodeDefinition<"video-import", "source", {
12
- platform: VideoImportPlatform | undefined;
12
+ platform: VideoImportPlatform;
13
13
  videoQuality: VideoImportQuality;
14
14
  outputMode: OutputMode;
15
15
  selectionMode: SelectionMode;
@@ -14,7 +14,7 @@ const definition = (0, types_1.defineNode)({
14
14
  outputModes: ['per-input', 'single'],
15
15
  selectionModes: ['random', 'sequential'],
16
16
  defaults: {
17
- platform: undefined,
17
+ platform: 'detect',
18
18
  videoQuality: '1080',
19
19
  outputMode: 'per-input',
20
20
  selectionMode: 'random',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.87",
3
+ "version": "4.5.89",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",