ugcinc 3.10.2 → 3.12.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.
@@ -225,52 +225,6 @@ function getAllNodes() {
225
225
  },
226
226
  ],
227
227
  },
228
- // Hidden legacy source nodes (replaced by media node)
229
- {
230
- type: "image",
231
- label: "Image",
232
- description: "Import image files",
233
- category: "Sources",
234
- nodeCategory: "source",
235
- inputs: [],
236
- outputs: [
237
- {
238
- id: "image",
239
- type: "image",
240
- required: true,
241
- },
242
- ],
243
- },
244
- {
245
- type: "video",
246
- label: "Video",
247
- description: "Import video files",
248
- category: "Sources",
249
- nodeCategory: "source",
250
- inputs: [],
251
- outputs: [
252
- {
253
- id: "video",
254
- type: "video",
255
- required: true,
256
- },
257
- ],
258
- },
259
- {
260
- type: "audio",
261
- label: "Audio",
262
- description: "Import audio files",
263
- category: "Sources",
264
- nodeCategory: "source",
265
- inputs: [],
266
- outputs: [
267
- {
268
- id: "audio",
269
- type: "audio",
270
- required: true,
271
- },
272
- ],
273
- },
274
228
  // === Generator nodes ===
275
229
  {
276
230
  type: "image-template",
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, 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, TriggerCollectionConfig, DayOfWeek, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, 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
@@ -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' | 'auto-caption';
827
+ export type NodeTypeEnum = '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';
@@ -1057,21 +1057,15 @@ export interface MediaNodeConfig {
1057
1057
  /**
1058
1058
  * Scheduling mode for post nodes
1059
1059
  * - 'scheduled': Post at a specific time (immediately or at a connected date)
1060
- * - 'rate-limited': Automatically schedule based on frequency limits
1060
+ * - 'queue': Automatically schedule based on queue constraints
1061
1061
  */
1062
- export type PostSchedulingMode = 'scheduled' | 'rate-limited';
1062
+ export type PostSchedulingMode = 'scheduled' | 'queue';
1063
1063
  /**
1064
1064
  * Sub-mode for scheduled posting
1065
1065
  * - 'immediately': Posts when automation runs (no date input needed)
1066
1066
  * - 'specific-time': Requires a date input connection
1067
1067
  */
1068
1068
  export type PostScheduledSubMode = 'immediately' | 'specific-time';
1069
- /**
1070
- * Frequency type for rate-limited posting
1071
- * - 'daily': Specifies number of posts per day
1072
- * - 'periodic': Specifies days between posts (for less than 1 post per day)
1073
- */
1074
- export type PostRateLimitFrequency = 'daily' | 'periodic';
1075
1069
  /**
1076
1070
  * Post scheduling configuration for post nodes
1077
1071
  */
@@ -1080,12 +1074,10 @@ export interface PostSchedulingConfig {
1080
1074
  mode: PostSchedulingMode;
1081
1075
  /** Sub-mode when mode is 'scheduled' */
1082
1076
  scheduledSubMode?: PostScheduledSubMode;
1083
- /** Frequency type when mode is 'rate-limited' */
1084
- frequencyType?: PostRateLimitFrequency;
1085
- /** Posts per day (when frequencyType is 'daily', 1-10) */
1086
- postsPerDay?: number;
1087
- /** Days between posts (when frequencyType is 'periodic', e.g., 7=weekly) */
1088
- periodDays?: number;
1077
+ /** Minimum hours between posts for this account (min 1) */
1078
+ minDistanceHours?: number;
1079
+ /** Maximum posts per day for this account (min 1) */
1080
+ maxPostsPerDay?: number;
1089
1081
  /** Minimum time of day for posting (HH:mm format, e.g., '09:00') */
1090
1082
  randomWindowStart?: string;
1091
1083
  /** Maximum time of day for posting (HH:mm format, e.g., '21:00') */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.10.2",
3
+ "version": "3.12.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",