@civitai/orchestration-client 0.2.0-beta.107 → 0.2.0-beta.108
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.
|
@@ -12,6 +12,7 @@ export {
|
|
|
12
12
|
getWorkflow,
|
|
13
13
|
getWorkflowStep,
|
|
14
14
|
headBlob,
|
|
15
|
+
ingestConsumerBlob,
|
|
15
16
|
invalidateUserCache,
|
|
16
17
|
invalidateUserTokens,
|
|
17
18
|
invokeAceStepAudioStepTemplate,
|
|
@@ -178,6 +179,7 @@ export {
|
|
|
178
179
|
type ChatCompletionStep,
|
|
179
180
|
type ChatCompletionStepTemplate,
|
|
180
181
|
type ChatCompletionStepWritable,
|
|
182
|
+
type ChatCompletionTokensDetails,
|
|
181
183
|
type ChatCompletionTool,
|
|
182
184
|
type ChatCompletionToolCall,
|
|
183
185
|
type ChatCompletionUsage,
|
|
@@ -290,6 +292,10 @@ export {
|
|
|
290
292
|
type ComfyQwen20bImageGenInput,
|
|
291
293
|
type ComfyQwen20bVariantImageGenInput,
|
|
292
294
|
type ComfyQwen20bVariantImageGenInputWritable,
|
|
295
|
+
type ComfyQwen21CreateImageGenInput,
|
|
296
|
+
type ComfyQwen21EditImageGenInput,
|
|
297
|
+
type ComfyQwen21EditImageGenInputWritable,
|
|
298
|
+
type ComfyQwen21ImageGenInput,
|
|
293
299
|
type ComfyQwenImageGenInput,
|
|
294
300
|
ComfySampler,
|
|
295
301
|
ComfyScheduler,
|
|
@@ -571,6 +577,11 @@ export {
|
|
|
571
577
|
type ImageUpscalerOutput,
|
|
572
578
|
type ImageUpscalerStep,
|
|
573
579
|
type ImageUpscalerStepTemplate,
|
|
580
|
+
type IngestConsumerBlobData,
|
|
581
|
+
type IngestConsumerBlobError,
|
|
582
|
+
type IngestConsumerBlobErrors,
|
|
583
|
+
type IngestConsumerBlobResponse,
|
|
584
|
+
type IngestConsumerBlobResponses,
|
|
574
585
|
type InvalidateUserCacheData,
|
|
575
586
|
type InvalidateUserCacheError,
|
|
576
587
|
type InvalidateUserCacheErrors,
|
|
@@ -1276,6 +1287,8 @@ export {
|
|
|
1276
1287
|
type TryOnUInput,
|
|
1277
1288
|
type TryOnUOutput,
|
|
1278
1289
|
type UnavailableResourceAvailability,
|
|
1290
|
+
type UniRigPolyGenInput,
|
|
1291
|
+
type UniRigRigPolyGenInput,
|
|
1279
1292
|
type UnsupportedResourceAvailability,
|
|
1280
1293
|
type UpdateWorkflowData,
|
|
1281
1294
|
type UpdateWorkflowError,
|
|
@@ -1430,6 +1443,7 @@ export {
|
|
|
1430
1443
|
type WorkflowTemplate,
|
|
1431
1444
|
type WorkflowTips,
|
|
1432
1445
|
WorkflowUpgradeMode,
|
|
1446
|
+
WorkflowWaitUntil,
|
|
1433
1447
|
type WorkflowWritable,
|
|
1434
1448
|
type XGuardCustomSignalMetadata,
|
|
1435
1449
|
type XGuardCustomSignalMetadataWritable,
|
package/dist/generated/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
3
|
-
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, Metric3dBackbone, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, ResourceView, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, ServiceStatus, SettlementCurrency, ShadowRemoval, TraceMode, TrainingModerationStatus, TrainingTraceMode, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowStepWarningCode, WorkflowUpgradeMode, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen';
|
|
2
|
+
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, ingestConsumerBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeAudioCaptioningStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
3
|
+
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaContainer, MediaFit, MediaHashType, MediaOutputType, Metric3dBackbone, MiniMaxVideoGenModel, ModelClamScanStatus, ModelPickleScanStatus, NsfwLevel, OutputFormat, Priority, ResourceFeeType, ResourceView, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, ServiceStatus, SettlementCurrency, ShadowRemoval, TraceMode, TrainingModerationStatus, TrainingTraceMode, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowStepWarningCode, WorkflowUpgradeMode, WorkflowWaitUntil, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen';
|
|
@@ -37,6 +37,9 @@ import type {
|
|
|
37
37
|
HeadBlobData,
|
|
38
38
|
HeadBlobErrors,
|
|
39
39
|
HeadBlobResponses,
|
|
40
|
+
IngestConsumerBlobData,
|
|
41
|
+
IngestConsumerBlobErrors,
|
|
42
|
+
IngestConsumerBlobResponses,
|
|
40
43
|
InvalidateUserCacheData,
|
|
41
44
|
InvalidateUserCacheErrors,
|
|
42
45
|
InvalidateUserCacheResponses,
|
|
@@ -297,6 +300,18 @@ export declare const uploadConsumerBlob: <ThrowOnError extends boolean = false>(
|
|
|
297
300
|
ThrowOnError,
|
|
298
301
|
'fields'
|
|
299
302
|
>;
|
|
303
|
+
/**
|
|
304
|
+
* Copy a trusted url into a blob named after that source, so the caller can ask for it again
|
|
305
|
+
* without holding the bytes. 200 when it already existed, 201 when copied.
|
|
306
|
+
*/
|
|
307
|
+
export declare const ingestConsumerBlob: <ThrowOnError extends boolean = false>(
|
|
308
|
+
options?: Options<IngestConsumerBlobData, ThrowOnError>
|
|
309
|
+
) => import('./client').RequestResult<
|
|
310
|
+
IngestConsumerBlobResponses,
|
|
311
|
+
IngestConsumerBlobErrors,
|
|
312
|
+
ThrowOnError,
|
|
313
|
+
'fields'
|
|
314
|
+
>;
|
|
300
315
|
/**
|
|
301
316
|
* Serves cacheable blob content using a deterministic encrypted token
|
|
302
317
|
*/
|
|
@@ -1037,6 +1052,10 @@ export declare const invokeYuE2StepTemplate: <ThrowOnError extends boolean = fal
|
|
|
1037
1052
|
ThrowOnError,
|
|
1038
1053
|
'fields'
|
|
1039
1054
|
>;
|
|
1055
|
+
/**
|
|
1056
|
+
* List resources: `view=Queue` is what the orchestrator is loading now, `view=Loaded`
|
|
1057
|
+
* what at least one worker holds and can use now. Each page is a fresh snapshot.
|
|
1058
|
+
*/
|
|
1040
1059
|
export declare const queryResources: <ThrowOnError extends boolean = false>(
|
|
1041
1060
|
options: Options<QueryResourcesData, ThrowOnError>
|
|
1042
1061
|
) => import('./client').RequestResult<
|
|
@@ -36,6 +36,14 @@ export const uploadConsumerBlob = (options) => {
|
|
|
36
36
|
var _a;
|
|
37
37
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({ url: '/v2/consumer/blobs', ...options });
|
|
38
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Copy a trusted url into a blob named after that source, so the caller can ask for it again
|
|
41
|
+
* without holding the bytes. 200 when it already existed, 201 when copied.
|
|
42
|
+
*/
|
|
43
|
+
export const ingestConsumerBlob = (options) => {
|
|
44
|
+
var _a;
|
|
45
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({ url: '/v2/consumer/blobs/ingest', ...options });
|
|
46
|
+
};
|
|
39
47
|
/**
|
|
40
48
|
* Serves cacheable blob content using a deterministic encrypted token
|
|
41
49
|
*/
|
|
@@ -922,6 +930,10 @@ export const invokeYuE2StepTemplate = (options) => {
|
|
|
922
930
|
},
|
|
923
931
|
});
|
|
924
932
|
};
|
|
933
|
+
/**
|
|
934
|
+
* List resources: `view=Queue` is what the orchestrator is loading now, `view=Loaded`
|
|
935
|
+
* what at least one worker holds and can use now. Each page is a fresh snapshot.
|
|
936
|
+
*/
|
|
925
937
|
export const queryResources = (options) => {
|
|
926
938
|
var _a;
|
|
927
939
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
@@ -1149,6 +1149,11 @@ export type ChatCompletionInput = {
|
|
|
1149
1149
|
* MaxTokens still limits the total generated thinking and answer tokens.
|
|
1150
1150
|
*/
|
|
1151
1151
|
thinkingTokenBudget?: null | number;
|
|
1152
|
+
/**
|
|
1153
|
+
* OpenAI reasoning_effort: none, minimal, low, medium, high or xhigh. Portable across vLLM
|
|
1154
|
+
* and hosted providers; the worker translates it to each provider's native reasoning control.
|
|
1155
|
+
*/
|
|
1156
|
+
reasoningEffort?: null | string;
|
|
1152
1157
|
/**
|
|
1153
1158
|
* Number of completions to generate.
|
|
1154
1159
|
*/
|
|
@@ -1184,8 +1189,7 @@ export type ChatCompletionInput = {
|
|
|
1184
1189
|
topLogprobs?: null | number;
|
|
1185
1190
|
/**
|
|
1186
1191
|
* Model-specific chat template options, forwarded unchanged to vLLM as chat_template_kwargs.
|
|
1187
|
-
*
|
|
1188
|
-
* Reasoning effort is guidance, not a token limit; use ThinkingTokenBudget for a numeric cap.
|
|
1192
|
+
* Prefer reasoningEffort and thinkingTokenBudget for reasoning control.
|
|
1189
1193
|
*/
|
|
1190
1194
|
chatTemplateKwargs?: null | {
|
|
1191
1195
|
[key: string]: unknown;
|
|
@@ -1290,6 +1294,12 @@ export type ChatCompletionStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
|
1290
1294
|
input: ChatCompletionInput;
|
|
1291
1295
|
$type: 'chatCompletion';
|
|
1292
1296
|
};
|
|
1297
|
+
export type ChatCompletionTokensDetails = {
|
|
1298
|
+
/**
|
|
1299
|
+
* Reasoning tokens generated before the answer; billed as completion tokens.
|
|
1300
|
+
*/
|
|
1301
|
+
reasoningTokens?: null | number;
|
|
1302
|
+
};
|
|
1293
1303
|
/**
|
|
1294
1304
|
* A tool definition sent in a chat completion request.
|
|
1295
1305
|
*/
|
|
@@ -1325,6 +1335,7 @@ export type ChatCompletionUsage = {
|
|
|
1325
1335
|
* Total number of tokens (prompt + completion).
|
|
1326
1336
|
*/
|
|
1327
1337
|
totalTokens: number;
|
|
1338
|
+
completionTokensDetails?: ChatCompletionTokensDetails;
|
|
1328
1339
|
};
|
|
1329
1340
|
/**
|
|
1330
1341
|
* AI Toolkit training for Chroma models
|
|
@@ -2784,6 +2795,54 @@ export type ComfyQwen20bVariantImageGenInput = Omit<
|
|
|
2784
2795
|
ecosystem: 'qwen';
|
|
2785
2796
|
engine: 'comfy';
|
|
2786
2797
|
};
|
|
2798
|
+
export type ComfyQwen21CreateImageGenInput = Omit<
|
|
2799
|
+
ComfyQwen21ImageGenInput,
|
|
2800
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
2801
|
+
> & {
|
|
2802
|
+
width?: number;
|
|
2803
|
+
height?: number;
|
|
2804
|
+
operation: 'createImage';
|
|
2805
|
+
model: '2.1';
|
|
2806
|
+
ecosystem: 'qwen';
|
|
2807
|
+
engine: 'comfy';
|
|
2808
|
+
};
|
|
2809
|
+
export type ComfyQwen21EditImageGenInput = Omit<
|
|
2810
|
+
ComfyQwen21ImageGenInput,
|
|
2811
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
2812
|
+
> & {
|
|
2813
|
+
images: Array<string>;
|
|
2814
|
+
/**
|
|
2815
|
+
* Reference pixel budget as resolution squared; preserves each image's aspect ratio.
|
|
2816
|
+
*/
|
|
2817
|
+
resolution?: number;
|
|
2818
|
+
readonly width: number;
|
|
2819
|
+
readonly height: number;
|
|
2820
|
+
operation: 'editImage';
|
|
2821
|
+
model: '2.1';
|
|
2822
|
+
ecosystem: 'qwen';
|
|
2823
|
+
engine: 'comfy';
|
|
2824
|
+
};
|
|
2825
|
+
export type ComfyQwen21ImageGenInput = Omit<
|
|
2826
|
+
ComfyQwenImageGenInput,
|
|
2827
|
+
'engine' | 'ecosystem' | 'model'
|
|
2828
|
+
> & {
|
|
2829
|
+
operation: string;
|
|
2830
|
+
prompt: string;
|
|
2831
|
+
negativePrompt?: null | string;
|
|
2832
|
+
sampler?: ComfySampler;
|
|
2833
|
+
scheduler?: ComfyScheduler;
|
|
2834
|
+
steps?: number;
|
|
2835
|
+
cfgScale?: number;
|
|
2836
|
+
seed?: null | number;
|
|
2837
|
+
quantity?: number;
|
|
2838
|
+
loras?: {
|
|
2839
|
+
[key: string]: number;
|
|
2840
|
+
};
|
|
2841
|
+
diffusionModel?: null | string;
|
|
2842
|
+
model: '2.1';
|
|
2843
|
+
ecosystem: 'qwen';
|
|
2844
|
+
engine: 'comfy';
|
|
2845
|
+
};
|
|
2787
2846
|
export type ComfyQwenImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
2788
2847
|
model: null | string;
|
|
2789
2848
|
ecosystem: 'qwen';
|
|
@@ -2858,6 +2917,7 @@ export type ComfySd1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosyst
|
|
|
2858
2917
|
loras?: {
|
|
2859
2918
|
[key: string]: number;
|
|
2860
2919
|
};
|
|
2920
|
+
embeddings?: Array<string>;
|
|
2861
2921
|
clipSkip?: number;
|
|
2862
2922
|
controlNets?: Array<ImageJobControlNet>;
|
|
2863
2923
|
ecosystem: 'sd1';
|
|
@@ -2903,6 +2963,8 @@ export type ComfySdxlImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosys
|
|
|
2903
2963
|
loras?: {
|
|
2904
2964
|
[key: string]: number;
|
|
2905
2965
|
};
|
|
2966
|
+
embeddings?: Array<string>;
|
|
2967
|
+
clipSkip?: number;
|
|
2906
2968
|
controlNets?: Array<ImageJobControlNet>;
|
|
2907
2969
|
ecosystem: 'sdxl';
|
|
2908
2970
|
engine: 'comfy';
|
|
@@ -8100,6 +8162,7 @@ export type ResourceInfo = {
|
|
|
8100
8162
|
*/
|
|
8101
8163
|
export declare const ResourceView: {
|
|
8102
8164
|
readonly QUEUE: 'queue';
|
|
8165
|
+
readonly LOADED: 'loaded';
|
|
8103
8166
|
};
|
|
8104
8167
|
/**
|
|
8105
8168
|
* A projection of the resource collection. There is no view that lists every known resource — resources
|
|
@@ -8354,6 +8417,7 @@ export type SdxlImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'>
|
|
|
8354
8417
|
[key: string]: number;
|
|
8355
8418
|
};
|
|
8356
8419
|
embeddings?: Array<string>;
|
|
8420
|
+
clipSkip?: number;
|
|
8357
8421
|
uCache?: SdCppUCacheMode;
|
|
8358
8422
|
ecosystem: 'sdxl';
|
|
8359
8423
|
engine: 'sdcpp';
|
|
@@ -8980,6 +9044,10 @@ export type TranscodeInput = {
|
|
|
8980
9044
|
* it, so a block decided after the fact cannot take it back.
|
|
8981
9045
|
*/
|
|
8982
9046
|
public?: null | boolean;
|
|
9047
|
+
/**
|
|
9048
|
+
* Removes the source's container tags and chapters; the video and audio streams are untouched.
|
|
9049
|
+
*/
|
|
9050
|
+
hideMetadata?: null | boolean;
|
|
8983
9051
|
};
|
|
8984
9052
|
export type TranscodeOutput = {
|
|
8985
9053
|
/**
|
|
@@ -9166,6 +9234,18 @@ export type TryOnUOutput = {
|
|
|
9166
9234
|
export type UnavailableResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
9167
9235
|
status: 'unavailable';
|
|
9168
9236
|
};
|
|
9237
|
+
export type UniRigPolyGenInput = Omit<PolyGenInput, 'engine'> & {
|
|
9238
|
+
operation: null | string;
|
|
9239
|
+
seed?: null | number;
|
|
9240
|
+
engine: 'unirig';
|
|
9241
|
+
};
|
|
9242
|
+
export type UniRigRigPolyGenInput = Omit<UniRigPolyGenInput, 'engine' | 'operation'> & {
|
|
9243
|
+
mesh: string;
|
|
9244
|
+
heightMeters?: null | number;
|
|
9245
|
+
skeleton?: 'mixamo' | 'generic';
|
|
9246
|
+
operation: 'rig';
|
|
9247
|
+
engine: 'unirig';
|
|
9248
|
+
};
|
|
9169
9249
|
export type UnsupportedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
|
|
9170
9250
|
status: 'unsupported';
|
|
9171
9251
|
};
|
|
@@ -9613,19 +9693,21 @@ export type VolumeTransformer = Omit<MediaTransformer, 'type'> & {
|
|
|
9613
9693
|
*/
|
|
9614
9694
|
export type WdTaggingInput = {
|
|
9615
9695
|
/**
|
|
9616
|
-
* The model to use for tagging.
|
|
9696
|
+
* The model to use for tagging. Tagging always runs with "cl-tagger.v2"; any other model, including the
|
|
9697
|
+
* default "wd14-vit.v1", is deprecated and produces a warning.
|
|
9617
9698
|
*/
|
|
9618
9699
|
model?: null | string;
|
|
9619
9700
|
/**
|
|
9620
|
-
* The URL of the
|
|
9701
|
+
* The URL of the image to tag.
|
|
9621
9702
|
*/
|
|
9622
9703
|
mediaUrl: string;
|
|
9623
9704
|
/**
|
|
9624
9705
|
* Optional threshold for tag confidence filtering. Tags below this threshold will be excluded.
|
|
9706
|
+
* The tagger never returns tags scoring below its own minimum, so lower values have no effect.
|
|
9625
9707
|
*/
|
|
9626
9708
|
threshold?: null | number;
|
|
9627
9709
|
/**
|
|
9628
|
-
*
|
|
9710
|
+
* Ignored; kept for compatibility.
|
|
9629
9711
|
*/
|
|
9630
9712
|
prompt?: null | string;
|
|
9631
9713
|
};
|
|
@@ -10895,6 +10977,17 @@ export declare const WorkflowUpgradeMode: {
|
|
|
10895
10977
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
10896
10978
|
*/
|
|
10897
10979
|
export type WorkflowUpgradeMode = (typeof WorkflowUpgradeMode)[keyof typeof WorkflowUpgradeMode];
|
|
10980
|
+
/**
|
|
10981
|
+
* What a held read of a workflow waits for before it returns.
|
|
10982
|
+
*/
|
|
10983
|
+
export declare const WorkflowWaitUntil: {
|
|
10984
|
+
readonly COMPLETION: 'completion';
|
|
10985
|
+
readonly CHANGE: 'change';
|
|
10986
|
+
};
|
|
10987
|
+
/**
|
|
10988
|
+
* What a held read of a workflow waits for before it returns.
|
|
10989
|
+
*/
|
|
10990
|
+
export type WorkflowWaitUntil = (typeof WorkflowWaitUntil)[keyof typeof WorkflowWaitUntil];
|
|
10898
10991
|
export type XGuardCustomSignalMetadata = {
|
|
10899
10992
|
name: string;
|
|
10900
10993
|
positiveSignals: {
|
|
@@ -10956,12 +11049,14 @@ export type XGuardModerationInput = {
|
|
|
10956
11049
|
* the trimmed version. Intended for one-off debugging of classification decisions
|
|
10957
11050
|
* where the full logprobs distribution or generated token stream needs inspection.
|
|
10958
11051
|
* Leaves blobs at ~200KB instead of ~2-3KB — do not enable in normal traffic.
|
|
11052
|
+
* Civitai prompt Scan always emits one token, including with debugging enabled.
|
|
10959
11053
|
* This is NOT the reasoning switch — use IncludeReasoning for ModelReason. On its own it
|
|
10960
11054
|
* merely raises the token budget from 1 to 128 (XGuardScoring.MaxTokensFor), which lets
|
|
10961
11055
|
* ~600 chars of explanation slip out before a finishReason=length cutoff.
|
|
10962
11056
|
*/
|
|
10963
11057
|
storeFullResponse: boolean;
|
|
10964
11058
|
/**
|
|
11059
|
+
* For site-text moderation only; Civitai prompt Scan always emits one token.
|
|
10965
11060
|
* When true, the model generates an explanation after its verdict token, populating
|
|
10966
11061
|
* XGuardLabelResult.ModelReason and MatchedTerms. Uses a larger token budget (256 —
|
|
10967
11062
|
* long explanations can still end at finishReason=length) and a distinct blob-cache
|
|
@@ -11003,7 +11098,7 @@ export type XGuardPromptModerationInput = Omit<XGuardModerationInput, 'mode'> &
|
|
|
11003
11098
|
*/
|
|
11004
11099
|
negativePrompt?: null | string;
|
|
11005
11100
|
/**
|
|
11006
|
-
* Additional instructions
|
|
11101
|
+
* Additional instructions are unsupported by the fixed Civitai Scan contract.
|
|
11007
11102
|
*/
|
|
11008
11103
|
instructions?: null | string;
|
|
11009
11104
|
scope: XGuardPromptScope;
|
|
@@ -11568,6 +11663,20 @@ export type ComfyQwen20bVariantImageGenInputWritable = Omit<
|
|
|
11568
11663
|
ecosystem: 'qwen';
|
|
11569
11664
|
engine: 'comfy';
|
|
11570
11665
|
};
|
|
11666
|
+
export type ComfyQwen21EditImageGenInputWritable = Omit<
|
|
11667
|
+
ComfyQwen21ImageGenInput,
|
|
11668
|
+
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
11669
|
+
> & {
|
|
11670
|
+
images: Array<string>;
|
|
11671
|
+
/**
|
|
11672
|
+
* Reference pixel budget as resolution squared; preserves each image's aspect ratio.
|
|
11673
|
+
*/
|
|
11674
|
+
resolution?: number;
|
|
11675
|
+
operation: 'ComfyQwen21EditImageGenInputWritable';
|
|
11676
|
+
model: '2.1';
|
|
11677
|
+
ecosystem: 'qwen';
|
|
11678
|
+
engine: 'comfy';
|
|
11679
|
+
};
|
|
11571
11680
|
/**
|
|
11572
11681
|
* Input for model-family-driven Comfy-backed LoRA training.
|
|
11573
11682
|
*/
|
|
@@ -13056,6 +13165,60 @@ export type UploadConsumerBlobResponses = {
|
|
|
13056
13165
|
};
|
|
13057
13166
|
export type UploadConsumerBlobResponse =
|
|
13058
13167
|
UploadConsumerBlobResponses[keyof UploadConsumerBlobResponses];
|
|
13168
|
+
export type IngestConsumerBlobData = {
|
|
13169
|
+
body?: never;
|
|
13170
|
+
path?: never;
|
|
13171
|
+
query?: {
|
|
13172
|
+
/**
|
|
13173
|
+
* Object to copy; must resolve to a configured trusted source.
|
|
13174
|
+
*/
|
|
13175
|
+
sourceUrl?: string;
|
|
13176
|
+
/**
|
|
13177
|
+
* Store in the public tier and return a durable, unsigned URL.
|
|
13178
|
+
*/
|
|
13179
|
+
public?: boolean;
|
|
13180
|
+
};
|
|
13181
|
+
url: '/v2/consumer/blobs/ingest';
|
|
13182
|
+
};
|
|
13183
|
+
export type IngestConsumerBlobErrors = {
|
|
13184
|
+
/**
|
|
13185
|
+
* Bad Request
|
|
13186
|
+
*/
|
|
13187
|
+
400: ProblemDetails;
|
|
13188
|
+
/**
|
|
13189
|
+
* Unauthorized
|
|
13190
|
+
*/
|
|
13191
|
+
401: ProblemDetails;
|
|
13192
|
+
/**
|
|
13193
|
+
* Forbidden
|
|
13194
|
+
*/
|
|
13195
|
+
403: ProblemDetails;
|
|
13196
|
+
/**
|
|
13197
|
+
* Not Found
|
|
13198
|
+
*/
|
|
13199
|
+
404: ProblemDetails;
|
|
13200
|
+
/**
|
|
13201
|
+
* Unprocessable Content
|
|
13202
|
+
*/
|
|
13203
|
+
422: ProblemDetails;
|
|
13204
|
+
/**
|
|
13205
|
+
* Bad Gateway
|
|
13206
|
+
*/
|
|
13207
|
+
502: unknown;
|
|
13208
|
+
};
|
|
13209
|
+
export type IngestConsumerBlobError = IngestConsumerBlobErrors[keyof IngestConsumerBlobErrors];
|
|
13210
|
+
export type IngestConsumerBlobResponses = {
|
|
13211
|
+
/**
|
|
13212
|
+
* OK
|
|
13213
|
+
*/
|
|
13214
|
+
200: Blob;
|
|
13215
|
+
/**
|
|
13216
|
+
* Created
|
|
13217
|
+
*/
|
|
13218
|
+
201: Blob;
|
|
13219
|
+
};
|
|
13220
|
+
export type IngestConsumerBlobResponse =
|
|
13221
|
+
IngestConsumerBlobResponses[keyof IngestConsumerBlobResponses];
|
|
13059
13222
|
export type GetBlobContentData = {
|
|
13060
13223
|
body?: never;
|
|
13061
13224
|
path: {
|
|
@@ -14942,6 +15105,31 @@ export type QueryResourcesData = {
|
|
|
14942
15105
|
view: ResourceView;
|
|
14943
15106
|
cursor?: string;
|
|
14944
15107
|
take?: number;
|
|
15108
|
+
/**
|
|
15109
|
+
* Repeatable, OR'd. Matches the AIR's type segment literally, with no alias expansion: that
|
|
15110
|
+
* segment names the model's type rather than the file's, so `checkpoint` does not cover
|
|
15111
|
+
* base weights arriving as `diffusion_model`, `diffusionmodel` or `unet`.
|
|
15112
|
+
*/
|
|
15113
|
+
type?: Array<string>;
|
|
15114
|
+
/**
|
|
15115
|
+
* Repeatable, OR'd, and wins over `type`. `other`, `torchcompilecache` and
|
|
15116
|
+
* `nodepacklayer` are the generated artifacts rather than models.
|
|
15117
|
+
*/
|
|
15118
|
+
excludeType?: Array<string>;
|
|
15119
|
+
/**
|
|
15120
|
+
* Repeatable, OR'd, matched against the AIR's source segment. `civitai` is the cheapest
|
|
15121
|
+
* way to drop everything the orchestrator generated itself.
|
|
15122
|
+
*/
|
|
15123
|
+
source?: Array<string>;
|
|
15124
|
+
/**
|
|
15125
|
+
* Inclusive. 1073741824 (1 GiB) is where a resource starts taking the large download lane. A
|
|
15126
|
+
* resource whose provider never reported a byte count has size 0 and is excluded by any value.
|
|
15127
|
+
*/
|
|
15128
|
+
minSizeBytes?: number;
|
|
15129
|
+
/**
|
|
15130
|
+
* Inclusive.
|
|
15131
|
+
*/
|
|
15132
|
+
maxSizeBytes?: number;
|
|
14945
15133
|
};
|
|
14946
15134
|
url: '/v2/resources';
|
|
14947
15135
|
};
|
|
@@ -14950,6 +15138,10 @@ export type QueryResourcesErrors = {
|
|
|
14950
15138
|
* Bad Request
|
|
14951
15139
|
*/
|
|
14952
15140
|
400: ProblemDetails;
|
|
15141
|
+
/**
|
|
15142
|
+
* Service Unavailable
|
|
15143
|
+
*/
|
|
15144
|
+
503: unknown;
|
|
14953
15145
|
};
|
|
14954
15146
|
export type QueryResourcesError = QueryResourcesErrors[keyof QueryResourcesErrors];
|
|
14955
15147
|
export type QueryResourcesResponses = {
|
|
@@ -15262,6 +15454,11 @@ export type GetWorkflowData = {
|
|
|
15262
15454
|
* In which case the client should use the token to query the status of the workflow.
|
|
15263
15455
|
*/
|
|
15264
15456
|
wait?: number;
|
|
15457
|
+
/**
|
|
15458
|
+
* What wait waits for: `completion` (the default) returns once the workflow reaches a
|
|
15459
|
+
* final status, `change` as soon as its status or any of its steps changes.
|
|
15460
|
+
*/
|
|
15461
|
+
until?: WorkflowWaitUntil;
|
|
15265
15462
|
/**
|
|
15266
15463
|
* When set to true, any blob that has mature won't be available and won't have a URL
|
|
15267
15464
|
*/
|
|
@@ -318,7 +318,7 @@ export const ResourceFeeType = { PER_IMAGE_BUZZ: 'perImageBuzz' };
|
|
|
318
318
|
* A projection of the resource collection. There is no view that lists every known resource — resources
|
|
319
319
|
* are addressed by AIR and only materialise once something asks for them.
|
|
320
320
|
*/
|
|
321
|
-
export const ResourceView = { QUEUE: 'queue' };
|
|
321
|
+
export const ResourceView = { QUEUE: 'queue', LOADED: 'loaded' };
|
|
322
322
|
export const SafeMode = { ENABLE: 'enable', DISABLE: 'disable' };
|
|
323
323
|
/**
|
|
324
324
|
* The available options for schedulers used in image generation.
|
|
@@ -479,6 +479,10 @@ export const WorkflowStepWarningCode = { MODEL_DEPRECATED: 'modelDeprecated' };
|
|
|
479
479
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
480
480
|
*/
|
|
481
481
|
export const WorkflowUpgradeMode = { MANUAL: 'manual', AUTOMATIC: 'automatic' };
|
|
482
|
+
/**
|
|
483
|
+
* What a held read of a workflow waits for before it returns.
|
|
484
|
+
*/
|
|
485
|
+
export const WorkflowWaitUntil = { COMPLETION: 'completion', CHANGE: 'change' };
|
|
482
486
|
/**
|
|
483
487
|
* Which generation-prompt field(s) the model is asked to evaluate in Prompt mode.
|
|
484
488
|
*/
|
package/package.json
CHANGED