@civitai/client 0.2.0-beta.40 → 0.2.0-beta.42
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.gen.d.ts +194 -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 +1228 -2
- package/dist/generated/index.js +2 -2
- package/dist/generated/sdk.gen.d.ts +505 -75
- package/dist/generated/sdk.gen.js +371 -331
- package/dist/generated/types.gen.d.ts +9742 -2074
- package/dist/generated/types.gen.js +81 -82
- package/package.json +3 -3
|
@@ -19,20 +19,19 @@ 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
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
export const ClaimStatusType = {
|
|
30
|
+
CLAIMED: 'claimed',
|
|
31
|
+
REJECTED: 'rejected',
|
|
32
|
+
SUCCEEDED: 'succeeded',
|
|
35
33
|
};
|
|
34
|
+
export const CoarseMode = { DISABLE: 'disable', ENABLE: 'enable' };
|
|
36
35
|
export const ComfySampler = {
|
|
37
36
|
EULER: 'euler',
|
|
38
37
|
EULER_ANCESTRAL: 'euler_ancestral',
|
|
@@ -73,13 +72,10 @@ export const ComfyScheduler = {
|
|
|
73
72
|
DDIM_UNIFORM: 'ddim_uniform',
|
|
74
73
|
BETA: 'beta',
|
|
75
74
|
};
|
|
76
|
-
export const ContainerFormat = {
|
|
77
|
-
MP4: 'mp4',
|
|
78
|
-
WEB_M: 'webM',
|
|
79
|
-
};
|
|
75
|
+
export const ContainerFormat = { MP4: 'mp4', WEB_M: 'webM' };
|
|
80
76
|
export const DensePoseColormap = {
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
VIRIDIS_MAGIC_ANIMATE: 'Viridis (MagicAnimate)',
|
|
78
|
+
PARULA_CIVIT_AI: 'Parula (CivitAI)',
|
|
83
79
|
};
|
|
84
80
|
export const DensePoseModel = {
|
|
85
81
|
DENSEPOSE_R50_FPN_DL_TORCHSCRIPT: 'densepose_r50_fpn_dl.torchscript',
|
|
@@ -96,6 +92,7 @@ export const DepthAnythingV2Checkpoint = {
|
|
|
96
92
|
DEPTH_ANYTHING_V2_VITB_PTH: 'depth_anything_v2_vitb.pth',
|
|
97
93
|
DEPTH_ANYTHING_V2_VITS_PTH: 'depth_anything_v2_vits.pth',
|
|
98
94
|
};
|
|
95
|
+
export const DownloadSource = { DEFAULT: 'default', TIGRIS: 'tigris' };
|
|
99
96
|
export const DwPoseBboxDetector = {
|
|
100
97
|
YOLOX_L_ONNX: 'yolox_l.onnx',
|
|
101
98
|
YOLOX_L_TORCHSCRIPT_PT: 'yolox_l.torchscript.pt',
|
|
@@ -118,11 +115,11 @@ export const FileFormat = {
|
|
|
118
115
|
TAR: 'tar',
|
|
119
116
|
};
|
|
120
117
|
export const HaiperVideoGenAspectRatio = {
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'
|
|
118
|
+
'16_9': '16:9',
|
|
119
|
+
'4_3': '4:3',
|
|
120
|
+
'1_1': '1:1',
|
|
121
|
+
'9_16': '9:16',
|
|
122
|
+
'3_4': '3:4',
|
|
126
123
|
};
|
|
127
124
|
export const HaiperVideoGenCameraMovement = {
|
|
128
125
|
NONE: 'none',
|
|
@@ -133,10 +130,7 @@ export const HaiperVideoGenCameraMovement = {
|
|
|
133
130
|
ZOOM_IN: 'zoomIn',
|
|
134
131
|
ZOOM_OUT: 'zoomOut',
|
|
135
132
|
};
|
|
136
|
-
export const HaiperVideoGenModel = {
|
|
137
|
-
V1_5: 'v1_5',
|
|
138
|
-
V2: 'v2',
|
|
139
|
-
};
|
|
133
|
+
export const HaiperVideoGenModel = { V1_5: 'v1_5', V2: 'v2' };
|
|
140
134
|
export const HumanoidImageMaskCategory = {
|
|
141
135
|
DRESSES: 'dresses',
|
|
142
136
|
UPPER_BODY: 'upperBody',
|
|
@@ -162,6 +156,12 @@ export const ImageTransformer = {
|
|
|
162
156
|
SOFTEDGE_PIDINET: 'softedgePidinet',
|
|
163
157
|
REMBG: 'rembg',
|
|
164
158
|
};
|
|
159
|
+
export const JobDependencyContinuation = {
|
|
160
|
+
FAIL: 'fail',
|
|
161
|
+
SKIP: 'skip',
|
|
162
|
+
CONTINUE: 'continue',
|
|
163
|
+
CONTINUE_REUSE_CONTEXT: 'continueReuseContext',
|
|
164
|
+
};
|
|
165
165
|
/**
|
|
166
166
|
* Available levels of job support.
|
|
167
167
|
*/
|
|
@@ -170,10 +170,7 @@ export const JobSupport = {
|
|
|
170
170
|
UNAVAILABLE: 'unavailable',
|
|
171
171
|
AVAILABLE: 'available',
|
|
172
172
|
};
|
|
173
|
-
export const KlingMode = {
|
|
174
|
-
STANDARD: 'standard',
|
|
175
|
-
PROFESSIONAL: 'professional',
|
|
176
|
-
};
|
|
173
|
+
export const KlingMode = { STANDARD: 'standard', PROFESSIONAL: 'professional' };
|
|
177
174
|
export const KlingModel = {
|
|
178
175
|
V1: 'v1',
|
|
179
176
|
V1_5: 'v1.5',
|
|
@@ -189,39 +186,36 @@ export const KlingV3Operation = {
|
|
|
189
186
|
VIDEO_TO_VIDEO_REFERENCE: 'video-to-video-reference',
|
|
190
187
|
};
|
|
191
188
|
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',
|
|
189
|
+
'16_9': '16:9',
|
|
190
|
+
'9_16': '9:16',
|
|
191
|
+
'1_1': '1:1',
|
|
203
192
|
};
|
|
193
|
+
export const KlingVideoGenDuration = { 5: '5', 10: '10' };
|
|
194
|
+
export const LeresBoost = { DISABLE: 'disable', ENABLE: 'enable' };
|
|
204
195
|
export const LightricksAspectRatio = {
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
196
|
+
'1_1': '1:1',
|
|
197
|
+
'16_9': '16:9',
|
|
198
|
+
'9_16': '9:16',
|
|
199
|
+
'3_2': '3:2',
|
|
200
|
+
'2_3': '2:3',
|
|
210
201
|
};
|
|
211
202
|
/**
|
|
212
203
|
* Represents the type of hash algorithm to use for media content.
|
|
213
204
|
*/
|
|
214
|
-
export const MediaHashType = {
|
|
215
|
-
|
|
205
|
+
export const MediaHashType = { PERCEPTUAL: 'perceptual' };
|
|
206
|
+
export const MediaRatingProfile = {
|
|
207
|
+
NONE: 'none',
|
|
208
|
+
AGE_CLASSIFICATION: 'ageClassification',
|
|
209
|
+
FACE_RECOGNITION: 'faceRecognition',
|
|
210
|
+
AI_RECOGNITION: 'aiRecognition',
|
|
211
|
+
ANIME_RECOGNITION: 'animeRecognition',
|
|
216
212
|
};
|
|
217
213
|
export const Metric3dBackbone = {
|
|
218
214
|
VIT_SMALL: 'vit-small',
|
|
219
215
|
VIT_LARGE: 'vit-large',
|
|
220
216
|
VIT_GIANT2: 'vit-giant2',
|
|
221
217
|
};
|
|
222
|
-
export const MiniMaxVideoGenModel = {
|
|
223
|
-
HAILOU: 'hailou',
|
|
224
|
-
};
|
|
218
|
+
export const MiniMaxVideoGenModel = { HAILOU: 'hailou' };
|
|
225
219
|
export const NsfwLevel = {
|
|
226
220
|
PG: 'pg',
|
|
227
221
|
PG13: 'pg13',
|
|
@@ -230,6 +224,11 @@ export const NsfwLevel = {
|
|
|
230
224
|
XXX: 'xxx',
|
|
231
225
|
NA: 'na',
|
|
232
226
|
};
|
|
227
|
+
export const NanoBananaProResolution = {
|
|
228
|
+
ONE_K: 'oneK',
|
|
229
|
+
TWO_K: 'twoK',
|
|
230
|
+
FOUR_K: 'fourK',
|
|
231
|
+
};
|
|
233
232
|
export const OutputFormat = {
|
|
234
233
|
PNG: 'png',
|
|
235
234
|
JPEG: 'jpeg',
|
|
@@ -243,10 +242,11 @@ export const Priority = {
|
|
|
243
242
|
NORMAL: 'normal',
|
|
244
243
|
LOW: 'low',
|
|
245
244
|
};
|
|
246
|
-
export const
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
export const RewritePromptGoal = {
|
|
246
|
+
PREVENT_SEXUAL: 'preventSexual',
|
|
247
|
+
PREVENT_SEXUAL_MINOR: 'preventSexualMinor',
|
|
249
248
|
};
|
|
249
|
+
export const SafeMode = { ENABLE: 'enable', DISABLE: 'disable' };
|
|
250
250
|
/**
|
|
251
251
|
* The available options for schedulers used in image generation.
|
|
252
252
|
*/
|
|
@@ -281,9 +281,9 @@ export const SdCppSampleMethod = {
|
|
|
281
281
|
EULER: 'euler',
|
|
282
282
|
HEUN: 'heun',
|
|
283
283
|
DPM2: 'dpm2',
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
DPM_2S_A: 'dpm++2s_a',
|
|
285
|
+
DPM_2M: 'dpm++2m',
|
|
286
|
+
DPM_2MV2: 'dpm++2mv2',
|
|
287
287
|
IPNDM: 'ipndm',
|
|
288
288
|
IPNDM_V: 'ipndm_v',
|
|
289
289
|
DDIM_TRAILING: 'ddim_trailing',
|
|
@@ -306,10 +306,7 @@ export const SdCppSchedule = {
|
|
|
306
306
|
KL_OPTIMAL: 'kl_optimal',
|
|
307
307
|
LCM: 'lcm',
|
|
308
308
|
};
|
|
309
|
-
export const SdCppUCacheMode = {
|
|
310
|
-
OFF: 'off',
|
|
311
|
-
NORMAL: 'normal',
|
|
312
|
-
};
|
|
309
|
+
export const SdCppUCacheMode = { OFF: 'off', NORMAL: 'normal' };
|
|
313
310
|
export const SeedreamVersion = {
|
|
314
311
|
V3: 'v3',
|
|
315
312
|
V4: 'v4',
|
|
@@ -325,33 +322,41 @@ export const TrainingModerationStatus = {
|
|
|
325
322
|
APPROVED: 'approved',
|
|
326
323
|
REJECTED: 'rejected',
|
|
327
324
|
};
|
|
328
|
-
export const TransactionType = {
|
|
329
|
-
DEBIT: 'debit',
|
|
330
|
-
CREDIT: 'credit',
|
|
331
|
-
};
|
|
325
|
+
export const TransactionType = { DEBIT: 'debit', CREDIT: 'credit' };
|
|
332
326
|
/**
|
|
333
327
|
* Available statuses for updating workflows.
|
|
334
328
|
*/
|
|
335
|
-
export const UpdateWorkflowStatus = {
|
|
336
|
-
CANCELED: 'canceled',
|
|
337
|
-
};
|
|
329
|
+
export const UpdateWorkflowStatus = { CANCELED: 'canceled' };
|
|
338
330
|
export const Veo3AspectRatio = {
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
};
|
|
343
|
-
export const Veo3Version = {
|
|
344
|
-
'3_0': '3.0',
|
|
345
|
-
'3_1': '3.1',
|
|
331
|
+
'16_9': '16:9',
|
|
332
|
+
'9_16': '9:16',
|
|
333
|
+
'1_1': '1:1',
|
|
346
334
|
};
|
|
335
|
+
export const Veo3Version = { '3_0': '3.0', '3_1': '3.1' };
|
|
347
336
|
export const ViduVideoGenModel = {
|
|
348
337
|
DEFAULT: 'default',
|
|
349
338
|
Q1: 'q1',
|
|
350
339
|
Q3: 'q3',
|
|
351
340
|
};
|
|
352
|
-
export const ViduVideoGenStyle = {
|
|
353
|
-
|
|
354
|
-
|
|
341
|
+
export const ViduVideoGenStyle = { GENERAL: 'general', ANIME: 'anime' };
|
|
342
|
+
/**
|
|
343
|
+
* Options for representing the status for a resource on a worker.
|
|
344
|
+
*/
|
|
345
|
+
export const WorkerResourceAvailability = {
|
|
346
|
+
UNKNOWN: 'unknown',
|
|
347
|
+
UNSUPPORTED: 'unsupported',
|
|
348
|
+
UNAVAILABLE: 'unavailable',
|
|
349
|
+
AVAILABLE: 'available',
|
|
350
|
+
PROVIDER_UNSUPPORTED: 'providerUnsupported',
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Available values for worker type.
|
|
354
|
+
*/
|
|
355
|
+
export const WorkerType = {
|
|
356
|
+
NORMAL: 'normal',
|
|
357
|
+
DEFERRED: 'deferred',
|
|
358
|
+
TEST: 'test',
|
|
359
|
+
PAUSED: 'paused',
|
|
355
360
|
};
|
|
356
361
|
/**
|
|
357
362
|
* Values available to represent workflow status.
|
|
@@ -369,11 +374,5 @@ export const WorkflowStatus = {
|
|
|
369
374
|
/**
|
|
370
375
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
371
376
|
*/
|
|
372
|
-
export const WorkflowUpgradeMode = {
|
|
373
|
-
|
|
374
|
-
AUTOMATIC: 'automatic',
|
|
375
|
-
};
|
|
376
|
-
export const ZoeDepthEnvironment = {
|
|
377
|
-
INDOOR: 'indoor',
|
|
378
|
-
OUTDOOR: 'outdoor',
|
|
379
|
-
};
|
|
377
|
+
export const WorkflowUpgradeMode = { MANUAL: 'manual', AUTOMATIC: 'automatic' };
|
|
378
|
+
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.42",
|
|
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",
|