@civitai/client 0.2.0-beta.4 → 0.2.0-beta.40
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/client/CivitaiClient.js +3 -1
- package/dist/generated/sdk.gen.d.ts +281 -1
- package/dist/generated/sdk.gen.js +387 -1
- package/dist/generated/types.gen.d.ts +5197 -1483
- package/dist/generated/types.gen.js +200 -8
- package/dist/utils/TimeSpan.d.ts +1 -1
- package/dist/utils/TimeSpan.js +6 -6
- package/package.json +1 -1
|
@@ -1,16 +1,113 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export const
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export const AnimalPoseBboxDetector = {
|
|
3
|
+
YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt',
|
|
4
|
+
YOLOX_L_ONNX: 'yolox_l.onnx',
|
|
5
|
+
YOLO_NAS_L_FP16_ONNX: 'yolo_nas_l_fp16.onnx',
|
|
6
|
+
YOLO_NAS_M_FP16_ONNX: 'yolo_nas_m_fp16.onnx',
|
|
7
|
+
YOLO_NAS_S_FP16_ONNX: 'yolo_nas_s_fp16.onnx',
|
|
8
|
+
};
|
|
9
|
+
export const AnimalPoseEstimator = {
|
|
10
|
+
RTMPOSE_M_AP10K_256_BS5_TORCHSCRIPT_PT: 'rtmpose-m_ap10k_256_bs5.torchscript.pt',
|
|
11
|
+
RTMPOSE_M_AP10K_256_ONNX: 'rtmpose-m_ap10k_256.onnx',
|
|
12
|
+
};
|
|
13
|
+
export const AnylineMergeWith = {
|
|
14
|
+
LINEART_STANDARD: 'lineart_standard',
|
|
15
|
+
LINEART_REALISTIC: 'lineart_realistic',
|
|
16
|
+
LINEART_ANIME: 'lineart_anime',
|
|
17
|
+
MANGA_LINE: 'manga_line',
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Determines how regions are applied to the blur operation.
|
|
21
|
+
*/
|
|
22
|
+
export const BlurRegionMode = {
|
|
23
|
+
INCLUDE: 'include',
|
|
24
|
+
EXCLUDE: 'exclude',
|
|
5
25
|
};
|
|
6
26
|
export const BuzzClientAccount = {
|
|
7
|
-
|
|
8
|
-
|
|
27
|
+
YELLOW: 'yellow',
|
|
28
|
+
BLUE: 'blue',
|
|
29
|
+
GREEN: 'green',
|
|
30
|
+
FAKE_RED: 'fakeRed',
|
|
31
|
+
};
|
|
32
|
+
export const CoarseMode = {
|
|
33
|
+
DISABLE: 'disable',
|
|
34
|
+
ENABLE: 'enable',
|
|
35
|
+
};
|
|
36
|
+
export const ComfySampler = {
|
|
37
|
+
EULER: 'euler',
|
|
38
|
+
EULER_ANCESTRAL: 'euler_ancestral',
|
|
39
|
+
EULER_CFG_PP: 'euler_cfg_pp',
|
|
40
|
+
EULER_ANCESTRAL_CFG_PP: 'euler_ancestral_cfg_pp',
|
|
41
|
+
HEUN: 'heun',
|
|
42
|
+
HEUNPP2: 'heunpp2',
|
|
43
|
+
DPM_2: 'dpm_2',
|
|
44
|
+
DPM_2_ANCESTRAL: 'dpm_2_ancestral',
|
|
45
|
+
LMS: 'lms',
|
|
46
|
+
DPM_FAST: 'dpm_fast',
|
|
47
|
+
DPM_ADAPTIVE: 'dpm_adaptive',
|
|
48
|
+
DPMPP_2S_ANCESTRAL: 'dpmpp_2s_ancestral',
|
|
49
|
+
DPMPP_2S_ANCESTRAL_CFG_PP: 'dpmpp_2s_ancestral_cfg_pp',
|
|
50
|
+
DPMPP_SDE: 'dpmpp_sde',
|
|
51
|
+
DPMPP_SDE_GPU: 'dpmpp_sde_gpu',
|
|
52
|
+
DPMPP_2M: 'dpmpp_2m',
|
|
53
|
+
DPMPP_2M_CFG_PP: 'dpmpp_2m_cfg_pp',
|
|
54
|
+
DPMPP_2M_SDE: 'dpmpp_2m_sde',
|
|
55
|
+
DPMPP_2M_SDE_GPU: 'dpmpp_2m_sde_gpu',
|
|
56
|
+
DPMPP_3M_SDE: 'dpmpp_3m_sde',
|
|
57
|
+
DPMPP_3M_SDE_GPU: 'dpmpp_3m_sde_gpu',
|
|
58
|
+
DDPM: 'ddpm',
|
|
59
|
+
LCM: 'lcm',
|
|
60
|
+
IPNDM: 'ipndm',
|
|
61
|
+
IPNDM_V: 'ipndm_v',
|
|
62
|
+
DEIS: 'deis',
|
|
63
|
+
DDIM: 'ddim',
|
|
64
|
+
UNI_PC: 'uni_pc',
|
|
65
|
+
UNI_PC_BH2: 'uni_pc_bh2',
|
|
66
|
+
};
|
|
67
|
+
export const ComfyScheduler = {
|
|
68
|
+
NORMAL: 'normal',
|
|
69
|
+
KARRAS: 'karras',
|
|
70
|
+
EXPONENTIAL: 'exponential',
|
|
71
|
+
SGM_UNIFORM: 'sgm_uniform',
|
|
72
|
+
SIMPLE: 'simple',
|
|
73
|
+
DDIM_UNIFORM: 'ddim_uniform',
|
|
74
|
+
BETA: 'beta',
|
|
9
75
|
};
|
|
10
76
|
export const ContainerFormat = {
|
|
11
77
|
MP4: 'mp4',
|
|
12
78
|
WEB_M: 'webM',
|
|
13
79
|
};
|
|
80
|
+
export const DensePoseColormap = {
|
|
81
|
+
'VIRIDIS (_MAGIC_ANIMATE)': 'Viridis (MagicAnimate)',
|
|
82
|
+
'PARULA (_CIVIT_AI)': 'Parula (CivitAI)',
|
|
83
|
+
};
|
|
84
|
+
export const DensePoseModel = {
|
|
85
|
+
DENSEPOSE_R50_FPN_DL_TORCHSCRIPT: 'densepose_r50_fpn_dl.torchscript',
|
|
86
|
+
DENSEPOSE_R101_FPN_DL_TORCHSCRIPT: 'densepose_r101_fpn_dl.torchscript',
|
|
87
|
+
};
|
|
88
|
+
export const DepthAnythingCheckpoint = {
|
|
89
|
+
DEPTH_ANYTHING_VITL14_PTH: 'depth_anything_vitl14.pth',
|
|
90
|
+
DEPTH_ANYTHING_VITB14_PTH: 'depth_anything_vitb14.pth',
|
|
91
|
+
DEPTH_ANYTHING_VITS14_PTH: 'depth_anything_vits14.pth',
|
|
92
|
+
};
|
|
93
|
+
export const DepthAnythingV2Checkpoint = {
|
|
94
|
+
DEPTH_ANYTHING_V2_VITG_PTH: 'depth_anything_v2_vitg.pth',
|
|
95
|
+
DEPTH_ANYTHING_V2_VITL_PTH: 'depth_anything_v2_vitl.pth',
|
|
96
|
+
DEPTH_ANYTHING_V2_VITB_PTH: 'depth_anything_v2_vitb.pth',
|
|
97
|
+
DEPTH_ANYTHING_V2_VITS_PTH: 'depth_anything_v2_vits.pth',
|
|
98
|
+
};
|
|
99
|
+
export const DwPoseBboxDetector = {
|
|
100
|
+
YOLOX_L_ONNX: 'yolox_l.onnx',
|
|
101
|
+
YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt',
|
|
102
|
+
YOLO_NAS_L_FP16_ONNX: 'yolo_nas_l_fp16.onnx',
|
|
103
|
+
YOLO_NAS_M_FP16_ONNX: 'yolo_nas_m_fp16.onnx',
|
|
104
|
+
YOLO_NAS_S_FP16_ONNX: 'yolo_nas_s_fp16.onnx',
|
|
105
|
+
};
|
|
106
|
+
export const DwPoseEstimator = {
|
|
107
|
+
DW_LL_UCOCO_384_BS5_TORCHSCRIPT_PT: 'dw-ll_ucoco_384_bs5.torchscript.pt',
|
|
108
|
+
DW_LL_UCOCO_384_ONNX: 'dw-ll_ucoco_384.onnx',
|
|
109
|
+
DW_LL_UCOCO_ONNX: 'dw-ll_ucoco.onnx',
|
|
110
|
+
};
|
|
14
111
|
export const FileFormat = {
|
|
15
112
|
UNKNOWN: 'unknown',
|
|
16
113
|
SAFE_TENSOR: 'safeTensor',
|
|
@@ -18,6 +115,7 @@ export const FileFormat = {
|
|
|
18
115
|
DIFFUSERS: 'diffusers',
|
|
19
116
|
CORE_ML: 'coreML',
|
|
20
117
|
ONNX: 'onnx',
|
|
118
|
+
TAR: 'tar',
|
|
21
119
|
};
|
|
22
120
|
export const HaiperVideoGenAspectRatio = {
|
|
23
121
|
'16:9': '16:9',
|
|
@@ -44,6 +142,11 @@ export const HumanoidImageMaskCategory = {
|
|
|
44
142
|
UPPER_BODY: 'upperBody',
|
|
45
143
|
LOWER_BODY: 'lowerBody',
|
|
46
144
|
};
|
|
145
|
+
export const ImageGenOutputFormat = {
|
|
146
|
+
JPEG: 'jpeg',
|
|
147
|
+
PNG: 'png',
|
|
148
|
+
WEB_P: 'webP',
|
|
149
|
+
};
|
|
47
150
|
export const ImageResouceTrainingModerationStatus = {
|
|
48
151
|
EVALUATING: 'evaluating',
|
|
49
152
|
UNDER_REVIEW: 'underReview',
|
|
@@ -73,9 +176,17 @@ export const KlingMode = {
|
|
|
73
176
|
};
|
|
74
177
|
export const KlingModel = {
|
|
75
178
|
V1: 'v1',
|
|
76
|
-
V1_5: '
|
|
77
|
-
V1_6: '
|
|
179
|
+
V1_5: 'v1.5',
|
|
180
|
+
V1_6: 'v1.6',
|
|
78
181
|
V2: 'v2',
|
|
182
|
+
V2_5_TURBO: 'v2.5-turbo',
|
|
183
|
+
};
|
|
184
|
+
export const KlingV3Operation = {
|
|
185
|
+
TEXT_TO_VIDEO: 'text-to-video',
|
|
186
|
+
IMAGE_TO_VIDEO: 'image-to-video',
|
|
187
|
+
REFERENCE_TO_VIDEO: 'reference-to-video',
|
|
188
|
+
VIDEO_TO_VIDEO_EDIT: 'video-to-video-edit',
|
|
189
|
+
VIDEO_TO_VIDEO_REFERENCE: 'video-to-video-reference',
|
|
79
190
|
};
|
|
80
191
|
export const KlingVideoGenAspectRatio = {
|
|
81
192
|
'16:9': '16:9',
|
|
@@ -86,6 +197,10 @@ export const KlingVideoGenDuration = {
|
|
|
86
197
|
5: '5',
|
|
87
198
|
10: '10',
|
|
88
199
|
};
|
|
200
|
+
export const LeresBoost = {
|
|
201
|
+
DISABLE: 'disable',
|
|
202
|
+
ENABLE: 'enable',
|
|
203
|
+
};
|
|
89
204
|
export const LightricksAspectRatio = {
|
|
90
205
|
'1:1': '1:1',
|
|
91
206
|
'16:9': '16:9',
|
|
@@ -93,17 +208,33 @@ export const LightricksAspectRatio = {
|
|
|
93
208
|
'3:2': '3:2',
|
|
94
209
|
'2:3': '2:3',
|
|
95
210
|
};
|
|
211
|
+
/**
|
|
212
|
+
* Represents the type of hash algorithm to use for media content.
|
|
213
|
+
*/
|
|
214
|
+
export const MediaHashType = {
|
|
215
|
+
PERCEPTUAL: 'perceptual',
|
|
216
|
+
};
|
|
217
|
+
export const Metric3dBackbone = {
|
|
218
|
+
VIT_SMALL: 'vit-small',
|
|
219
|
+
VIT_LARGE: 'vit-large',
|
|
220
|
+
VIT_GIANT2: 'vit-giant2',
|
|
221
|
+
};
|
|
96
222
|
export const MiniMaxVideoGenModel = {
|
|
97
223
|
HAILOU: 'hailou',
|
|
98
224
|
};
|
|
99
225
|
export const NsfwLevel = {
|
|
100
226
|
PG: 'pg',
|
|
101
|
-
|
|
227
|
+
PG13: 'pg13',
|
|
102
228
|
R: 'r',
|
|
103
229
|
X: 'x',
|
|
104
230
|
XXX: 'xxx',
|
|
105
231
|
NA: 'na',
|
|
106
232
|
};
|
|
233
|
+
export const OutputFormat = {
|
|
234
|
+
PNG: 'png',
|
|
235
|
+
JPEG: 'jpeg',
|
|
236
|
+
WEB_P: 'webP',
|
|
237
|
+
};
|
|
107
238
|
/**
|
|
108
239
|
* Available options for priority.
|
|
109
240
|
*/
|
|
@@ -112,6 +243,10 @@ export const Priority = {
|
|
|
112
243
|
NORMAL: 'normal',
|
|
113
244
|
LOW: 'low',
|
|
114
245
|
};
|
|
246
|
+
export const SafeMode = {
|
|
247
|
+
ENABLE: 'enable',
|
|
248
|
+
DISABLE: 'disable',
|
|
249
|
+
};
|
|
115
250
|
/**
|
|
116
251
|
* The available options for schedulers used in image generation.
|
|
117
252
|
*/
|
|
@@ -142,6 +277,54 @@ export const Scheduler = {
|
|
|
142
277
|
DEIS: 'deis',
|
|
143
278
|
DP_M3MSDE: 'dpM3MSDE',
|
|
144
279
|
};
|
|
280
|
+
export const SdCppSampleMethod = {
|
|
281
|
+
EULER: 'euler',
|
|
282
|
+
HEUN: 'heun',
|
|
283
|
+
DPM2: 'dpm2',
|
|
284
|
+
'DPM++2S_A': 'dpm++2s_a',
|
|
285
|
+
'DPM++2M': 'dpm++2m',
|
|
286
|
+
'DPM++2MV2': 'dpm++2mv2',
|
|
287
|
+
IPNDM: 'ipndm',
|
|
288
|
+
IPNDM_V: 'ipndm_v',
|
|
289
|
+
DDIM_TRAILING: 'ddim_trailing',
|
|
290
|
+
EULER_A: 'euler_a',
|
|
291
|
+
LCM: 'lcm',
|
|
292
|
+
RES_MULTISTEP: 'res_multistep',
|
|
293
|
+
RES_2S: 'res_2s',
|
|
294
|
+
TCD: 'tcd',
|
|
295
|
+
};
|
|
296
|
+
export const SdCppSchedule = {
|
|
297
|
+
SIMPLE: 'simple',
|
|
298
|
+
DISCRETE: 'discrete',
|
|
299
|
+
KARRAS: 'karras',
|
|
300
|
+
EXPONENTIAL: 'exponential',
|
|
301
|
+
AYS: 'ays',
|
|
302
|
+
BONG_TANGENT: 'bong_tangent',
|
|
303
|
+
GITS: 'gits',
|
|
304
|
+
SGM_UNIFORM: 'sgm_uniform',
|
|
305
|
+
SMOOTHSTEP: 'smoothstep',
|
|
306
|
+
KL_OPTIMAL: 'kl_optimal',
|
|
307
|
+
LCM: 'lcm',
|
|
308
|
+
};
|
|
309
|
+
export const SdCppUCacheMode = {
|
|
310
|
+
OFF: 'off',
|
|
311
|
+
NORMAL: 'normal',
|
|
312
|
+
};
|
|
313
|
+
export const SeedreamVersion = {
|
|
314
|
+
V3: 'v3',
|
|
315
|
+
V4: 'v4',
|
|
316
|
+
V4_5: 'v4.5',
|
|
317
|
+
V5_0_LITE: 'v5.0-lite',
|
|
318
|
+
};
|
|
319
|
+
/**
|
|
320
|
+
* The moderation status of the training data
|
|
321
|
+
*/
|
|
322
|
+
export const TrainingModerationStatus = {
|
|
323
|
+
EVALUATING: 'evaluating',
|
|
324
|
+
UNDER_REVIEW: 'underReview',
|
|
325
|
+
APPROVED: 'approved',
|
|
326
|
+
REJECTED: 'rejected',
|
|
327
|
+
};
|
|
145
328
|
export const TransactionType = {
|
|
146
329
|
DEBIT: 'debit',
|
|
147
330
|
CREDIT: 'credit',
|
|
@@ -157,9 +340,14 @@ export const Veo3AspectRatio = {
|
|
|
157
340
|
'9:16': '9:16',
|
|
158
341
|
'1:1': '1:1',
|
|
159
342
|
};
|
|
343
|
+
export const Veo3Version = {
|
|
344
|
+
'3_0': '3.0',
|
|
345
|
+
'3_1': '3.1',
|
|
346
|
+
};
|
|
160
347
|
export const ViduVideoGenModel = {
|
|
161
348
|
DEFAULT: 'default',
|
|
162
349
|
Q1: 'q1',
|
|
350
|
+
Q3: 'q3',
|
|
163
351
|
};
|
|
164
352
|
export const ViduVideoGenStyle = {
|
|
165
353
|
GENERAL: 'general',
|
|
@@ -185,3 +373,7 @@ export const WorkflowUpgradeMode = {
|
|
|
185
373
|
MANUAL: 'manual',
|
|
186
374
|
AUTOMATIC: 'automatic',
|
|
187
375
|
};
|
|
376
|
+
export const ZoeDepthEnvironment = {
|
|
377
|
+
INDOOR: 'indoor',
|
|
378
|
+
OUTDOOR: 'outdoor',
|
|
379
|
+
};
|
package/dist/utils/TimeSpan.d.ts
CHANGED
|
@@ -36,8 +36,8 @@ export declare class TimeSpan {
|
|
|
36
36
|
get milliseconds(): number;
|
|
37
37
|
get ticks(): number;
|
|
38
38
|
get totalMilliseconds(): number;
|
|
39
|
-
get totalMinutes(): number;
|
|
40
39
|
get totalSeconds(): number;
|
|
40
|
+
get totalMinutes(): number;
|
|
41
41
|
get totalHours(): number;
|
|
42
42
|
get totalDays(): number;
|
|
43
43
|
get totalTicks(): number;
|
package/dist/utils/TimeSpan.js
CHANGED
|
@@ -89,17 +89,17 @@ export class TimeSpan {
|
|
|
89
89
|
get totalMilliseconds() {
|
|
90
90
|
return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerMillisecond);
|
|
91
91
|
}
|
|
92
|
-
get totalMinutes() {
|
|
93
|
-
return Math.floor(this.minutes / ticksPerMinute);
|
|
94
|
-
}
|
|
95
92
|
get totalSeconds() {
|
|
96
|
-
return Math.floor(this
|
|
93
|
+
return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerSecond);
|
|
94
|
+
}
|
|
95
|
+
get totalMinutes() {
|
|
96
|
+
return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerMinute);
|
|
97
97
|
}
|
|
98
98
|
get totalHours() {
|
|
99
|
-
return Math.floor(this
|
|
99
|
+
return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerHour);
|
|
100
100
|
}
|
|
101
101
|
get totalDays() {
|
|
102
|
-
return Math.floor(this
|
|
102
|
+
return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerDay);
|
|
103
103
|
}
|
|
104
104
|
get totalTicks() {
|
|
105
105
|
return __classPrivateFieldGet(this, _TimeSpan_ticks, "f");
|