ugcinc 2.63.5 → 2.64.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/render.d.ts +3 -13
- package/dist/types.d.ts +3 -23
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export { AutomationsClient, getAllNodes, getNodeByType } from './automations';
|
|
|
14
14
|
export { MediaClient } from './media';
|
|
15
15
|
export type { RenderJobResponse, RenderJobStatus, SubmitImageRenderJobParams, SubmitVideoRenderJobParams, RenderVideoEditorConfig, } from './render';
|
|
16
16
|
export type { ClientConfig, } from './base';
|
|
17
|
-
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig,
|
|
17
|
+
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig, VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeMode, ImageEditorNodeConfig, ImageEditorElement, ImageEditorNodeInput, ImageEditorNodeOutput, DimensionPresetKey, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, PositionAnchor, RelativePositionConfig, 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/render.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiResponse } from './types';
|
|
2
|
-
import type { ImageEditorNodeConfig } from 'ugcinc-render';
|
|
2
|
+
import type { ImageEditorNodeConfig, VideoEditorNodeConfig } from 'ugcinc-render';
|
|
3
3
|
export interface RenderJobResponse {
|
|
4
4
|
job_id: string;
|
|
5
5
|
status: string;
|
|
@@ -25,19 +25,9 @@ export interface SubmitImageRenderJobParams {
|
|
|
25
25
|
output_type?: 'image';
|
|
26
26
|
image_format?: 'png' | 'jpeg';
|
|
27
27
|
}
|
|
28
|
-
export
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
fps: number;
|
|
32
|
-
duration?: number;
|
|
33
|
-
channels: Array<{
|
|
34
|
-
id: string;
|
|
35
|
-
segments: Array<Record<string, unknown>>;
|
|
36
|
-
}>;
|
|
37
|
-
dynamicCrop?: Record<string, unknown>;
|
|
38
|
-
}
|
|
28
|
+
export type RenderVideoEditorConfig = VideoEditorNodeConfig;
|
|
39
29
|
export interface SubmitVideoRenderJobParams {
|
|
40
|
-
config:
|
|
30
|
+
config: VideoEditorNodeConfig;
|
|
41
31
|
sources?: Record<string, string>;
|
|
42
32
|
output_type?: 'video' | 'image';
|
|
43
33
|
image_format?: 'png' | 'jpeg';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImageEditorElement, ImageEditorNodeConfig, DimensionPresetKey } from 'ugcinc-render';
|
|
1
|
+
import type { ImageEditorElement, ImageEditorNodeConfig, DimensionPresetKey, VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeValue, TimeMode } from 'ugcinc-render';
|
|
2
2
|
/**
|
|
3
3
|
* API response types
|
|
4
4
|
*/
|
|
@@ -345,12 +345,7 @@ interface BaseEditorConfig {
|
|
|
345
345
|
fps: number;
|
|
346
346
|
duration: number;
|
|
347
347
|
}
|
|
348
|
-
export
|
|
349
|
-
channels: Array<{
|
|
350
|
-
id: string;
|
|
351
|
-
segments: EditorSegment[];
|
|
352
|
-
}>;
|
|
353
|
-
}
|
|
348
|
+
export type { VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeValue, TimeMode };
|
|
354
349
|
export interface CropBoundary {
|
|
355
350
|
elementId?: string;
|
|
356
351
|
inputRef?: string;
|
|
@@ -391,21 +386,6 @@ export interface EditorChannel {
|
|
|
391
386
|
id: string;
|
|
392
387
|
segments: EditorSegment[];
|
|
393
388
|
}
|
|
394
|
-
/**
|
|
395
|
-
* Time value - can be absolute (milliseconds) or relative (0-1 percentage)
|
|
396
|
-
*
|
|
397
|
-
* @example
|
|
398
|
-
* // Absolute: 500 milliseconds
|
|
399
|
-
* { type: 'absolute', value: 500 }
|
|
400
|
-
*
|
|
401
|
-
* @example
|
|
402
|
-
* // Relative: 50% of total duration
|
|
403
|
-
* { type: 'relative', value: 0.5 }
|
|
404
|
-
*/
|
|
405
|
-
export interface TimeValue {
|
|
406
|
-
type: 'absolute' | 'relative';
|
|
407
|
-
value: number;
|
|
408
|
-
}
|
|
409
389
|
/**
|
|
410
390
|
* Base properties for all segments
|
|
411
391
|
*/
|
|
@@ -738,7 +718,7 @@ export interface WorkflowNodeDefinition {
|
|
|
738
718
|
selectionState?: SelectionState;
|
|
739
719
|
outputMode?: OutputMode;
|
|
740
720
|
textOptions?: string[];
|
|
741
|
-
videoEditor?:
|
|
721
|
+
videoEditor?: VideoEditorNodeConfig;
|
|
742
722
|
imageEditor?: ImageEditorNodeConfig;
|
|
743
723
|
outputSchema?: Record<string, OutputSchemaProperty>;
|
|
744
724
|
provider?: 'groq' | 'openai' | 'claude' | 'gemini';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ugcinc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.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",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^20.0.0",
|
|
28
28
|
"typescript": "^5.0.0",
|
|
29
|
-
"ugcinc-render": "^1.3.
|
|
29
|
+
"ugcinc-render": "^1.3.14"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|