ugcinc 2.84.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 +41 -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
|
@@ -40,6 +40,17 @@ export interface Account {
|
|
|
40
40
|
sex: string | null;
|
|
41
41
|
status: 'pending' | 'initialized' | 'setup' | 'warming' | 'warmed' | 'needs_replacement' | 'error';
|
|
42
42
|
phone_type: 'physical_iphone' | 'physical_android' | 'emulated_android' | null;
|
|
43
|
+
metadata?: {
|
|
44
|
+
pending_info_change?: {
|
|
45
|
+
nick_name?: string;
|
|
46
|
+
pfp_url?: string;
|
|
47
|
+
bio?: string;
|
|
48
|
+
requested_at?: string;
|
|
49
|
+
};
|
|
50
|
+
failure_reason?: string;
|
|
51
|
+
error_type?: 'needs_replacement' | 'change_account';
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
} | null;
|
|
43
54
|
}
|
|
44
55
|
export interface AccountStat {
|
|
45
56
|
id: string;
|
|
@@ -967,6 +978,10 @@ export interface AutomationRun {
|
|
|
967
978
|
created_at: string;
|
|
968
979
|
completed_at: string | null;
|
|
969
980
|
}
|
|
981
|
+
/**
|
|
982
|
+
* @deprecated NodeRun is part of the old execution model.
|
|
983
|
+
* Use ExecutorNode from the new edge-based execution model instead.
|
|
984
|
+
*/
|
|
970
985
|
export interface NodeRun {
|
|
971
986
|
id: string;
|
|
972
987
|
automation_run_id: string;
|
|
@@ -980,6 +995,32 @@ export interface NodeRun {
|
|
|
980
995
|
/** Sub-workflow node runs (only present for workflow nodes) */
|
|
981
996
|
subNodes?: NodeRun[];
|
|
982
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
|
+
}
|
|
983
1024
|
/**
|
|
984
1025
|
* Media types
|
|
985
1026
|
*/
|