ugcinc 3.0.0 → 3.1.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/index.d.ts +1 -1
- package/dist/types.d.ts +47 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export { MediaClient } from './media';
|
|
|
17
17
|
export { CommentsClient } from './comments';
|
|
18
18
|
export type { RenderJobResponse, RenderJobStatus, SubmitImageRenderJobParams, SubmitVideoRenderJobParams, RenderVideoEditorConfig, } from './render';
|
|
19
19
|
export type { ClientConfig, } from './base';
|
|
20
|
-
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, TriggerCollectionConfig, DayOfWeek, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, MediaNodeConfig, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, } from './types';
|
|
20
|
+
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, TriggerCollectionConfig, DayOfWeek, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, MediaNodeConfig, PostSchedulingMode, PostScheduledSubMode, PostRateLimitFrequency, PostSchedulingConfig, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -461,7 +461,7 @@ export interface DynamicCropConfig {
|
|
|
461
461
|
}
|
|
462
462
|
export type { ImageEditorElement, ImageEditorNodeConfig, DimensionPresetKey };
|
|
463
463
|
export interface ImageEditorNodeInput extends Record<string, unknown> {
|
|
464
|
-
type: 'image-
|
|
464
|
+
type: 'image-template';
|
|
465
465
|
config: ImageEditorNodeConfig;
|
|
466
466
|
imageUrls: Record<string, string>;
|
|
467
467
|
textValues: Record<string, string>;
|
|
@@ -797,7 +797,7 @@ export interface NodePort {
|
|
|
797
797
|
* Functional category for automation nodes
|
|
798
798
|
* - trigger: Nodes that start an automation (manual-trigger, recurrence)
|
|
799
799
|
* - source: Nodes that provide input data (image, video, audio, social-audio, text, account)
|
|
800
|
-
* - generator: Nodes that transform or generate content (image-
|
|
800
|
+
* - generator: Nodes that transform or generate content (image-template, video-template, image-generation, text-generation, sub-agent)
|
|
801
801
|
* - terminal: Nodes that end an automation (output, post-video, post-slideshow, save-to-media)
|
|
802
802
|
*/
|
|
803
803
|
export type NodeCategory = 'trigger' | 'source' | 'generator' | 'terminal';
|
|
@@ -1045,10 +1045,52 @@ export interface MediaNodeConfig {
|
|
|
1045
1045
|
/** Output mode */
|
|
1046
1046
|
outputMode?: OutputMode;
|
|
1047
1047
|
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Scheduling mode for post nodes
|
|
1050
|
+
* - 'scheduled': Post at a specific time (immediately or at a connected date)
|
|
1051
|
+
* - 'rate-limited': Automatically schedule based on frequency limits
|
|
1052
|
+
*/
|
|
1053
|
+
export type PostSchedulingMode = 'scheduled' | 'rate-limited';
|
|
1054
|
+
/**
|
|
1055
|
+
* Sub-mode for scheduled posting
|
|
1056
|
+
* - 'immediately': Posts when automation runs (no date input needed)
|
|
1057
|
+
* - 'specific-time': Requires a date input connection
|
|
1058
|
+
*/
|
|
1059
|
+
export type PostScheduledSubMode = 'immediately' | 'specific-time';
|
|
1060
|
+
/**
|
|
1061
|
+
* Frequency type for rate-limited posting
|
|
1062
|
+
* - 'daily': Specifies number of posts per day
|
|
1063
|
+
* - 'periodic': Specifies days between posts (for less than 1 post per day)
|
|
1064
|
+
*/
|
|
1065
|
+
export type PostRateLimitFrequency = 'daily' | 'periodic';
|
|
1066
|
+
/**
|
|
1067
|
+
* Post scheduling configuration for post nodes
|
|
1068
|
+
*/
|
|
1069
|
+
export interface PostSchedulingConfig {
|
|
1070
|
+
/** Main scheduling mode */
|
|
1071
|
+
mode: PostSchedulingMode;
|
|
1072
|
+
/** Sub-mode when mode is 'scheduled' */
|
|
1073
|
+
scheduledSubMode?: PostScheduledSubMode;
|
|
1074
|
+
/** Frequency type when mode is 'rate-limited' */
|
|
1075
|
+
frequencyType?: PostRateLimitFrequency;
|
|
1076
|
+
/** Posts per day (when frequencyType is 'daily', 1-10) */
|
|
1077
|
+
postsPerDay?: number;
|
|
1078
|
+
/** Days between posts (when frequencyType is 'periodic', e.g., 7=weekly) */
|
|
1079
|
+
periodDays?: number;
|
|
1080
|
+
/** Minimum time of day for posting (HH:mm format, e.g., '09:00') */
|
|
1081
|
+
randomWindowStart?: string;
|
|
1082
|
+
/** Maximum time of day for posting (HH:mm format, e.g., '21:00') */
|
|
1083
|
+
randomWindowEnd?: string;
|
|
1084
|
+
/** Timezone for time window (IANA timezone, e.g., 'America/New_York') */
|
|
1085
|
+
timezone?: string;
|
|
1086
|
+
}
|
|
1048
1087
|
/**
|
|
1049
1088
|
* Post Video node configuration - posts a video to social media
|
|
1050
1089
|
*/
|
|
1051
|
-
export
|
|
1090
|
+
export interface PostVideoNodeConfig {
|
|
1091
|
+
/** Scheduling configuration */
|
|
1092
|
+
scheduling?: PostSchedulingConfig;
|
|
1093
|
+
}
|
|
1052
1094
|
/**
|
|
1053
1095
|
* Post Slideshow input definition
|
|
1054
1096
|
*/
|
|
@@ -1062,6 +1104,8 @@ export interface PostSlideshowInput {
|
|
|
1062
1104
|
export interface PostSlideshowNodeConfig {
|
|
1063
1105
|
/** Dynamic image inputs */
|
|
1064
1106
|
inputs: PostSlideshowInput[];
|
|
1107
|
+
/** Scheduling configuration */
|
|
1108
|
+
scheduling?: PostSchedulingConfig;
|
|
1065
1109
|
}
|
|
1066
1110
|
/**
|
|
1067
1111
|
* Save To Media node input definition
|