ugcinc 2.51.0 → 2.53.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, OutputInput, OutputNodeConfig, 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, ImageEditorNodeConfig, ImageEditorElement, DimensionPresetKey, 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
@@ -374,6 +374,77 @@ export interface ImageEditorConfig extends BaseEditorConfig {
374
374
  }>;
375
375
  dynamicCrop?: DynamicCropConfig;
376
376
  }
377
+ export interface ImageEditorElement {
378
+ id: string;
379
+ type: 'image' | 'text';
380
+ x: number;
381
+ y: number;
382
+ width: number;
383
+ height: number;
384
+ zIndex: number;
385
+ rotation?: number;
386
+ locked?: boolean;
387
+ relativePositionX?: {
388
+ elementId: string;
389
+ anchor: 'left' | 'right';
390
+ selfAnchor?: 'left' | 'center' | 'right';
391
+ offset: number;
392
+ };
393
+ relativePositionY?: {
394
+ elementId: string;
395
+ anchor: 'top' | 'bottom';
396
+ selfAnchor?: 'top' | 'middle' | 'bottom';
397
+ offset: number;
398
+ };
399
+ text?: string;
400
+ textInputId?: string;
401
+ color?: string;
402
+ outlineWidth?: number;
403
+ strokeColor?: string;
404
+ font?: 'arial' | 'tiktok' | 'apple';
405
+ fontSize?: number;
406
+ fontWeight?: 'normal' | 'bold';
407
+ lineHeight?: number;
408
+ letterSpacing?: number;
409
+ textAlign?: 'left' | 'center' | 'right' | 'justify';
410
+ verticalAlign?: 'top' | 'middle' | 'bottom';
411
+ backgroundColor?: string;
412
+ backgroundOpacity?: number;
413
+ backgroundBorderRadius?: {
414
+ topLeft?: number;
415
+ topRight?: number;
416
+ bottomRight?: number;
417
+ bottomLeft?: number;
418
+ };
419
+ paddingTop?: number;
420
+ paddingRight?: number;
421
+ paddingBottom?: number;
422
+ paddingLeft?: number;
423
+ autoWidth?: boolean;
424
+ boxAlign?: 'left' | 'center' | 'right';
425
+ inputId?: string;
426
+ fit?: 'cover' | 'contain' | 'fill';
427
+ opacity?: number;
428
+ borderRadius?: number | {
429
+ topLeft?: number;
430
+ topRight?: number;
431
+ bottomRight?: number;
432
+ bottomLeft?: number;
433
+ };
434
+ }
435
+ export type DimensionPresetKey = 'tiktok' | 'instagram-square' | 'instagram-post' | 'youtube' | 'twitter' | 'custom';
436
+ export interface ImageEditorNodeConfig {
437
+ width: number;
438
+ height: number;
439
+ aspectRatio: string;
440
+ dimensionPreset: DimensionPresetKey;
441
+ elements: ImageEditorElement[];
442
+ backgroundFit?: 'cover' | 'contain' | 'fill';
443
+ previewBackgroundUrl?: string;
444
+ previewImageUrls?: Record<string, string>;
445
+ previewTextValues?: Record<string, string>;
446
+ dynamicCrop?: DynamicCropConfig;
447
+ }
377
448
  export interface EditorConfig extends BaseEditorConfig {
378
449
  channels: Array<{
379
450
  id: string;
@@ -774,7 +845,7 @@ export interface WorkflowNodeDefinition {
774
845
  urls?: string[];
775
846
  textOptions?: string[];
776
847
  videoEditor?: VideoEditorConfig;
777
- imageEditor?: ImageEditorConfig;
848
+ imageEditor?: ImageEditorConfig | ImageEditorNodeConfig;
778
849
  outputSchema?: Record<string, OutputSchemaProperty>;
779
850
  selectionConfig?: SelectionConfig;
780
851
  selectionState?: SelectionState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.51.0",
3
+ "version": "2.53.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",