ugcinc 2.87.15 → 2.88.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.js +13 -11
- package/dist/types.d.ts +26 -8
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -254,19 +254,21 @@ function getAllNodes() {
|
|
|
254
254
|
outputs: [],
|
|
255
255
|
},
|
|
256
256
|
{
|
|
257
|
-
type: "
|
|
258
|
-
label: "
|
|
259
|
-
description: "
|
|
257
|
+
type: "manual-trigger",
|
|
258
|
+
label: "Manual Trigger",
|
|
259
|
+
description: "Define inputs required when manually running this automation",
|
|
260
260
|
category: "Input",
|
|
261
261
|
inputs: [],
|
|
262
|
-
outputs
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
// Dynamic outputs based on manualTriggerConfig.outputs
|
|
263
|
+
outputs: [],
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
type: "recurrence",
|
|
267
|
+
label: "Recurrence",
|
|
268
|
+
description: "Schedule recurring automation runs",
|
|
269
|
+
category: "Input",
|
|
270
|
+
inputs: [],
|
|
271
|
+
outputs: [],
|
|
270
272
|
},
|
|
271
273
|
{
|
|
272
274
|
type: "workflow",
|
package/dist/types.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ export interface Post {
|
|
|
102
102
|
status: PostStatus;
|
|
103
103
|
social_id: string | null;
|
|
104
104
|
caption: string | null;
|
|
105
|
+
title: string | null;
|
|
105
106
|
media_urls: string[] | null;
|
|
106
107
|
music_post_id: string | null;
|
|
107
108
|
social_audio_id: string | null;
|
|
@@ -245,6 +246,7 @@ export interface GetPostsParams {
|
|
|
245
246
|
export interface CreateSlideshowParams {
|
|
246
247
|
accountId: string | null;
|
|
247
248
|
caption?: string;
|
|
249
|
+
title?: string;
|
|
248
250
|
socialAudioId?: string;
|
|
249
251
|
postTime?: string;
|
|
250
252
|
imageUrls: string[];
|
|
@@ -803,7 +805,7 @@ export interface NodeControlConfig {
|
|
|
803
805
|
*/
|
|
804
806
|
supportsPerInputMode?: boolean;
|
|
805
807
|
}
|
|
806
|
-
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'social-audio' | 'text' | 'image-editor' | 'video-editor' | 'image-generation' | 'llm' | 'output' | '
|
|
808
|
+
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'social-audio' | 'text' | 'image-editor' | 'video-editor' | 'image-generation' | 'llm' | 'output' | 'manual-trigger' | 'recurrence' | 'workflow' | 'account' | 'post-video' | 'post-slideshow' | 'save-to-media';
|
|
807
809
|
export interface OutputSchemaProperty {
|
|
808
810
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
809
811
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -893,13 +895,8 @@ export interface WorkflowNodeDefinition {
|
|
|
893
895
|
maxTokens?: number;
|
|
894
896
|
useWebSearch?: boolean;
|
|
895
897
|
useStructuredOutput?: boolean;
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
dropdownOptions?: Array<{
|
|
899
|
-
label: string;
|
|
900
|
-
value: string;
|
|
901
|
-
}>;
|
|
902
|
-
dropdownMode?: 'manual' | 'from_input';
|
|
898
|
+
manualTriggerConfig?: ManualTriggerNodeConfig;
|
|
899
|
+
recurrenceConfig?: RecurrenceNodeConfig;
|
|
903
900
|
workflowTemplateId?: string;
|
|
904
901
|
workflowVariableNameToIdMap?: Record<string, string>;
|
|
905
902
|
workflowPassThrough?: Record<string, boolean>;
|
|
@@ -918,6 +915,27 @@ export interface OutputInput {
|
|
|
918
915
|
export interface OutputNodeConfig {
|
|
919
916
|
inputs: OutputInput[];
|
|
920
917
|
}
|
|
918
|
+
/**
|
|
919
|
+
* Manual Trigger node output definition
|
|
920
|
+
*/
|
|
921
|
+
export interface ManualTriggerOutput {
|
|
922
|
+
id: string;
|
|
923
|
+
title: string;
|
|
924
|
+
type: 'image' | 'video' | 'audio' | 'text' | 'social_audio' | 'account';
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Manual Trigger node configuration - defines outputs that users provide when running
|
|
928
|
+
*/
|
|
929
|
+
export interface ManualTriggerNodeConfig {
|
|
930
|
+
outputs: ManualTriggerOutput[];
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Recurrence node configuration - placeholder for scheduling recurring runs
|
|
934
|
+
*/
|
|
935
|
+
export interface RecurrenceNodeConfig {
|
|
936
|
+
schedule?: string;
|
|
937
|
+
enabled?: boolean;
|
|
938
|
+
}
|
|
921
939
|
/**
|
|
922
940
|
* Account node configuration - source node for selecting accounts to post from
|
|
923
941
|
*/
|