ugcinc 3.21.0 → 3.22.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.
@@ -385,42 +385,14 @@ function getAllNodes() {
385
385
  },
386
386
  // === Terminal nodes ===
387
387
  {
388
- type: "post-video",
389
- label: "Post Video",
390
- description: "Publish a video post",
388
+ type: "auto-post",
389
+ label: "Auto Post",
390
+ description: "Publish a video or slideshow",
391
391
  category: "Output",
392
392
  nodeCategory: "terminal",
393
- inputs: [
394
- {
395
- id: "video",
396
- type: "video",
397
- required: true,
398
- },
399
- {
400
- id: "account",
401
- type: "account",
402
- required: true,
403
- },
404
- {
405
- id: "caption",
406
- type: "text",
407
- required: false,
408
- },
409
- {
410
- id: "social-audio",
411
- type: "social_audio",
412
- required: false,
413
- },
414
- ],
415
- outputs: [],
416
- },
417
- {
418
- type: "post-slideshow",
419
- label: "Post Slideshow",
420
- description: "Publish a slideshow post",
421
- category: "Output",
422
- nodeCategory: "terminal",
423
- // Dynamic inputs based on postSlideshowConfig.inputs
393
+ // Dynamic inputs based on autoPostConfig.mode:
394
+ // - video mode: video (required), account, caption, social-audio
395
+ // - slideshow mode: dynamic image inputs from config, account, caption, social-audio
424
396
  inputs: [
425
397
  {
426
398
  id: "account",
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, 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, 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, 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';
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, 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, PostSchedulingConfig, AutoPostMode, AutoPostInput, AutoPostNodeConfig, 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
@@ -807,7 +807,7 @@ export interface NodePort {
807
807
  * - trigger: Nodes that start an automation (manual-trigger, recurrence)
808
808
  * - source: Nodes that provide input data (image, video, audio, social-audio, text, account)
809
809
  * - generator: Nodes that transform or generate content (image-template, video-template, image-generation, text-generation, sub-agent)
810
- * - terminal: Nodes that end an automation (output, post-video, post-slideshow, save-to-media)
810
+ * - terminal: Nodes that end an automation (output, auto-post, save-to-media)
811
811
  */
812
812
  export type NodeCategory = 'trigger' | 'source' | 'generator' | 'terminal';
813
813
  export interface NodeControlConfig {
@@ -833,7 +833,7 @@ export interface NodeControlConfig {
833
833
  */
834
834
  isInitializer?: boolean;
835
835
  }
836
- 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';
836
+ 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' | 'auto-post' | 'save-to-media' | 'deduplicate' | 'for-each' | 'transcript' | 'auto-caption';
837
837
  export interface OutputSchemaProperty {
838
838
  type: 'string' | 'number' | 'boolean' | 'array' | 'object';
839
839
  items?: 'string' | 'number' | 'boolean';
@@ -939,8 +939,7 @@ export interface WorkflowNodeDefinition {
939
939
  outputConfig?: OutputNodeConfig;
940
940
  accountConfig?: AccountNodeConfig;
941
941
  mediaConfig?: MediaNodeConfig;
942
- postVideoConfig?: PostVideoNodeConfig;
943
- postSlideshowConfig?: PostSlideshowNodeConfig;
942
+ autoPostConfig?: AutoPostNodeConfig;
944
943
  saveToMediaConfig?: SaveToMediaNodeConfig;
945
944
  deduplicateConfig?: DeduplicateNodeConfig;
946
945
  videoImportConfig?: VideoImportNodeConfig;
@@ -1129,25 +1128,24 @@ export interface PostSchedulingConfig {
1129
1128
  requireApproval?: boolean;
1130
1129
  }
1131
1130
  /**
1132
- * Post Video node configuration - posts a video to social media
1131
+ * Auto Post mode - video or slideshow
1133
1132
  */
1134
- export interface PostVideoNodeConfig {
1135
- /** Scheduling configuration */
1136
- scheduling?: PostSchedulingConfig;
1137
- }
1133
+ export type AutoPostMode = 'video' | 'slideshow';
1138
1134
  /**
1139
- * Post Slideshow input definition
1135
+ * Auto Post input definition (for slideshow mode)
1140
1136
  */
1141
- export interface PostSlideshowInput {
1137
+ export interface AutoPostInput {
1142
1138
  id: string;
1143
1139
  title: string;
1144
1140
  }
1145
1141
  /**
1146
- * Post Slideshow node configuration - posts a slideshow to social media
1142
+ * Auto Post node configuration - posts a video or slideshow to social media
1147
1143
  */
1148
- export interface PostSlideshowNodeConfig {
1149
- /** Dynamic image inputs */
1150
- inputs: PostSlideshowInput[];
1144
+ export interface AutoPostNodeConfig {
1145
+ /** Post mode - video or slideshow */
1146
+ mode: AutoPostMode;
1147
+ /** Dynamic image inputs (only used in slideshow mode) */
1148
+ inputs?: AutoPostInput[];
1151
1149
  /** Scheduling configuration */
1152
1150
  scheduling?: PostSchedulingConfig;
1153
1151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "3.21.0",
3
+ "version": "3.22.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",