ugcinc 2.11.4 → 2.13.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.js +15 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +18 -1
- package/package.json +1 -1
package/dist/automations.js
CHANGED
|
@@ -120,6 +120,21 @@ function getAllNodes() {
|
|
|
120
120
|
},
|
|
121
121
|
],
|
|
122
122
|
},
|
|
123
|
+
{
|
|
124
|
+
type: "text",
|
|
125
|
+
label: "Text",
|
|
126
|
+
description: "Create text with templated variables",
|
|
127
|
+
category: "Input",
|
|
128
|
+
inputs: [], // Dynamic inputs based on template variables
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
id: "text",
|
|
132
|
+
title: "text",
|
|
133
|
+
type: "text",
|
|
134
|
+
required: true,
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
123
138
|
{
|
|
124
139
|
type: "image-editor",
|
|
125
140
|
label: "Image Editor",
|
package/dist/index.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export { OrganizationClient } from './org';
|
|
|
12
12
|
export { RenderClient } from './render';
|
|
13
13
|
export { AutomationsClient, getAllNodes, getNodeByType } from './automations';
|
|
14
14
|
export type { ClientConfig, } from './base';
|
|
15
|
-
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, RenderJobSubmit, RenderVideoRequest, RenderImageRequest, RenderJobResponse, RenderJobStatus, GetAccountsParams, GetAccountStatsParams, GetAccountStatusParams, UpdateAccountInfoParams, UpdateAccountSocialParams, GetTasksParams, GetPostsParams, CreateSlideshowParams, GetPostStatsParams, GetPostStatusParams, CreateVideoParams, RefreshStatsParams, RefreshStatsResponse, RefreshStatsError, MediaType, NodePort, NodeControlConfig, NodeTypeEnum, WorkflowNodeDefinition, WorkflowDefinition, AutomationTemplate, AutomationRun, NodeRun, OutputSchemaProperty, } from './types';
|
|
15
|
+
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, RenderJobSubmit, RenderVideoRequest, RenderImageRequest, RenderJobResponse, RenderJobStatus, GetAccountsParams, GetAccountStatsParams, GetAccountStatusParams, UpdateAccountInfoParams, UpdateAccountSocialParams, GetTasksParams, GetPostsParams, CreateSlideshowParams, GetPostStatsParams, GetPostStatusParams, CreateVideoParams, RefreshStatsParams, RefreshStatsResponse, RefreshStatsError, MediaType, NodePort, NodeControlConfig, NodeTypeEnum, WorkflowNodeDefinition, WorkflowDefinition, AutomationTemplate, AutomationRun, NodeRun, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -538,6 +538,20 @@ export interface RenderJobStatus {
|
|
|
538
538
|
* Automation types
|
|
539
539
|
*/
|
|
540
540
|
export type MediaType = 'video' | 'image' | 'audio' | 'text';
|
|
541
|
+
/**
|
|
542
|
+
* Selection order configuration for media nodes
|
|
543
|
+
*/
|
|
544
|
+
export type SelectionMode = 'random' | 'sequential';
|
|
545
|
+
export type ExhaustionBehavior = 'restart' | 'error';
|
|
546
|
+
export interface SelectionConfig {
|
|
547
|
+
mode: SelectionMode;
|
|
548
|
+
enforceUniqueness: boolean;
|
|
549
|
+
exhaustionBehavior: ExhaustionBehavior;
|
|
550
|
+
}
|
|
551
|
+
export interface SelectionState {
|
|
552
|
+
usedIndices: number[];
|
|
553
|
+
currentIndex: number;
|
|
554
|
+
}
|
|
541
555
|
export interface NodePort {
|
|
542
556
|
id: string;
|
|
543
557
|
title: string;
|
|
@@ -552,7 +566,7 @@ export interface NodeControlConfig {
|
|
|
552
566
|
inputs: NodePort[];
|
|
553
567
|
outputs: NodePort[];
|
|
554
568
|
}
|
|
555
|
-
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'image-editor' | 'video-editor' | 'llm' | 'output';
|
|
569
|
+
export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'text' | 'image-editor' | 'video-editor' | 'llm' | 'output';
|
|
556
570
|
export interface OutputSchemaProperty {
|
|
557
571
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
558
572
|
items?: 'string' | 'number' | 'boolean';
|
|
@@ -567,9 +581,12 @@ export interface WorkflowNodeDefinition {
|
|
|
567
581
|
}>;
|
|
568
582
|
config?: {
|
|
569
583
|
urls?: string[];
|
|
584
|
+
textOptions?: string[];
|
|
570
585
|
videoEditor?: VideoEditorConfig;
|
|
571
586
|
imageEditor?: ImageEditorConfig;
|
|
572
587
|
outputSchema?: Record<string, OutputSchemaProperty>;
|
|
588
|
+
selectionConfig?: SelectionConfig;
|
|
589
|
+
selectionState?: SelectionState;
|
|
573
590
|
};
|
|
574
591
|
}
|
|
575
592
|
export interface WorkflowDefinition {
|