ugcinc 4.1.99 → 4.1.100
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.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Provides methods to interact with the UGC Inc Automations API.
|
|
5
5
|
* For graph logic (validation, port computation, connections), use graph-controller.ts
|
|
6
6
|
*/
|
|
7
|
-
import type { WorkflowDefinition, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, AutomationExport, AutomationRunExport } from './types';
|
|
7
|
+
import type { WorkflowDefinition, AutomationTemplate, AutomationRun, ExecutorNode, ExecutionEdge, AutomationExport, AutomationRunExport, AutomationRunLog } from './types';
|
|
8
8
|
import type { ApiResponse } from '../types';
|
|
9
9
|
import { BaseClient } from '../base';
|
|
10
10
|
export declare class AutomationsClient extends BaseClient {
|
|
@@ -171,4 +171,11 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
171
171
|
}): Promise<ApiResponse<{
|
|
172
172
|
runIds: string[];
|
|
173
173
|
}>>;
|
|
174
|
+
/**
|
|
175
|
+
* Get execution logs for an automation run
|
|
176
|
+
* Returns log entries ordered by creation time (ascending)
|
|
177
|
+
*/
|
|
178
|
+
getLogs(params: {
|
|
179
|
+
runId: string;
|
|
180
|
+
}): Promise<ApiResponse<AutomationRunLog[]>>;
|
|
174
181
|
}
|
|
@@ -190,5 +190,15 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
190
190
|
body: JSON.stringify(params),
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Get execution logs for an automation run
|
|
195
|
+
* Returns log entries ordered by creation time (ascending)
|
|
196
|
+
*/
|
|
197
|
+
async getLogs(params) {
|
|
198
|
+
return this.request('/automations/logs', {
|
|
199
|
+
method: 'POST',
|
|
200
|
+
body: JSON.stringify(params),
|
|
201
|
+
});
|
|
202
|
+
}
|
|
193
203
|
}
|
|
194
204
|
exports.AutomationsClient = AutomationsClient;
|
|
@@ -638,6 +638,18 @@ export interface ExportedRun {
|
|
|
638
638
|
/**
|
|
639
639
|
* Full automation run export
|
|
640
640
|
*/
|
|
641
|
+
/**
|
|
642
|
+
* Log entry for an automation run
|
|
643
|
+
*/
|
|
644
|
+
export interface AutomationRunLog {
|
|
645
|
+
id: string;
|
|
646
|
+
automation_run_id: string;
|
|
647
|
+
executor_id: string | null;
|
|
648
|
+
level: 'info' | 'warn' | 'error';
|
|
649
|
+
message: string;
|
|
650
|
+
metadata: Record<string, unknown> | null;
|
|
651
|
+
created_at: string;
|
|
652
|
+
}
|
|
641
653
|
export interface AutomationRunExport {
|
|
642
654
|
run: ExportedRun;
|
|
643
655
|
template: ExportedTemplate;
|