@civitai/client 0.2.0-beta.17 → 0.2.0-beta.18
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/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 +79 -22
- package/dist/generated/types.gen.js +20 -4
- package/dist/utils/types.d.ts +3 -0
- package/dist/utils/types.js +1 -0
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -62,15 +62,6 @@ export type AiToolkitTrainingInput = TrainingInput & {
|
|
|
62
62
|
* Adds noise to training images. 0 adds no noise at all. A value of 1 adds strong noise.
|
|
63
63
|
*/
|
|
64
64
|
noiseOffset?: number | null;
|
|
65
|
-
/**
|
|
66
|
-
* Learning is performed by putting noise of various strengths on the training image,
|
|
67
|
-
* but depending on the difference in strength of the noise on which it is placed, learning will be
|
|
68
|
-
* stable by moving closer to or farther from the learning target.
|
|
69
|
-
*
|
|
70
|
-
* Min SNR gamma was introduced to compensate for that. When learning images have little noise,
|
|
71
|
-
* it may deviate greatly from the target, so try to suppress this jump.
|
|
72
|
-
*/
|
|
73
|
-
minSnrGamma?: number | null;
|
|
74
65
|
/**
|
|
75
66
|
* If this option is turned on, the image will be horizontally flipped randomly. It can learn left and right angles, which is useful when you want to learn symmetrical people and objects.
|
|
76
67
|
*/
|
|
@@ -103,14 +94,7 @@ export type AgeClassificationOutput = {
|
|
|
103
94
|
[key: string]: Array<AgeClassifierLabel>;
|
|
104
95
|
};
|
|
105
96
|
hasMinor: boolean;
|
|
106
|
-
prediction: AgeClassificationPrediction;
|
|
107
|
-
};
|
|
108
|
-
export declare const AgeClassificationPrediction: {
|
|
109
|
-
readonly PASS: 'pass';
|
|
110
|
-
readonly FAIL: 'fail';
|
|
111
97
|
};
|
|
112
|
-
export type AgeClassificationPrediction =
|
|
113
|
-
(typeof AgeClassificationPrediction)[keyof typeof AgeClassificationPrediction];
|
|
114
98
|
/**
|
|
115
99
|
* Age classification
|
|
116
100
|
*/
|
|
@@ -1400,10 +1384,11 @@ export type Qwen20bEditImageGenInput = Qwen20bImageGenInput & {
|
|
|
1400
1384
|
};
|
|
1401
1385
|
export type Qwen20bImageGenInput = QwenImageGenInput & {
|
|
1402
1386
|
operation: string;
|
|
1403
|
-
|
|
1387
|
+
diffuserModel?: string;
|
|
1404
1388
|
prompt: string;
|
|
1405
1389
|
negativePrompt?: string | null;
|
|
1406
|
-
|
|
1390
|
+
sampleMethod?: SdCppSampleMethod;
|
|
1391
|
+
schedule?: SdCppSchedule;
|
|
1407
1392
|
steps?: number;
|
|
1408
1393
|
cfgScale?: number;
|
|
1409
1394
|
seed?: number | null;
|
|
@@ -1544,7 +1529,17 @@ export type ResourceInfo = {
|
|
|
1544
1529
|
/**
|
|
1545
1530
|
* AI Toolkit training for Stable Diffusion 1.5 models
|
|
1546
1531
|
*/
|
|
1547
|
-
export type Sd1AiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
1532
|
+
export type Sd1AiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
1533
|
+
/**
|
|
1534
|
+
* Learning is performed by putting noise of various strengths on the training image,
|
|
1535
|
+
* but depending on the difference in strength of the noise on which it is placed, learning will be
|
|
1536
|
+
* stable by moving closer to or farther from the learning target.
|
|
1537
|
+
*
|
|
1538
|
+
* Min SNR gamma was introduced to compensate for that. When learning images have little noise,
|
|
1539
|
+
* it may deviate greatly from the target, so try to suppress this jump.
|
|
1540
|
+
*/
|
|
1541
|
+
minSnrGamma?: number | null;
|
|
1542
|
+
} & {
|
|
1548
1543
|
ecosystem: 'sd1';
|
|
1549
1544
|
};
|
|
1550
1545
|
/**
|
|
@@ -1602,10 +1597,42 @@ export type SdCppImageGenInput = ImageGenInput & {
|
|
|
1602
1597
|
} & {
|
|
1603
1598
|
engine: 'sdcpp';
|
|
1604
1599
|
};
|
|
1600
|
+
export declare const SdCppSampleMethod: {
|
|
1601
|
+
readonly EULER: 'euler';
|
|
1602
|
+
readonly HEUN: 'heun';
|
|
1603
|
+
readonly DPM2: 'dpm2';
|
|
1604
|
+
readonly 'DPM++2S_A': 'dpm++2s_a';
|
|
1605
|
+
readonly 'DPM++2M': 'dpm++2m';
|
|
1606
|
+
readonly 'DPM++2MV2': 'dpm++2mv2';
|
|
1607
|
+
readonly IPNDM: 'ipndm';
|
|
1608
|
+
readonly IPNDM_V: 'ipndm_v';
|
|
1609
|
+
readonly DDIM_TRAILING: 'ddim_trailing';
|
|
1610
|
+
readonly EULER_A: 'euler_a';
|
|
1611
|
+
readonly LCM: 'lcm';
|
|
1612
|
+
};
|
|
1613
|
+
export type SdCppSampleMethod = (typeof SdCppSampleMethod)[keyof typeof SdCppSampleMethod];
|
|
1614
|
+
export declare const SdCppSchedule: {
|
|
1615
|
+
readonly SIMPLE: 'simple';
|
|
1616
|
+
readonly DISCRETE: 'discrete';
|
|
1617
|
+
readonly KARRAS: 'karras';
|
|
1618
|
+
readonly EXPONENTIAL: 'exponential';
|
|
1619
|
+
readonly AYS: 'ays';
|
|
1620
|
+
};
|
|
1621
|
+
export type SdCppSchedule = (typeof SdCppSchedule)[keyof typeof SdCppSchedule];
|
|
1605
1622
|
/**
|
|
1606
1623
|
* AI Toolkit training for Stable Diffusion XL models
|
|
1607
1624
|
*/
|
|
1608
|
-
export type SdxlAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
1625
|
+
export type SdxlAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
1626
|
+
/**
|
|
1627
|
+
* Learning is performed by putting noise of various strengths on the training image,
|
|
1628
|
+
* but depending on the difference in strength of the noise on which it is placed, learning will be
|
|
1629
|
+
* stable by moving closer to or farther from the learning target.
|
|
1630
|
+
*
|
|
1631
|
+
* Min SNR gamma was introduced to compensate for that. When learning images have little noise,
|
|
1632
|
+
* it may deviate greatly from the target, so try to suppress this jump.
|
|
1633
|
+
*/
|
|
1634
|
+
minSnrGamma?: number | null;
|
|
1635
|
+
} & {
|
|
1609
1636
|
ecosystem: 'sdxl';
|
|
1610
1637
|
};
|
|
1611
1638
|
export type SeedreamImageGenInput = ImageGenInput & {
|
|
@@ -2146,12 +2173,12 @@ export type VideoGenStepTemplate = WorkflowStepTemplate & {
|
|
|
2146
2173
|
$type: 'videoGen';
|
|
2147
2174
|
};
|
|
2148
2175
|
export type VideoInterpolationInput = {
|
|
2149
|
-
|
|
2176
|
+
video: string;
|
|
2150
2177
|
interpolationFactor?: number;
|
|
2151
2178
|
model?: string;
|
|
2152
2179
|
};
|
|
2153
2180
|
export type VideoInterpolationOutput = {
|
|
2154
|
-
|
|
2181
|
+
video: VideoBlob;
|
|
2155
2182
|
};
|
|
2156
2183
|
/**
|
|
2157
2184
|
* Interpolate videos using VFI Mamba
|
|
@@ -3023,6 +3050,36 @@ export declare const WorkflowUpgradeMode: {
|
|
|
3023
3050
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
3024
3051
|
*/
|
|
3025
3052
|
export type WorkflowUpgradeMode = (typeof WorkflowUpgradeMode)[keyof typeof WorkflowUpgradeMode];
|
|
3053
|
+
export type ZImageImageGenInput = SdCppImageGenInput & {
|
|
3054
|
+
model: string;
|
|
3055
|
+
} & {
|
|
3056
|
+
ecosystem: 'zImage';
|
|
3057
|
+
};
|
|
3058
|
+
/**
|
|
3059
|
+
* AI Toolkit training for Z Image Turbo models
|
|
3060
|
+
*/
|
|
3061
|
+
export type ZImageTurboAiToolkitTrainingInput = AiToolkitTrainingInput & {} & {
|
|
3062
|
+
ecosystem: 'zimageturbo';
|
|
3063
|
+
};
|
|
3064
|
+
export type ZImageTurboCreateImageGenInput = ZImageTurboImageGenInput & {
|
|
3065
|
+
width?: number;
|
|
3066
|
+
height?: number;
|
|
3067
|
+
} & {
|
|
3068
|
+
operation: 'createImage';
|
|
3069
|
+
};
|
|
3070
|
+
export type ZImageTurboImageGenInput = ZImageImageGenInput & {
|
|
3071
|
+
operation: string;
|
|
3072
|
+
prompt: string;
|
|
3073
|
+
negativePrompt?: string | null;
|
|
3074
|
+
sampleMethod?: SdCppSampleMethod;
|
|
3075
|
+
schedule?: SdCppSchedule;
|
|
3076
|
+
steps?: number;
|
|
3077
|
+
cfgScale?: number;
|
|
3078
|
+
seed?: number | null;
|
|
3079
|
+
quantity?: number;
|
|
3080
|
+
} & {
|
|
3081
|
+
model: 'turbo';
|
|
3082
|
+
};
|
|
3026
3083
|
/**
|
|
3027
3084
|
* Training data packaged as a zip file
|
|
3028
3085
|
*/
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export const AgeClassificationPrediction = {
|
|
3
|
-
PASS: 'pass',
|
|
4
|
-
FAIL: 'fail',
|
|
5
|
-
};
|
|
6
2
|
export const BuzzClientAccount = {
|
|
7
3
|
YELLOW: 'yellow',
|
|
8
4
|
BLUE: 'blue',
|
|
@@ -156,6 +152,26 @@ export const Scheduler = {
|
|
|
156
152
|
DEIS: 'deis',
|
|
157
153
|
DP_M3MSDE: 'dpM3MSDE',
|
|
158
154
|
};
|
|
155
|
+
export const SdCppSampleMethod = {
|
|
156
|
+
EULER: 'euler',
|
|
157
|
+
HEUN: 'heun',
|
|
158
|
+
DPM2: 'dpm2',
|
|
159
|
+
'DPM++2S_A': 'dpm++2s_a',
|
|
160
|
+
'DPM++2M': 'dpm++2m',
|
|
161
|
+
'DPM++2MV2': 'dpm++2mv2',
|
|
162
|
+
IPNDM: 'ipndm',
|
|
163
|
+
IPNDM_V: 'ipndm_v',
|
|
164
|
+
DDIM_TRAILING: 'ddim_trailing',
|
|
165
|
+
EULER_A: 'euler_a',
|
|
166
|
+
LCM: 'lcm',
|
|
167
|
+
};
|
|
168
|
+
export const SdCppSchedule = {
|
|
169
|
+
SIMPLE: 'simple',
|
|
170
|
+
DISCRETE: 'discrete',
|
|
171
|
+
KARRAS: 'karras',
|
|
172
|
+
EXPONENTIAL: 'exponential',
|
|
173
|
+
AYS: 'ays',
|
|
174
|
+
};
|
|
159
175
|
export const SeedreamVersion = {
|
|
160
176
|
V3: 'v3',
|
|
161
177
|
V4: 'v4',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civitai/client",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.18",
|
|
4
4
|
"description": "Civitai's javascript client for generating ai content",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|