ugcinc 3.10.1 → 3.11.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 +8 -0
- package/dist/automations.js +11 -46
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -118,6 +118,14 @@ export declare class AutomationsClient extends BaseClient {
|
|
|
118
118
|
exportRun(params: {
|
|
119
119
|
runId: string;
|
|
120
120
|
}): Promise<ApiResponse<AutomationRunExport>>;
|
|
121
|
+
/**
|
|
122
|
+
* Stop a running automation
|
|
123
|
+
* Marks the run as failed and all pending executors as failed.
|
|
124
|
+
* In-flight executors will complete gracefully.
|
|
125
|
+
*/
|
|
126
|
+
stop(params: {
|
|
127
|
+
runId: string;
|
|
128
|
+
}): Promise<ApiResponse<null>>;
|
|
121
129
|
}
|
|
122
130
|
/**
|
|
123
131
|
* Get all available automation nodes
|
package/dist/automations.js
CHANGED
|
@@ -130,6 +130,17 @@ class AutomationsClient extends base_1.BaseClient {
|
|
|
130
130
|
body: JSON.stringify(params),
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Stop a running automation
|
|
135
|
+
* Marks the run as failed and all pending executors as failed.
|
|
136
|
+
* In-flight executors will complete gracefully.
|
|
137
|
+
*/
|
|
138
|
+
async stop(params) {
|
|
139
|
+
return this.request('/automations/stop', {
|
|
140
|
+
method: 'POST',
|
|
141
|
+
body: JSON.stringify(params),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
133
144
|
}
|
|
134
145
|
exports.AutomationsClient = AutomationsClient;
|
|
135
146
|
/**
|
|
@@ -214,52 +225,6 @@ function getAllNodes() {
|
|
|
214
225
|
},
|
|
215
226
|
],
|
|
216
227
|
},
|
|
217
|
-
// Hidden legacy source nodes (replaced by media node)
|
|
218
|
-
{
|
|
219
|
-
type: "image",
|
|
220
|
-
label: "Image",
|
|
221
|
-
description: "Import image files",
|
|
222
|
-
category: "Sources",
|
|
223
|
-
nodeCategory: "source",
|
|
224
|
-
inputs: [],
|
|
225
|
-
outputs: [
|
|
226
|
-
{
|
|
227
|
-
id: "image",
|
|
228
|
-
type: "image",
|
|
229
|
-
required: true,
|
|
230
|
-
},
|
|
231
|
-
],
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
type: "video",
|
|
235
|
-
label: "Video",
|
|
236
|
-
description: "Import video files",
|
|
237
|
-
category: "Sources",
|
|
238
|
-
nodeCategory: "source",
|
|
239
|
-
inputs: [],
|
|
240
|
-
outputs: [
|
|
241
|
-
{
|
|
242
|
-
id: "video",
|
|
243
|
-
type: "video",
|
|
244
|
-
required: true,
|
|
245
|
-
},
|
|
246
|
-
],
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
type: "audio",
|
|
250
|
-
label: "Audio",
|
|
251
|
-
description: "Import audio files",
|
|
252
|
-
category: "Sources",
|
|
253
|
-
nodeCategory: "source",
|
|
254
|
-
inputs: [],
|
|
255
|
-
outputs: [
|
|
256
|
-
{
|
|
257
|
-
id: "audio",
|
|
258
|
-
type: "audio",
|
|
259
|
-
required: true,
|
|
260
|
-
},
|
|
261
|
-
],
|
|
262
|
-
},
|
|
263
228
|
// === Generator nodes ===
|
|
264
229
|
{
|
|
265
230
|
type: "image-template",
|
package/dist/types.d.ts
CHANGED
|
@@ -824,7 +824,7 @@ export interface NodeControlConfig {
|
|
|
824
824
|
*/
|
|
825
825
|
isInitializer?: boolean;
|
|
826
826
|
}
|
|
827
|
-
export type NodeTypeEnum = '
|
|
827
|
+
export type NodeTypeEnum = 'social-audio' | 'text' | 'media' | 'video-import' | 'image-template' | 'video-template' | 'image-generation' | 'video-generation' | 'custom-model' | 'text-generation' | 'output' | 'manual-trigger' | 'recurrence' | 'sub-agent' | 'account' | 'post-video' | 'post-slideshow' | 'save-to-media' | 'deduplicate' | 'for-each' | 'transcript' | 'auto-caption';
|
|
828
828
|
export interface OutputSchemaProperty {
|
|
829
829
|
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
830
830
|
items?: 'string' | 'number' | 'boolean';
|