ugcinc 2.36.0 → 2.37.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 +1 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -35,11 +35,13 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
35
35
|
/**
|
|
36
36
|
* Run an automation template
|
|
37
37
|
* @param variableInputs - Optional map of variable node IDs to their runtime values
|
|
38
|
+
* @param saveAsPreview - If true, saves the output as a preview for sub-workflows
|
|
38
39
|
*/
|
|
39
40
|
run(params: {
|
|
40
41
|
templateId: string;
|
|
41
42
|
orgId: string;
|
|
42
43
|
variableInputs?: Record<string, string>;
|
|
44
|
+
saveAsPreview?: boolean;
|
|
43
45
|
}): Promise<ApiResponse<{
|
|
44
46
|
runId: string;
|
|
45
47
|
}>>;
|
package/dist/automations.js
CHANGED
|
@@ -46,6 +46,7 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
46
46
|
/**
|
|
47
47
|
* Run an automation template
|
|
48
48
|
* @param variableInputs - Optional map of variable node IDs to their runtime values
|
|
49
|
+
* @param saveAsPreview - If true, saves the output as a preview for sub-workflows
|
|
49
50
|
*/
|
|
50
51
|
async run(params) {
|
|
51
52
|
return this.request('/automations/run', {
|
package/dist/types.d.ts
CHANGED
|
@@ -650,6 +650,7 @@ export interface OutputSchemaProperty {
|
|
|
650
650
|
export interface WorkflowNodeDefinition {
|
|
651
651
|
id: string;
|
|
652
652
|
type: NodeTypeEnum;
|
|
653
|
+
name?: string;
|
|
653
654
|
x?: number;
|
|
654
655
|
y?: number;
|
|
655
656
|
inputs: Record<string, {
|
|
@@ -668,6 +669,7 @@ export interface WorkflowNodeDefinition {
|
|
|
668
669
|
variableType?: 'image' | 'video' | 'audio' | 'text';
|
|
669
670
|
defaultValue?: string;
|
|
670
671
|
workflowTemplateId?: string;
|
|
672
|
+
workflowVariableNameToIdMap?: Record<string, string>;
|
|
671
673
|
};
|
|
672
674
|
}
|
|
673
675
|
export interface CanvasState {
|
|
@@ -685,6 +687,7 @@ export interface AutomationTemplate {
|
|
|
685
687
|
name: string;
|
|
686
688
|
description: string | null;
|
|
687
689
|
workflow_definition: WorkflowDefinition;
|
|
690
|
+
preview_output: string | null;
|
|
688
691
|
created_at: string;
|
|
689
692
|
}
|
|
690
693
|
export interface AutomationRun {
|