ugcinc 3.7.0 → 3.8.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.
@@ -544,6 +544,28 @@ function getAllNodes() {
544
544
  },
545
545
  ],
546
546
  },
547
+ // === Auto Caption ===
548
+ {
549
+ type: "auto-caption",
550
+ label: "Auto Caption",
551
+ description: "Add TikTok-style captions to videos",
552
+ category: "Generation",
553
+ nodeCategory: "generator",
554
+ inputs: [
555
+ {
556
+ id: "video",
557
+ type: "video",
558
+ required: true,
559
+ },
560
+ ],
561
+ outputs: [
562
+ {
563
+ id: "output",
564
+ type: "video",
565
+ required: true,
566
+ },
567
+ ],
568
+ },
547
569
  ];
548
570
  }
549
571
  /**
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, 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, ValidationErrorType, ValidationError, } 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, ForEachOutputProperty, ForEachNodeConfig, 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, ValidationErrorType, ValidationError, } from './types';
package/dist/types.d.ts CHANGED
@@ -824,7 +824,7 @@ export interface NodeControlConfig {
824
824
  */
825
825
  isInitializer?: boolean;
826
826
  }
827
- export type NodeTypeEnum = 'image' | 'video' | 'audio' | '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' | 'post-video' | 'post-slideshow' | 'save-to-media' | 'deduplicate' | 'for-each' | 'transcript';
827
+ export type NodeTypeEnum = 'image' | 'video' | 'audio' | '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' | 'post-video' | 'post-slideshow' | 'save-to-media' | 'deduplicate' | 'for-each' | 'transcript' | 'auto-caption';
828
828
  export interface OutputSchemaProperty {
829
829
  type: 'string' | 'number' | 'boolean' | 'array' | 'object';
830
830
  items?: 'string' | 'number' | 'boolean';
@@ -937,6 +937,8 @@ export interface WorkflowNodeDefinition {
937
937
  videoImportConfig?: VideoImportNodeConfig;
938
938
  videoGeneration?: VideoGenerationNodeConfig;
939
939
  customModelConfig?: CustomModelNodeConfig;
940
+ forEachConfig?: ForEachNodeConfig;
941
+ autoCaptionConfig?: AutoCaptionNodeConfig;
940
942
  };
941
943
  }
942
944
  export interface OutputInput {
@@ -1182,6 +1184,49 @@ export interface VideoImportNodeConfig {
1182
1184
  /** Video quality preference */
1183
1185
  videoQuality?: VideoImportQuality;
1184
1186
  }
1187
+ /**
1188
+ * Auto Caption preset styles
1189
+ */
1190
+ export type AutoCaptionPreset = 'hormozi' | 'minimal' | 'bold-pop' | 'clean' | 'neon';
1191
+ /**
1192
+ * Auto Caption font weight options
1193
+ */
1194
+ export type AutoCaptionFontWeight = 'normal' | 'bold' | 'black';
1195
+ /**
1196
+ * Auto Caption position options
1197
+ */
1198
+ export type AutoCaptionPosition = 'top' | 'center' | 'bottom';
1199
+ /**
1200
+ * Auto Caption node configuration - adds TikTok-style captions to videos
1201
+ */
1202
+ export interface AutoCaptionNodeConfig {
1203
+ /** Preset style (if set, other values are derived from preset) */
1204
+ preset?: AutoCaptionPreset;
1205
+ /** Google Font name */
1206
+ fontName?: string;
1207
+ /** Font size in pixels (20-150) */
1208
+ fontSize?: number;
1209
+ /** Font weight */
1210
+ fontWeight?: AutoCaptionFontWeight;
1211
+ /** Main text color */
1212
+ fontColor?: string;
1213
+ /** Highlighted/active word color */
1214
+ highlightColor?: string;
1215
+ /** Text stroke/outline color */
1216
+ strokeColor?: string;
1217
+ /** Stroke width in pixels (0-10) */
1218
+ strokeWidth?: number;
1219
+ /** Background color behind text */
1220
+ backgroundColor?: string;
1221
+ /** Vertical position */
1222
+ position?: AutoCaptionPosition;
1223
+ /** Words per subtitle segment (1-12) */
1224
+ wordsPerSubtitle?: number;
1225
+ /** Enable bounce animation effect */
1226
+ enableAnimation?: boolean;
1227
+ /** Language code for transcription */
1228
+ language?: string;
1229
+ }
1185
1230
  /**
1186
1231
  * Video Generation Model IDs
1187
1232
  * Text-to-video models take just a prompt, image-to-video models require an image input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",