ugcinc 2.85.0 → 2.86.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.d.ts +4 -2
- package/dist/automations.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +30 -0
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeControlConfig, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationTemplate, AutomationRun,
|
|
1
|
+
import type { NodeControlConfig, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, ApiResponse } from './types';
|
|
2
2
|
import { BaseClient } from './base';
|
|
3
3
|
export declare class AutomationsClient extends BaseClient {
|
|
4
4
|
/**
|
|
@@ -49,12 +49,14 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
49
49
|
}>>;
|
|
50
50
|
/**
|
|
51
51
|
* Get automation run status
|
|
52
|
+
* Returns executors (expanded nodes) and edges (data flow connections)
|
|
52
53
|
*/
|
|
53
54
|
getStatus(params: {
|
|
54
55
|
runId: string;
|
|
55
56
|
}): Promise<ApiResponse<{
|
|
56
57
|
run: AutomationRun;
|
|
57
|
-
|
|
58
|
+
executors: ExecutorNode[];
|
|
59
|
+
edges: ExecutionEdge[];
|
|
58
60
|
}>>;
|
|
59
61
|
/**
|
|
60
62
|
* List automation runs for a template
|
package/dist/automations.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -15,4 +15,4 @@ export { MediaClient } from './media';
|
|
|
15
15
|
export { CommentsClient } from './comments';
|
|
16
16
|
export type { RenderJobResponse, RenderJobStatus, SubmitImageRenderJobParams, SubmitVideoRenderJobParams, RenderVideoEditorConfig, } from './render';
|
|
17
17
|
export type { ClientConfig, } from './base';
|
|
18
|
-
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStatus, PostStat, ApiKey, EditorConfig, VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeMode, SegmentTimelinePosition, 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, TemplateNode, AutomationTemplate, AutomationRun, NodeRun, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, NodeOutputValues, OutputInput, OutputNodeConfig, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, } from './types';
|
|
18
|
+
export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStatus, PostStat, ApiKey, EditorConfig, VideoEditorNodeConfig, VideoEditorChannel, VideoEditorSegment, VideoEditorVideoSegment, VideoEditorAudioSegment, VideoEditorImageSegment, VideoEditorTextSegment, TimeMode, SegmentTimelinePosition, 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, TemplateNode, AutomationTemplate, AutomationRun, NodeRun, ExecutorNode, ExecutionEdge, OutputSchemaProperty, SelectionMode, ExhaustionBehavior, SelectionConfig, SelectionState, OutputMode, NodeOutputValues, OutputInput, OutputNodeConfig, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -978,6 +978,10 @@ export interface AutomationRun {
|
|
|
978
978
|
created_at: string;
|
|
979
979
|
completed_at: string | null;
|
|
980
980
|
}
|
|
981
|
+
/**
|
|
982
|
+
* @deprecated NodeRun is part of the old execution model.
|
|
983
|
+
* Use ExecutorNode from the new edge-based execution model instead.
|
|
984
|
+
*/
|
|
981
985
|
export interface NodeRun {
|
|
982
986
|
id: string;
|
|
983
987
|
automation_run_id: string;
|
|
@@ -991,6 +995,32 @@ export interface NodeRun {
|
|
|
991
995
|
/** Sub-workflow node runs (only present for workflow nodes) */
|
|
992
996
|
subNodes?: NodeRun[];
|
|
993
997
|
}
|
|
998
|
+
/**
|
|
999
|
+
* Executor node from the edge-based execution model.
|
|
1000
|
+
* Each executor represents one instance of a template node during execution.
|
|
1001
|
+
*/
|
|
1002
|
+
export interface ExecutorNode {
|
|
1003
|
+
id: string;
|
|
1004
|
+
template_node_id: string;
|
|
1005
|
+
executor_index: number;
|
|
1006
|
+
type: NodeTypeEnum;
|
|
1007
|
+
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
1008
|
+
output_value: unknown | null;
|
|
1009
|
+
created_at: string;
|
|
1010
|
+
completed_at: string | null;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Execution edge from the edge-based execution model.
|
|
1014
|
+
* Represents a data flow connection between two executors.
|
|
1015
|
+
*/
|
|
1016
|
+
export interface ExecutionEdge {
|
|
1017
|
+
id: string;
|
|
1018
|
+
source_executor_id: string;
|
|
1019
|
+
source_port: string;
|
|
1020
|
+
target_executor_id: string;
|
|
1021
|
+
target_port: string;
|
|
1022
|
+
value: unknown | null;
|
|
1023
|
+
}
|
|
994
1024
|
/**
|
|
995
1025
|
* Media types
|
|
996
1026
|
*/
|