ugcinc 3.57.0 → 3.59.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 +19 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +37 -1
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -583,6 +583,25 @@ function getAllNodes() {
|
|
|
583
583
|
// - {branch-id}-{passthrough-id} (same type as input)
|
|
584
584
|
outputs: [],
|
|
585
585
|
},
|
|
586
|
+
{
|
|
587
|
+
type: "branch",
|
|
588
|
+
label: "Branch",
|
|
589
|
+
description: "Route inputs based on a key match",
|
|
590
|
+
category: "Control Flow",
|
|
591
|
+
nodeCategory: "generator",
|
|
592
|
+
// Static input: key (text) to match against branch keys
|
|
593
|
+
// Dynamic inputs based on branchConfig.passthroughInputs where isVariable is true
|
|
594
|
+
inputs: [
|
|
595
|
+
{
|
|
596
|
+
id: "key",
|
|
597
|
+
type: "text",
|
|
598
|
+
required: true,
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
|
+
// Dynamic outputs: for each passthrough input and branch, creates:
|
|
602
|
+
// - {branch-key}-{passthrough-id} (same type as input)
|
|
603
|
+
outputs: [],
|
|
604
|
+
},
|
|
586
605
|
// === Terminal nodes ===
|
|
587
606
|
{
|
|
588
607
|
type: "auto-post",
|
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, SubmitScreenshotAnimationRenderJobParams, SubmitInstagramDmRenderJobParams, SubmitIMessageDmRenderJobParams, IgDmMessage, ImDmMessage, 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, ResolvedPorts, 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, MediaNodeOutput, MediaNodeConfig, PostSchedulingMode, PostSchedulingConfig, AutoPostMode, AutoPostInputType, AutoPostInput, AutoPostNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachInputPort, ForEachNodeConfig, RandomValueType, RandomInputPort, RandomNodeMode, RandomNodeConfig, IfLogicOperator, IfBooleanInput, IfPassthroughInput, IfNodeConfig, RandomRouteBranch, RandomRoutePassthroughInput, RandomRouteObjectField, RandomRouteNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, ScreenshotAnimationNodeConfig, CreateDmMessage, CreateDmNodeConfig, VideoGenerationNodeConfig, ArrayType, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, MediaUse, GetMediaParams, CreateSocialAudioParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, GetMediaUseParams, GetMediaUseResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './types';
|
|
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, ResolvedPorts, 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, MediaNodeOutput, MediaNodeConfig, PostSchedulingMode, PostSchedulingConfig, AutoPostMode, AutoPostInputType, AutoPostInput, AutoPostNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachInputPort, ForEachNodeConfig, RandomValueType, RandomInputPort, RandomNodeMode, RandomNodeConfig, IfLogicOperator, IfBooleanInput, IfPassthroughInput, IfNodeConfig, RandomRouteBranch, RandomRoutePassthroughInput, RandomRouteObjectField, RandomRouteNodeConfig, BranchDefinition, BranchPassthroughInput, BranchNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, ScreenshotAnimationNodeConfig, CreateDmMessage, CreateDmNodeConfig, VideoGenerationNodeConfig, ArrayType, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, MediaUse, GetMediaParams, CreateSocialAudioParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, GetMediaUseParams, GetMediaUseResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -846,7 +846,7 @@ export interface NodeControlConfig {
|
|
|
846
846
|
*/
|
|
847
847
|
isInitializer?: boolean;
|
|
848
848
|
}
|
|
849
|
-
export type NodeTypeEnum = 'social-audio' | 'text' | 'media' | 'video-import' | 'image-composer' | 'video-composer' | 'generate-image' | 'generate-video' | 'custom-model' | 'llm' | 'output' | 'manual-trigger' | 'recurrence' | 'compose-workflow' | 'account' | 'auto-post' | 'save-to-media' | 'deduplicate' | 'for-each' | 'random' | 'random-route' | 'if' | 'not' | 'transcript' | 'auto-caption' | 'screenshot-animation' | 'create-dm';
|
|
849
|
+
export type NodeTypeEnum = 'social-audio' | 'text' | 'media' | 'video-import' | 'image-composer' | 'video-composer' | 'generate-image' | 'generate-video' | 'custom-model' | 'llm' | 'output' | 'manual-trigger' | 'recurrence' | 'compose-workflow' | 'account' | 'auto-post' | 'save-to-media' | 'deduplicate' | 'for-each' | 'random' | 'random-route' | 'branch' | 'if' | 'not' | 'transcript' | 'auto-caption' | 'screenshot-animation' | 'create-dm';
|
|
850
850
|
export interface OutputSchemaProperty {
|
|
851
851
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
852
852
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -966,6 +966,7 @@ export interface WorkflowNodeDefinition {
|
|
|
966
966
|
randomConfig?: RandomNodeConfig;
|
|
967
967
|
ifConfig?: IfNodeConfig;
|
|
968
968
|
randomRouteConfig?: RandomRouteNodeConfig;
|
|
969
|
+
branchConfig?: BranchNodeConfig;
|
|
969
970
|
autoCaptionConfig?: AutoCaptionNodeConfig;
|
|
970
971
|
screenshotAnimationConfig?: ScreenshotAnimationNodeConfig;
|
|
971
972
|
createDmConfig?: CreateDmNodeConfig;
|
|
@@ -1362,6 +1363,41 @@ export interface RandomRouteNodeConfig {
|
|
|
1362
1363
|
/** Passthrough inputs that get routed to one branch's outputs */
|
|
1363
1364
|
passthroughInputs: RandomRoutePassthroughInput[];
|
|
1364
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Branch node branch definition
|
|
1368
|
+
*/
|
|
1369
|
+
export interface BranchDefinition {
|
|
1370
|
+
/** The key to match against (e.g., "happy", "sad", "neutral") */
|
|
1371
|
+
key: string;
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Branch node passthrough input definition
|
|
1375
|
+
*/
|
|
1376
|
+
export interface BranchPassthroughInput {
|
|
1377
|
+
/** The input port ID (lowercase, hyphens/underscores only) */
|
|
1378
|
+
id: string;
|
|
1379
|
+
/** The value type */
|
|
1380
|
+
type: 'image' | 'video' | 'audio' | 'text' | 'number' | 'boolean' | 'account' | 'object';
|
|
1381
|
+
/** Whether this is an array type */
|
|
1382
|
+
isArray?: boolean;
|
|
1383
|
+
/** Whether this input comes from a variable (input port) vs static branch values. Defaults to false. */
|
|
1384
|
+
isVariable?: boolean;
|
|
1385
|
+
/** Static values per branch when isVariable is false. Key is branch key, value is the static value. */
|
|
1386
|
+
branchValues?: Record<string, unknown>;
|
|
1387
|
+
/** Object schema for object type (when type is 'object') */
|
|
1388
|
+
objectSchema?: RandomRouteObjectField[];
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* Branch node configuration - routes inputs to a branch based on key match
|
|
1392
|
+
*/
|
|
1393
|
+
export interface BranchNodeConfig {
|
|
1394
|
+
/** Output branches with keys to match against */
|
|
1395
|
+
branches: BranchDefinition[];
|
|
1396
|
+
/** Passthrough inputs that get routed to the matched branch's outputs */
|
|
1397
|
+
passthroughInputs: BranchPassthroughInput[];
|
|
1398
|
+
/** Optional default branch key if no match is found */
|
|
1399
|
+
defaultBranchKey?: string;
|
|
1400
|
+
}
|
|
1365
1401
|
/**
|
|
1366
1402
|
* Supported platforms for video import
|
|
1367
1403
|
* Note: YouTube is not yet implemented
|