ugcinc 2.11.3 → 2.12.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.
@@ -83,8 +83,8 @@ function getAllNodes() {
83
83
  inputs: [],
84
84
  outputs: [
85
85
  {
86
- id: "outputImage",
87
- title: "Image",
86
+ id: "image",
87
+ title: "image",
88
88
  type: "image",
89
89
  required: true,
90
90
  },
@@ -98,8 +98,8 @@ function getAllNodes() {
98
98
  inputs: [],
99
99
  outputs: [
100
100
  {
101
- id: "outputVideo",
102
- title: "Video",
101
+ id: "video",
102
+ title: "video",
103
103
  type: "video",
104
104
  required: true,
105
105
  },
@@ -113,8 +113,8 @@ function getAllNodes() {
113
113
  inputs: [],
114
114
  outputs: [
115
115
  {
116
- id: "outputAudio",
117
- title: "Audio",
116
+ id: "audio",
117
+ title: "audio",
118
118
  type: "audio",
119
119
  required: true,
120
120
  },
@@ -127,16 +127,16 @@ function getAllNodes() {
127
127
  category: "Input",
128
128
  inputs: [
129
129
  {
130
- id: "inputImage",
131
- title: "Image",
130
+ id: "background",
131
+ title: "background",
132
132
  type: "image",
133
133
  required: true,
134
134
  },
135
135
  ],
136
136
  outputs: [
137
137
  {
138
- id: "outputImage",
139
- title: "Edited Image",
138
+ id: "output",
139
+ title: "output",
140
140
  type: "image",
141
141
  required: true,
142
142
  },
@@ -149,16 +149,16 @@ function getAllNodes() {
149
149
  category: "Input",
150
150
  inputs: [
151
151
  {
152
- id: "inputVideo",
153
- title: "Video",
152
+ id: "video",
153
+ title: "video",
154
154
  type: "video",
155
155
  required: true,
156
156
  },
157
157
  ],
158
158
  outputs: [
159
159
  {
160
- id: "outputVideo",
161
- title: "Edited Video",
160
+ id: "output",
161
+ title: "output",
162
162
  type: "video",
163
163
  required: true,
164
164
  },
@@ -171,16 +171,16 @@ function getAllNodes() {
171
171
  category: "Input",
172
172
  inputs: [
173
173
  {
174
- id: "inputPrompt",
175
- title: "Prompt",
174
+ id: "prompt",
175
+ title: "prompt",
176
176
  type: "text",
177
177
  required: true,
178
178
  },
179
179
  ],
180
180
  outputs: [
181
181
  {
182
- id: "outputResponse",
183
- title: "Response",
182
+ id: "response",
183
+ title: "response",
184
184
  type: "text",
185
185
  required: true,
186
186
  },
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;
@@ -570,6 +584,8 @@ export interface WorkflowNodeDefinition {
570
584
  videoEditor?: VideoEditorConfig;
571
585
  imageEditor?: ImageEditorConfig;
572
586
  outputSchema?: Record<string, OutputSchemaProperty>;
587
+ selectionConfig?: SelectionConfig;
588
+ selectionState?: SelectionState;
573
589
  };
574
590
  }
575
591
  export interface WorkflowDefinition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.11.3",
3
+ "version": "2.12.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",