ugcinc 2.73.2 → 2.73.4

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.
@@ -66,6 +66,26 @@ export declare class AutomationsClient extends BaseClient {
66
66
  run: AutomationRun;
67
67
  nodeCount: number;
68
68
  }>>>;
69
+ /**
70
+ * List all automation runs for the organization (across all templates)
71
+ */
72
+ listAllRuns(params: {
73
+ limit?: number;
74
+ reviewStatus?: 'pending_review' | 'approved' | 'rejected' | 'all';
75
+ }): Promise<ApiResponse<Array<{
76
+ run: AutomationRun;
77
+ templateName: string;
78
+ nodeCount: number;
79
+ }>>>;
80
+ /**
81
+ * Update review status for a run
82
+ */
83
+ updateReviewStatus(params: {
84
+ runId: string;
85
+ reviewStatus: 'approved' | 'rejected';
86
+ }): Promise<ApiResponse<{
87
+ success: boolean;
88
+ }>>;
69
89
  /**
70
90
  * Validate a workflow definition without creating it
71
91
  */
@@ -73,6 +73,24 @@ class AutomationsClient extends base_1.BaseClient {
73
73
  body: JSON.stringify(params),
74
74
  });
75
75
  }
76
+ /**
77
+ * List all automation runs for the organization (across all templates)
78
+ */
79
+ async listAllRuns(params) {
80
+ return this.request('/automations/list-all-runs', {
81
+ method: 'POST',
82
+ body: JSON.stringify(params),
83
+ });
84
+ }
85
+ /**
86
+ * Update review status for a run
87
+ */
88
+ async updateReviewStatus(params) {
89
+ return this.request('/automations/update-review-status', {
90
+ method: 'POST',
91
+ body: JSON.stringify(params),
92
+ });
93
+ }
76
94
  /**
77
95
  * Validate a workflow definition without creating it
78
96
  */
@@ -52,4 +52,6 @@ export interface OutputNodeConfig {
52
52
  saveToMedia: boolean;
53
53
  globalTag?: string;
54
54
  makeUnique: boolean;
55
+ createPost?: boolean;
56
+ requireReview?: boolean;
55
57
  }
package/dist/types.d.ts CHANGED
@@ -826,6 +826,8 @@ export interface OutputNodeConfig {
826
826
  saveToMedia: boolean;
827
827
  globalTag?: string;
828
828
  makeUnique: boolean;
829
+ createPost?: boolean;
830
+ requireReview?: boolean;
829
831
  }
830
832
  export interface CanvasState {
831
833
  zoom: number;
@@ -881,6 +883,9 @@ export interface AutomationRun {
881
883
  status: 'pending' | 'running' | 'completed' | 'failed';
882
884
  variable_inputs: Record<string, string> | null;
883
885
  save_as_preview: boolean | null;
886
+ create_post: boolean | null;
887
+ require_review: boolean | null;
888
+ review_status: 'pending_review' | 'approved' | 'rejected' | null;
884
889
  created_at: string;
885
890
  completed_at: string | null;
886
891
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc",
3
- "version": "2.73.2",
3
+ "version": "2.73.4",
4
4
  "description": "TypeScript/JavaScript client for the UGC Inc API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",