ugcinc 2.11.2 → 2.11.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.
- package/dist/automations.d.ts +13 -1
- package/dist/automations.js +36 -18
- package/package.json +1 -1
package/dist/automations.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import type { NodeControlConfig, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationRun, NodeRun, ApiResponse } from './types';
|
|
1
|
+
import type { NodeControlConfig, MediaType, NodePort, NodeTypeEnum, WorkflowDefinition, AutomationTemplate, AutomationRun, NodeRun, ApiResponse } from './types';
|
|
2
2
|
import { BaseClient } from './base';
|
|
3
3
|
export declare class AutomationsClient extends BaseClient {
|
|
4
|
+
/**
|
|
5
|
+
* List all automation templates for an organization
|
|
6
|
+
*/
|
|
7
|
+
listTemplates(params: {
|
|
8
|
+
orgId: string;
|
|
9
|
+
}): Promise<ApiResponse<AutomationTemplate[]>>;
|
|
10
|
+
/**
|
|
11
|
+
* Get a specific automation template
|
|
12
|
+
*/
|
|
13
|
+
getTemplate(params: {
|
|
14
|
+
templateId: string;
|
|
15
|
+
}): Promise<ApiResponse<AutomationTemplate>>;
|
|
4
16
|
/**
|
|
5
17
|
* Create a new automation template
|
|
6
18
|
*/
|
package/dist/automations.js
CHANGED
|
@@ -5,6 +5,24 @@ exports.getAllNodes = getAllNodes;
|
|
|
5
5
|
exports.getNodeByType = getNodeByType;
|
|
6
6
|
const base_1 = require("./base");
|
|
7
7
|
class AutomationsClient extends base_1.BaseClient {
|
|
8
|
+
/**
|
|
9
|
+
* List all automation templates for an organization
|
|
10
|
+
*/
|
|
11
|
+
async listTemplates(params) {
|
|
12
|
+
return this.request('/automations/list', {
|
|
13
|
+
method: 'POST',
|
|
14
|
+
body: JSON.stringify(params),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get a specific automation template
|
|
19
|
+
*/
|
|
20
|
+
async getTemplate(params) {
|
|
21
|
+
return this.request('/automations/get', {
|
|
22
|
+
method: 'POST',
|
|
23
|
+
body: JSON.stringify(params),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
8
26
|
/**
|
|
9
27
|
* Create a new automation template
|
|
10
28
|
*/
|
|
@@ -65,8 +83,8 @@ function getAllNodes() {
|
|
|
65
83
|
inputs: [],
|
|
66
84
|
outputs: [
|
|
67
85
|
{
|
|
68
|
-
id: "
|
|
69
|
-
title: "
|
|
86
|
+
id: "image",
|
|
87
|
+
title: "image",
|
|
70
88
|
type: "image",
|
|
71
89
|
required: true,
|
|
72
90
|
},
|
|
@@ -80,8 +98,8 @@ function getAllNodes() {
|
|
|
80
98
|
inputs: [],
|
|
81
99
|
outputs: [
|
|
82
100
|
{
|
|
83
|
-
id: "
|
|
84
|
-
title: "
|
|
101
|
+
id: "video",
|
|
102
|
+
title: "video",
|
|
85
103
|
type: "video",
|
|
86
104
|
required: true,
|
|
87
105
|
},
|
|
@@ -95,8 +113,8 @@ function getAllNodes() {
|
|
|
95
113
|
inputs: [],
|
|
96
114
|
outputs: [
|
|
97
115
|
{
|
|
98
|
-
id: "
|
|
99
|
-
title: "
|
|
116
|
+
id: "audio",
|
|
117
|
+
title: "audio",
|
|
100
118
|
type: "audio",
|
|
101
119
|
required: true,
|
|
102
120
|
},
|
|
@@ -109,16 +127,16 @@ function getAllNodes() {
|
|
|
109
127
|
category: "Input",
|
|
110
128
|
inputs: [
|
|
111
129
|
{
|
|
112
|
-
id: "
|
|
113
|
-
title: "
|
|
130
|
+
id: "background",
|
|
131
|
+
title: "background",
|
|
114
132
|
type: "image",
|
|
115
133
|
required: true,
|
|
116
134
|
},
|
|
117
135
|
],
|
|
118
136
|
outputs: [
|
|
119
137
|
{
|
|
120
|
-
id: "
|
|
121
|
-
title: "
|
|
138
|
+
id: "output",
|
|
139
|
+
title: "output",
|
|
122
140
|
type: "image",
|
|
123
141
|
required: true,
|
|
124
142
|
},
|
|
@@ -131,16 +149,16 @@ function getAllNodes() {
|
|
|
131
149
|
category: "Input",
|
|
132
150
|
inputs: [
|
|
133
151
|
{
|
|
134
|
-
id: "
|
|
135
|
-
title: "
|
|
152
|
+
id: "video",
|
|
153
|
+
title: "video",
|
|
136
154
|
type: "video",
|
|
137
155
|
required: true,
|
|
138
156
|
},
|
|
139
157
|
],
|
|
140
158
|
outputs: [
|
|
141
159
|
{
|
|
142
|
-
id: "
|
|
143
|
-
title: "
|
|
160
|
+
id: "output",
|
|
161
|
+
title: "output",
|
|
144
162
|
type: "video",
|
|
145
163
|
required: true,
|
|
146
164
|
},
|
|
@@ -153,16 +171,16 @@ function getAllNodes() {
|
|
|
153
171
|
category: "Input",
|
|
154
172
|
inputs: [
|
|
155
173
|
{
|
|
156
|
-
id: "
|
|
157
|
-
title: "
|
|
174
|
+
id: "prompt",
|
|
175
|
+
title: "prompt",
|
|
158
176
|
type: "text",
|
|
159
177
|
required: true,
|
|
160
178
|
},
|
|
161
179
|
],
|
|
162
180
|
outputs: [
|
|
163
181
|
{
|
|
164
|
-
id: "
|
|
165
|
-
title: "
|
|
182
|
+
id: "response",
|
|
183
|
+
title: "response",
|
|
166
184
|
type: "text",
|
|
167
185
|
required: true,
|
|
168
186
|
},
|