@civitai/client 0.2.0-beta.41 → 0.2.0-beta.43
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/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/client.gen.js +237 -0
- package/dist/generated/client/index.d.ts +9 -8
- package/dist/generated/client/index.js +6 -4
- package/dist/generated/client/types.d.ts +4 -5
- package/dist/generated/client/types.gen.d.ts +195 -0
- package/dist/generated/client/types.gen.js +2 -0
- package/dist/generated/client/utils.gen.d.ts +58 -0
- package/dist/generated/client/utils.gen.js +234 -0
- package/dist/generated/client.gen.d.ts +5 -5
- package/dist/generated/client.gen.js +1 -1
- package/dist/generated/core/auth.gen.d.ts +21 -0
- package/dist/generated/core/auth.gen.js +14 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.js +57 -0
- package/dist/generated/core/params.gen.d.ts +49 -0
- package/dist/generated/core/params.gen.js +100 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +49 -0
- package/dist/generated/core/pathSerializer.gen.js +106 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +24 -0
- package/dist/generated/core/queryKeySerializer.gen.js +92 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +88 -0
- package/dist/generated/core/serverSentEvents.gen.js +134 -0
- package/dist/generated/core/types.gen.d.ts +106 -0
- package/dist/generated/core/types.gen.js +2 -0
- package/dist/generated/core/utils.gen.d.ts +25 -0
- package/dist/generated/core/utils.gen.js +87 -0
- package/dist/generated/index.d.ts +906 -2
- package/dist/generated/index.js +2 -2
- package/dist/generated/sdk.gen.d.ts +234 -75
- package/dist/generated/sdk.gen.js +192 -331
- package/dist/generated/types.gen.d.ts +3025 -1251
- package/dist/generated/types.gen.js +43 -85
- package/package.json +3 -3
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { client
|
|
2
|
+
import { client } from './client.gen';
|
|
3
3
|
/**
|
|
4
4
|
* Get blob by ID. This will redirect to a cacheable content URL.
|
|
5
5
|
*/
|
|
6
6
|
export const getBlob = (options) => {
|
|
7
7
|
var _a;
|
|
8
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
9
|
-
security: [
|
|
10
|
-
{
|
|
11
|
-
scheme: 'bearer',
|
|
12
|
-
type: 'http',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
8
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
15
9
|
url: '/v2/consumer/blobs/{blobId}',
|
|
16
10
|
...options,
|
|
17
11
|
});
|
|
@@ -21,13 +15,7 @@ export const getBlob = (options) => {
|
|
|
21
15
|
*/
|
|
22
16
|
export const headBlob = (options) => {
|
|
23
17
|
var _a;
|
|
24
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
25
|
-
security: [
|
|
26
|
-
{
|
|
27
|
-
scheme: 'bearer',
|
|
28
|
-
type: 'http',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
18
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).head({
|
|
31
19
|
url: '/v2/consumer/blobs/{blobId}',
|
|
32
20
|
...options,
|
|
33
21
|
});
|
|
@@ -38,16 +26,7 @@ export const headBlob = (options) => {
|
|
|
38
26
|
*/
|
|
39
27
|
export const getConsumerBlobUploadUrl = (options) => {
|
|
40
28
|
var _a;
|
|
41
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
42
|
-
security: [
|
|
43
|
-
{
|
|
44
|
-
scheme: 'bearer',
|
|
45
|
-
type: 'http',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
url: '/v2/consumer/blobs/upload',
|
|
49
|
-
...options,
|
|
50
|
-
});
|
|
29
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({ url: '/v2/consumer/blobs/upload', ...options });
|
|
51
30
|
};
|
|
52
31
|
/**
|
|
53
32
|
* Upload a blob directly with on-the-fly moderation.
|
|
@@ -55,29 +34,14 @@ export const getConsumerBlobUploadUrl = (options) => {
|
|
|
55
34
|
*/
|
|
56
35
|
export const uploadConsumerBlob = (options) => {
|
|
57
36
|
var _a;
|
|
58
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
59
|
-
security: [
|
|
60
|
-
{
|
|
61
|
-
scheme: 'bearer',
|
|
62
|
-
type: 'http',
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
url: '/v2/consumer/blobs',
|
|
66
|
-
...options,
|
|
67
|
-
});
|
|
37
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({ url: '/v2/consumer/blobs', ...options });
|
|
68
38
|
};
|
|
69
39
|
/**
|
|
70
40
|
* Serves cacheable blob content using a deterministic encrypted token
|
|
71
41
|
*/
|
|
72
42
|
export const getBlobContent = (options) => {
|
|
73
43
|
var _a;
|
|
74
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
75
|
-
security: [
|
|
76
|
-
{
|
|
77
|
-
scheme: 'bearer',
|
|
78
|
-
type: 'http',
|
|
79
|
-
},
|
|
80
|
-
],
|
|
44
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
81
45
|
url: '/v2/consumer/blobs/content/{encryptedToken}',
|
|
82
46
|
...options,
|
|
83
47
|
});
|
|
@@ -87,30 +51,33 @@ export const getBlobContent = (options) => {
|
|
|
87
51
|
*/
|
|
88
52
|
export const getBlockedContent = (options) => {
|
|
89
53
|
var _a;
|
|
90
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
91
|
-
security: [
|
|
92
|
-
{
|
|
93
|
-
scheme: 'bearer',
|
|
94
|
-
type: 'http',
|
|
95
|
-
},
|
|
96
|
-
],
|
|
54
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
97
55
|
url: '/v2/consumer/blobs/blocked/{encryptedToken}',
|
|
98
56
|
...options,
|
|
99
57
|
});
|
|
100
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Refresh a blob's URL and debounce its lifetime.
|
|
61
|
+
* Returns a fresh presigned URL and resets the 30-day TTL.
|
|
62
|
+
*/
|
|
63
|
+
export const refreshBlob = (options) => {
|
|
64
|
+
var _a;
|
|
65
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
66
|
+
url: '/v2/consumer/blobs/{blobId}/refresh',
|
|
67
|
+
...options,
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
export const invalidateUserCache = (options) => {
|
|
71
|
+
var _a;
|
|
72
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({ url: '/v2/consumer/civitai/{userId}', ...options });
|
|
73
|
+
};
|
|
101
74
|
/**
|
|
102
75
|
* Workflow step for generating music using ACE Step 1.5.
|
|
103
76
|
* /// Produces full songs from text descriptions and structured lyrics.
|
|
104
77
|
*/
|
|
105
78
|
export const invokeAceStepAudioStepTemplate = (options) => {
|
|
106
79
|
var _a;
|
|
107
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
108
|
-
security: [
|
|
109
|
-
{
|
|
110
|
-
scheme: 'bearer',
|
|
111
|
-
type: 'http',
|
|
112
|
-
},
|
|
113
|
-
],
|
|
80
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
114
81
|
url: '/v2/consumer/recipes/aceStepAudio',
|
|
115
82
|
...options,
|
|
116
83
|
headers: {
|
|
@@ -121,17 +88,12 @@ export const invokeAceStepAudioStepTemplate = (options) => {
|
|
|
121
88
|
};
|
|
122
89
|
/**
|
|
123
90
|
* Age classification
|
|
91
|
+
*
|
|
124
92
|
* Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
|
|
125
93
|
*/
|
|
126
94
|
export const invokeAgeClassificationStepTemplate = (options) => {
|
|
127
95
|
var _a;
|
|
128
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
129
|
-
security: [
|
|
130
|
-
{
|
|
131
|
-
scheme: 'bearer',
|
|
132
|
-
type: 'http',
|
|
133
|
-
},
|
|
134
|
-
],
|
|
96
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
135
97
|
url: '/v2/consumer/recipes/ageClassification',
|
|
136
98
|
...options,
|
|
137
99
|
headers: {
|
|
@@ -140,20 +102,26 @@ export const invokeAgeClassificationStepTemplate = (options) => {
|
|
|
140
102
|
},
|
|
141
103
|
});
|
|
142
104
|
};
|
|
105
|
+
export const invokeBatchOcrSafetyClassificationStepTemplate = (options) => {
|
|
106
|
+
var _a;
|
|
107
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
108
|
+
url: '/v2/consumer/recipes/batchOCRSafetyClassification',
|
|
109
|
+
...options,
|
|
110
|
+
headers: {
|
|
111
|
+
'Content-Type': 'application/json',
|
|
112
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
};
|
|
143
116
|
/**
|
|
144
117
|
* ChatCompletion
|
|
118
|
+
*
|
|
145
119
|
* Generate chat completions using language models with support for text and image inputs.
|
|
146
120
|
* /// Compatible with OpenAI Chat Completions API format.
|
|
147
121
|
*/
|
|
148
122
|
export const invokeChatCompletionStepTemplate = (options) => {
|
|
149
123
|
var _a;
|
|
150
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
151
|
-
security: [
|
|
152
|
-
{
|
|
153
|
-
scheme: 'bearer',
|
|
154
|
-
type: 'http',
|
|
155
|
-
},
|
|
156
|
-
],
|
|
124
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
157
125
|
url: '/v2/consumer/recipes/chatCompletion',
|
|
158
126
|
...options,
|
|
159
127
|
headers: {
|
|
@@ -164,17 +132,12 @@ export const invokeChatCompletionStepTemplate = (options) => {
|
|
|
164
132
|
};
|
|
165
133
|
/**
|
|
166
134
|
* Comfy workflows
|
|
135
|
+
*
|
|
167
136
|
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
168
137
|
*/
|
|
169
138
|
export const invokeComfyStepTemplate = (options) => {
|
|
170
139
|
var _a;
|
|
171
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
172
|
-
security: [
|
|
173
|
-
{
|
|
174
|
-
scheme: 'bearer',
|
|
175
|
-
type: 'http',
|
|
176
|
-
},
|
|
177
|
-
],
|
|
140
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
178
141
|
url: '/v2/consumer/recipes/comfy',
|
|
179
142
|
...options,
|
|
180
143
|
headers: {
|
|
@@ -188,13 +151,7 @@ export const invokeComfyStepTemplate = (options) => {
|
|
|
188
151
|
*/
|
|
189
152
|
export const invokeConvertImageStepTemplate = (options) => {
|
|
190
153
|
var _a;
|
|
191
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
192
|
-
security: [
|
|
193
|
-
{
|
|
194
|
-
scheme: 'bearer',
|
|
195
|
-
type: 'http',
|
|
196
|
-
},
|
|
197
|
-
],
|
|
154
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
198
155
|
url: '/v2/consumer/recipes/convertImage',
|
|
199
156
|
...options,
|
|
200
157
|
headers: {
|
|
@@ -205,18 +162,13 @@ export const invokeConvertImageStepTemplate = (options) => {
|
|
|
205
162
|
};
|
|
206
163
|
/**
|
|
207
164
|
* Echo
|
|
165
|
+
*
|
|
208
166
|
* A workflow step that takes a message string and retuns it.
|
|
209
167
|
* /// This step is intended for testing purposes.
|
|
210
168
|
*/
|
|
211
169
|
export const invokeEchoStepTemplate = (options) => {
|
|
212
170
|
var _a;
|
|
213
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
214
|
-
security: [
|
|
215
|
-
{
|
|
216
|
-
scheme: 'bearer',
|
|
217
|
-
type: 'http',
|
|
218
|
-
},
|
|
219
|
-
],
|
|
171
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
220
172
|
url: '/v2/consumer/recipes/echo',
|
|
221
173
|
...options,
|
|
222
174
|
headers: {
|
|
@@ -225,19 +177,25 @@ export const invokeEchoStepTemplate = (options) => {
|
|
|
225
177
|
},
|
|
226
178
|
});
|
|
227
179
|
};
|
|
180
|
+
export const invokeHumanoidImageMaskStepTemplate = (options) => {
|
|
181
|
+
var _a;
|
|
182
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
183
|
+
url: '/v2/consumer/recipes/humanoidImageMask',
|
|
184
|
+
...options,
|
|
185
|
+
headers: {
|
|
186
|
+
'Content-Type': 'application/json',
|
|
187
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
};
|
|
228
191
|
/**
|
|
229
192
|
* Image Generation
|
|
193
|
+
*
|
|
230
194
|
* Generate images through text/image inputs using any of our supported engines
|
|
231
195
|
*/
|
|
232
196
|
export const invokeImageGenStepTemplate = (options) => {
|
|
233
197
|
var _a;
|
|
234
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
235
|
-
security: [
|
|
236
|
-
{
|
|
237
|
-
scheme: 'bearer',
|
|
238
|
-
type: 'http',
|
|
239
|
-
},
|
|
240
|
-
],
|
|
198
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
241
199
|
url: '/v2/consumer/recipes/imageGen',
|
|
242
200
|
...options,
|
|
243
201
|
headers: {
|
|
@@ -248,17 +206,12 @@ export const invokeImageGenStepTemplate = (options) => {
|
|
|
248
206
|
};
|
|
249
207
|
/**
|
|
250
208
|
* LORA Training
|
|
209
|
+
*
|
|
251
210
|
* Train LORA's
|
|
252
211
|
*/
|
|
253
212
|
export const invokeImageResourceTrainingStepTemplate = (options) => {
|
|
254
213
|
var _a;
|
|
255
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
256
|
-
security: [
|
|
257
|
-
{
|
|
258
|
-
scheme: 'bearer',
|
|
259
|
-
type: 'http',
|
|
260
|
-
},
|
|
261
|
-
],
|
|
214
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
262
215
|
url: '/v2/consumer/recipes/imageResourceTraining',
|
|
263
216
|
...options,
|
|
264
217
|
headers: {
|
|
@@ -269,17 +222,12 @@ export const invokeImageResourceTrainingStepTemplate = (options) => {
|
|
|
269
222
|
};
|
|
270
223
|
/**
|
|
271
224
|
* Image upload
|
|
225
|
+
*
|
|
272
226
|
* Uploads an image to be used in a workflow
|
|
273
227
|
*/
|
|
274
228
|
export const invokeImageUploadStepTemplate = (options) => {
|
|
275
229
|
var _a;
|
|
276
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
277
|
-
security: [
|
|
278
|
-
{
|
|
279
|
-
scheme: 'bearer',
|
|
280
|
-
type: 'http',
|
|
281
|
-
},
|
|
282
|
-
],
|
|
230
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
283
231
|
url: '/v2/consumer/recipes/imageUpload',
|
|
284
232
|
...options,
|
|
285
233
|
headers: {
|
|
@@ -290,13 +238,7 @@ export const invokeImageUploadStepTemplate = (options) => {
|
|
|
290
238
|
};
|
|
291
239
|
export const invokeImageUpscalerStepTemplate = (options) => {
|
|
292
240
|
var _a;
|
|
293
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
294
|
-
security: [
|
|
295
|
-
{
|
|
296
|
-
scheme: 'bearer',
|
|
297
|
-
type: 'http',
|
|
298
|
-
},
|
|
299
|
-
],
|
|
241
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
300
242
|
url: '/v2/consumer/recipes/imageUpscaler',
|
|
301
243
|
...options,
|
|
302
244
|
headers: {
|
|
@@ -305,19 +247,30 @@ export const invokeImageUpscalerStepTemplate = (options) => {
|
|
|
305
247
|
},
|
|
306
248
|
});
|
|
307
249
|
};
|
|
250
|
+
/**
|
|
251
|
+
* Media Captioning
|
|
252
|
+
*
|
|
253
|
+
* Generates a descriptive caption for a single media item using the JoyCaption model.
|
|
254
|
+
*/
|
|
255
|
+
export const invokeMediaCaptioningStepTemplate = (options) => {
|
|
256
|
+
var _a;
|
|
257
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
258
|
+
url: '/v2/consumer/recipes/mediaCaptioning',
|
|
259
|
+
...options,
|
|
260
|
+
headers: {
|
|
261
|
+
'Content-Type': 'application/json',
|
|
262
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
263
|
+
},
|
|
264
|
+
});
|
|
265
|
+
};
|
|
308
266
|
/**
|
|
309
267
|
* MediaHash
|
|
268
|
+
*
|
|
310
269
|
* Generates perceptual hashes for media content to enable similarity detection and duplicate identification.
|
|
311
270
|
*/
|
|
312
271
|
export const invokeMediaHashStepTemplate = (options) => {
|
|
313
272
|
var _a;
|
|
314
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
315
|
-
security: [
|
|
316
|
-
{
|
|
317
|
-
scheme: 'bearer',
|
|
318
|
-
type: 'http',
|
|
319
|
-
},
|
|
320
|
-
],
|
|
273
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
321
274
|
url: '/v2/consumer/recipes/mediaHash',
|
|
322
275
|
...options,
|
|
323
276
|
headers: {
|
|
@@ -328,17 +281,12 @@ export const invokeMediaHashStepTemplate = (options) => {
|
|
|
328
281
|
};
|
|
329
282
|
/**
|
|
330
283
|
* MediaRating
|
|
284
|
+
*
|
|
331
285
|
* Performs NSFW level detection and content safety classification on media content.
|
|
332
286
|
*/
|
|
333
287
|
export const invokeMediaRatingStepTemplate = (options) => {
|
|
334
288
|
var _a;
|
|
335
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
336
|
-
security: [
|
|
337
|
-
{
|
|
338
|
-
scheme: 'bearer',
|
|
339
|
-
type: 'http',
|
|
340
|
-
},
|
|
341
|
-
],
|
|
289
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
342
290
|
url: '/v2/consumer/recipes/mediaRating',
|
|
343
291
|
...options,
|
|
344
292
|
headers: {
|
|
@@ -349,13 +297,7 @@ export const invokeMediaRatingStepTemplate = (options) => {
|
|
|
349
297
|
};
|
|
350
298
|
export const invokePreprocessImageStepTemplate = (options) => {
|
|
351
299
|
var _a;
|
|
352
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
353
|
-
security: [
|
|
354
|
-
{
|
|
355
|
-
scheme: 'bearer',
|
|
356
|
-
type: 'http',
|
|
357
|
-
},
|
|
358
|
-
],
|
|
300
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
359
301
|
url: '/v2/consumer/recipes/preprocessImage',
|
|
360
302
|
...options,
|
|
361
303
|
headers: {
|
|
@@ -364,19 +306,45 @@ export const invokePreprocessImageStepTemplate = (options) => {
|
|
|
364
306
|
},
|
|
365
307
|
});
|
|
366
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* PromptEnhancement
|
|
311
|
+
*
|
|
312
|
+
* Analyzes and enhances user prompts for a specific AI ecosystem.
|
|
313
|
+
* /// Returns detected issues, recommendations, and improved prompt variants.
|
|
314
|
+
*/
|
|
315
|
+
export const invokePromptEnhancementStepTemplate = (options) => {
|
|
316
|
+
var _a;
|
|
317
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
318
|
+
url: '/v2/consumer/recipes/promptEnhancement',
|
|
319
|
+
...options,
|
|
320
|
+
headers: {
|
|
321
|
+
'Content-Type': 'application/json',
|
|
322
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
323
|
+
},
|
|
324
|
+
});
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Repeat workflow step.
|
|
328
|
+
*/
|
|
329
|
+
export const invokeRepeatStepTemplate = (options) => {
|
|
330
|
+
var _a;
|
|
331
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
332
|
+
url: '/v2/consumer/recipes/repeat',
|
|
333
|
+
...options,
|
|
334
|
+
headers: {
|
|
335
|
+
'Content-Type': 'application/json',
|
|
336
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
337
|
+
},
|
|
338
|
+
});
|
|
339
|
+
};
|
|
367
340
|
/**
|
|
368
341
|
* TextToImage
|
|
342
|
+
*
|
|
369
343
|
* Generate images using text as input
|
|
370
344
|
*/
|
|
371
345
|
export const invokeTextToImageStepTemplate = (options) => {
|
|
372
346
|
var _a;
|
|
373
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
374
|
-
security: [
|
|
375
|
-
{
|
|
376
|
-
scheme: 'bearer',
|
|
377
|
-
type: 'http',
|
|
378
|
-
},
|
|
379
|
-
],
|
|
347
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
380
348
|
url: '/v2/consumer/recipes/textToImage',
|
|
381
349
|
...options,
|
|
382
350
|
headers: {
|
|
@@ -387,17 +355,12 @@ export const invokeTextToImageStepTemplate = (options) => {
|
|
|
387
355
|
};
|
|
388
356
|
/**
|
|
389
357
|
* Text-to-Speech
|
|
358
|
+
*
|
|
390
359
|
* Synthesizes speech from text, supporting both voice cloning (Base mode with reference audio) and built-in speakers (CustomVoice mode).
|
|
391
360
|
*/
|
|
392
361
|
export const invokeTextToSpeechStepTemplate = (options) => {
|
|
393
362
|
var _a;
|
|
394
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
395
|
-
security: [
|
|
396
|
-
{
|
|
397
|
-
scheme: 'bearer',
|
|
398
|
-
type: 'http',
|
|
399
|
-
},
|
|
400
|
-
],
|
|
363
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
401
364
|
url: '/v2/consumer/recipes/textToSpeech',
|
|
402
365
|
...options,
|
|
403
366
|
headers: {
|
|
@@ -408,19 +371,14 @@ export const invokeTextToSpeechStepTemplate = (options) => {
|
|
|
408
371
|
};
|
|
409
372
|
/**
|
|
410
373
|
* Training
|
|
374
|
+
*
|
|
411
375
|
* A workflow step for training machine learning models (LoRAs, checkpoints, etc.)
|
|
412
376
|
* /// on various types of data (images, videos, audio). This replaces ImageResourceTraining
|
|
413
377
|
* /// with a cleaner architecture that creates one job per epoch instead of a single monolithic job.
|
|
414
378
|
*/
|
|
415
379
|
export const invokeTrainingStepTemplate = (options) => {
|
|
416
380
|
var _a;
|
|
417
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
418
|
-
security: [
|
|
419
|
-
{
|
|
420
|
-
scheme: 'bearer',
|
|
421
|
-
type: 'http',
|
|
422
|
-
},
|
|
423
|
-
],
|
|
381
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
424
382
|
url: '/v2/consumer/recipes/training',
|
|
425
383
|
...options,
|
|
426
384
|
headers: {
|
|
@@ -429,19 +387,28 @@ export const invokeTrainingStepTemplate = (options) => {
|
|
|
429
387
|
},
|
|
430
388
|
});
|
|
431
389
|
};
|
|
390
|
+
/**
|
|
391
|
+
* Transcoding
|
|
392
|
+
*/
|
|
393
|
+
export const invokeTranscodeStepTemplate = (options) => {
|
|
394
|
+
var _a;
|
|
395
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
396
|
+
url: '/v2/consumer/recipes/transcode',
|
|
397
|
+
...options,
|
|
398
|
+
headers: {
|
|
399
|
+
'Content-Type': 'application/json',
|
|
400
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
401
|
+
},
|
|
402
|
+
});
|
|
403
|
+
};
|
|
432
404
|
/**
|
|
433
405
|
* Transcription
|
|
406
|
+
*
|
|
434
407
|
* Performs automatic speech recognition (ASR) on audio media, returning transcribed text with optional timestamps.
|
|
435
408
|
*/
|
|
436
409
|
export const invokeTranscriptionStepTemplate = (options) => {
|
|
437
410
|
var _a;
|
|
438
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
439
|
-
security: [
|
|
440
|
-
{
|
|
441
|
-
scheme: 'bearer',
|
|
442
|
-
type: 'http',
|
|
443
|
-
},
|
|
444
|
-
],
|
|
411
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
445
412
|
url: '/v2/consumer/recipes/transcription',
|
|
446
413
|
...options,
|
|
447
414
|
headers: {
|
|
@@ -450,18 +417,23 @@ export const invokeTranscriptionStepTemplate = (options) => {
|
|
|
450
417
|
},
|
|
451
418
|
});
|
|
452
419
|
};
|
|
420
|
+
export const invokeTryOnUStepTemplate = (options) => {
|
|
421
|
+
var _a;
|
|
422
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
423
|
+
url: '/v2/consumer/recipes/tryOnU',
|
|
424
|
+
...options,
|
|
425
|
+
headers: {
|
|
426
|
+
'Content-Type': 'application/json',
|
|
427
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
428
|
+
},
|
|
429
|
+
});
|
|
430
|
+
};
|
|
453
431
|
/**
|
|
454
432
|
* Upscale videos and/or interpolate frames
|
|
455
433
|
*/
|
|
456
434
|
export const invokeVideoEnhancementStepTemplate = (options) => {
|
|
457
435
|
var _a;
|
|
458
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
459
|
-
security: [
|
|
460
|
-
{
|
|
461
|
-
scheme: 'bearer',
|
|
462
|
-
type: 'http',
|
|
463
|
-
},
|
|
464
|
-
],
|
|
436
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
465
437
|
url: '/v2/consumer/recipes/videoEnhancement',
|
|
466
438
|
...options,
|
|
467
439
|
headers: {
|
|
@@ -472,18 +444,13 @@ export const invokeVideoEnhancementStepTemplate = (options) => {
|
|
|
472
444
|
};
|
|
473
445
|
/**
|
|
474
446
|
* Video Frame Extraction
|
|
447
|
+
*
|
|
475
448
|
* Extracts unique frames from a video at a specified rate using perceptual hashing to filter out duplicate/similar frames.
|
|
476
449
|
* /// Useful for generating video previews, storyboards, or analyzing video content.
|
|
477
450
|
*/
|
|
478
451
|
export const invokeVideoFrameExtractionStepTemplate = (options) => {
|
|
479
452
|
var _a;
|
|
480
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
481
|
-
security: [
|
|
482
|
-
{
|
|
483
|
-
scheme: 'bearer',
|
|
484
|
-
type: 'http',
|
|
485
|
-
},
|
|
486
|
-
],
|
|
453
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
487
454
|
url: '/v2/consumer/recipes/videoFrameExtraction',
|
|
488
455
|
...options,
|
|
489
456
|
headers: {
|
|
@@ -494,17 +461,12 @@ export const invokeVideoFrameExtractionStepTemplate = (options) => {
|
|
|
494
461
|
};
|
|
495
462
|
/**
|
|
496
463
|
* Video generation
|
|
464
|
+
*
|
|
497
465
|
* Generate videos through text/image inputs using any of our supported engines
|
|
498
466
|
*/
|
|
499
467
|
export const invokeVideoGenStepTemplate = (options) => {
|
|
500
468
|
var _a;
|
|
501
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
502
|
-
security: [
|
|
503
|
-
{
|
|
504
|
-
scheme: 'bearer',
|
|
505
|
-
type: 'http',
|
|
506
|
-
},
|
|
507
|
-
],
|
|
469
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
508
470
|
url: '/v2/consumer/recipes/videoGen',
|
|
509
471
|
...options,
|
|
510
472
|
headers: {
|
|
@@ -518,13 +480,7 @@ export const invokeVideoGenStepTemplate = (options) => {
|
|
|
518
480
|
*/
|
|
519
481
|
export const invokeVideoInterpolationStepTemplate = (options) => {
|
|
520
482
|
var _a;
|
|
521
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
522
|
-
security: [
|
|
523
|
-
{
|
|
524
|
-
scheme: 'bearer',
|
|
525
|
-
type: 'http',
|
|
526
|
-
},
|
|
527
|
-
],
|
|
483
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
528
484
|
url: '/v2/consumer/recipes/videoInterpolation',
|
|
529
485
|
...options,
|
|
530
486
|
headers: {
|
|
@@ -538,13 +494,7 @@ export const invokeVideoInterpolationStepTemplate = (options) => {
|
|
|
538
494
|
*/
|
|
539
495
|
export const invokeVideoMetadataStepTemplate = (options) => {
|
|
540
496
|
var _a;
|
|
541
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
542
|
-
security: [
|
|
543
|
-
{
|
|
544
|
-
scheme: 'bearer',
|
|
545
|
-
type: 'http',
|
|
546
|
-
},
|
|
547
|
-
],
|
|
497
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
548
498
|
url: '/v2/consumer/recipes/videoMetadata',
|
|
549
499
|
...options,
|
|
550
500
|
headers: {
|
|
@@ -558,13 +508,7 @@ export const invokeVideoMetadataStepTemplate = (options) => {
|
|
|
558
508
|
*/
|
|
559
509
|
export const invokeVideoUpscalerStepTemplate = (options) => {
|
|
560
510
|
var _a;
|
|
561
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
562
|
-
security: [
|
|
563
|
-
{
|
|
564
|
-
scheme: 'bearer',
|
|
565
|
-
type: 'http',
|
|
566
|
-
},
|
|
567
|
-
],
|
|
511
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
568
512
|
url: '/v2/consumer/recipes/videoUpscaler',
|
|
569
513
|
...options,
|
|
570
514
|
headers: {
|
|
@@ -575,17 +519,12 @@ export const invokeVideoUpscalerStepTemplate = (options) => {
|
|
|
575
519
|
};
|
|
576
520
|
/**
|
|
577
521
|
* WDTagging
|
|
522
|
+
*
|
|
578
523
|
* Performs Waifu Diffusion tagging on media content to identify characteristics, objects, and themes.
|
|
579
524
|
*/
|
|
580
525
|
export const invokeWdTaggingStepTemplate = (options) => {
|
|
581
526
|
var _a;
|
|
582
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
583
|
-
security: [
|
|
584
|
-
{
|
|
585
|
-
scheme: 'bearer',
|
|
586
|
-
type: 'http',
|
|
587
|
-
},
|
|
588
|
-
],
|
|
527
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
589
528
|
url: '/v2/consumer/recipes/wdTagging',
|
|
590
529
|
...options,
|
|
591
530
|
headers: {
|
|
@@ -595,46 +534,42 @@ export const invokeWdTaggingStepTemplate = (options) => {
|
|
|
595
534
|
});
|
|
596
535
|
};
|
|
597
536
|
/**
|
|
598
|
-
*
|
|
537
|
+
* XGuardModeration
|
|
538
|
+
*
|
|
539
|
+
* Evaluate text or generation prompts against XGuard content moderation policies.
|
|
540
|
+
* /// Generates one ChatCompletion job per label and aggregates results with logprob-based scoring.
|
|
599
541
|
*/
|
|
600
|
-
export const
|
|
542
|
+
export const invokeXGuardModerationStepTemplate = (options) => {
|
|
601
543
|
var _a;
|
|
602
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
603
|
-
|
|
604
|
-
{
|
|
605
|
-
scheme: 'bearer',
|
|
606
|
-
type: 'http',
|
|
607
|
-
},
|
|
608
|
-
],
|
|
609
|
-
url: '/v2/resources/{air}',
|
|
544
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
545
|
+
url: '/v2/consumer/recipes/xGuardModeration',
|
|
610
546
|
...options,
|
|
547
|
+
headers: {
|
|
548
|
+
'Content-Type': 'application/json',
|
|
549
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
550
|
+
},
|
|
611
551
|
});
|
|
612
552
|
};
|
|
553
|
+
/**
|
|
554
|
+
* Invalidates the cache of a specific resource.
|
|
555
|
+
*/
|
|
556
|
+
export const invalidateResource = (options) => {
|
|
557
|
+
var _a;
|
|
558
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({ url: '/v2/resources/{air}', ...options });
|
|
559
|
+
};
|
|
613
560
|
/**
|
|
614
561
|
* Get an existing resource.
|
|
615
562
|
*/
|
|
616
563
|
export const getResource = (options) => {
|
|
617
564
|
var _a;
|
|
618
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
619
|
-
security: [
|
|
620
|
-
{
|
|
621
|
-
scheme: 'bearer',
|
|
622
|
-
type: 'http',
|
|
623
|
-
},
|
|
624
|
-
],
|
|
565
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
625
566
|
url: '/v2/resources/{air}',
|
|
626
567
|
...options,
|
|
627
568
|
});
|
|
628
569
|
};
|
|
629
570
|
export const getStreamingBlob = (options) => {
|
|
630
571
|
var _a;
|
|
631
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
632
|
-
security: [
|
|
633
|
-
{
|
|
634
|
-
scheme: 'bearer',
|
|
635
|
-
type: 'http',
|
|
636
|
-
},
|
|
637
|
-
],
|
|
572
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
638
573
|
url: '/v2/consumer/streaming-blobs/{blobKey}',
|
|
639
574
|
...options,
|
|
640
575
|
});
|
|
@@ -644,13 +579,7 @@ export const getStreamingBlob = (options) => {
|
|
|
644
579
|
*/
|
|
645
580
|
export const queryWorkflows = (options) => {
|
|
646
581
|
var _a;
|
|
647
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
648
|
-
security: [
|
|
649
|
-
{
|
|
650
|
-
scheme: 'bearer',
|
|
651
|
-
type: 'http',
|
|
652
|
-
},
|
|
653
|
-
],
|
|
582
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
654
583
|
url: '/v2/consumer/workflows',
|
|
655
584
|
...options,
|
|
656
585
|
});
|
|
@@ -660,13 +589,7 @@ export const queryWorkflows = (options) => {
|
|
|
660
589
|
*/
|
|
661
590
|
export const submitWorkflow = (options) => {
|
|
662
591
|
var _a;
|
|
663
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
664
|
-
security: [
|
|
665
|
-
{
|
|
666
|
-
scheme: 'bearer',
|
|
667
|
-
type: 'http',
|
|
668
|
-
},
|
|
669
|
-
],
|
|
592
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
670
593
|
url: '/v2/consumer/workflows',
|
|
671
594
|
...options,
|
|
672
595
|
headers: {
|
|
@@ -677,17 +600,12 @@ export const submitWorkflow = (options) => {
|
|
|
677
600
|
};
|
|
678
601
|
/**
|
|
679
602
|
* Delete workflow
|
|
603
|
+
*
|
|
680
604
|
* This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
|
|
681
605
|
*/
|
|
682
606
|
export const deleteWorkflow = (options) => {
|
|
683
607
|
var _a;
|
|
684
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
685
|
-
security: [
|
|
686
|
-
{
|
|
687
|
-
scheme: 'bearer',
|
|
688
|
-
type: 'http',
|
|
689
|
-
},
|
|
690
|
-
],
|
|
608
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({
|
|
691
609
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
692
610
|
...options,
|
|
693
611
|
});
|
|
@@ -697,30 +615,19 @@ export const deleteWorkflow = (options) => {
|
|
|
697
615
|
*/
|
|
698
616
|
export const getWorkflow = (options) => {
|
|
699
617
|
var _a;
|
|
700
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
701
|
-
security: [
|
|
702
|
-
{
|
|
703
|
-
scheme: 'bearer',
|
|
704
|
-
type: 'http',
|
|
705
|
-
},
|
|
706
|
-
],
|
|
618
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
707
619
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
708
620
|
...options,
|
|
709
621
|
});
|
|
710
622
|
};
|
|
711
623
|
/**
|
|
712
624
|
* Patch workflow
|
|
625
|
+
*
|
|
713
626
|
* Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
|
|
714
627
|
*/
|
|
715
628
|
export const patchWorkflow = (options) => {
|
|
716
629
|
var _a;
|
|
717
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
718
|
-
security: [
|
|
719
|
-
{
|
|
720
|
-
scheme: 'bearer',
|
|
721
|
-
type: 'http',
|
|
722
|
-
},
|
|
723
|
-
],
|
|
630
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).patch({
|
|
724
631
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
725
632
|
...options,
|
|
726
633
|
headers: {
|
|
@@ -731,17 +638,12 @@ export const patchWorkflow = (options) => {
|
|
|
731
638
|
};
|
|
732
639
|
/**
|
|
733
640
|
* Update workflow
|
|
641
|
+
*
|
|
734
642
|
* Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
|
|
735
643
|
*/
|
|
736
644
|
export const updateWorkflow = (options) => {
|
|
737
645
|
var _a;
|
|
738
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
739
|
-
security: [
|
|
740
|
-
{
|
|
741
|
-
scheme: 'bearer',
|
|
742
|
-
type: 'http',
|
|
743
|
-
},
|
|
744
|
-
],
|
|
646
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).put({
|
|
745
647
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
746
648
|
...options,
|
|
747
649
|
headers: {
|
|
@@ -755,30 +657,16 @@ export const updateWorkflow = (options) => {
|
|
|
755
657
|
*/
|
|
756
658
|
export const removeAllWorkflowTags = (options) => {
|
|
757
659
|
var _a;
|
|
758
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
759
|
-
security: [
|
|
760
|
-
{
|
|
761
|
-
scheme: 'bearer',
|
|
762
|
-
type: 'http',
|
|
763
|
-
},
|
|
764
|
-
],
|
|
765
|
-
url: '/v2/consumer/workflows/{workflowId}/tags',
|
|
766
|
-
...options,
|
|
767
|
-
});
|
|
660
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({ url: '/v2/consumer/workflows/{workflowId}/tags', ...options });
|
|
768
661
|
};
|
|
769
662
|
/**
|
|
770
663
|
* Add workflow tag
|
|
664
|
+
*
|
|
771
665
|
* Adds a tag to a workflow
|
|
772
666
|
*/
|
|
773
667
|
export const addWorkflowTag = (options) => {
|
|
774
668
|
var _a;
|
|
775
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
776
|
-
security: [
|
|
777
|
-
{
|
|
778
|
-
scheme: 'bearer',
|
|
779
|
-
type: 'http',
|
|
780
|
-
},
|
|
781
|
-
],
|
|
669
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
782
670
|
url: '/v2/consumer/workflows/{workflowId}/tags',
|
|
783
671
|
...options,
|
|
784
672
|
headers: {
|
|
@@ -792,42 +680,21 @@ export const addWorkflowTag = (options) => {
|
|
|
792
680
|
*/
|
|
793
681
|
export const removeWorkflowTag = (options) => {
|
|
794
682
|
var _a;
|
|
795
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
796
|
-
security: [
|
|
797
|
-
{
|
|
798
|
-
scheme: 'bearer',
|
|
799
|
-
type: 'http',
|
|
800
|
-
},
|
|
801
|
-
],
|
|
802
|
-
url: '/v2/consumer/workflows/{workflowId}/tags/{tag}',
|
|
803
|
-
...options,
|
|
804
|
-
});
|
|
683
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).delete({ url: '/v2/consumer/workflows/{workflowId}/tags/{tag}', ...options });
|
|
805
684
|
};
|
|
806
685
|
/**
|
|
807
686
|
* Get the status of a workflow step
|
|
808
687
|
*/
|
|
809
688
|
export const getWorkflowStep = (options) => {
|
|
810
689
|
var _a;
|
|
811
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
812
|
-
security: [
|
|
813
|
-
{
|
|
814
|
-
scheme: 'bearer',
|
|
815
|
-
type: 'http',
|
|
816
|
-
},
|
|
817
|
-
],
|
|
690
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
818
691
|
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
819
692
|
...options,
|
|
820
693
|
});
|
|
821
694
|
};
|
|
822
695
|
export const patchWorkflowStep = (options) => {
|
|
823
696
|
var _a;
|
|
824
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
825
|
-
security: [
|
|
826
|
-
{
|
|
827
|
-
scheme: 'bearer',
|
|
828
|
-
type: 'http',
|
|
829
|
-
},
|
|
830
|
-
],
|
|
697
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).patch({
|
|
831
698
|
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
832
699
|
...options,
|
|
833
700
|
headers: {
|
|
@@ -841,13 +708,7 @@ export const patchWorkflowStep = (options) => {
|
|
|
841
708
|
*/
|
|
842
709
|
export const updateWorkflowStep = (options) => {
|
|
843
710
|
var _a;
|
|
844
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a :
|
|
845
|
-
security: [
|
|
846
|
-
{
|
|
847
|
-
scheme: 'bearer',
|
|
848
|
-
type: 'http',
|
|
849
|
-
},
|
|
850
|
-
],
|
|
711
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).put({
|
|
851
712
|
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
852
713
|
...options,
|
|
853
714
|
headers: {
|