ugcinc 2.56.0 → 2.58.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/automations.d.ts +0 -3
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +12 -67
- package/package.json +4 -1
package/dist/automations.d.ts
CHANGED
|
@@ -23,9 +23,6 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
23
23
|
name: string;
|
|
24
24
|
description?: string;
|
|
25
25
|
workflowDefinition: WorkflowDefinition;
|
|
26
|
-
outputSchema?: Record<string, {
|
|
27
|
-
type: string;
|
|
28
|
-
}>;
|
|
29
26
|
templateId?: string;
|
|
30
27
|
skipValidation?: boolean;
|
|
31
28
|
}): Promise<ApiResponse<string>>;
|
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, 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';
|
|
16
|
+
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig, VideoEditorConfig, ImageEditorConfig, ImageEditorNodeConfig, ImageEditorElement, ImageEditorNodeInput, ImageEditorNodeOutput, 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ImageEditorElement as RemotionImageEditorElement, ImageEditorNodeConfig as RemotionImageEditorNodeConfig, DimensionPresetKey as RemotionDimensionPresetKey } from 'ugcinc-remotion';
|
|
1
2
|
/**
|
|
2
3
|
* API response types
|
|
3
4
|
*/
|
|
@@ -374,76 +375,20 @@ export interface ImageEditorConfig extends BaseEditorConfig {
|
|
|
374
375
|
}>;
|
|
375
376
|
dynamicCrop?: DynamicCropConfig;
|
|
376
377
|
}
|
|
377
|
-
export
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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 {
|
|
378
|
+
export type ImageEditorElement = RemotionImageEditorElement;
|
|
379
|
+
export type ImageEditorNodeConfig = RemotionImageEditorNodeConfig;
|
|
380
|
+
export type DimensionPresetKey = RemotionDimensionPresetKey;
|
|
381
|
+
export interface ImageEditorNodeInput extends Record<string, unknown> {
|
|
382
|
+
type: 'image-editor';
|
|
383
|
+
config: ImageEditorNodeConfig;
|
|
384
|
+
imageUrls: Record<string, string>;
|
|
385
|
+
textValues: Record<string, string>;
|
|
386
|
+
}
|
|
387
|
+
export interface ImageEditorNodeOutput extends Record<string, unknown> {
|
|
388
|
+
output: string;
|
|
437
389
|
width: number;
|
|
438
390
|
height: number;
|
|
439
391
|
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
392
|
}
|
|
448
393
|
export interface EditorConfig extends BaseEditorConfig {
|
|
449
394
|
channels: Array<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.58.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",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "UGC Inc",
|
|
22
22
|
"license": "MIT",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"ugcinc-remotion": "^1.3.3"
|
|
25
|
+
},
|
|
23
26
|
"devDependencies": {
|
|
24
27
|
"@types/node": "^20.0.0",
|
|
25
28
|
"typescript": "^5.0.0"
|