ugcinc 2.31.0 → 2.33.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.
- package/dist/automations.d.ts +2 -0
- package/dist/automations.js +16 -0
- package/dist/types.d.ts +23 -5
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -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
|
}>>;
|
package/dist/automations.js
CHANGED
|
@@ -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
|
@@ -416,6 +416,20 @@ export interface BaseSegmentProps {
|
|
|
416
416
|
/** Duration in milliseconds for the fade-in effect (0 or undefined = no fade) */
|
|
417
417
|
fadeIn?: number;
|
|
418
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* Border radius configuration for individual corners.
|
|
421
|
+
* All values in pixels, default 0 (no rounding).
|
|
422
|
+
*/
|
|
423
|
+
export interface BorderRadiusConfig {
|
|
424
|
+
/** Top-left corner radius in pixels */
|
|
425
|
+
topLeft?: number;
|
|
426
|
+
/** Top-right corner radius in pixels */
|
|
427
|
+
topRight?: number;
|
|
428
|
+
/** Bottom-right corner radius in pixels */
|
|
429
|
+
bottomRight?: number;
|
|
430
|
+
/** Bottom-left corner radius in pixels */
|
|
431
|
+
bottomLeft?: number;
|
|
432
|
+
}
|
|
419
433
|
/**
|
|
420
434
|
* Visual segment properties (video, image, text, editor)
|
|
421
435
|
*/
|
|
@@ -449,8 +463,8 @@ export interface VideoSegment extends VisualSegmentProps {
|
|
|
449
463
|
speed?: number;
|
|
450
464
|
/** Audio volume percentage 0-100 (0 = muted, 100 = full) (default: 100) */
|
|
451
465
|
volume?: number;
|
|
452
|
-
/** Corner radius
|
|
453
|
-
borderRadius?: number;
|
|
466
|
+
/** Corner radius - single number for all corners, or object for individual corners (default: 0) */
|
|
467
|
+
borderRadius?: number | BorderRadiusConfig;
|
|
454
468
|
}
|
|
455
469
|
/**
|
|
456
470
|
* Audio segment - background audio or music
|
|
@@ -471,8 +485,8 @@ export interface ImageSegment extends VisualSegmentProps {
|
|
|
471
485
|
fit?: 'cover' | 'contain' | 'fill';
|
|
472
486
|
/** Loop animated GIFs (default: false) */
|
|
473
487
|
loop?: boolean;
|
|
474
|
-
/** Corner radius
|
|
475
|
-
borderRadius?: number;
|
|
488
|
+
/** Corner radius - single number for all corners, or object for individual corners (default: 0) */
|
|
489
|
+
borderRadius?: number | BorderRadiusConfig;
|
|
476
490
|
}
|
|
477
491
|
/**
|
|
478
492
|
* Text segment - rich text overlays with full typography control
|
|
@@ -627,7 +641,7 @@ export interface NodeControlConfig {
|
|
|
627
641
|
*/
|
|
628
642
|
supportsPerInputMode?: boolean;
|
|
629
643
|
}
|
|
630
|
-
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';
|
|
631
645
|
export interface OutputSchemaProperty {
|
|
632
646
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
633
647
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -651,6 +665,9 @@ export interface WorkflowNodeDefinition {
|
|
|
651
665
|
selectionConfig?: SelectionConfig;
|
|
652
666
|
selectionState?: SelectionState;
|
|
653
667
|
outputMode?: OutputMode;
|
|
668
|
+
variableType?: 'image' | 'video' | 'audio' | 'text';
|
|
669
|
+
variableName?: string;
|
|
670
|
+
defaultValue?: string;
|
|
654
671
|
};
|
|
655
672
|
}
|
|
656
673
|
export interface CanvasState {
|
|
@@ -675,6 +692,7 @@ export interface AutomationRun {
|
|
|
675
692
|
template_id: string;
|
|
676
693
|
org_id: string;
|
|
677
694
|
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
695
|
+
variable_inputs: Record<string, string> | null;
|
|
678
696
|
created_at: string;
|
|
679
697
|
completed_at: string | null;
|
|
680
698
|
}
|