@civitai/client 0.2.0-beta.36 → 0.2.0-beta.38
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/types.d.ts +5 -4
- package/dist/generated/schemas.gen.d.ts +2083 -2028
- package/dist/generated/schemas.gen.js +2093 -2031
- package/dist/generated/services.gen.d.ts +88 -90
- package/dist/generated/services.gen.js +100 -147
- package/dist/generated/types.gen.d.ts +178 -2
- package/dist/generated/types.gen.js +4 -0
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.js +1 -0
- package/package.json +1 -1
|
@@ -1,309 +1,262 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
-
|
|
4
|
-
exports.patchWorkflowStep = exports.updateWorkflowStep = exports.getWorkflowStep = exports.removeWorkflowTag = exports.removeAllWorkflowTags = exports.addWorkflowTag = exports.deleteWorkflow = exports.patchWorkflow = exports.updateWorkflow = exports.getWorkflow = exports.queryWorkflows = exports.submitWorkflow = exports.patchWorkerResources = exports.updateWorkerRegistration = exports.getRegistration = exports.deleteWorker = exports.getWorker = exports.queryWorkers = exports.createWorker = exports.downloadResource = exports.getJobs = exports.invalidateResource = exports.getResource = exports.deleteConfiguration = exports.getConfiguration = exports.queryConfigurations = exports.createConfiguration = exports.getBlob = exports.putV2ProvidersBlobsByBlobKey = void 0;
|
|
5
|
-
const client_fetch_1 = require("@hey-api/client-fetch");
|
|
6
|
-
const putV2ProvidersBlobsByBlobKey = (options) => {
|
|
7
|
-
var _a;
|
|
8
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).put({
|
|
9
|
-
...options,
|
|
10
|
-
url: '/v2/providers/blobs/{blobKey}',
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
exports.putV2ProvidersBlobsByBlobKey = putV2ProvidersBlobsByBlobKey;
|
|
2
|
+
import { client } from '@hey-api/client-fetch';
|
|
14
3
|
/**
|
|
15
|
-
* Get blob by ID.
|
|
4
|
+
* Get blob by ID. This will return the blob as a binary stream.
|
|
16
5
|
*/
|
|
17
|
-
const getBlob = (options) => {
|
|
6
|
+
export const getBlob = (options) => {
|
|
18
7
|
var _a;
|
|
19
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
8
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
20
9
|
...options,
|
|
21
10
|
url: '/v2/consumer/blobs/{blobId}',
|
|
22
11
|
});
|
|
23
12
|
};
|
|
24
|
-
exports.getBlob = getBlob;
|
|
25
13
|
/**
|
|
26
|
-
*
|
|
14
|
+
* Handles HTTP HEAD requests for a specific blob, checking its existence and NSFW level.
|
|
27
15
|
*/
|
|
28
|
-
const
|
|
16
|
+
export const headBlob = (options) => {
|
|
29
17
|
var _a;
|
|
30
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
18
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).head({
|
|
31
19
|
...options,
|
|
32
|
-
url: '/v2/
|
|
20
|
+
url: '/v2/consumer/blobs/{blobId}',
|
|
33
21
|
});
|
|
34
22
|
};
|
|
35
|
-
exports.createConfiguration = createConfiguration;
|
|
36
23
|
/**
|
|
37
|
-
*
|
|
24
|
+
* Age classification
|
|
25
|
+
* Detects minors in media content. Returns a boolean value indicating whether the content contains minors as well as details on where minors are detected.
|
|
38
26
|
*/
|
|
39
|
-
const
|
|
27
|
+
export const invokeAgeClassificationStepTemplate = (options) => {
|
|
40
28
|
var _a;
|
|
41
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
29
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
42
30
|
...options,
|
|
43
|
-
url: '/v2/
|
|
31
|
+
url: '/v2/consumer/recipes/ageClassification',
|
|
44
32
|
});
|
|
45
33
|
};
|
|
46
|
-
exports.queryConfigurations = queryConfigurations;
|
|
47
34
|
/**
|
|
48
|
-
*
|
|
35
|
+
* Comfy workflows
|
|
36
|
+
* Runs a comfy workflow. Currently there are limited nodes available. Contact support for more information.
|
|
49
37
|
*/
|
|
50
|
-
const
|
|
38
|
+
export const invokeComfyStepTemplate = (options) => {
|
|
51
39
|
var _a;
|
|
52
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
40
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
53
41
|
...options,
|
|
54
|
-
url: '/v2/
|
|
42
|
+
url: '/v2/consumer/recipes/comfy',
|
|
55
43
|
});
|
|
56
44
|
};
|
|
57
|
-
exports.getConfiguration = getConfiguration;
|
|
58
45
|
/**
|
|
59
|
-
*
|
|
46
|
+
* Echo
|
|
47
|
+
* A workflow step that takes a message string and retuns it.
|
|
48
|
+
* /// This step is intended for testing purposes.
|
|
60
49
|
*/
|
|
61
|
-
const
|
|
50
|
+
export const invokeEchoStepTemplate = (options) => {
|
|
62
51
|
var _a;
|
|
63
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
52
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
64
53
|
...options,
|
|
65
|
-
url: '/v2/
|
|
54
|
+
url: '/v2/consumer/recipes/echo',
|
|
66
55
|
});
|
|
67
56
|
};
|
|
68
|
-
exports.deleteConfiguration = deleteConfiguration;
|
|
69
57
|
/**
|
|
70
|
-
*
|
|
58
|
+
* Image Generation
|
|
59
|
+
* Generate images through text/image inputs using any of our supported engines
|
|
71
60
|
*/
|
|
72
|
-
const
|
|
61
|
+
export const invokeImageGenStepTemplate = (options) => {
|
|
73
62
|
var _a;
|
|
74
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
63
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
75
64
|
...options,
|
|
76
|
-
url: '/v2/
|
|
65
|
+
url: '/v2/consumer/recipes/imageGen',
|
|
77
66
|
});
|
|
78
67
|
};
|
|
79
|
-
exports.getResource = getResource;
|
|
80
68
|
/**
|
|
81
|
-
*
|
|
69
|
+
* LORA Training
|
|
70
|
+
* Train LORA's
|
|
82
71
|
*/
|
|
83
|
-
const
|
|
72
|
+
export const invokeImageResourceTrainingStepTemplate = (options) => {
|
|
84
73
|
var _a;
|
|
85
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
74
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
86
75
|
...options,
|
|
87
|
-
url: '/v2/
|
|
76
|
+
url: '/v2/consumer/recipes/imageResourceTraining',
|
|
88
77
|
});
|
|
89
78
|
};
|
|
90
|
-
exports.invalidateResource = invalidateResource;
|
|
91
|
-
const getJobs = (options) => {
|
|
92
|
-
var _a;
|
|
93
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
|
|
94
|
-
...options,
|
|
95
|
-
url: '/v2/providers/workers/{workerId}/jobs',
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
exports.getJobs = getJobs;
|
|
99
|
-
const downloadResource = (options) => {
|
|
100
|
-
var _a;
|
|
101
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).get({
|
|
102
|
-
...options,
|
|
103
|
-
url: '/v2/providers/workers/{workerId}/resources/{air}',
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
exports.downloadResource = downloadResource;
|
|
107
|
-
/**
|
|
108
|
-
* Create a worker with a given registration.
|
|
109
|
-
*/
|
|
110
|
-
const createWorker = (options) => {
|
|
111
|
-
var _a;
|
|
112
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_fetch_1.client).post({
|
|
113
|
-
...options,
|
|
114
|
-
url: '/v2/providers/workers',
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
exports.createWorker = createWorker;
|
|
118
79
|
/**
|
|
119
|
-
*
|
|
80
|
+
* Image upload
|
|
81
|
+
* Uploads an image to be used in a workflow
|
|
120
82
|
*/
|
|
121
|
-
const
|
|
83
|
+
export const invokeImageUploadStepTemplate = (options) => {
|
|
122
84
|
var _a;
|
|
123
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
85
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
124
86
|
...options,
|
|
125
|
-
url: '/v2/
|
|
87
|
+
url: '/v2/consumer/recipes/imageUpload',
|
|
126
88
|
});
|
|
127
89
|
};
|
|
128
|
-
exports.queryWorkers = queryWorkers;
|
|
129
90
|
/**
|
|
130
|
-
*
|
|
91
|
+
* TextToImage
|
|
92
|
+
* Generate images using text as input
|
|
131
93
|
*/
|
|
132
|
-
const
|
|
94
|
+
export const invokeTextToImageStepTemplate = (options) => {
|
|
133
95
|
var _a;
|
|
134
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
96
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
135
97
|
...options,
|
|
136
|
-
url: '/v2/
|
|
98
|
+
url: '/v2/consumer/recipes/textToImage',
|
|
137
99
|
});
|
|
138
100
|
};
|
|
139
|
-
exports.getWorker = getWorker;
|
|
140
101
|
/**
|
|
141
|
-
*
|
|
102
|
+
* Upscale videos and/or interpolate frames
|
|
142
103
|
*/
|
|
143
|
-
const
|
|
104
|
+
export const invokeVideoEnhancementStepTemplate = (options) => {
|
|
144
105
|
var _a;
|
|
145
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
106
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
146
107
|
...options,
|
|
147
|
-
url: '/v2/
|
|
108
|
+
url: '/v2/consumer/recipes/videoEnhancement',
|
|
148
109
|
});
|
|
149
110
|
};
|
|
150
|
-
exports.deleteWorker = deleteWorker;
|
|
151
111
|
/**
|
|
152
|
-
*
|
|
112
|
+
* Video generation
|
|
113
|
+
* Generate videos through text/image inputs using any of our supported engines
|
|
153
114
|
*/
|
|
154
|
-
const
|
|
115
|
+
export const invokeVideoGenStepTemplate = (options) => {
|
|
155
116
|
var _a;
|
|
156
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
117
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
157
118
|
...options,
|
|
158
|
-
url: '/v2/
|
|
119
|
+
url: '/v2/consumer/recipes/videoGen',
|
|
159
120
|
});
|
|
160
121
|
};
|
|
161
|
-
exports.getRegistration = getRegistration;
|
|
162
122
|
/**
|
|
163
|
-
*
|
|
123
|
+
* Get an existing resource.
|
|
164
124
|
*/
|
|
165
|
-
const
|
|
125
|
+
export const getResource = (options) => {
|
|
166
126
|
var _a;
|
|
167
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
127
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
168
128
|
...options,
|
|
169
|
-
url: '/v2/
|
|
129
|
+
url: '/v2/resources/{air}',
|
|
170
130
|
});
|
|
171
131
|
};
|
|
172
|
-
exports.updateWorkerRegistration = updateWorkerRegistration;
|
|
173
132
|
/**
|
|
174
|
-
*
|
|
133
|
+
* Invalidates the cache of a specific resource.
|
|
175
134
|
*/
|
|
176
|
-
const
|
|
135
|
+
export const invalidateResource = (options) => {
|
|
177
136
|
var _a;
|
|
178
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
137
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
|
|
179
138
|
...options,
|
|
180
|
-
url: '/v2/
|
|
139
|
+
url: '/v2/resources/{air}',
|
|
181
140
|
});
|
|
182
141
|
};
|
|
183
|
-
exports.patchWorkerResources = patchWorkerResources;
|
|
184
142
|
/**
|
|
185
|
-
* Submit
|
|
143
|
+
* Submit workflow
|
|
186
144
|
*/
|
|
187
|
-
const submitWorkflow = (options) => {
|
|
145
|
+
export const submitWorkflow = (options) => {
|
|
188
146
|
var _a;
|
|
189
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
147
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
190
148
|
...options,
|
|
191
149
|
url: '/v2/consumer/workflows',
|
|
192
150
|
});
|
|
193
151
|
};
|
|
194
|
-
exports.submitWorkflow = submitWorkflow;
|
|
195
152
|
/**
|
|
196
|
-
* Query
|
|
153
|
+
* Query workflows
|
|
197
154
|
*/
|
|
198
|
-
const queryWorkflows = (options) => {
|
|
155
|
+
export const queryWorkflows = (options) => {
|
|
199
156
|
var _a;
|
|
200
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
157
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
201
158
|
...options,
|
|
202
159
|
url: '/v2/consumer/workflows',
|
|
203
160
|
});
|
|
204
161
|
};
|
|
205
|
-
exports.queryWorkflows = queryWorkflows;
|
|
206
162
|
/**
|
|
207
|
-
* Get
|
|
163
|
+
* Get workflow
|
|
208
164
|
*/
|
|
209
|
-
const getWorkflow = (options) => {
|
|
165
|
+
export const getWorkflow = (options) => {
|
|
210
166
|
var _a;
|
|
211
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
167
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
212
168
|
...options,
|
|
213
169
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
214
170
|
});
|
|
215
171
|
};
|
|
216
|
-
exports.getWorkflow = getWorkflow;
|
|
217
172
|
/**
|
|
218
|
-
*
|
|
173
|
+
* Update workflow
|
|
174
|
+
* Updates a worfklow. This can currently be used to cancel a worfklow or override metadata and/or tags
|
|
219
175
|
*/
|
|
220
|
-
const updateWorkflow = (options) => {
|
|
176
|
+
export const updateWorkflow = (options) => {
|
|
221
177
|
var _a;
|
|
222
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
178
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).put({
|
|
223
179
|
...options,
|
|
224
180
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
225
181
|
});
|
|
226
182
|
};
|
|
227
|
-
|
|
228
|
-
|
|
183
|
+
/**
|
|
184
|
+
* Patch workflow
|
|
185
|
+
* Patches a worfklow using JSON Patch. This can currently be used to cancel a worfklow, update metadata and add additional tags
|
|
186
|
+
*/
|
|
187
|
+
export const patchWorkflow = (options) => {
|
|
229
188
|
var _a;
|
|
230
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
189
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).patch({
|
|
231
190
|
...options,
|
|
232
191
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
233
192
|
});
|
|
234
193
|
};
|
|
235
|
-
exports.patchWorkflow = patchWorkflow;
|
|
236
194
|
/**
|
|
237
|
-
*
|
|
195
|
+
* Delete workflow
|
|
196
|
+
* This will delete a workflow. This may trigger a refund if the work requested with this workflow has not yet started
|
|
238
197
|
*/
|
|
239
|
-
const deleteWorkflow = (options) => {
|
|
198
|
+
export const deleteWorkflow = (options) => {
|
|
240
199
|
var _a;
|
|
241
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
200
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
|
|
242
201
|
...options,
|
|
243
202
|
url: '/v2/consumer/workflows/{workflowId}',
|
|
244
203
|
});
|
|
245
204
|
};
|
|
246
|
-
exports.deleteWorkflow = deleteWorkflow;
|
|
247
205
|
/**
|
|
248
|
-
*
|
|
206
|
+
* Add workflow tag
|
|
207
|
+
* Adds a tag to a workflow
|
|
249
208
|
*/
|
|
250
|
-
const addWorkflowTag = (options) => {
|
|
209
|
+
export const addWorkflowTag = (options) => {
|
|
251
210
|
var _a;
|
|
252
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
211
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
253
212
|
...options,
|
|
254
213
|
url: '/v2/consumer/workflows/{workflowId}/tags',
|
|
255
214
|
});
|
|
256
215
|
};
|
|
257
|
-
exports.addWorkflowTag = addWorkflowTag;
|
|
258
216
|
/**
|
|
259
|
-
* Delete all tags
|
|
217
|
+
* Delete all workflow tags
|
|
260
218
|
*/
|
|
261
|
-
const removeAllWorkflowTags = (options) => {
|
|
219
|
+
export const removeAllWorkflowTags = (options) => {
|
|
262
220
|
var _a;
|
|
263
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
221
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
|
|
264
222
|
...options,
|
|
265
223
|
url: '/v2/consumer/workflows/{workflowId}/tags',
|
|
266
224
|
});
|
|
267
225
|
};
|
|
268
|
-
exports.removeAllWorkflowTags = removeAllWorkflowTags;
|
|
269
226
|
/**
|
|
270
|
-
*
|
|
227
|
+
* Delete workflow tag
|
|
271
228
|
*/
|
|
272
|
-
const removeWorkflowTag = (options) => {
|
|
229
|
+
export const removeWorkflowTag = (options) => {
|
|
273
230
|
var _a;
|
|
274
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
231
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete({
|
|
275
232
|
...options,
|
|
276
233
|
url: '/v2/consumer/workflows/{workflowId}/tags/{tag}',
|
|
277
234
|
});
|
|
278
235
|
};
|
|
279
|
-
exports.removeWorkflowTag = removeWorkflowTag;
|
|
280
236
|
/**
|
|
281
237
|
* Get the status of a workflow step
|
|
282
238
|
*/
|
|
283
|
-
const getWorkflowStep = (options) => {
|
|
239
|
+
export const getWorkflowStep = (options) => {
|
|
284
240
|
var _a;
|
|
285
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
241
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
286
242
|
...options,
|
|
287
243
|
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
288
244
|
});
|
|
289
245
|
};
|
|
290
|
-
exports.getWorkflowStep = getWorkflowStep;
|
|
291
246
|
/**
|
|
292
247
|
* Updates a step within a particular workflow.
|
|
293
248
|
*/
|
|
294
|
-
const updateWorkflowStep = (options) => {
|
|
249
|
+
export const updateWorkflowStep = (options) => {
|
|
295
250
|
var _a;
|
|
296
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
251
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).put({
|
|
297
252
|
...options,
|
|
298
253
|
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
299
254
|
});
|
|
300
255
|
};
|
|
301
|
-
|
|
302
|
-
const patchWorkflowStep = (options) => {
|
|
256
|
+
export const patchWorkflowStep = (options) => {
|
|
303
257
|
var _a;
|
|
304
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a :
|
|
258
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).patch({
|
|
305
259
|
...options,
|
|
306
260
|
url: '/v2/consumer/workflows/{workflowId}/steps/{stepName}',
|
|
307
261
|
});
|
|
308
262
|
};
|
|
309
|
-
exports.patchWorkflowStep = patchWorkflowStep;
|
|
@@ -135,12 +135,17 @@ export type AceStepAudioInput = {
|
|
|
135
135
|
* Optional model override (uses default ACE Step 1.5 turbo if not specified)
|
|
136
136
|
*/
|
|
137
137
|
model?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Either A URL, A DataURL or a Base64 string
|
|
140
|
+
*/
|
|
141
|
+
backgroundImageUrl?: string;
|
|
138
142
|
};
|
|
139
143
|
/**
|
|
140
|
-
* Output from ACE Step 1.5 audio generation workflow step
|
|
144
|
+
* Output from ACE Step 1.5 audio generation workflow step.
|
|
145
|
+
* Returns a video with audio visualization overlaid on a background image.
|
|
141
146
|
*/
|
|
142
147
|
export type AceStepAudioOutput = {
|
|
143
|
-
|
|
148
|
+
videoBlob: VideoBlob;
|
|
144
149
|
};
|
|
145
150
|
/**
|
|
146
151
|
* Workflow step for generating music using ACE Step 1.5.
|
|
@@ -280,6 +285,25 @@ export type AgeDetection = {
|
|
|
280
285
|
[key: string]: number;
|
|
281
286
|
} | null;
|
|
282
287
|
};
|
|
288
|
+
export type AnimaCreateImageGenInput = AnimaImageGenInput & {
|
|
289
|
+
width?: number;
|
|
290
|
+
height?: number;
|
|
291
|
+
} & {
|
|
292
|
+
operation: 'createImage';
|
|
293
|
+
};
|
|
294
|
+
export type AnimaImageGenInput = SdCppImageGenInput & {
|
|
295
|
+
operation: string;
|
|
296
|
+
prompt: string;
|
|
297
|
+
negativePrompt?: string | null;
|
|
298
|
+
sampleMethod?: SdCppSampleMethod;
|
|
299
|
+
schedule?: SdCppSchedule;
|
|
300
|
+
steps?: number;
|
|
301
|
+
cfgScale?: number;
|
|
302
|
+
seed?: number | null;
|
|
303
|
+
quantity?: number;
|
|
304
|
+
} & {
|
|
305
|
+
ecosystem: 'anima';
|
|
306
|
+
};
|
|
283
307
|
export declare const AnimalPoseBboxDetector: {
|
|
284
308
|
readonly YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt';
|
|
285
309
|
readonly YOLOX_L_ONNX: 'yolox_l.onnx';
|
|
@@ -1176,6 +1200,11 @@ export type Flux2Klein9bAiToolkitTrainingInput = Flux2KleinAiToolkitTrainingInpu
|
|
|
1176
1200
|
*/
|
|
1177
1201
|
export type Flux2KleinAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
1178
1202
|
modelVariant: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* Whether this is image-edit training (uses control paths for reference images).
|
|
1205
|
+
* When true, the training data zip should contain subfolders: main/, control_1/, control_2/, control_3/.
|
|
1206
|
+
*/
|
|
1207
|
+
isEditTraining?: boolean;
|
|
1179
1208
|
} & {
|
|
1180
1209
|
ecosystem: 'flux2klein';
|
|
1181
1210
|
};
|
|
@@ -1291,6 +1320,72 @@ export type GoogleImageGenInput = ImageGenInput & {
|
|
|
1291
1320
|
} & {
|
|
1292
1321
|
engine: 'google';
|
|
1293
1322
|
};
|
|
1323
|
+
export type GrokCreateImageGenInput = GrokImageGenInput & {
|
|
1324
|
+
/**
|
|
1325
|
+
* Aspect ratio: 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2
|
|
1326
|
+
*/
|
|
1327
|
+
aspectRatio?: string;
|
|
1328
|
+
} & {
|
|
1329
|
+
operation: 'createImage';
|
|
1330
|
+
};
|
|
1331
|
+
export type GrokEditImageGenInput = GrokImageGenInput & {
|
|
1332
|
+
images: Array<string>;
|
|
1333
|
+
} & {
|
|
1334
|
+
operation: 'editImage';
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* Grok Edit-Video
|
|
1338
|
+
* FAL Endpoint: xai/grok-imagine-video/edit-video
|
|
1339
|
+
* Input video is resized to max 854x480 and truncated to 8 seconds.
|
|
1340
|
+
* Uses FFProbe to analyze input video duration for accurate costing.
|
|
1341
|
+
*/
|
|
1342
|
+
export type GrokEditVideoInput = GrokVideoGenInput & {
|
|
1343
|
+
videoUrl: string;
|
|
1344
|
+
analyzedDuration?: number | null;
|
|
1345
|
+
} & {
|
|
1346
|
+
operation: 'edit-video';
|
|
1347
|
+
};
|
|
1348
|
+
export type GrokImageGenInput = ImageGenInput & {
|
|
1349
|
+
engine: 'grok';
|
|
1350
|
+
} & {
|
|
1351
|
+
operation: string;
|
|
1352
|
+
prompt: string;
|
|
1353
|
+
quantity?: number;
|
|
1354
|
+
} & {
|
|
1355
|
+
engine: 'grok';
|
|
1356
|
+
};
|
|
1357
|
+
/**
|
|
1358
|
+
* Grok Image-to-Video
|
|
1359
|
+
* FAL Endpoint: xai/grok-imagine-video/image-to-video
|
|
1360
|
+
*/
|
|
1361
|
+
export type GrokImageToVideoInput = GrokVideoGenInput & {
|
|
1362
|
+
aspectRatio?: 'auto' | '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16';
|
|
1363
|
+
images?: [string];
|
|
1364
|
+
} & {
|
|
1365
|
+
operation: 'image-to-video';
|
|
1366
|
+
};
|
|
1367
|
+
/**
|
|
1368
|
+
* Grok Text-to-Video
|
|
1369
|
+
* FAL Endpoint: xai/grok-imagine-video/text-to-video
|
|
1370
|
+
*/
|
|
1371
|
+
export type GrokTextToVideoInput = GrokVideoGenInput & {
|
|
1372
|
+
aspectRatio?: '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16';
|
|
1373
|
+
} & {
|
|
1374
|
+
operation: 'text-to-video';
|
|
1375
|
+
};
|
|
1376
|
+
/**
|
|
1377
|
+
* Base class for Grok video generation (xAI's Grok-Imagine-Video model via FAL).
|
|
1378
|
+
* Discriminator: operation (text-to-video, image-to-video, edit-video)
|
|
1379
|
+
*/
|
|
1380
|
+
export type GrokVideoGenInput = VideoGenInput & {
|
|
1381
|
+
engine: 'grok';
|
|
1382
|
+
} & {
|
|
1383
|
+
operation: string | null;
|
|
1384
|
+
duration?: number;
|
|
1385
|
+
resolution?: '480p' | '720p';
|
|
1386
|
+
} & {
|
|
1387
|
+
engine: 'grok';
|
|
1388
|
+
};
|
|
1294
1389
|
export declare const HaiperVideoGenAspectRatio: {
|
|
1295
1390
|
readonly '16:9': '16:9';
|
|
1296
1391
|
readonly '4:3': '4:3';
|
|
@@ -1387,6 +1482,10 @@ export type ImageBlob = Blob & {
|
|
|
1387
1482
|
export type ImageGenInput = {
|
|
1388
1483
|
engine: string;
|
|
1389
1484
|
outputFormat?: ImageGenOutputFormat;
|
|
1485
|
+
/**
|
|
1486
|
+
* External metadata that will be stored with the image
|
|
1487
|
+
*/
|
|
1488
|
+
imageMetadata?: string | null;
|
|
1390
1489
|
};
|
|
1391
1490
|
export type ImageGenInputLora = {
|
|
1392
1491
|
air: string;
|
|
@@ -2162,6 +2261,18 @@ export declare const NsfwLevel: {
|
|
|
2162
2261
|
readonly NA: 'na';
|
|
2163
2262
|
};
|
|
2164
2263
|
export type NsfwLevel = (typeof NsfwLevel)[keyof typeof NsfwLevel];
|
|
2264
|
+
export type NanoBanana2ImageGenInput = GoogleImageGenInput & {
|
|
2265
|
+
prompt: string;
|
|
2266
|
+
aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
|
|
2267
|
+
numImages?: number;
|
|
2268
|
+
resolution?: '1K' | '2K' | '4K';
|
|
2269
|
+
images?: Array<string>;
|
|
2270
|
+
seed?: number | null;
|
|
2271
|
+
enableWebSearch?: boolean;
|
|
2272
|
+
enableGoogleSearch?: boolean;
|
|
2273
|
+
} & {
|
|
2274
|
+
model: 'nano-banana-2';
|
|
2275
|
+
};
|
|
2165
2276
|
export type NanoBananaProImageGenInput = GoogleImageGenInput & {
|
|
2166
2277
|
prompt: string;
|
|
2167
2278
|
aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
|
|
@@ -2840,6 +2951,33 @@ export declare const Scheduler: {
|
|
|
2840
2951
|
* The available options for schedulers used in image generation.
|
|
2841
2952
|
*/
|
|
2842
2953
|
export type Scheduler = (typeof Scheduler)[keyof typeof Scheduler];
|
|
2954
|
+
export type Sd1CreateImageGenInput = Sd1ImageGenInput & {
|
|
2955
|
+
width?: number;
|
|
2956
|
+
height?: number;
|
|
2957
|
+
} & {
|
|
2958
|
+
operation: 'createImage';
|
|
2959
|
+
};
|
|
2960
|
+
export type Sd1ImageGenInput = SdCppImageGenInput & {
|
|
2961
|
+
operation: string;
|
|
2962
|
+
prompt: string;
|
|
2963
|
+
negativePrompt?: string | null;
|
|
2964
|
+
sampleMethod?: SdCppSampleMethod;
|
|
2965
|
+
schedule?: SdCppSchedule;
|
|
2966
|
+
steps?: number;
|
|
2967
|
+
cfgScale?: number;
|
|
2968
|
+
seed?: number | null;
|
|
2969
|
+
quantity?: number;
|
|
2970
|
+
model: string;
|
|
2971
|
+
vaeModel?: string | null;
|
|
2972
|
+
loras?: {
|
|
2973
|
+
[key: string]: number;
|
|
2974
|
+
};
|
|
2975
|
+
embeddings?: Array<string>;
|
|
2976
|
+
clipSkip?: number;
|
|
2977
|
+
uCache?: SdCppUCacheMode;
|
|
2978
|
+
} & {
|
|
2979
|
+
ecosystem: 'sd1';
|
|
2980
|
+
};
|
|
2843
2981
|
export type SdCppImageGenInput = ImageGenInput & {
|
|
2844
2982
|
engine: 'sdcpp';
|
|
2845
2983
|
} & {
|
|
@@ -2872,6 +3010,11 @@ export declare const SdCppSchedule: {
|
|
|
2872
3010
|
readonly BONG_TANGENT: 'bong_tangent';
|
|
2873
3011
|
};
|
|
2874
3012
|
export type SdCppSchedule = (typeof SdCppSchedule)[keyof typeof SdCppSchedule];
|
|
3013
|
+
export declare const SdCppUCacheMode: {
|
|
3014
|
+
readonly OFF: 'off';
|
|
3015
|
+
readonly NORMAL: 'normal';
|
|
3016
|
+
};
|
|
3017
|
+
export type SdCppUCacheMode = (typeof SdCppUCacheMode)[keyof typeof SdCppUCacheMode];
|
|
2875
3018
|
/**
|
|
2876
3019
|
* AI Toolkit training for Stable Diffusion XL models
|
|
2877
3020
|
*/
|
|
@@ -2892,6 +3035,32 @@ export type SdxlAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
|
2892
3035
|
} & {
|
|
2893
3036
|
ecosystem: 'sdxl';
|
|
2894
3037
|
};
|
|
3038
|
+
export type SdxlCreateImageGenInput = SdxlImageGenInput & {
|
|
3039
|
+
width?: number;
|
|
3040
|
+
height?: number;
|
|
3041
|
+
} & {
|
|
3042
|
+
operation: 'createImage';
|
|
3043
|
+
};
|
|
3044
|
+
export type SdxlImageGenInput = SdCppImageGenInput & {
|
|
3045
|
+
operation: string;
|
|
3046
|
+
prompt: string;
|
|
3047
|
+
negativePrompt?: string | null;
|
|
3048
|
+
sampleMethod?: SdCppSampleMethod;
|
|
3049
|
+
schedule?: SdCppSchedule;
|
|
3050
|
+
steps?: number;
|
|
3051
|
+
cfgScale?: number;
|
|
3052
|
+
seed?: number | null;
|
|
3053
|
+
quantity?: number;
|
|
3054
|
+
model: string;
|
|
3055
|
+
vaeModel?: string | null;
|
|
3056
|
+
loras?: {
|
|
3057
|
+
[key: string]: number;
|
|
3058
|
+
};
|
|
3059
|
+
embeddings?: Array<string>;
|
|
3060
|
+
uCache?: SdCppUCacheMode;
|
|
3061
|
+
} & {
|
|
3062
|
+
ecosystem: 'sdxl';
|
|
3063
|
+
};
|
|
2895
3064
|
export type SeedreamImageGenInput = ImageGenInput & {
|
|
2896
3065
|
engine: 'seedream';
|
|
2897
3066
|
} & {
|
|
@@ -3147,6 +3316,12 @@ export type TrainingInputSamples = {
|
|
|
3147
3316
|
* An optional negative prompt that will be applied when generating samples
|
|
3148
3317
|
*/
|
|
3149
3318
|
negativePrompt?: string | null;
|
|
3319
|
+
/**
|
|
3320
|
+
* Source images for edit training sample generation.
|
|
3321
|
+
* Processed by ISourceImageProcessor during initialization, then TryGetUri() yields URLs
|
|
3322
|
+
* that are passed as ReferenceImageUrls when generating samples with edit LoRAs.
|
|
3323
|
+
*/
|
|
3324
|
+
sourceImages?: Array<string>;
|
|
3150
3325
|
};
|
|
3151
3326
|
/**
|
|
3152
3327
|
* The moderation status of the training data
|
|
@@ -3521,6 +3696,7 @@ export type VideoFrameExtractionInput = {
|
|
|
3521
3696
|
frameRate?: number;
|
|
3522
3697
|
uniqueThreshold?: number;
|
|
3523
3698
|
maxFrames?: number;
|
|
3699
|
+
startTime?: number;
|
|
3524
3700
|
};
|
|
3525
3701
|
/**
|
|
3526
3702
|
* Represents the output from the VideoFrameExtraction workflow step.
|