ugcinc 2.98.0 → 2.99.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 +9 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +27 -1
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -205,6 +205,15 @@ function getAllNodes() {
|
|
|
205
205
|
},
|
|
206
206
|
],
|
|
207
207
|
},
|
|
208
|
+
{
|
|
209
|
+
type: "media",
|
|
210
|
+
label: "Media",
|
|
211
|
+
description: "Import images, videos, and audio files",
|
|
212
|
+
category: "Input",
|
|
213
|
+
nodeCategory: "source",
|
|
214
|
+
inputs: [],
|
|
215
|
+
outputs: [], // Dynamic based on enabledTypes config
|
|
216
|
+
},
|
|
208
217
|
// === Generator nodes ===
|
|
209
218
|
{
|
|
210
219
|
type: "image-editor",
|
package/dist/index.d.ts
CHANGED
|
@@ -15,4 +15,4 @@ export { MediaClient } from './media';
|
|
|
15
15
|
export { CommentsClient } from './comments';
|
|
16
16
|
export type { RenderJobResponse, RenderJobStatus, SubmitImageRenderJobParams, SubmitVideoRenderJobParams, RenderVideoEditorConfig, } from './render';
|
|
17
17
|
export type { ClientConfig, } from './base';
|
|
18
|
-
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, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, } from './types';
|
|
18
|
+
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, 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
|
@@ -825,7 +825,7 @@ export interface NodeControlConfig {
|
|
|
825
825
|
*/
|
|
826
826
|
isInitializer?: boolean;
|
|
827
827
|
}
|
|
828
|
-
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';
|
|
828
|
+
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'social-audio' | 'text' | 'media' | 'image-editor' | 'video-editor' | 'image-generation' | 'llm' | 'output' | 'manual-trigger' | 'recurrence' | 'workflow' | 'account' | 'post-video' | 'post-slideshow' | 'save-to-media';
|
|
829
829
|
export interface OutputSchemaProperty {
|
|
830
830
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
831
831
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -922,6 +922,7 @@ export interface WorkflowNodeDefinition {
|
|
|
922
922
|
workflowPassThrough?: Record<string, boolean>;
|
|
923
923
|
outputConfig?: OutputNodeConfig;
|
|
924
924
|
accountConfig?: AccountNodeConfig;
|
|
925
|
+
mediaConfig?: MediaNodeConfig;
|
|
925
926
|
postVideoConfig?: PostVideoNodeConfig;
|
|
926
927
|
postSlideshowConfig?: PostSlideshowNodeConfig;
|
|
927
928
|
saveToMediaConfig?: SaveToMediaNodeConfig;
|
|
@@ -1016,6 +1017,31 @@ export interface AccountNodeConfig {
|
|
|
1016
1017
|
mode?: 'random' | 'sequential';
|
|
1017
1018
|
};
|
|
1018
1019
|
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Media node enabled type (image, video, or audio)
|
|
1022
|
+
*/
|
|
1023
|
+
export type MediaNodeEnabledType = 'image' | 'video' | 'audio';
|
|
1024
|
+
/**
|
|
1025
|
+
* Media node configuration - consolidated source node for image, video, and audio
|
|
1026
|
+
*/
|
|
1027
|
+
export interface MediaNodeConfig {
|
|
1028
|
+
/** Which media types are enabled for this node */
|
|
1029
|
+
enabledTypes: MediaNodeEnabledType[];
|
|
1030
|
+
/** Selected media IDs per type */
|
|
1031
|
+
selectedMediaIds?: {
|
|
1032
|
+
image?: string[];
|
|
1033
|
+
video?: string[];
|
|
1034
|
+
audio?: string[];
|
|
1035
|
+
};
|
|
1036
|
+
/** Selection configuration per type */
|
|
1037
|
+
selectionConfig?: {
|
|
1038
|
+
image?: SelectionConfig;
|
|
1039
|
+
video?: SelectionConfig;
|
|
1040
|
+
audio?: SelectionConfig;
|
|
1041
|
+
};
|
|
1042
|
+
/** Output mode */
|
|
1043
|
+
outputMode?: OutputMode;
|
|
1044
|
+
}
|
|
1019
1045
|
/**
|
|
1020
1046
|
* Post Video node configuration - posts a video to social media
|
|
1021
1047
|
*/
|