ugcinc 3.8.1 → 3.9.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 +15 -1
- package/dist/automations.js +20 -0
- package/dist/index.d.ts +1 -1
- package/dist/types.d.ts +108 -0
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NodeControlConfig, NodeCategory, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, ApiResponse } from './types';
|
|
1
|
+
import type { NodeControlConfig, NodeCategory, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, ApiResponse, AutomationExport, AutomationRunExport } from './types';
|
|
2
2
|
import { BaseClient } from './base';
|
|
3
3
|
export declare class AutomationsClient extends BaseClient {
|
|
4
4
|
/**
|
|
@@ -104,6 +104,20 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
104
104
|
deleteRun(params: {
|
|
105
105
|
runId: string;
|
|
106
106
|
}): Promise<ApiResponse<null>>;
|
|
107
|
+
/**
|
|
108
|
+
* Export automation template for debugging
|
|
109
|
+
* Returns the complete template definition with nodes and connections
|
|
110
|
+
*/
|
|
111
|
+
exportTemplate(params: {
|
|
112
|
+
templateId: string;
|
|
113
|
+
}): Promise<ApiResponse<AutomationExport>>;
|
|
114
|
+
/**
|
|
115
|
+
* Export automation run for debugging
|
|
116
|
+
* Returns the complete run data including execution state, executor outputs, and edge values
|
|
117
|
+
*/
|
|
118
|
+
exportRun(params: {
|
|
119
|
+
runId: string;
|
|
120
|
+
}): Promise<ApiResponse<AutomationRunExport>>;
|
|
107
121
|
}
|
|
108
122
|
/**
|
|
109
123
|
* Get all available automation nodes
|
package/dist/automations.js
CHANGED
|
@@ -110,6 +110,26 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
110
110
|
body: JSON.stringify(params),
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Export automation template for debugging
|
|
115
|
+
* Returns the complete template definition with nodes and connections
|
|
116
|
+
*/
|
|
117
|
+
async exportTemplate(params) {
|
|
118
|
+
return this.request('/automations/export', {
|
|
119
|
+
method: 'POST',
|
|
120
|
+
body: JSON.stringify(params),
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Export automation run for debugging
|
|
125
|
+
* Returns the complete run data including execution state, executor outputs, and edge values
|
|
126
|
+
*/
|
|
127
|
+
async exportRun(params) {
|
|
128
|
+
return this.request('/automations/export-run', {
|
|
129
|
+
method: 'POST',
|
|
130
|
+
body: JSON.stringify(params),
|
|
131
|
+
});
|
|
132
|
+
}
|
|
113
133
|
}
|
|
114
134
|
exports.AutomationsClient = AutomationsClient;
|
|
115
135
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ export { MediaClient } from './media';
|
|
|
17
17
|
export { CommentsClient } from './comments';
|
|
18
18
|
export type { RenderJobResponse, RenderJobStatus, SubmitImageRenderJobParams, SubmitVideoRenderJobParams, RenderVideoEditorConfig, } from './render';
|
|
19
19
|
export type { ClientConfig, } from './base';
|
|
20
|
-
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, ManualTriggerOutput, ManualTriggerNodeConfig, TriggerIterationMode, IterationExhaustionBehavior, TriggerCollectionConfig, DayOfWeek, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, MediaNodeConfig, PostSchedulingMode, PostScheduledSubMode, PostRateLimitFrequency, PostSchedulingConfig, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, } from './types';
|
|
20
|
+
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, ManualTriggerOutput, ManualTriggerNodeConfig, TriggerIterationMode, IterationExhaustionBehavior, TriggerCollectionConfig, DayOfWeek, RecurrenceNodeConfig, AccountNodeConfig, MediaNodeEnabledType, MediaNodeConfig, PostSchedulingMode, PostScheduledSubMode, PostRateLimitFrequency, PostSchedulingConfig, PostVideoNodeConfig, PostSlideshowInput, PostSlideshowNodeConfig, SaveToMediaInput, SaveToMediaNodeConfig, DeduplicateNodeConfig, ForEachOutputProperty, ForEachNodeConfig, VideoImportPlatform, VideoImportQuality, VideoImportNodeConfig, AutoCaptionPreset, AutoCaptionFontWeight, AutoCaptionPosition, AutoCaptionNodeConfig, VideoGenerationNodeConfig, PortType, LLMOutputField, LLMNodeConfig, UserMedia, SocialAudio, Media, GetMediaParams, UploadMediaParams, UploadMediaResponse, UpdateMediaTagParams, DeleteMediaParams, DeleteMediaResponse, CreateSocialAudioParams, CreateMediaFromUrlParams, ImportTextParams, ImportTextResponse, Comment, CommentStatus, CreateCommentParams, CreateCommentResponse, GetCommentsParams, ValidationErrorType, ValidationError, ExportedNode, ExportedConnection, ExportedTemplate, AutomationExport, ExportedExecutor, ExportedEdge, ExportedRun, AutomationRunExport, } from './types';
|
package/dist/types.d.ts
CHANGED
|
@@ -1370,6 +1370,7 @@ export interface ExecutorNode {
|
|
|
1370
1370
|
type: NodeTypeEnum;
|
|
1371
1371
|
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
1372
1372
|
output_value: unknown | null;
|
|
1373
|
+
error_message: string | null;
|
|
1373
1374
|
created_at: string;
|
|
1374
1375
|
completed_at: string | null;
|
|
1375
1376
|
}
|
|
@@ -1539,3 +1540,110 @@ export interface ValidationError {
|
|
|
1539
1540
|
portId?: string;
|
|
1540
1541
|
message: string;
|
|
1541
1542
|
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Exported node representation for debugging
|
|
1545
|
+
*/
|
|
1546
|
+
export interface ExportedNode {
|
|
1547
|
+
nodeId: string;
|
|
1548
|
+
type: string;
|
|
1549
|
+
name: string | null;
|
|
1550
|
+
position: {
|
|
1551
|
+
x: number;
|
|
1552
|
+
y: number;
|
|
1553
|
+
};
|
|
1554
|
+
inputs: Record<string, {
|
|
1555
|
+
sourceNodeId: string;
|
|
1556
|
+
sourceOutputId: string;
|
|
1557
|
+
}>;
|
|
1558
|
+
config: Record<string, unknown>;
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Exported connection representation
|
|
1562
|
+
*/
|
|
1563
|
+
export interface ExportedConnection {
|
|
1564
|
+
from: {
|
|
1565
|
+
nodeId: string;
|
|
1566
|
+
port: string;
|
|
1567
|
+
};
|
|
1568
|
+
to: {
|
|
1569
|
+
nodeId: string;
|
|
1570
|
+
port: string;
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
/**
|
|
1574
|
+
* Exported template data
|
|
1575
|
+
*/
|
|
1576
|
+
export interface ExportedTemplate {
|
|
1577
|
+
id: string;
|
|
1578
|
+
name: string;
|
|
1579
|
+
description: string | null;
|
|
1580
|
+
canvasState: {
|
|
1581
|
+
zoom: number;
|
|
1582
|
+
panX: number;
|
|
1583
|
+
panY: number;
|
|
1584
|
+
} | null;
|
|
1585
|
+
outputSchema: Record<string, {
|
|
1586
|
+
type: string;
|
|
1587
|
+
}> | null;
|
|
1588
|
+
createdAt: string;
|
|
1589
|
+
updatedAt: string;
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* Full automation export (template + nodes + connections)
|
|
1593
|
+
*/
|
|
1594
|
+
export interface AutomationExport {
|
|
1595
|
+
template: ExportedTemplate;
|
|
1596
|
+
nodes: ExportedNode[];
|
|
1597
|
+
connections: ExportedConnection[];
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* Exported executor data
|
|
1601
|
+
*/
|
|
1602
|
+
export interface ExportedExecutor {
|
|
1603
|
+
id: string;
|
|
1604
|
+
nodeTemplateId: string;
|
|
1605
|
+
executorIndex: number;
|
|
1606
|
+
type: string;
|
|
1607
|
+
status: string;
|
|
1608
|
+
outputValue: unknown;
|
|
1609
|
+
errorMessage: string | null;
|
|
1610
|
+
createdAt: string;
|
|
1611
|
+
completedAt: string | null;
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Exported edge data
|
|
1615
|
+
*/
|
|
1616
|
+
export interface ExportedEdge {
|
|
1617
|
+
sourceExecutorId: string;
|
|
1618
|
+
sourceNodeId: string;
|
|
1619
|
+
sourcePort: string;
|
|
1620
|
+
targetExecutorId: string;
|
|
1621
|
+
targetNodeId: string;
|
|
1622
|
+
targetPort: string;
|
|
1623
|
+
value: unknown;
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Exported run data
|
|
1627
|
+
*/
|
|
1628
|
+
export interface ExportedRun {
|
|
1629
|
+
id: string;
|
|
1630
|
+
templateId: string;
|
|
1631
|
+
templateName: string;
|
|
1632
|
+
status: string;
|
|
1633
|
+
variableInputs: Record<string, string> | null;
|
|
1634
|
+
createdAt: string;
|
|
1635
|
+
completedAt: string | null;
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Full automation run export
|
|
1639
|
+
*/
|
|
1640
|
+
export interface AutomationRunExport {
|
|
1641
|
+
run: ExportedRun;
|
|
1642
|
+
template: ExportedTemplate;
|
|
1643
|
+
nodes: ExportedNode[];
|
|
1644
|
+
connections: ExportedConnection[];
|
|
1645
|
+
execution: {
|
|
1646
|
+
executors: ExportedExecutor[];
|
|
1647
|
+
edges: ExportedEdge[];
|
|
1648
|
+
};
|
|
1649
|
+
}
|