ugcinc 2.88.1 → 2.89.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 +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +20 -3
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -261,6 +261,7 @@ function getAllNodes() {
|
|
|
261
261
|
inputs: [],
|
|
262
262
|
// Dynamic outputs based on manualTriggerConfig.outputs
|
|
263
263
|
outputs: [],
|
|
264
|
+
isInitializer: true,
|
|
264
265
|
},
|
|
265
266
|
{
|
|
266
267
|
type: "recurrence",
|
|
@@ -269,6 +270,7 @@ function getAllNodes() {
|
|
|
269
270
|
category: "Input",
|
|
270
271
|
inputs: [],
|
|
271
272
|
outputs: [],
|
|
273
|
+
isInitializer: true,
|
|
272
274
|
},
|
|
273
275
|
{
|
|
274
276
|
type: "workflow",
|
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, 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, 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';
|
package/dist/types.d.ts
CHANGED
|
@@ -804,6 +804,12 @@ export interface NodeControlConfig {
|
|
|
804
804
|
* when outputMode is 'per-input'. Used for source nodes like image, audio, text.
|
|
805
805
|
*/
|
|
806
806
|
supportsPerInputMode?: boolean;
|
|
807
|
+
/**
|
|
808
|
+
* If true, this is an initializer node (starts an automation).
|
|
809
|
+
* Only one initializer node is allowed per automation.
|
|
810
|
+
* Manual Trigger and Recurrence nodes are initializers.
|
|
811
|
+
*/
|
|
812
|
+
isInitializer?: boolean;
|
|
807
813
|
}
|
|
808
814
|
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';
|
|
809
815
|
export interface OutputSchemaProperty {
|
|
@@ -930,11 +936,22 @@ export interface ManualTriggerNodeConfig {
|
|
|
930
936
|
outputs: ManualTriggerOutput[];
|
|
931
937
|
}
|
|
932
938
|
/**
|
|
933
|
-
*
|
|
939
|
+
* Days of the week for recurrence scheduling
|
|
940
|
+
*/
|
|
941
|
+
export type DayOfWeek = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
|
|
942
|
+
/**
|
|
943
|
+
* Recurrence node configuration - defines when the automation runs on a schedule
|
|
934
944
|
*/
|
|
935
945
|
export interface RecurrenceNodeConfig {
|
|
936
|
-
|
|
937
|
-
|
|
946
|
+
frequencyType: 'per-day' | 'periodic';
|
|
947
|
+
runsPerDay: number;
|
|
948
|
+
periodDays: number;
|
|
949
|
+
daysOfWeek: DayOfWeek[];
|
|
950
|
+
timingType: 'specific' | 'random-window';
|
|
951
|
+
specificTimes: string[];
|
|
952
|
+
randomWindowStart: string;
|
|
953
|
+
randomWindowEnd: string;
|
|
954
|
+
timezone: string;
|
|
938
955
|
}
|
|
939
956
|
/**
|
|
940
957
|
* Account node configuration - source node for selecting accounts to post from
|