ugcinc 2.89.2 → 2.90.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
@@ -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, 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, 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
@@ -929,11 +929,41 @@ export interface ManualTriggerOutput {
929
929
  title: string;
930
930
  type: 'image' | 'video' | 'audio' | 'text' | 'social_audio' | 'account';
931
931
  }
932
+ /**
933
+ * Iteration mode for trigger nodes with collection input
934
+ * - 'fan-out': Spawn all runs simultaneously (one per element)
935
+ * - 'sequential': One element per trigger fire, cycling through the collection
936
+ */
937
+ export type TriggerIterationMode = 'fan-out' | 'sequential';
938
+ /**
939
+ * Behavior when sequential iteration exhausts all elements
940
+ * - 'repeat': Start from the beginning of the collection
941
+ * - 'stop': Stop the automation (disable schedule for recurrence)
942
+ */
943
+ export type IterationExhaustionBehavior = 'repeat' | 'stop';
944
+ /**
945
+ * Collection input configuration for trigger nodes
946
+ * When enabled, the trigger iterates over a collection (e.g., account group)
947
+ */
948
+ export interface TriggerCollectionConfig {
949
+ /** Whether collection iteration is enabled */
950
+ enabled: boolean;
951
+ /** How to iterate over the collection */
952
+ iterationMode: TriggerIterationMode;
953
+ /** What to do when sequential iteration exhausts all elements */
954
+ exhaustionBehavior?: IterationExhaustionBehavior;
955
+ /** The type of elements in the collection (for port type) */
956
+ elementType: 'account';
957
+ /** Account IDs to iterate over (for elementType='account') */
958
+ accountIds?: string[];
959
+ }
932
960
  /**
933
961
  * Manual Trigger node configuration - defines outputs that users provide when running
934
962
  */
935
963
  export interface ManualTriggerNodeConfig {
936
964
  outputs: ManualTriggerOutput[];
965
+ /** Optional collection input for iterating over multiple elements */
966
+ collectionInput?: TriggerCollectionConfig;
937
967
  }
938
968
  /**
939
969
  * Days of the week for recurrence scheduling
@@ -952,6 +982,10 @@ export interface RecurrenceNodeConfig {
952
982
  randomWindowStart: string;
953
983
  randomWindowEnd: string;
954
984
  timezone: string;
985
+ /** Maximum number of runs before stopping (null = unlimited) */
986
+ maxRuns?: number | null;
987
+ /** Optional collection input for iterating over multiple elements */
988
+ collectionInput?: TriggerCollectionConfig;
955
989
  }
956
990
  /**
957
991
  * Account node configuration - source node for selecting accounts to post from
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.89.2",
3
+ "version": "2.90.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",