ugcinc 4.5.20 → 4.5.21

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.
@@ -45,11 +45,15 @@ interface VideoModelOption {
45
45
  /** Reference-to-video variant, if one exists */
46
46
  refId?: VideoGenerationReferenceModel;
47
47
  }
48
+ /** A single media item in a selection pool */
49
+ interface VideoMediaItem {
50
+ id: string;
51
+ url: string;
52
+ }
48
53
  /** Static or variable reference image input */
49
54
  interface ReferenceImageInput {
50
55
  isVariable: boolean;
51
- mediaId: string | null;
52
- mediaUrl: string | null;
56
+ mediaItems: VideoMediaItem[];
53
57
  }
54
58
  declare const ALL_VIDEO_MODELS: VideoModelOption[];
55
59
  /** @deprecated Use getImageToVideoModelId instead — I2V mode is auto-detected from image input */
@@ -76,16 +80,13 @@ declare const definition: import("./types").NodeDefinition<"generate-video", "ge
76
80
  duration: number;
77
81
  prompt: string;
78
82
  promptIsVariable: boolean;
79
- imageIsVariable: boolean;
80
- imageMediaId: string | null;
81
- imageMediaUrl: string | null;
82
83
  inputMode: VideoInputMode;
84
+ imageIsVariable: boolean;
85
+ imageMediaItems: VideoMediaItem[];
83
86
  firstFrameIsVariable: boolean;
84
- firstFrameMediaId: string | null;
85
- firstFrameMediaUrl: string | null;
87
+ firstFrameMediaItems: VideoMediaItem[];
86
88
  lastFrameIsVariable: boolean;
87
- lastFrameMediaId: string | null;
88
- lastFrameMediaUrl: string | null;
89
+ lastFrameMediaItems: VideoMediaItem[];
89
90
  referenceImages: ReferenceImageInput[];
90
91
  outputMode: OutputMode;
91
92
  selectionMode: SelectionMode | null;
@@ -96,5 +97,5 @@ declare const _default: typeof definition & {
96
97
  };
97
98
  export default _default;
98
99
  export { isImageToVideoModel, getImageToVideoModelId, hasImageToVideoVariant, getFirstLastFrameModelId, hasFirstLastFrameVariant, getReferenceModelId, hasReferenceVariant, getAvailableInputModes, ALL_VIDEO_MODELS, getModelAspectRatios, getModelDurations, };
99
- export type { VideoGenerationTextToVideoModel, VideoGenerationImageToVideoModel, VideoGenerationFirstLastFrameModel, VideoGenerationReferenceModel, VideoGenerationModel, VideoInputMode, VideoModelProvider, VideoModelTier, VideoAspectRatioOption, VideoDurationOption, VideoModelOption, ReferenceImageInput, };
100
+ export type { VideoGenerationTextToVideoModel, VideoGenerationImageToVideoModel, VideoGenerationFirstLastFrameModel, VideoGenerationReferenceModel, VideoGenerationModel, VideoInputMode, VideoMediaItem, VideoModelProvider, VideoModelTier, VideoAspectRatioOption, VideoDurationOption, VideoModelOption, ReferenceImageInput, };
100
101
  export type GenerateVideoNodeConfig = typeof definition.defaults;
@@ -127,17 +127,15 @@ const definition = (0, types_1.defineNode)({
127
127
  duration: 5,
128
128
  prompt: '',
129
129
  promptIsVariable: false,
130
- imageIsVariable: false,
131
- imageMediaId: null,
132
- imageMediaUrl: null,
133
130
  inputMode: 'none',
131
+ // Image-to-video
132
+ imageIsVariable: false,
133
+ imageMediaItems: [],
134
134
  // First-last-frame
135
135
  firstFrameIsVariable: false,
136
- firstFrameMediaId: null,
137
- firstFrameMediaUrl: null,
136
+ firstFrameMediaItems: [],
138
137
  lastFrameIsVariable: false,
139
- lastFrameMediaId: null,
140
- lastFrameMediaUrl: null,
138
+ lastFrameMediaItems: [],
141
139
  // Reference
142
140
  referenceImages: [],
143
141
  outputMode: 'per-input',
@@ -175,16 +175,13 @@ export declare const nodeDefinitions: {
175
175
  duration: number;
176
176
  prompt: string;
177
177
  promptIsVariable: boolean;
178
- imageIsVariable: boolean;
179
- imageMediaId: string | null;
180
- imageMediaUrl: string | null;
181
178
  inputMode: import("./generate-video").VideoInputMode;
179
+ imageIsVariable: boolean;
180
+ imageMediaItems: import("./generate-video").VideoMediaItem[];
182
181
  firstFrameIsVariable: boolean;
183
- firstFrameMediaId: string | null;
184
- firstFrameMediaUrl: string | null;
182
+ firstFrameMediaItems: import("./generate-video").VideoMediaItem[];
185
183
  lastFrameIsVariable: boolean;
186
- lastFrameMediaId: string | null;
187
- lastFrameMediaUrl: string | null;
184
+ lastFrameMediaItems: import("./generate-video").VideoMediaItem[];
188
185
  referenceImages: import("./generate-video").ReferenceImageInput[];
189
186
  outputMode: import("./types").OutputMode;
190
187
  selectionMode: import("./types").SelectionMode | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "4.5.20",
3
+ "version": "4.5.21",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",