ugcinc 2.51.0 → 2.52.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, 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,76 @@ 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 interface ImageEditorNodeConfig {
436
+ width: number;
437
+ height: number;
438
+ aspectRatio: string;
439
+ dimensionPreset: string;
440
+ elements: ImageEditorElement[];
441
+ backgroundFit?: 'cover' | 'contain' | 'fill';
442
+ previewBackgroundUrl?: string;
443
+ previewImageUrls?: Record<string, string>;
444
+ previewTextValues?: Record<string, string>;
445
+ dynamicCrop?: DynamicCropConfig;
446
+ }
377
447
  export interface EditorConfig extends BaseEditorConfig {
378
448
  channels: Array<{
379
449
  id: string;
@@ -774,7 +844,7 @@ export interface WorkflowNodeDefinition {
774
844
  urls?: string[];
775
845
  textOptions?: string[];
776
846
  videoEditor?: VideoEditorConfig;
777
- imageEditor?: ImageEditorConfig;
847
+ imageEditor?: ImageEditorConfig | ImageEditorNodeConfig;
778
848
  outputSchema?: Record<string, OutputSchemaProperty>;
779
849
  selectionConfig?: SelectionConfig;
780
850
  selectionState?: SelectionState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.51.0",
3
+ "version": "2.52.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",