@civitai/client 0.2.0-beta.5 → 0.2.0-beta.50

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.
Files changed (37) hide show
  1. package/dist/client/CivitaiClient.js +3 -1
  2. package/dist/generated/client/client.gen.d.ts +2 -0
  3. package/dist/generated/client/client.gen.js +237 -0
  4. package/dist/generated/client/index.d.ts +9 -8
  5. package/dist/generated/client/index.js +6 -4
  6. package/dist/generated/client/types.d.ts +4 -5
  7. package/dist/generated/client/types.gen.d.ts +195 -0
  8. package/dist/generated/client/types.gen.js +2 -0
  9. package/dist/generated/client/utils.gen.d.ts +58 -0
  10. package/dist/generated/client/utils.gen.js +234 -0
  11. package/dist/generated/client.gen.d.ts +5 -5
  12. package/dist/generated/client.gen.js +1 -1
  13. package/dist/generated/core/auth.gen.d.ts +21 -0
  14. package/dist/generated/core/auth.gen.js +14 -0
  15. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  16. package/dist/generated/core/bodySerializer.gen.js +57 -0
  17. package/dist/generated/core/params.gen.d.ts +49 -0
  18. package/dist/generated/core/params.gen.js +100 -0
  19. package/dist/generated/core/pathSerializer.gen.d.ts +49 -0
  20. package/dist/generated/core/pathSerializer.gen.js +106 -0
  21. package/dist/generated/core/queryKeySerializer.gen.d.ts +24 -0
  22. package/dist/generated/core/queryKeySerializer.gen.js +92 -0
  23. package/dist/generated/core/serverSentEvents.gen.d.ts +88 -0
  24. package/dist/generated/core/serverSentEvents.gen.js +134 -0
  25. package/dist/generated/core/types.gen.d.ts +106 -0
  26. package/dist/generated/core/types.gen.js +2 -0
  27. package/dist/generated/core/utils.gen.d.ts +25 -0
  28. package/dist/generated/core/utils.gen.js +87 -0
  29. package/dist/generated/index.d.ts +913 -2
  30. package/dist/generated/index.js +2 -2
  31. package/dist/generated/sdk.gen.d.ts +486 -47
  32. package/dist/generated/sdk.gen.js +433 -186
  33. package/dist/generated/types.gen.d.ts +7283 -1575
  34. package/dist/generated/types.gen.js +201 -53
  35. package/dist/utils/TimeSpan.d.ts +1 -1
  36. package/dist/utils/TimeSpan.js +6 -6
  37. package/package.json +3 -3
@@ -1,17 +1,103 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export const AgeClassificationPrediction = {
3
- PASS: 'pass',
4
- FAIL: 'fail',
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',
5
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 = { INCLUDE: 'include', EXCLUDE: 'exclude' };
6
23
  export const BuzzClientAccount = {
7
24
  YELLOW: 'yellow',
8
25
  BLUE: 'blue',
9
26
  GREEN: 'green',
10
27
  FAKE_RED: 'fakeRed',
11
28
  };
12
- export const ContainerFormat = {
13
- MP4: 'mp4',
14
- WEB_M: 'webM',
29
+ export const CoarseMode = { DISABLE: 'disable', ENABLE: 'enable' };
30
+ export const ComfySampler = {
31
+ EULER: 'euler',
32
+ EULER_ANCESTRAL: 'euler_ancestral',
33
+ EULER_CFG_PP: 'euler_cfg_pp',
34
+ EULER_ANCESTRAL_CFG_PP: 'euler_ancestral_cfg_pp',
35
+ HEUN: 'heun',
36
+ HEUNPP2: 'heunpp2',
37
+ DPM_2: 'dpm_2',
38
+ DPM_2_ANCESTRAL: 'dpm_2_ancestral',
39
+ LMS: 'lms',
40
+ DPM_FAST: 'dpm_fast',
41
+ DPM_ADAPTIVE: 'dpm_adaptive',
42
+ DPMPP_2S_ANCESTRAL: 'dpmpp_2s_ancestral',
43
+ DPMPP_2S_ANCESTRAL_CFG_PP: 'dpmpp_2s_ancestral_cfg_pp',
44
+ DPMPP_SDE: 'dpmpp_sde',
45
+ DPMPP_SDE_GPU: 'dpmpp_sde_gpu',
46
+ DPMPP_2M: 'dpmpp_2m',
47
+ DPMPP_2M_CFG_PP: 'dpmpp_2m_cfg_pp',
48
+ DPMPP_2M_SDE: 'dpmpp_2m_sde',
49
+ DPMPP_2M_SDE_GPU: 'dpmpp_2m_sde_gpu',
50
+ DPMPP_3M_SDE: 'dpmpp_3m_sde',
51
+ DPMPP_3M_SDE_GPU: 'dpmpp_3m_sde_gpu',
52
+ DDPM: 'ddpm',
53
+ LCM: 'lcm',
54
+ IPNDM: 'ipndm',
55
+ IPNDM_V: 'ipndm_v',
56
+ DEIS: 'deis',
57
+ DDIM: 'ddim',
58
+ UNI_PC: 'uni_pc',
59
+ UNI_PC_BH2: 'uni_pc_bh2',
60
+ };
61
+ export const ComfyScheduler = {
62
+ NORMAL: 'normal',
63
+ KARRAS: 'karras',
64
+ EXPONENTIAL: 'exponential',
65
+ SGM_UNIFORM: 'sgm_uniform',
66
+ SIMPLE: 'simple',
67
+ DDIM_UNIFORM: 'ddim_uniform',
68
+ BETA: 'beta',
69
+ };
70
+ export const ContainerFormat = { MP4: 'mp4', WEB_M: 'webM' };
71
+ export const DensePoseColormap = {
72
+ VIRIDIS_MAGIC_ANIMATE: 'Viridis (MagicAnimate)',
73
+ PARULA_CIVIT_AI: 'Parula (CivitAI)',
74
+ };
75
+ export const DensePoseModel = {
76
+ DENSEPOSE_R50_FPN_DL_TORCHSCRIPT: 'densepose_r50_fpn_dl.torchscript',
77
+ DENSEPOSE_R101_FPN_DL_TORCHSCRIPT: 'densepose_r101_fpn_dl.torchscript',
78
+ };
79
+ export const DepthAnythingCheckpoint = {
80
+ DEPTH_ANYTHING_VITL14_PTH: 'depth_anything_vitl14.pth',
81
+ DEPTH_ANYTHING_VITB14_PTH: 'depth_anything_vitb14.pth',
82
+ DEPTH_ANYTHING_VITS14_PTH: 'depth_anything_vits14.pth',
83
+ };
84
+ export const DepthAnythingV2Checkpoint = {
85
+ DEPTH_ANYTHING_V2_VITG_PTH: 'depth_anything_v2_vitg.pth',
86
+ DEPTH_ANYTHING_V2_VITL_PTH: 'depth_anything_v2_vitl.pth',
87
+ DEPTH_ANYTHING_V2_VITB_PTH: 'depth_anything_v2_vitb.pth',
88
+ DEPTH_ANYTHING_V2_VITS_PTH: 'depth_anything_v2_vits.pth',
89
+ };
90
+ export const DwPoseBboxDetector = {
91
+ YOLOX_L_ONNX: 'yolox_l.onnx',
92
+ YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt',
93
+ YOLO_NAS_L_FP16_ONNX: 'yolo_nas_l_fp16.onnx',
94
+ YOLO_NAS_M_FP16_ONNX: 'yolo_nas_m_fp16.onnx',
95
+ YOLO_NAS_S_FP16_ONNX: 'yolo_nas_s_fp16.onnx',
96
+ };
97
+ export const DwPoseEstimator = {
98
+ DW_LL_UCOCO_384_BS5_TORCHSCRIPT_PT: 'dw-ll_ucoco_384_bs5.torchscript.pt',
99
+ DW_LL_UCOCO_384_ONNX: 'dw-ll_ucoco_384.onnx',
100
+ DW_LL_UCOCO_ONNX: 'dw-ll_ucoco.onnx',
15
101
  };
16
102
  export const FileFormat = {
17
103
  UNKNOWN: 'unknown',
@@ -20,13 +106,14 @@ export const FileFormat = {
20
106
  DIFFUSERS: 'diffusers',
21
107
  CORE_ML: 'coreML',
22
108
  ONNX: 'onnx',
109
+ TAR: 'tar',
23
110
  };
24
111
  export const HaiperVideoGenAspectRatio = {
25
- '16:9': '16:9',
26
- '4:3': '4:3',
27
- '1:1': '1:1',
28
- '9:16': '9:16',
29
- '3:4': '3:4',
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',
30
117
  };
31
118
  export const HaiperVideoGenCameraMovement = {
32
119
  NONE: 'none',
@@ -37,15 +124,17 @@ export const HaiperVideoGenCameraMovement = {
37
124
  ZOOM_IN: 'zoomIn',
38
125
  ZOOM_OUT: 'zoomOut',
39
126
  };
40
- export const HaiperVideoGenModel = {
41
- V1_5: 'v1_5',
42
- V2: 'v2',
43
- };
127
+ export const HaiperVideoGenModel = { V1_5: 'v1_5', V2: 'v2' };
44
128
  export const HumanoidImageMaskCategory = {
45
129
  DRESSES: 'dresses',
46
130
  UPPER_BODY: 'upperBody',
47
131
  LOWER_BODY: 'lowerBody',
48
132
  };
133
+ export const ImageGenOutputFormat = {
134
+ JPEG: 'jpeg',
135
+ PNG: 'png',
136
+ WEB_P: 'webP',
137
+ };
49
138
  export const ImageResouceTrainingModerationStatus = {
50
139
  EVALUATING: 'evaluating',
51
140
  UNDER_REVIEW: 'underReview',
@@ -69,43 +158,58 @@ export const JobSupport = {
69
158
  UNAVAILABLE: 'unavailable',
70
159
  AVAILABLE: 'available',
71
160
  };
72
- export const KlingMode = {
73
- STANDARD: 'standard',
74
- PROFESSIONAL: 'professional',
75
- };
161
+ export const KlingMode = { STANDARD: 'standard', PROFESSIONAL: 'professional' };
76
162
  export const KlingModel = {
77
163
  V1: 'v1',
78
- V1_5: 'v1_5',
79
- V1_6: 'v1_6',
164
+ V1_5: 'v1.5',
165
+ V1_6: 'v1.6',
80
166
  V2: 'v2',
167
+ V2_5_TURBO: 'v2.5-turbo',
81
168
  };
82
- export const KlingVideoGenAspectRatio = {
83
- '16:9': '16:9',
84
- '9:16': '9:16',
85
- '1:1': '1:1',
169
+ export const KlingV3Operation = {
170
+ TEXT_TO_VIDEO: 'text-to-video',
171
+ IMAGE_TO_VIDEO: 'image-to-video',
172
+ REFERENCE_TO_VIDEO: 'reference-to-video',
173
+ VIDEO_TO_VIDEO_EDIT: 'video-to-video-edit',
174
+ VIDEO_TO_VIDEO_REFERENCE: 'video-to-video-reference',
86
175
  };
87
- export const KlingVideoGenDuration = {
88
- 5: '5',
89
- 10: '10',
176
+ export const KlingVideoGenAspectRatio = {
177
+ '16_9': '16:9',
178
+ '9_16': '9:16',
179
+ '1_1': '1:1',
90
180
  };
181
+ export const KlingVideoGenDuration = { 5: '5', 10: '10' };
182
+ export const LeresBoost = { DISABLE: 'disable', ENABLE: 'enable' };
91
183
  export const LightricksAspectRatio = {
92
- '1:1': '1:1',
93
- '16:9': '16:9',
94
- '9:16': '9:16',
95
- '3:2': '3:2',
96
- '2:3': '2:3',
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',
97
189
  };
98
- export const MiniMaxVideoGenModel = {
99
- HAILOU: 'hailou',
190
+ /**
191
+ * Represents the type of hash algorithm to use for media content.
192
+ */
193
+ export const MediaHashType = { PERCEPTUAL: 'perceptual' };
194
+ export const Metric3dBackbone = {
195
+ VIT_SMALL: 'vit-small',
196
+ VIT_LARGE: 'vit-large',
197
+ VIT_GIANT2: 'vit-giant2',
100
198
  };
199
+ export const MiniMaxVideoGenModel = { HAILOU: 'hailou' };
101
200
  export const NsfwLevel = {
102
201
  PG: 'pg',
103
- P_G13: 'pG13',
202
+ PG13: 'pg13',
104
203
  R: 'r',
105
204
  X: 'x',
106
205
  XXX: 'xxx',
107
206
  NA: 'na',
108
207
  };
208
+ export const OutputFormat = {
209
+ PNG: 'png',
210
+ JPEG: 'jpeg',
211
+ WEB_P: 'webP',
212
+ };
109
213
  /**
110
214
  * Available options for priority.
111
215
  */
@@ -114,6 +218,7 @@ export const Priority = {
114
218
  NORMAL: 'normal',
115
219
  LOW: 'low',
116
220
  };
221
+ export const SafeMode = { ENABLE: 'enable', DISABLE: 'disable' };
117
222
  /**
118
223
  * The available options for schedulers used in image generation.
119
224
  */
@@ -144,29 +249,74 @@ export const Scheduler = {
144
249
  DEIS: 'deis',
145
250
  DP_M3MSDE: 'dpM3MSDE',
146
251
  };
147
- export const TransactionType = {
148
- DEBIT: 'debit',
149
- CREDIT: 'credit',
252
+ export const SdCppSampleMethod = {
253
+ EULER: 'euler',
254
+ HEUN: 'heun',
255
+ DPM2: 'dpm2',
256
+ DPM_2S_A: 'dpm++2s_a',
257
+ DPM_2M: 'dpm++2m',
258
+ DPM_2MV2: 'dpm++2mv2',
259
+ IPNDM: 'ipndm',
260
+ IPNDM_V: 'ipndm_v',
261
+ DDIM_TRAILING: 'ddim_trailing',
262
+ EULER_A: 'euler_a',
263
+ LCM: 'lcm',
264
+ RES_MULTISTEP: 'res_multistep',
265
+ RES_2S: 'res_2s',
266
+ TCD: 'tcd',
267
+ ER_SDE: 'er_sde',
268
+ };
269
+ export const SdCppSchedule = {
270
+ SIMPLE: 'simple',
271
+ DISCRETE: 'discrete',
272
+ KARRAS: 'karras',
273
+ EXPONENTIAL: 'exponential',
274
+ AYS: 'ays',
275
+ BONG_TANGENT: 'bong_tangent',
276
+ GITS: 'gits',
277
+ SGM_UNIFORM: 'sgm_uniform',
278
+ SMOOTHSTEP: 'smoothstep',
279
+ KL_OPTIMAL: 'kl_optimal',
280
+ LCM: 'lcm',
281
+ };
282
+ export const SdCppUCacheMode = { OFF: 'off', NORMAL: 'normal' };
283
+ export const SeedreamVersion = {
284
+ V3: 'v3',
285
+ V4: 'v4',
286
+ V4_5: 'v4.5',
287
+ V5_0_LITE: 'v5.0-lite',
150
288
  };
151
289
  /**
152
- * Available statuses for updating workflows.
290
+ * The moderation status of the training data
153
291
  */
154
- export const UpdateWorkflowStatus = {
155
- CANCELED: 'canceled',
292
+ export const TrainingModerationStatus = {
293
+ EVALUATING: 'evaluating',
294
+ UNDER_REVIEW: 'underReview',
295
+ APPROVED: 'approved',
296
+ REJECTED: 'rejected',
156
297
  };
298
+ export const TransactionType = { DEBIT: 'debit', CREDIT: 'credit' };
299
+ /**
300
+ * Available statuses for updating workflows.
301
+ */
302
+ export const UpdateWorkflowStatus = { CANCELED: 'canceled' };
157
303
  export const Veo3AspectRatio = {
158
- '16:9': '16:9',
159
- '9:16': '9:16',
160
- '1:1': '1:1',
304
+ '16_9': '16:9',
305
+ '9_16': '9:16',
306
+ '1_1': '1:1',
307
+ };
308
+ export const Veo3GenerationMode = {
309
+ STANDARD: 'standard',
310
+ FAST: 'fast',
311
+ LITE: 'lite',
161
312
  };
313
+ export const Veo3Version = { '3_0': '3.0', '3_1': '3.1' };
162
314
  export const ViduVideoGenModel = {
163
315
  DEFAULT: 'default',
164
316
  Q1: 'q1',
317
+ Q3: 'q3',
165
318
  };
166
- export const ViduVideoGenStyle = {
167
- GENERAL: 'general',
168
- ANIME: 'anime',
169
- };
319
+ export const ViduVideoGenStyle = { GENERAL: 'general', ANIME: 'anime' };
170
320
  /**
171
321
  * Values available to represent workflow status.
172
322
  */
@@ -183,7 +333,5 @@ export const WorkflowStatus = {
183
333
  /**
184
334
  * Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
185
335
  */
186
- export const WorkflowUpgradeMode = {
187
- MANUAL: 'manual',
188
- AUTOMATIC: 'automatic',
189
- };
336
+ export const WorkflowUpgradeMode = { MANUAL: 'manual', AUTOMATIC: 'automatic' };
337
+ export const ZoeDepthEnvironment = { INDOOR: 'indoor', OUTDOOR: 'outdoor' };
@@ -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;
@@ -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.seconds / ticksPerSecond);
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.hours / ticksPerHour);
99
+ return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerHour);
100
100
  }
101
101
  get totalDays() {
102
- return Math.floor(this.days / ticksPerDay);
102
+ return Math.floor(__classPrivateFieldGet(this, _TimeSpan_ticks, "f") / ticksPerDay);
103
103
  }
104
104
  get totalTicks() {
105
105
  return __classPrivateFieldGet(this, _TimeSpan_ticks, "f");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.5",
3
+ "version": "0.2.0-beta.50",
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.80.5",
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",