ugcinc 2.73.3 → 2.74.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 +20 -0
- package/dist/automations.js +33 -0
- package/dist/types.d.ts +6 -3
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -66,6 +66,26 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
66
66
|
run: AutomationRun;
|
|
67
67
|
nodeCount: number;
|
|
68
68
|
}>>>;
|
|
69
|
+
/**
|
|
70
|
+
* List all automation runs for the organization (across all templates)
|
|
71
|
+
*/
|
|
72
|
+
listAllRuns(params: {
|
|
73
|
+
limit?: number;
|
|
74
|
+
reviewStatus?: 'pending_review' | 'approved' | 'rejected' | 'all';
|
|
75
|
+
}): Promise<ApiResponse<Array<{
|
|
76
|
+
run: AutomationRun;
|
|
77
|
+
templateName: string;
|
|
78
|
+
nodeCount: number;
|
|
79
|
+
}>>>;
|
|
80
|
+
/**
|
|
81
|
+
* Update review status for a run
|
|
82
|
+
*/
|
|
83
|
+
updateReviewStatus(params: {
|
|
84
|
+
runId: string;
|
|
85
|
+
reviewStatus: 'approved' | 'rejected';
|
|
86
|
+
}): Promise<ApiResponse<{
|
|
87
|
+
success: boolean;
|
|
88
|
+
}>>;
|
|
69
89
|
/**
|
|
70
90
|
* Validate a workflow definition without creating it
|
|
71
91
|
*/
|
package/dist/automations.js
CHANGED
|
@@ -73,6 +73,24 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
73
73
|
body: JSON.stringify(params),
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* List all automation runs for the organization (across all templates)
|
|
78
|
+
*/
|
|
79
|
+
async listAllRuns(params) {
|
|
80
|
+
return this.request('/automations/list-all-runs', {
|
|
81
|
+
method: 'POST',
|
|
82
|
+
body: JSON.stringify(params),
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Update review status for a run
|
|
87
|
+
*/
|
|
88
|
+
async updateReviewStatus(params) {
|
|
89
|
+
return this.request('/automations/update-review-status', {
|
|
90
|
+
method: 'POST',
|
|
91
|
+
body: JSON.stringify(params),
|
|
92
|
+
});
|
|
93
|
+
}
|
|
76
94
|
/**
|
|
77
95
|
* Validate a workflow definition without creating it
|
|
78
96
|
*/
|
|
@@ -134,6 +152,21 @@ function getAllNodes() {
|
|
|
134
152
|
},
|
|
135
153
|
],
|
|
136
154
|
},
|
|
155
|
+
{
|
|
156
|
+
type: "social-audio",
|
|
157
|
+
label: "Social Audio",
|
|
158
|
+
description: "Import social audio tracks",
|
|
159
|
+
category: "Input",
|
|
160
|
+
inputs: [],
|
|
161
|
+
outputs: [
|
|
162
|
+
{
|
|
163
|
+
id: "social_audio",
|
|
164
|
+
title: "social_audio",
|
|
165
|
+
type: "social_audio",
|
|
166
|
+
required: true,
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
},
|
|
137
170
|
{
|
|
138
171
|
type: "text",
|
|
139
172
|
label: "Text",
|
package/dist/types.d.ts
CHANGED
|
@@ -672,7 +672,7 @@ export type StaticSegment = ImageSegment | TextSegment;
|
|
|
672
672
|
/**
|
|
673
673
|
* Automation types
|
|
674
674
|
*/
|
|
675
|
-
export type MediaType = 'video' | 'image' | 'audio' | 'text';
|
|
675
|
+
export type MediaType = 'video' | 'image' | 'audio' | 'social_audio' | 'text';
|
|
676
676
|
/**
|
|
677
677
|
* Selection order configuration for media nodes
|
|
678
678
|
*/
|
|
@@ -712,7 +712,7 @@ export interface NodeControlConfig {
|
|
|
712
712
|
*/
|
|
713
713
|
supportsPerInputMode?: boolean;
|
|
714
714
|
}
|
|
715
|
-
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'text' | 'image-editor' | 'video-editor' | 'image-generation' | 'llm' | 'output' | 'variable' | 'workflow';
|
|
715
|
+
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'social-audio' | 'text' | 'image-editor' | 'video-editor' | 'image-generation' | 'llm' | 'output' | 'variable' | 'workflow';
|
|
716
716
|
export interface OutputSchemaProperty {
|
|
717
717
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
718
718
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -818,7 +818,7 @@ export interface WorkflowNodeDefinition {
|
|
|
818
818
|
export interface OutputInput {
|
|
819
819
|
id: string;
|
|
820
820
|
title: string;
|
|
821
|
-
type: 'image' | 'video' | 'audio' | 'text';
|
|
821
|
+
type: 'image' | 'video' | 'audio' | 'social_audio' | 'text';
|
|
822
822
|
tag?: string;
|
|
823
823
|
}
|
|
824
824
|
export interface OutputNodeConfig {
|
|
@@ -883,6 +883,9 @@ export interface AutomationRun {
|
|
|
883
883
|
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
884
884
|
variable_inputs: Record<string, string> | null;
|
|
885
885
|
save_as_preview: boolean | null;
|
|
886
|
+
create_post: boolean | null;
|
|
887
|
+
require_review: boolean | null;
|
|
888
|
+
review_status: 'pending_review' | 'approved' | 'rejected' | null;
|
|
886
889
|
created_at: string;
|
|
887
890
|
completed_at: string | null;
|
|
888
891
|
}
|