ugcinc 3.15.0 → 3.17.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 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, CollectionSelectionMode, TriggerCollectionConfig, DayOfWeek, RecurrenceMediaConfig, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, RecurrenceMediaEnabledType, MediaNodeConfig, PostSchedulingMode, PostScheduledSubMode, PostSchedulingConfig, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachInputPort, ForEachNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } 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, CollectionSelectionMode, TriggerCollectionConfig, DayOfWeek, RecurrenceMediaOutput, RecurrenceMediaConfig, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, RecurrenceMediaEnabledType, MediaNodeConfig, PostSchedulingMode, PostScheduledSubMode, PostSchedulingConfig, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachInputPort, ForEachNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './types';
package/dist/types.d.ts CHANGED
@@ -985,10 +985,6 @@ export type CollectionSelectionMode = 'specific' | 'by-tag';
985
985
  export interface TriggerCollectionConfig {
986
986
  /** Whether account iteration is enabled */
987
987
  enabled: boolean;
988
- /** How to iterate over the accounts */
989
- iterationMode: TriggerIterationMode;
990
- /** What to do when sequential iteration exhausts all accounts */
991
- exhaustionBehavior?: IterationExhaustionBehavior;
992
988
  /** Selection mode: 'specific' uses accountIds, 'by-tag' queries at runtime */
993
989
  selectionMode?: CollectionSelectionMode;
994
990
  /** Account IDs to iterate over (used when selectionMode is 'specific' or undefined) */
@@ -1008,6 +1004,16 @@ export interface ManualTriggerNodeConfig {
1008
1004
  * Days of the week for recurrence scheduling
1009
1005
  */
1010
1006
  export type DayOfWeek = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
1007
+ /**
1008
+ * Recurrence media output port definition
1009
+ * Each output is a named port with a specific media type
1010
+ */
1011
+ export interface RecurrenceMediaOutput {
1012
+ /** Unique ID for this output port (e.g., "background-image", "overlay") */
1013
+ id: string;
1014
+ /** Media type for this port */
1015
+ type: 'image' | 'video' | 'audio' | 'text' | 'social_audio';
1016
+ }
1011
1017
  /**
1012
1018
  * Media input configuration for recurrence nodes
1013
1019
  * Allows selecting media by specific IDs or by tag (queried at runtime)
@@ -1015,8 +1021,8 @@ export type DayOfWeek = 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'frida
1015
1021
  export interface RecurrenceMediaConfig {
1016
1022
  /** Whether media input is enabled */
1017
1023
  enabled: boolean;
1018
- /** Which media types to output (determines output ports) */
1019
- enabledTypes: RecurrenceMediaEnabledType[];
1024
+ /** Named output ports - each gets a random item from the pool */
1025
+ outputs: RecurrenceMediaOutput[];
1020
1026
  /** Selection mode: 'specific' uses selectedMediaIds, 'by-tag' queries at runtime */
1021
1027
  selectionMode: CollectionSelectionMode;
1022
1028
  /** Media IDs per type (used when selectionMode is 'specific') */
@@ -1025,24 +1031,10 @@ export interface RecurrenceMediaConfig {
1025
1031
  video?: string[];
1026
1032
  audio?: string[];
1027
1033
  text?: string[];
1034
+ social_audio?: string[];
1028
1035
  };
1029
1036
  /** Tag to query media by at runtime (used when selectionMode is 'by-tag') */
1030
1037
  mediaTag?: string;
1031
- /** How to pick from the pool for each type */
1032
- selectionConfig?: {
1033
- image?: {
1034
- mode: 'random' | 'sequential';
1035
- };
1036
- video?: {
1037
- mode: 'random' | 'sequential';
1038
- };
1039
- audio?: {
1040
- mode: 'random' | 'sequential';
1041
- };
1042
- text?: {
1043
- mode: 'random' | 'sequential';
1044
- };
1045
- };
1046
1038
  }
1047
1039
  /**
1048
1040
  * Recurrence node configuration - defines when the automation runs on a schedule
@@ -1083,10 +1075,10 @@ export interface AccountNodeConfig {
1083
1075
  */
1084
1076
  export type MediaNodeEnabledType = 'image' | 'video' | 'audio';
1085
1077
  /**
1086
- * Recurrence media enabled type (image, video, audio, or text)
1087
- * Extended to include text for recurrence nodes
1078
+ * Recurrence media enabled type
1079
+ * Includes all media types that can be output from recurrence nodes
1088
1080
  */
1089
- export type RecurrenceMediaEnabledType = 'image' | 'video' | 'audio' | 'text';
1081
+ export type RecurrenceMediaEnabledType = 'image' | 'video' | 'audio' | 'text' | 'social_audio';
1090
1082
  /**
1091
1083
  * Media node configuration - consolidated source node for image, video, and audio
1092
1084
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.15.0",
3
+ "version": "3.17.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",