@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
|
@@ -19,20 +19,14 @@ export const AnylineMergeWith = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Determines how regions are applied to the blur operation.
|
|
21
21
|
*/
|
|
22
|
-
export const BlurRegionMode = {
|
|
23
|
-
INCLUDE: 'include',
|
|
24
|
-
EXCLUDE: 'exclude',
|
|
25
|
-
};
|
|
22
|
+
export const BlurRegionMode = { INCLUDE: 'include', EXCLUDE: 'exclude' };
|
|
26
23
|
export const BuzzClientAccount = {
|
|
27
24
|
YELLOW: 'yellow',
|
|
28
25
|
BLUE: 'blue',
|
|
29
26
|
GREEN: 'green',
|
|
30
27
|
FAKE_RED: 'fakeRed',
|
|
31
28
|
};
|
|
32
|
-
export const CoarseMode = {
|
|
33
|
-
DISABLE: 'disable',
|
|
34
|
-
ENABLE: 'enable',
|
|
35
|
-
};
|
|
29
|
+
export const CoarseMode = { DISABLE: 'disable', ENABLE: 'enable' };
|
|
36
30
|
export const ComfySampler = {
|
|
37
31
|
EULER: 'euler',
|
|
38
32
|
EULER_ANCESTRAL: 'euler_ancestral',
|
|
@@ -73,13 +67,10 @@ export const ComfyScheduler = {
|
|
|
73
67
|
DDIM_UNIFORM: 'ddim_uniform',
|
|
74
68
|
BETA: 'beta',
|
|
75
69
|
};
|
|
76
|
-
export const ContainerFormat = {
|
|
77
|
-
MP4: 'mp4',
|
|
78
|
-
WEB_M: 'webM',
|
|
79
|
-
};
|
|
70
|
+
export const ContainerFormat = { MP4: 'mp4', WEB_M: 'webM' };
|
|
80
71
|
export const DensePoseColormap = {
|
|
81
|
-
|
|
82
|
-
|
|
72
|
+
VIRIDIS_MAGIC_ANIMATE: 'Viridis (MagicAnimate)',
|
|
73
|
+
PARULA_CIVIT_AI: 'Parula (CivitAI)',
|
|
83
74
|
};
|
|
84
75
|
export const DensePoseModel = {
|
|
85
76
|
DENSEPOSE_R50_FPN_DL_TORCHSCRIPT: 'densepose_r50_fpn_dl.torchscript',
|
|
@@ -118,11 +109,11 @@ export const FileFormat = {
|
|
|
118
109
|
TAR: 'tar',
|
|
119
110
|
};
|
|
120
111
|
export const HaiperVideoGenAspectRatio = {
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'
|
|
112
|
+
'16_9': '16:9',
|
|
113
|
+
'4_3': '4:3',
|
|
114
|
+
'1_1': '1:1',
|
|
115
|
+
'9_16': '9:16',
|
|
116
|
+
'3_4': '3:4',
|
|
126
117
|
};
|
|
127
118
|
export const HaiperVideoGenCameraMovement = {
|
|
128
119
|
NONE: 'none',
|
|
@@ -133,10 +124,7 @@ export const HaiperVideoGenCameraMovement = {
|
|
|
133
124
|
ZOOM_IN: 'zoomIn',
|
|
134
125
|
ZOOM_OUT: 'zoomOut',
|
|
135
126
|
};
|
|
136
|
-
export const HaiperVideoGenModel = {
|
|
137
|
-
V1_5: 'v1_5',
|
|
138
|
-
V2: 'v2',
|
|
139
|
-
};
|
|
127
|
+
export const HaiperVideoGenModel = { V1_5: 'v1_5', V2: 'v2' };
|
|
140
128
|
export const HumanoidImageMaskCategory = {
|
|
141
129
|
DRESSES: 'dresses',
|
|
142
130
|
UPPER_BODY: 'upperBody',
|
|
@@ -170,10 +158,7 @@ export const JobSupport = {
|
|
|
170
158
|
UNAVAILABLE: 'unavailable',
|
|
171
159
|
AVAILABLE: 'available',
|
|
172
160
|
};
|
|
173
|
-
export const KlingMode = {
|
|
174
|
-
STANDARD: 'standard',
|
|
175
|
-
PROFESSIONAL: 'professional',
|
|
176
|
-
};
|
|
161
|
+
export const KlingMode = { STANDARD: 'standard', PROFESSIONAL: 'professional' };
|
|
177
162
|
export const KlingModel = {
|
|
178
163
|
V1: 'v1',
|
|
179
164
|
V1_5: 'v1.5',
|
|
@@ -189,39 +174,29 @@ export const KlingV3Operation = {
|
|
|
189
174
|
VIDEO_TO_VIDEO_REFERENCE: 'video-to-video-reference',
|
|
190
175
|
};
|
|
191
176
|
export const KlingVideoGenAspectRatio = {
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
};
|
|
196
|
-
export const KlingVideoGenDuration = {
|
|
197
|
-
5: '5',
|
|
198
|
-
10: '10',
|
|
199
|
-
};
|
|
200
|
-
export const LeresBoost = {
|
|
201
|
-
DISABLE: 'disable',
|
|
202
|
-
ENABLE: 'enable',
|
|
177
|
+
'16_9': '16:9',
|
|
178
|
+
'9_16': '9:16',
|
|
179
|
+
'1_1': '1:1',
|
|
203
180
|
};
|
|
181
|
+
export const KlingVideoGenDuration = { 5: '5', 10: '10' };
|
|
182
|
+
export const LeresBoost = { DISABLE: 'disable', ENABLE: 'enable' };
|
|
204
183
|
export const LightricksAspectRatio = {
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
184
|
+
'1_1': '1:1',
|
|
185
|
+
'16_9': '16:9',
|
|
186
|
+
'9_16': '9:16',
|
|
187
|
+
'3_2': '3:2',
|
|
188
|
+
'2_3': '2:3',
|
|
210
189
|
};
|
|
211
190
|
/**
|
|
212
191
|
* Represents the type of hash algorithm to use for media content.
|
|
213
192
|
*/
|
|
214
|
-
export const MediaHashType = {
|
|
215
|
-
PERCEPTUAL: 'perceptual',
|
|
216
|
-
};
|
|
193
|
+
export const MediaHashType = { PERCEPTUAL: 'perceptual' };
|
|
217
194
|
export const Metric3dBackbone = {
|
|
218
195
|
VIT_SMALL: 'vit-small',
|
|
219
196
|
VIT_LARGE: 'vit-large',
|
|
220
197
|
VIT_GIANT2: 'vit-giant2',
|
|
221
198
|
};
|
|
222
|
-
export const MiniMaxVideoGenModel = {
|
|
223
|
-
HAILOU: 'hailou',
|
|
224
|
-
};
|
|
199
|
+
export const MiniMaxVideoGenModel = { HAILOU: 'hailou' };
|
|
225
200
|
export const NsfwLevel = {
|
|
226
201
|
PG: 'pg',
|
|
227
202
|
PG13: 'pg13',
|
|
@@ -243,10 +218,7 @@ export const Priority = {
|
|
|
243
218
|
NORMAL: 'normal',
|
|
244
219
|
LOW: 'low',
|
|
245
220
|
};
|
|
246
|
-
export const SafeMode = {
|
|
247
|
-
ENABLE: 'enable',
|
|
248
|
-
DISABLE: 'disable',
|
|
249
|
-
};
|
|
221
|
+
export const SafeMode = { ENABLE: 'enable', DISABLE: 'disable' };
|
|
250
222
|
/**
|
|
251
223
|
* The available options for schedulers used in image generation.
|
|
252
224
|
*/
|
|
@@ -281,9 +253,9 @@ export const SdCppSampleMethod = {
|
|
|
281
253
|
EULER: 'euler',
|
|
282
254
|
HEUN: 'heun',
|
|
283
255
|
DPM2: 'dpm2',
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
256
|
+
DPM_2S_A: 'dpm++2s_a',
|
|
257
|
+
DPM_2M: 'dpm++2m',
|
|
258
|
+
DPM_2MV2: 'dpm++2mv2',
|
|
287
259
|
IPNDM: 'ipndm',
|
|
288
260
|
IPNDM_V: 'ipndm_v',
|
|
289
261
|
DDIM_TRAILING: 'ddim_trailing',
|
|
@@ -306,10 +278,7 @@ export const SdCppSchedule = {
|
|
|
306
278
|
KL_OPTIMAL: 'kl_optimal',
|
|
307
279
|
LCM: 'lcm',
|
|
308
280
|
};
|
|
309
|
-
export const SdCppUCacheMode = {
|
|
310
|
-
OFF: 'off',
|
|
311
|
-
NORMAL: 'normal',
|
|
312
|
-
};
|
|
281
|
+
export const SdCppUCacheMode = { OFF: 'off', NORMAL: 'normal' };
|
|
313
282
|
export const SeedreamVersion = {
|
|
314
283
|
V3: 'v3',
|
|
315
284
|
V4: 'v4',
|
|
@@ -325,34 +294,28 @@ export const TrainingModerationStatus = {
|
|
|
325
294
|
APPROVED: 'approved',
|
|
326
295
|
REJECTED: 'rejected',
|
|
327
296
|
};
|
|
328
|
-
export const TransactionType = {
|
|
329
|
-
DEBIT: 'debit',
|
|
330
|
-
CREDIT: 'credit',
|
|
331
|
-
};
|
|
297
|
+
export const TransactionType = { DEBIT: 'debit', CREDIT: 'credit' };
|
|
332
298
|
/**
|
|
333
299
|
* Available statuses for updating workflows.
|
|
334
300
|
*/
|
|
335
|
-
export const UpdateWorkflowStatus = {
|
|
336
|
-
CANCELED: 'canceled',
|
|
337
|
-
};
|
|
301
|
+
export const UpdateWorkflowStatus = { CANCELED: 'canceled' };
|
|
338
302
|
export const Veo3AspectRatio = {
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
303
|
+
'16_9': '16:9',
|
|
304
|
+
'9_16': '9:16',
|
|
305
|
+
'1_1': '1:1',
|
|
342
306
|
};
|
|
343
|
-
export const
|
|
344
|
-
|
|
345
|
-
|
|
307
|
+
export const Veo3GenerationMode = {
|
|
308
|
+
STANDARD: 'standard',
|
|
309
|
+
FAST: 'fast',
|
|
310
|
+
LITE: 'lite',
|
|
346
311
|
};
|
|
312
|
+
export const Veo3Version = { '3_0': '3.0', '3_1': '3.1' };
|
|
347
313
|
export const ViduVideoGenModel = {
|
|
348
314
|
DEFAULT: 'default',
|
|
349
315
|
Q1: 'q1',
|
|
350
316
|
Q3: 'q3',
|
|
351
317
|
};
|
|
352
|
-
export const ViduVideoGenStyle = {
|
|
353
|
-
GENERAL: 'general',
|
|
354
|
-
ANIME: 'anime',
|
|
355
|
-
};
|
|
318
|
+
export const ViduVideoGenStyle = { GENERAL: 'general', ANIME: 'anime' };
|
|
356
319
|
/**
|
|
357
320
|
* Values available to represent workflow status.
|
|
358
321
|
*/
|
|
@@ -369,11 +332,6 @@ export const WorkflowStatus = {
|
|
|
369
332
|
/**
|
|
370
333
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
371
334
|
*/
|
|
372
|
-
export const WorkflowUpgradeMode = {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
};
|
|
376
|
-
export const ZoeDepthEnvironment = {
|
|
377
|
-
INDOOR: 'indoor',
|
|
378
|
-
OUTDOOR: 'outdoor',
|
|
379
|
-
};
|
|
335
|
+
export const WorkflowUpgradeMode = { MANUAL: 'manual', AUTOMATIC: 'automatic' };
|
|
336
|
+
export const XGuardModerationMode = { PROMPT: 'prompt', TEXT: 'text' };
|
|
337
|
+
export const ZoeDepthEnvironment = { INDOOR: 'indoor', OUTDOOR: 'outdoor' };
|
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.43",
|
|
4
4
|
"description": "Civitai's javascript client for generating ai content",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"yarn": ">=1.7.0"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"generate": "openapi-ts",
|
|
27
|
+
"generate": "openapi-ts && node scripts/fix-discriminators.mjs",
|
|
28
28
|
"build": "tsc && eslint --fix dist",
|
|
29
29
|
"test": "jest",
|
|
30
30
|
"prepublishOnly": "npm test && npm run build",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"release": "npm run typecheck && npm run build && npm publish --tag beta"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@hey-api/openapi-ts": "^0.
|
|
35
|
+
"@hey-api/openapi-ts": "^0.94.0",
|
|
36
36
|
"@types/jest": "^29.5.12",
|
|
37
37
|
"@types/node": "^20.11.19",
|
|
38
38
|
"@typescript-eslint/eslint-plugin": "^8.7.0",
|