ugcinc 3.21.0 → 3.22.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 +6 -34
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +13 -15
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -385,42 +385,14 @@ function getAllNodes() {
|
|
|
385
385
|
},
|
|
386
386
|
// === Terminal nodes ===
|
|
387
387
|
{
|
|
388
|
-
type: "post
|
|
389
|
-
label: "Post
|
|
390
|
-
description: "Publish a video
|
|
388
|
+
type: "auto-post",
|
|
389
|
+
label: "Auto Post",
|
|
390
|
+
description: "Publish a video or slideshow",
|
|
391
391
|
category: "Output",
|
|
392
392
|
nodeCategory: "terminal",
|
|
393
|
-
inputs:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
type: "video",
|
|
397
|
-
required: true,
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
id: "account",
|
|
401
|
-
type: "account",
|
|
402
|
-
required: true,
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
id: "caption",
|
|
406
|
-
type: "text",
|
|
407
|
-
required: false,
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
id: "social-audio",
|
|
411
|
-
type: "social_audio",
|
|
412
|
-
required: false,
|
|
413
|
-
},
|
|
414
|
-
],
|
|
415
|
-
outputs: [],
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
type: "post-slideshow",
|
|
419
|
-
label: "Post Slideshow",
|
|
420
|
-
description: "Publish a slideshow post",
|
|
421
|
-
category: "Output",
|
|
422
|
-
nodeCategory: "terminal",
|
|
423
|
-
// Dynamic inputs based on postSlideshowConfig.inputs
|
|
393
|
+
// Dynamic inputs based on autoPostConfig.mode:
|
|
394
|
+
// - video mode: video (required), account, caption, social-audio
|
|
395
|
+
// - slideshow mode: dynamic image inputs from config, account, caption, social-audio
|
|
424
396
|
inputs: [
|
|
425
397
|
{
|
|
426
398
|
id: "account",
|
package/dist/index.d.ts
CHANGED
|
@@ -18,4 +18,4 @@ export { MediaClient } from './media';
|
|
|
18
18
|
export { CommentsClient } from './comments';
|
|
19
19
|
export type { RenderJobResponse, RenderJobStatus, SubmitImageRenderJobParams, SubmitVideoRenderJobParams, RenderVideoEditorConfig, } from './render';
|
|
20
20
|
export type { ClientConfig, } from './base';
|
|
21
|
-
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStatus, PostStat, ApiKey, EditorConfig, VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeMode, SegmentTimelinePosition, ImageEditorNodeConfig, ImageEditorElement, ImageEditorNodeInput, ImageEditorNodeOutput, DimensionPresetKey, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, PositionAnchor, RelativePositionConfig, GetAccountsParams, GetAccountStatsParams, GetAccountStatusParams, UpdateAccountInfoParams, UpdateAccountSocialParams, GetTasksParams, GetPostsParams, CreateSlideshowParams, GetPostStatsParams, GetPostStatusParams, CreateVideoParams, RefreshStatsParams, RefreshStatsResponse, RefreshStatsError, DailyAggregatedStat, GetDailyAggregatedStatsParams, DailyPostStat, GetDailyPostStatsParams, TopAccount, GetTopAccountsParams, TopPost, GetTopPostsParams, MediaType, NodePort, NodeControlConfig, NodeTypeEnum, WorkflowNodeDefinition, WorkflowDefinition, CanvasState, TemplateNode, AutomationTemplate, AutomationRun, NodeRun, ExecutorNode, ExecutionEdge, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, NodeOutputValues, OutputInput, OutputNodeConfig, ManualTriggerOutput, ManualTriggerNodeConfig, TriggerIterationMode, IterationExhaustionBehavior, CollectionSelectionMode, TriggerCollectionConfig, DayOfWeek, RecurrenceMediaOutput, RecurrenceMediaConfig, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, RecurrenceMediaEnabledType, MediaNodeConfig, PostSchedulingMode, PostSchedulingConfig,
|
|
21
|
+
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStatus, PostStat, ApiKey, EditorConfig, VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeMode, SegmentTimelinePosition, ImageEditorNodeConfig, ImageEditorElement, ImageEditorNodeInput, ImageEditorNodeOutput, DimensionPresetKey, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, PositionAnchor, RelativePositionConfig, GetAccountsParams, GetAccountStatsParams, GetAccountStatusParams, UpdateAccountInfoParams, UpdateAccountSocialParams, GetTasksParams, GetPostsParams, CreateSlideshowParams, GetPostStatsParams, GetPostStatusParams, CreateVideoParams, RefreshStatsParams, RefreshStatsResponse, RefreshStatsError, DailyAggregatedStat, GetDailyAggregatedStatsParams, DailyPostStat, GetDailyPostStatsParams, TopAccount, GetTopAccountsParams, TopPost, GetTopPostsParams, MediaType, NodePort, NodeControlConfig, NodeTypeEnum, WorkflowNodeDefinition, WorkflowDefinition, CanvasState, TemplateNode, AutomationTemplate, AutomationRun, NodeRun, ExecutorNode, ExecutionEdge, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, NodeOutputValues, OutputInput, OutputNodeConfig, ManualTriggerOutput, ManualTriggerNodeConfig, TriggerIterationMode, IterationExhaustionBehavior, CollectionSelectionMode, TriggerCollectionConfig, DayOfWeek, RecurrenceMediaOutput, RecurrenceMediaConfig, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, RecurrenceMediaEnabledType, MediaNodeConfig, PostSchedulingMode, PostSchedulingConfig, AutoPostMode, AutoPostInput, AutoPostNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachInputPort, ForEachNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -807,7 +807,7 @@ export interface NodePort {
|
|
|
807
807
|
* - trigger: Nodes that start an automation (manual-trigger, recurrence)
|
|
808
808
|
* - source: Nodes that provide input data (image, video, audio, social-audio, text, account)
|
|
809
809
|
* - generator: Nodes that transform or generate content (image-template, video-template, image-generation, text-generation, sub-agent)
|
|
810
|
-
* - terminal: Nodes that end an automation (output,
|
|
810
|
+
* - terminal: Nodes that end an automation (output, auto-post, save-to-media)
|
|
811
811
|
*/
|
|
812
812
|
export type NodeCategory = 'trigger' | 'source' | 'generator' | 'terminal';
|
|
813
813
|
export interface NodeControlConfig {
|
|
@@ -833,7 +833,7 @@ export interface NodeControlConfig {
|
|
|
833
833
|
*/
|
|
834
834
|
isInitializer?: boolean;
|
|
835
835
|
}
|
|
836
|
-
export type NodeTypeEnum = 'social-audio' | 'text' | 'media' | 'video-import' | 'image-template' | 'video-template' | 'image-generation' | 'video-generation' | 'custom-model' | 'text-generation' | 'output' | 'manual-trigger' | 'recurrence' | 'sub-agent' | 'account' | '
|
|
836
|
+
export type NodeTypeEnum = 'social-audio' | 'text' | 'media' | 'video-import' | 'image-template' | 'video-template' | 'image-generation' | 'video-generation' | 'custom-model' | 'text-generation' | 'output' | 'manual-trigger' | 'recurrence' | 'sub-agent' | 'account' | 'auto-post' | 'save-to-media' | 'deduplicate' | 'for-each' | 'transcript' | 'auto-caption';
|
|
837
837
|
export interface OutputSchemaProperty {
|
|
838
838
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
839
839
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -939,8 +939,7 @@ export interface WorkflowNodeDefinition {
|
|
|
939
939
|
outputConfig?: OutputNodeConfig;
|
|
940
940
|
accountConfig?: AccountNodeConfig;
|
|
941
941
|
mediaConfig?: MediaNodeConfig;
|
|
942
|
-
|
|
943
|
-
postSlideshowConfig?: PostSlideshowNodeConfig;
|
|
942
|
+
autoPostConfig?: AutoPostNodeConfig;
|
|
944
943
|
saveToMediaConfig?: SaveToMediaNodeConfig;
|
|
945
944
|
deduplicateConfig?: DeduplicateNodeConfig;
|
|
946
945
|
videoImportConfig?: VideoImportNodeConfig;
|
|
@@ -1129,25 +1128,24 @@ export interface PostSchedulingConfig {
|
|
|
1129
1128
|
requireApproval?: boolean;
|
|
1130
1129
|
}
|
|
1131
1130
|
/**
|
|
1132
|
-
* Post
|
|
1131
|
+
* Auto Post mode - video or slideshow
|
|
1133
1132
|
*/
|
|
1134
|
-
export
|
|
1135
|
-
/** Scheduling configuration */
|
|
1136
|
-
scheduling?: PostSchedulingConfig;
|
|
1137
|
-
}
|
|
1133
|
+
export type AutoPostMode = 'video' | 'slideshow';
|
|
1138
1134
|
/**
|
|
1139
|
-
* Post
|
|
1135
|
+
* Auto Post input definition (for slideshow mode)
|
|
1140
1136
|
*/
|
|
1141
|
-
export interface
|
|
1137
|
+
export interface AutoPostInput {
|
|
1142
1138
|
id: string;
|
|
1143
1139
|
title: string;
|
|
1144
1140
|
}
|
|
1145
1141
|
/**
|
|
1146
|
-
* Post
|
|
1142
|
+
* Auto Post node configuration - posts a video or slideshow to social media
|
|
1147
1143
|
*/
|
|
1148
|
-
export interface
|
|
1149
|
-
/**
|
|
1150
|
-
|
|
1144
|
+
export interface AutoPostNodeConfig {
|
|
1145
|
+
/** Post mode - video or slideshow */
|
|
1146
|
+
mode: AutoPostMode;
|
|
1147
|
+
/** Dynamic image inputs (only used in slideshow mode) */
|
|
1148
|
+
inputs?: AutoPostInput[];
|
|
1151
1149
|
/** Scheduling configuration */
|
|
1152
1150
|
scheduling?: PostSchedulingConfig;
|
|
1153
1151
|
}
|