ugcinc 2.46.0 → 2.48.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
@@ -13,4 +13,4 @@ export { RenderClient } from './render';
13
13
  export { AutomationsClient, getAllNodes, getNodeByType } from './automations';
14
14
  export { MediaClient } from './media';
15
15
  export type { ClientConfig, } from './base';
16
- export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig, VideoEditorConfig, ImageEditorConfig, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, PositionAnchor, RelativePositionConfig, RenderJobSubmit, RenderVideoRequest, RenderImageRequest, RenderJobResponse, RenderJobStatus, 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, AutomationTemplate, AutomationRun, NodeRun, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, } from './types';
16
+ export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig, VideoEditorConfig, ImageEditorConfig, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, PositionAnchor, RelativePositionConfig, RenderJobSubmit, RenderVideoRequest, RenderImageRequest, RenderJobResponse, RenderJobStatus, 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, AutomationTemplate, AutomationRun, NodeRun, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, OutputInput, OutputNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, } from './types';
package/dist/types.d.ts CHANGED
@@ -350,11 +350,29 @@ export interface VideoEditorConfig extends BaseEditorConfig {
350
350
  segments: EditorSegment[];
351
351
  }>;
352
352
  }
353
+ export interface CropBoundary {
354
+ elementId?: string;
355
+ inputRef?: string;
356
+ }
357
+ export interface CropAxisConfig {
358
+ enabled: boolean;
359
+ mode: 'all-elements' | 'between-elements';
360
+ startBoundary?: CropBoundary;
361
+ endBoundary?: CropBoundary;
362
+ paddingStart?: number;
363
+ paddingEnd?: number;
364
+ minSize?: number;
365
+ }
366
+ export interface DynamicCropConfig {
367
+ vertical?: CropAxisConfig;
368
+ horizontal?: CropAxisConfig;
369
+ }
353
370
  export interface ImageEditorConfig extends BaseEditorConfig {
354
371
  channels: Array<{
355
372
  id: string;
356
373
  segments: StaticSegment[];
357
374
  }>;
375
+ dynamicCrop?: DynamicCropConfig;
358
376
  }
359
377
  export interface EditorConfig extends BaseEditorConfig {
360
378
  channels: Array<{
@@ -766,8 +784,21 @@ export interface WorkflowNodeDefinition {
766
784
  workflowTemplateId?: string;
767
785
  workflowVariableNameToIdMap?: Record<string, string>;
768
786
  workflowPassThrough?: Record<string, boolean>;
787
+ outputConfig?: OutputNodeConfig;
769
788
  };
770
789
  }
790
+ export interface OutputInput {
791
+ id: string;
792
+ title: string;
793
+ type: 'image' | 'video' | 'audio' | 'text';
794
+ tag?: string;
795
+ }
796
+ export interface OutputNodeConfig {
797
+ inputs: OutputInput[];
798
+ saveToMedia: boolean;
799
+ globalTag?: string;
800
+ makeUnique: boolean;
801
+ }
771
802
  export interface CanvasState {
772
803
  zoom: number;
773
804
  panX: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.46.0",
3
+ "version": "2.48.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",