ugcinc 2.6.0 → 2.7.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.
@@ -34,6 +34,15 @@ export declare class AutomationsClient extends BaseClient {
34
34
  run: AutomationRun;
35
35
  nodes: NodeRun[];
36
36
  }>>;
37
+ /**
38
+ * Validate a workflow definition without creating it
39
+ */
40
+ validateWorkflow(params: {
41
+ workflowDefinition: WorkflowDefinition;
42
+ }): Promise<ApiResponse<{
43
+ valid: boolean;
44
+ errors: string[];
45
+ }>>;
37
46
  }
38
47
  /**
39
48
  * Get all available automation nodes
@@ -41,6 +41,15 @@ class AutomationsClient extends base_1.BaseClient {
41
41
  body: JSON.stringify(params),
42
42
  });
43
43
  }
44
+ /**
45
+ * Validate a workflow definition without creating it
46
+ */
47
+ async validateWorkflow(params) {
48
+ return this.request('/automations/validate', {
49
+ method: 'POST',
50
+ body: JSON.stringify(params),
51
+ });
52
+ }
44
53
  }
45
54
  exports.AutomationsClient = AutomationsClient;
46
55
  /**
package/dist/index.d.ts CHANGED
@@ -12,4 +12,4 @@ export { OrganizationClient } from './org';
12
12
  export { RenderClient } from './render';
13
13
  export { AutomationsClient, getAllNodes, getNodeByType } from './automations';
14
14
  export type { ClientConfig, } from './base';
15
- export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig, VideoEditorConfig, ImageEditorConfig, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, RenderJobSubmit, RenderVideoRequest, RenderImageRequest, RenderJobResponse, RenderJobStatus, GetAccountsParams, GetAccountStatsParams, GetAccountStatusParams, UpdateAccountInfoParams, UpdateAccountSocialParams, GetTasksParams, GetPostsParams, CreateSlideshowParams, GetPostStatsParams, GetPostStatusParams, CreateVideoParams, RefreshStatsParams, RefreshStatsResponse, RefreshStatsError, MediaType, NodePort, NodeControlConfig, NodeTypeEnum, WorkflowNodeDefinition, WorkflowDefinition, AutomationTemplate, AutomationRun, NodeRun, } from './types';
15
+ export type { SuccessResponse, ErrorResponse, ApiResponse, Account, AccountStat, AccountTask, EditProfileInfo, Task, TaskType, Post, PostType, PostStat, ApiKey, EditorConfig, VideoEditorConfig, ImageEditorConfig, EditorChannel, TimeValue, BaseSegmentProps, VisualSegmentProps, EditorSegment, VideoSegment, AudioSegment, ImageSegment, TextSegment, StaticSegment, RenderJobSubmit, RenderVideoRequest, RenderImageRequest, RenderJobResponse, RenderJobStatus, GetAccountsParams, GetAccountStatsParams, GetAccountStatusParams, UpdateAccountInfoParams, UpdateAccountSocialParams, GetTasksParams, GetPostsParams, CreateSlideshowParams, GetPostStatsParams, GetPostStatusParams, CreateVideoParams, RefreshStatsParams, RefreshStatsResponse, RefreshStatsError, MediaType, NodePort, NodeControlConfig, NodeTypeEnum, WorkflowNodeDefinition, WorkflowDefinition, AutomationTemplate, AutomationRun, NodeRun, OutputSchemaProperty, } from './types';
package/dist/types.d.ts CHANGED
@@ -482,6 +482,11 @@ export interface NodeControlConfig {
482
482
  outputs: NodePort[];
483
483
  }
484
484
  export type NodeTypeEnum = 'image' | 'video' | 'audio' | 'image-editor' | 'video-editor' | 'llm';
485
+ export interface OutputSchemaProperty {
486
+ type: 'string' | 'number' | 'boolean' | 'array' | 'object';
487
+ items?: 'string' | 'number' | 'boolean';
488
+ properties?: Record<string, OutputSchemaProperty>;
489
+ }
485
490
  export interface WorkflowNodeDefinition {
486
491
  id: string;
487
492
  type: NodeTypeEnum;
@@ -489,6 +494,12 @@ export interface WorkflowNodeDefinition {
489
494
  sourceNodeId: string;
490
495
  sourceOutputId: string;
491
496
  }>;
497
+ config?: {
498
+ urls?: string[];
499
+ videoEditor?: VideoEditorConfig;
500
+ imageEditor?: ImageEditorConfig;
501
+ outputSchema?: Record<string, OutputSchemaProperty>;
502
+ };
492
503
  }
493
504
  export interface WorkflowDefinition {
494
505
  nodes: WorkflowNodeDefinition[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.6.0",
3
+ "version": "2.7.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",