@civitai/client 0.2.0-beta.36 → 0.2.0-beta.37
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 +47 -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;
|
|
@@ -280,6 +280,25 @@ export type AgeDetection = {
|
|
|
280
280
|
[key: string]: number;
|
|
281
281
|
} | null;
|
|
282
282
|
};
|
|
283
|
+
export type AnimaCreateImageGenInput = AnimaImageGenInput & {
|
|
284
|
+
width?: number;
|
|
285
|
+
height?: number;
|
|
286
|
+
} & {
|
|
287
|
+
operation: 'createImage';
|
|
288
|
+
};
|
|
289
|
+
export type AnimaImageGenInput = SdCppImageGenInput & {
|
|
290
|
+
operation: string;
|
|
291
|
+
prompt: string;
|
|
292
|
+
negativePrompt?: string | null;
|
|
293
|
+
sampleMethod?: SdCppSampleMethod;
|
|
294
|
+
schedule?: SdCppSchedule;
|
|
295
|
+
steps?: number;
|
|
296
|
+
cfgScale?: number;
|
|
297
|
+
seed?: number | null;
|
|
298
|
+
quantity?: number;
|
|
299
|
+
} & {
|
|
300
|
+
ecosystem: 'anima';
|
|
301
|
+
};
|
|
283
302
|
export declare const AnimalPoseBboxDetector: {
|
|
284
303
|
readonly YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt';
|
|
285
304
|
readonly YOLOX_L_ONNX: 'yolox_l.onnx';
|
|
@@ -1176,6 +1195,11 @@ export type Flux2Klein9bAiToolkitTrainingInput = Flux2KleinAiToolkitTrainingInpu
|
|
|
1176
1195
|
*/
|
|
1177
1196
|
export type Flux2KleinAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
1178
1197
|
modelVariant: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Whether this is image-edit training (uses control paths for reference images).
|
|
1200
|
+
* When true, the training data zip should contain subfolders: main/, control_1/, control_2/, control_3/.
|
|
1201
|
+
*/
|
|
1202
|
+
isEditTraining?: boolean;
|
|
1179
1203
|
} & {
|
|
1180
1204
|
ecosystem: 'flux2klein';
|
|
1181
1205
|
};
|
|
@@ -1387,6 +1411,10 @@ export type ImageBlob = Blob & {
|
|
|
1387
1411
|
export type ImageGenInput = {
|
|
1388
1412
|
engine: string;
|
|
1389
1413
|
outputFormat?: ImageGenOutputFormat;
|
|
1414
|
+
/**
|
|
1415
|
+
* External metadata that will be stored with the image
|
|
1416
|
+
*/
|
|
1417
|
+
imageMetadata?: string | null;
|
|
1390
1418
|
};
|
|
1391
1419
|
export type ImageGenInputLora = {
|
|
1392
1420
|
air: string;
|
|
@@ -2162,6 +2190,18 @@ export declare const NsfwLevel: {
|
|
|
2162
2190
|
readonly NA: 'na';
|
|
2163
2191
|
};
|
|
2164
2192
|
export type NsfwLevel = (typeof NsfwLevel)[keyof typeof NsfwLevel];
|
|
2193
|
+
export type NanoBanana2ImageGenInput = GoogleImageGenInput & {
|
|
2194
|
+
prompt: string;
|
|
2195
|
+
aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
|
|
2196
|
+
numImages?: number;
|
|
2197
|
+
resolution?: '1K' | '2K' | '4K';
|
|
2198
|
+
images?: Array<string>;
|
|
2199
|
+
seed?: number | null;
|
|
2200
|
+
enableWebSearch?: boolean;
|
|
2201
|
+
enableGoogleSearch?: boolean;
|
|
2202
|
+
} & {
|
|
2203
|
+
model: 'nano-banana-2';
|
|
2204
|
+
};
|
|
2165
2205
|
export type NanoBananaProImageGenInput = GoogleImageGenInput & {
|
|
2166
2206
|
prompt: string;
|
|
2167
2207
|
aspectRatio?: '21:9' | '16:9' | '3:2' | '4:3' | '5:4' | '1:1' | '4:5' | '3:4' | '2:3' | '9:16';
|
|
@@ -3147,6 +3187,12 @@ export type TrainingInputSamples = {
|
|
|
3147
3187
|
* An optional negative prompt that will be applied when generating samples
|
|
3148
3188
|
*/
|
|
3149
3189
|
negativePrompt?: string | null;
|
|
3190
|
+
/**
|
|
3191
|
+
* Source images for edit training sample generation.
|
|
3192
|
+
* Processed by ISourceImageProcessor during initialization, then TryGetUri() yields URLs
|
|
3193
|
+
* that are passed as ReferenceImageUrls when generating samples with edit LoRAs.
|
|
3194
|
+
*/
|
|
3195
|
+
sourceImages?: Array<string>;
|
|
3150
3196
|
};
|
|
3151
3197
|
/**
|
|
3152
3198
|
* The moderation status of the training data
|
|
@@ -3521,6 +3567,7 @@ export type VideoFrameExtractionInput = {
|
|
|
3521
3567
|
frameRate?: number;
|
|
3522
3568
|
uniqueThreshold?: number;
|
|
3523
3569
|
maxFrames?: number;
|
|
3570
|
+
startTime?: number;
|
|
3524
3571
|
};
|
|
3525
3572
|
/**
|
|
3526
3573
|
* Represents the output from the VideoFrameExtraction workflow step.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|