ugcinc 2.52.0 → 2.54.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 +1 -1
- package/dist/node-runtime.d.ts +55 -0
- package/dist/node-runtime.js +6 -0
- package/dist/types.d.ts +11 -4
- package/package.json +1 -1
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, 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';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime types for node execution
|
|
3
|
+
* These types are used during workflow execution
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Media type classification
|
|
7
|
+
*/
|
|
8
|
+
export type MediaType = 'video' | 'image' | 'audio' | 'text';
|
|
9
|
+
/**
|
|
10
|
+
* Selection mode for source nodes
|
|
11
|
+
*/
|
|
12
|
+
export type SelectionMode = 'random' | 'sequential';
|
|
13
|
+
/**
|
|
14
|
+
* Behavior when all items have been used
|
|
15
|
+
*/
|
|
16
|
+
export type ExhaustionBehavior = 'restart' | 'error';
|
|
17
|
+
/**
|
|
18
|
+
* Selection configuration for source nodes (image, video, audio)
|
|
19
|
+
*/
|
|
20
|
+
export interface SelectionConfig {
|
|
21
|
+
mode: SelectionMode;
|
|
22
|
+
enforceUniqueness: boolean;
|
|
23
|
+
exhaustionBehavior: ExhaustionBehavior;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Runtime state for tracking selection progress (persisted in node config)
|
|
27
|
+
*/
|
|
28
|
+
export interface SelectionState {
|
|
29
|
+
usedIndices: number[];
|
|
30
|
+
currentIndex: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Output mode for source nodes
|
|
34
|
+
* - 'per-input': Generate a unique value for each consumer input (default)
|
|
35
|
+
* - 'single': Use the same value for all consumer inputs
|
|
36
|
+
*/
|
|
37
|
+
export type OutputMode = 'per-input' | 'single';
|
|
38
|
+
/**
|
|
39
|
+
* Output node input configuration
|
|
40
|
+
*/
|
|
41
|
+
export interface OutputInput {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
type: MediaType;
|
|
45
|
+
tag?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Output node configuration
|
|
49
|
+
*/
|
|
50
|
+
export interface OutputNodeConfig {
|
|
51
|
+
inputs: OutputInput[];
|
|
52
|
+
saveToMedia: boolean;
|
|
53
|
+
globalTag?: string;
|
|
54
|
+
makeUnique: boolean;
|
|
55
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -432,11 +432,12 @@ export interface ImageEditorElement {
|
|
|
432
432
|
bottomLeft?: number;
|
|
433
433
|
};
|
|
434
434
|
}
|
|
435
|
+
export type DimensionPresetKey = 'tiktok' | 'instagram-square' | 'instagram-post' | 'youtube' | 'twitter' | 'custom';
|
|
435
436
|
export interface ImageEditorNodeConfig {
|
|
436
437
|
width: number;
|
|
437
438
|
height: number;
|
|
438
439
|
aspectRatio: string;
|
|
439
|
-
dimensionPreset:
|
|
440
|
+
dimensionPreset: DimensionPresetKey;
|
|
440
441
|
elements: ImageEditorElement[];
|
|
441
442
|
backgroundFit?: 'cover' | 'contain' | 'fill';
|
|
442
443
|
previewBackgroundUrl?: string;
|
|
@@ -842,13 +843,19 @@ export interface WorkflowNodeDefinition {
|
|
|
842
843
|
}>;
|
|
843
844
|
config?: {
|
|
844
845
|
urls?: string[];
|
|
846
|
+
selectionConfig?: SelectionConfig;
|
|
847
|
+
selectionState?: SelectionState;
|
|
848
|
+
outputMode?: OutputMode;
|
|
845
849
|
textOptions?: string[];
|
|
846
850
|
videoEditor?: VideoEditorConfig;
|
|
847
851
|
imageEditor?: ImageEditorConfig | ImageEditorNodeConfig;
|
|
848
852
|
outputSchema?: Record<string, OutputSchemaProperty>;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
853
|
+
provider?: 'groq' | 'openai' | 'claude' | 'gemini';
|
|
854
|
+
model?: string;
|
|
855
|
+
temperature?: number;
|
|
856
|
+
maxTokens?: number;
|
|
857
|
+
useWebSearch?: boolean;
|
|
858
|
+
useStructuredOutput?: boolean;
|
|
852
859
|
variableType?: 'image' | 'video' | 'audio' | 'text' | 'dropdown';
|
|
853
860
|
defaultValue?: string;
|
|
854
861
|
dropdownOptions?: Array<{
|