@civitai/client 0.2.0-beta.52 → 0.2.0-beta.53

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.
@@ -29,6 +29,7 @@ export {
29
29
  invokeMediaRatingStepTemplate,
30
30
  invokeModelClamScanStepTemplate,
31
31
  invokeModelHashStepTemplate,
32
+ invokeModelParseMetadataStepTemplate,
32
33
  invokeModelPickleScanStepTemplate,
33
34
  invokePreprocessImageStepTemplate,
34
35
  invokePromptEnhancementStepTemplate,
@@ -65,7 +66,6 @@ export {
65
66
  type AceStepAudioOutput,
66
67
  type AceStepAudioStep,
67
68
  type AceStepAudioStepTemplate,
68
- type AceStepAudioStepWritable,
69
69
  type AddWorkflowTagData,
70
70
  type AddWorkflowTagError,
71
71
  type AddWorkflowTagErrors,
@@ -76,7 +76,6 @@ export {
76
76
  type AgeClassificationResult,
77
77
  type AgeClassificationStep,
78
78
  type AgeClassificationStepTemplate,
79
- type AgeClassificationStepWritable,
80
79
  type AgeClassifierLabel,
81
80
  type AgeDetection,
82
81
  type AiRecognitionResult,
@@ -110,13 +109,17 @@ export {
110
109
  type ChatCompletionOutput,
111
110
  type ChatCompletionStep,
112
111
  type ChatCompletionStepTemplate,
113
- type ChatCompletionStepWritable,
114
112
  type ChatCompletionTool,
115
113
  type ChatCompletionToolCall,
116
114
  type ChatCompletionUsage,
117
115
  type ChromaAiToolkitTrainingInput,
118
116
  type ClientOptions,
119
117
  CoarseMode,
118
+ type ComfyErnieImageGenInput,
119
+ type ComfyErnieStandardCreateImageGenInput,
120
+ type ComfyErnieStandardImageGenInput,
121
+ type ComfyErnieTurboCreateImageGenInput,
122
+ type ComfyErnieTurboImageGenInput,
120
123
  type ComfyFlux1CreateImageGenInput,
121
124
  type ComfyFlux1ImageGenInput,
122
125
  type ComfyFlux1VariantImageGenInput,
@@ -146,14 +149,12 @@ export {
146
149
  type ComfySdxlVariantImageGenInput,
147
150
  type ComfyStep,
148
151
  type ComfyStepTemplate,
149
- type ComfyStepWritable,
150
152
  type ConsumerBlobPresignResponse,
151
153
  ContainerFormat,
152
154
  type ConvertImageInput,
153
155
  type ConvertImageOutput,
154
156
  type ConvertImageStep,
155
157
  type ConvertImageStepTemplate,
156
- type ConvertImageStepWritable,
157
158
  type CursedArrayOfTelemetryCursorAndWorkflow,
158
159
  type CursedArrayOfTelemetryCursorAndWorkflowWritable,
159
160
  type CustomTextToSpeechInput,
@@ -172,8 +173,8 @@ export {
172
173
  type EchoOutput,
173
174
  type EchoStep,
174
175
  type EchoStepTemplate,
175
- type EchoStepWritable,
176
176
  type EpochResult,
177
+ type ErnieAiToolkitTrainingInput,
177
178
  type FaceDetection,
178
179
  type FaceDetectionInfo,
179
180
  type FaceRecognitionResult,
@@ -293,7 +294,6 @@ export {
293
294
  ImageGenOutputFormat,
294
295
  type ImageGenStep,
295
296
  type ImageGenStepTemplate,
296
- type ImageGenStepWritable,
297
297
  type ImageJobControlNet,
298
298
  type ImageJobNetworkParams,
299
299
  type Imagen4ImageGenInput,
@@ -304,18 +304,15 @@ export {
304
304
  type ImageResourceTrainingOutput,
305
305
  type ImageResourceTrainingStep,
306
306
  type ImageResourceTrainingStepTemplate,
307
- type ImageResourceTrainingStepWritable,
308
307
  type ImageTransform,
309
308
  ImageTransformer,
310
309
  type ImageUploadOutput,
311
310
  type ImageUploadStep,
312
311
  type ImageUploadStepTemplate,
313
- type ImageUploadStepWritable,
314
312
  type ImageUpscalerInput,
315
313
  type ImageUpscalerOutput,
316
314
  type ImageUpscalerStep,
317
315
  type ImageUpscalerStepTemplate,
318
- type ImageUpscalerStepWritable,
319
316
  type InvalidateResourceData,
320
317
  type InvalidateResourceError,
321
318
  type InvalidateResourceErrors,
@@ -411,6 +408,11 @@ export {
411
408
  type InvokeModelHashStepTemplateErrors,
412
409
  type InvokeModelHashStepTemplateResponse,
413
410
  type InvokeModelHashStepTemplateResponses,
411
+ type InvokeModelParseMetadataStepTemplateData,
412
+ type InvokeModelParseMetadataStepTemplateError,
413
+ type InvokeModelParseMetadataStepTemplateErrors,
414
+ type InvokeModelParseMetadataStepTemplateResponse,
415
+ type InvokeModelParseMetadataStepTemplateResponses,
414
416
  type InvokeModelPickleScanStepTemplateData,
415
417
  type InvokeModelPickleScanStepTemplateError,
416
418
  type InvokeModelPickleScanStepTemplateErrors,
@@ -527,18 +529,15 @@ export {
527
529
  type MediaCaptioningOutput,
528
530
  type MediaCaptioningStep,
529
531
  type MediaCaptioningStepTemplate,
530
- type MediaCaptioningStepWritable,
531
532
  type MediaHashInput,
532
533
  type MediaHashOutput,
533
534
  type MediaHashStep,
534
535
  type MediaHashStepTemplate,
535
- type MediaHashStepWritable,
536
536
  MediaHashType,
537
537
  type MediaRatingInput,
538
538
  type MediaRatingOutput,
539
539
  type MediaRatingStep,
540
540
  type MediaRatingStepTemplate,
541
- type MediaRatingStepWritable,
542
541
  Metric3dBackbone,
543
542
  type MiniMaxVideoGenInput,
544
543
  MiniMaxVideoGenModel,
@@ -547,17 +546,18 @@ export {
547
546
  type ModelClamScanOutput,
548
547
  type ModelClamScanStep,
549
548
  type ModelClamScanStepTemplate,
550
- type ModelClamScanStepWritable,
551
549
  type ModelHashInput,
552
550
  type ModelHashOutput,
553
551
  type ModelHashStep,
554
552
  type ModelHashStepTemplate,
555
- type ModelHashStepWritable,
553
+ type ModelParseMetadataInput,
554
+ type ModelParseMetadataOutput,
555
+ type ModelParseMetadataStep,
556
+ type ModelParseMetadataStepTemplate,
556
557
  type ModelPickleScanInput,
557
558
  type ModelPickleScanOutput,
558
559
  type ModelPickleScanStep,
559
560
  type ModelPickleScanStepTemplate,
560
- type ModelPickleScanStepWritable,
561
561
  type MusubiImageResourceTrainingInput,
562
562
  type MusubiImageResourceTrainingInputWritable,
563
563
  type NanoBanana2ImageGenInput,
@@ -675,7 +675,6 @@ export {
675
675
  type PromptEnhancementOutput,
676
676
  type PromptEnhancementStep,
677
677
  type PromptEnhancementStepTemplate,
678
- type PromptEnhancementStepWritable,
679
678
  type PromptIssue,
680
679
  type QueryWorkflowsData,
681
680
  type QueryWorkflowsError,
@@ -716,7 +715,6 @@ export {
716
715
  type RepeatForClause,
717
716
  type RepeatInput,
718
717
  type RepeatOutput,
719
- type RepeatOutputWritable,
720
718
  type ResizeTransform,
721
719
  type ResourceInfo,
722
720
  SafeMode,
@@ -733,6 +731,8 @@ export {
733
731
  type SdxlCreateImageGenInput,
734
732
  type SdxlImageGenInput,
735
733
  type SdxlVariantImageGenInput,
734
+ SeedanceModel,
735
+ type SeedanceVideoGenInput,
736
736
  type SeedreamImageGenInput,
737
737
  SeedreamVersion,
738
738
  type Sora2ImageToVideoInput,
@@ -748,12 +748,10 @@ export {
748
748
  type TextToImageOutput,
749
749
  type TextToImageStep,
750
750
  type TextToImageStepTemplate,
751
- type TextToImageStepWritable,
752
751
  type TextToSpeechInput,
753
752
  type TextToSpeechOutput,
754
753
  type TextToSpeechStep,
755
754
  type TextToSpeechStepTemplate,
756
- type TextToSpeechStepWritable,
757
755
  type ToolMessage,
758
756
  type TrainingData,
759
757
  type TrainingInput,
@@ -763,7 +761,6 @@ export {
763
761
  type TrainingOutputEpochResult,
764
762
  type TrainingStep,
765
763
  type TrainingStepTemplate,
766
- type TrainingStepWritable,
767
764
  type TransactionInfo,
768
765
  type TransactionSummary,
769
766
  TransactionType,
@@ -771,12 +768,10 @@ export {
771
768
  type TranscodeOutput,
772
769
  type TranscodeStep,
773
770
  type TranscodeStepTemplate,
774
- type TranscodeStepWritable,
775
771
  type TranscriptionInput,
776
772
  type TranscriptionOutput,
777
773
  type TranscriptionStep,
778
774
  type TranscriptionStepTemplate,
779
- type TranscriptionStepWritable,
780
775
  type TranscriptionTimeStamp,
781
776
  type TryOnUInput,
782
777
  type TryOnUOutput,
@@ -814,33 +809,27 @@ export {
814
809
  type VideoEnhancementOutput,
815
810
  type VideoEnhancementStep,
816
811
  type VideoEnhancementStepTemplate,
817
- type VideoEnhancementStepWritable,
818
812
  type VideoFrameExtractionInput,
819
813
  type VideoFrameExtractionOutput,
820
814
  type VideoFrameExtractionStep,
821
815
  type VideoFrameExtractionStepTemplate,
822
- type VideoFrameExtractionStepWritable,
823
816
  type VideoGenInput,
824
817
  type VideoGenInputLora,
825
818
  type VideoGenOutput,
826
819
  type VideoGenStep,
827
820
  type VideoGenStepTemplate,
828
- type VideoGenStepWritable,
829
821
  type VideoInterpolationInput,
830
822
  type VideoInterpolationOutput,
831
823
  type VideoInterpolationStep,
832
824
  type VideoInterpolationStepTemplate,
833
- type VideoInterpolationStepWritable,
834
825
  type VideoMetadataInput,
835
826
  type VideoMetadataOutput,
836
827
  type VideoMetadataStep,
837
828
  type VideoMetadataStepTemplate,
838
- type VideoMetadataStepWritable,
839
829
  type VideoUpscalerInput,
840
830
  type VideoUpscalerOutput,
841
831
  type VideoUpscalerStep,
842
832
  type VideoUpscalerStepTemplate,
843
- type VideoUpscalerStepWritable,
844
833
  type ViduQ3VideoGenInput,
845
834
  type ViduVideoGenInput,
846
835
  ViduVideoGenModel,
@@ -891,7 +880,6 @@ export {
891
880
  type WdTaggingOutput,
892
881
  type WdTaggingStep,
893
882
  type WdTaggingStepTemplate,
894
- type WdTaggingStepWritable,
895
883
  type WebpOutputFormat,
896
884
  type Workflow,
897
885
  type WorkflowCallback,
@@ -914,7 +902,6 @@ export {
914
902
  type WorkflowStepTemplate,
915
903
  type WorkflowStepTemplateWritable,
916
904
  type WorkflowStepWritable,
917
- type WorkflowStepWritable2,
918
905
  type WorkflowTemplate,
919
906
  type WorkflowTips,
920
907
  WorkflowUpgradeMode,
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { addWorkflowTag, deleteWorkflow, getBlob, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateResource, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeConvertImageStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelPickleScanStepTemplate, invokePreprocessImageStepTemplate, invokePromptEnhancementStepTemplate, invokeRepeatStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeXGuardModerationStepTemplate, patchWorkflow, patchWorkflowStep, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
3
- export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaHashType, Metric3dBackbone, MiniMaxVideoGenModel, NsfwLevel, OutputFormat, Priority, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
2
+ export { addWorkflowTag, deleteWorkflow, getBlob, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateResource, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeConvertImageStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokePreprocessImageStepTemplate, invokePromptEnhancementStepTemplate, invokeRepeatStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeXGuardModerationStepTemplate, patchWorkflow, patchWorkflowStep, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
3
+ export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaHashType, Metric3dBackbone, MiniMaxVideoGenModel, NsfwLevel, OutputFormat, Priority, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedanceModel, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
@@ -88,6 +88,9 @@ import type {
88
88
  InvokeModelHashStepTemplateData,
89
89
  InvokeModelHashStepTemplateErrors,
90
90
  InvokeModelHashStepTemplateResponses,
91
+ InvokeModelParseMetadataStepTemplateData,
92
+ InvokeModelParseMetadataStepTemplateErrors,
93
+ InvokeModelParseMetadataStepTemplateResponses,
91
94
  InvokeModelPickleScanStepTemplateData,
92
95
  InvokeModelPickleScanStepTemplateErrors,
93
96
  InvokeModelPickleScanStepTemplateResponses,
@@ -471,6 +474,19 @@ export declare const invokeModelHashStepTemplate: <ThrowOnError extends boolean
471
474
  ThrowOnError,
472
475
  'fields'
473
476
  >;
477
+ /**
478
+ * ModelParseMetadata
479
+ *
480
+ * Extracts the embedded JSON metadata header from a safetensors model file.
481
+ */
482
+ export declare const invokeModelParseMetadataStepTemplate: <ThrowOnError extends boolean = false>(
483
+ options?: Options<InvokeModelParseMetadataStepTemplateData, ThrowOnError>
484
+ ) => import('./client').RequestResult<
485
+ InvokeModelParseMetadataStepTemplateResponses,
486
+ InvokeModelParseMetadataStepTemplateErrors,
487
+ ThrowOnError,
488
+ 'fields'
489
+ >;
474
490
  /**
475
491
  * ModelPickleScan
476
492
  *
@@ -327,6 +327,22 @@ export const invokeModelHashStepTemplate = (options) => {
327
327
  },
328
328
  });
329
329
  };
330
+ /**
331
+ * ModelParseMetadata
332
+ *
333
+ * Extracts the embedded JSON metadata header from a safetensors model file.
334
+ */
335
+ export const invokeModelParseMetadataStepTemplate = (options) => {
336
+ var _a;
337
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
338
+ url: '/v2/consumer/recipes/modelParseMetadata',
339
+ ...options,
340
+ headers: {
341
+ 'Content-Type': 'application/json',
342
+ ...options === null || options === void 0 ? void 0 : options.headers,
343
+ },
344
+ });
345
+ };
330
346
  /**
331
347
  * ModelPickleScan
332
348
  *
@@ -151,10 +151,32 @@ export type AceStepAudioInput = {
151
151
  */
152
152
  vocalWeight?: number;
153
153
  /**
154
- * Optional model override (uses default ACE Step 1.5 turbo if not specified)
154
+ * Optional diffusion model (unet) override. Defaults to ACE-Step 1.5 turbo 2B.
155
155
  */
156
- model?: null | string;
156
+ diffusionModel?: null | string;
157
157
  cover?: AceStepAudioCover;
158
+ /**
159
+ * Optional text encoder (CLIP) override. Defaults to qwen_4b_ace15.
160
+ */
161
+ clipModel?: null | string;
162
+ /**
163
+ * Optional VAE override. Defaults to ace_1.5_vae.
164
+ */
165
+ vaeModel?: null | string;
166
+ /**
167
+ * Optional language model override for audio code generation. Defaults to qwen_0.6b_ace15.
168
+ */
169
+ languageModel?: null | string;
170
+ /**
171
+ * Number of sampling steps. Turbo variants converge at 8; non-turbo base / sft
172
+ * variants expect the full 50-step schedule.
173
+ */
174
+ steps?: number;
175
+ /**
176
+ * Classifier-free guidance scale. Turbo variants run CFG-off at 1.0;
177
+ * non-turbo base / sft variants expect CFG on (around 4).
178
+ */
179
+ cfg?: number;
158
180
  };
159
181
  /**
160
182
  * Output from ACE Step 1.5 audio generation workflow step.
@@ -725,6 +747,73 @@ export declare const CoarseMode: {
725
747
  readonly ENABLE: 'enable';
726
748
  };
727
749
  export type CoarseMode = (typeof CoarseMode)[keyof typeof CoarseMode];
750
+ export type ComfyErnieImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
751
+ model: string;
752
+ ecosystem: 'ernie';
753
+ engine: 'comfy';
754
+ };
755
+ export type ComfyErnieStandardCreateImageGenInput = Omit<
756
+ ComfyErnieStandardImageGenInput,
757
+ 'engine' | 'ecosystem' | 'model' | 'operation'
758
+ > & {
759
+ width?: number;
760
+ height?: number;
761
+ operation: 'createImage';
762
+ model: 'ernie';
763
+ ecosystem: 'ernie';
764
+ engine: 'comfy';
765
+ };
766
+ export type ComfyErnieStandardImageGenInput = Omit<
767
+ ComfyErnieImageGenInput,
768
+ 'engine' | 'ecosystem' | 'model'
769
+ > & {
770
+ operation: string;
771
+ prompt: string;
772
+ negativePrompt?: null | string;
773
+ sampler?: ComfySampler;
774
+ scheduler?: ComfyScheduler;
775
+ steps?: number;
776
+ cfgScale?: number;
777
+ seed?: null | number;
778
+ quantity?: number;
779
+ loras?: {
780
+ [key: string]: number;
781
+ };
782
+ model: 'ernie';
783
+ ecosystem: 'ernie';
784
+ engine: 'comfy';
785
+ };
786
+ export type ComfyErnieTurboCreateImageGenInput = Omit<
787
+ ComfyErnieTurboImageGenInput,
788
+ 'engine' | 'ecosystem' | 'model' | 'operation'
789
+ > & {
790
+ width?: number;
791
+ height?: number;
792
+ operation: 'createImage';
793
+ model: 'turbo';
794
+ ecosystem: 'ernie';
795
+ engine: 'comfy';
796
+ };
797
+ export type ComfyErnieTurboImageGenInput = Omit<
798
+ ComfyErnieImageGenInput,
799
+ 'engine' | 'ecosystem' | 'model'
800
+ > & {
801
+ operation: string;
802
+ prompt: string;
803
+ negativePrompt?: null | string;
804
+ sampler?: ComfySampler;
805
+ scheduler?: ComfyScheduler;
806
+ steps?: number;
807
+ cfgScale?: number;
808
+ seed?: null | number;
809
+ quantity?: number;
810
+ loras?: {
811
+ [key: string]: number;
812
+ };
813
+ model: 'turbo';
814
+ ecosystem: 'ernie';
815
+ engine: 'comfy';
816
+ };
728
817
  export type ComfyFlux1CreateImageGenInput = Omit<
729
818
  ComfyFlux1ImageGenInput,
730
819
  'engine' | 'ecosystem' | 'operation'
@@ -1315,6 +1404,13 @@ export type EpochResult = {
1315
1404
  */
1316
1405
  blobUrl: string;
1317
1406
  };
1407
+ /**
1408
+ * AI Toolkit training for ERNIE-Image models
1409
+ */
1410
+ export type ErnieAiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' | 'ecosystem'> & {
1411
+ ecosystem: 'ernie';
1412
+ engine: 'ai-toolkit';
1413
+ };
1318
1414
  /**
1319
1415
  * Represents a single face detection with embeddings and landmarks.
1320
1416
  */
@@ -2060,6 +2156,11 @@ export type ImageJobControlNet = {
2060
2156
  * A value representing the end step selected for the ControlNet.
2061
2157
  */
2062
2158
  endStep: number;
2159
+ /**
2160
+ * The preprocessed control image. Accepts an AIR URN, a URL, or a base64 data URL; the
2161
+ * orchestrator processes it into a stored blob before the job is dispatched.
2162
+ */
2163
+ image?: null | string;
2063
2164
  };
2064
2165
  export type ImageJobNetworkParams = {
2065
2166
  /**
@@ -2175,8 +2276,39 @@ export type ImageTransform = {
2175
2276
  */
2176
2277
  export declare const ImageTransformer: {
2177
2278
  readonly CANNY: 'canny';
2279
+ readonly MLSD: 'mlsd';
2178
2280
  readonly DEPTH_ZOE: 'depthZoe';
2281
+ readonly DEPTH_ANYTHING: 'depthAnything';
2282
+ readonly DEPTH_ANYTHING_V2: 'depthAnythingV2';
2283
+ readonly ZOE_DEPTH_ANYTHING: 'zoeDepthAnything';
2284
+ readonly ZOE_DEPTH: 'zoeDepth';
2285
+ readonly MIDAS_DEPTH: 'midasDepth';
2286
+ readonly LERES_DEPTH: 'leresDepth';
2287
+ readonly METRIC3D_DEPTH: 'metric3dDepth';
2179
2288
  readonly SOFTEDGE_PIDINET: 'softedgePidinet';
2289
+ readonly HED: 'hed';
2290
+ readonly TEED: 'teed';
2291
+ readonly MIDAS_NORMAL: 'midasNormal';
2292
+ readonly BAE_NORMAL: 'baeNormal';
2293
+ readonly DSINE_NORMAL: 'dsineNormal';
2294
+ readonly METRIC3D_NORMAL: 'metric3dNormal';
2295
+ readonly LINEART_REALISTIC: 'lineartRealistic';
2296
+ readonly LINEART_STANDARD: 'lineartStandard';
2297
+ readonly LINEART_ANIME: 'lineartAnime';
2298
+ readonly LINEART_MANGA: 'lineartManga';
2299
+ readonly ANYLINE: 'anyline';
2300
+ readonly SCRIBBLE: 'scribble';
2301
+ readonly SCRIBBLE_XDOG: 'scribbleXdog';
2302
+ readonly SCRIBBLE_PIDINET: 'scribblePidinet';
2303
+ readonly FAKE_SCRIBBLE: 'fakeScribble';
2304
+ readonly OPENPOSE: 'openpose';
2305
+ readonly DWPOSE: 'dwpose';
2306
+ readonly ONEFORMER_COCO: 'oneformerCoco';
2307
+ readonly ONEFORMER_ADE20K: 'oneformerAde20k';
2308
+ readonly UNIFORMER: 'uniformer';
2309
+ readonly SHUFFLE: 'shuffle';
2310
+ readonly TILE: 'tile';
2311
+ readonly GRAY: 'gray';
2180
2312
  readonly REMBG: 'rembg';
2181
2313
  };
2182
2314
  /**
@@ -2636,9 +2768,10 @@ export type MediaHashType = (typeof MediaHashType)[keyof typeof MediaHashType];
2636
2768
  */
2637
2769
  export type MediaRatingInput = {
2638
2770
  /**
2639
- * The URL of the media to rate (image or video).
2771
+ * The image to rate. Pre-processed in the API layer imported into blob storage so the
2772
+ * worker can pre-fetch it as a declared resource. After processing, contains the blob AIR URL.
2640
2773
  */
2641
- mediaUrl: string;
2774
+ image?: null | string;
2642
2775
  /**
2643
2776
  * The engine to use for media rating. Valid values: "default" (HiveVLM) or "civitai".
2644
2777
  */
@@ -2811,6 +2944,40 @@ export type ModelHashStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2811
2944
  input: ModelHashInput;
2812
2945
  $type: 'modelHash';
2813
2946
  };
2947
+ /**
2948
+ * Represents the input information needed for the ModelParseMetadata workflow step.
2949
+ */
2950
+ export type ModelParseMetadataInput = {
2951
+ /**
2952
+ * The AIR of the model file to read metadata from.
2953
+ */
2954
+ model: string;
2955
+ };
2956
+ /**
2957
+ * Represents the output information returned from the ModelParseMetadata workflow step.
2958
+ */
2959
+ export type ModelParseMetadataOutput = {
2960
+ /**
2961
+ * The raw JSON metadata header as stored in the safetensors file, or null when
2962
+ * the model is not a safetensors file or the header could not be parsed.
2963
+ */
2964
+ metadata?: null | string;
2965
+ };
2966
+ /**
2967
+ * ModelParseMetadata
2968
+ */
2969
+ export type ModelParseMetadataStep = Omit<WorkflowStep, '$type'> & {
2970
+ input: ModelParseMetadataInput;
2971
+ output?: ModelParseMetadataOutput;
2972
+ $type: 'modelParseMetadata';
2973
+ };
2974
+ /**
2975
+ * ModelParseMetadata
2976
+ */
2977
+ export type ModelParseMetadataStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2978
+ input: ModelParseMetadataInput;
2979
+ $type: 'modelParseMetadata';
2980
+ };
2814
2981
  /**
2815
2982
  * Represents the input information needed for the ModelPickleScan workflow step.
2816
2983
  */
@@ -3859,6 +4026,21 @@ export type SdxlVariantImageGenInput = Omit<
3859
4026
  ecosystem: 'sdxl';
3860
4027
  engine: 'sdcpp';
3861
4028
  };
4029
+ export declare const SeedanceModel: {
4030
+ readonly V2: 'v2';
4031
+ readonly V2_FAST: 'v2-fast';
4032
+ };
4033
+ export type SeedanceModel = (typeof SeedanceModel)[keyof typeof SeedanceModel];
4034
+ export type SeedanceVideoGenInput = Omit<VideoGenInput, 'engine'> & {
4035
+ model?: SeedanceModel;
4036
+ aspectRatio: '16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9' | 'adaptive';
4037
+ duration: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
4038
+ generateAudio?: boolean;
4039
+ seed?: null | number;
4040
+ resolution: '480p' | '720p';
4041
+ images?: Array<string>;
4042
+ engine: 'seedance';
4043
+ };
3862
4044
  export type SeedreamImageGenInput = Omit<ImageGenInput, 'engine'> & {
3863
4045
  prompt: string;
3864
4046
  quantity?: number;
@@ -5477,9 +5659,12 @@ export type WorkflowStep = {
5477
5659
  [key: string]: unknown;
5478
5660
  };
5479
5661
  /**
5480
- * An estimation on the current progression of this step, or null if there is no estimation
5662
+ * An estimation on the current progression of this step, or null if there is no estimation.
5663
+ * Computed by the step's handler (see `WorkflowStepHandler.GetEstimatedProgressRate`)
5664
+ * and refreshed by `WorkflowStepManager` on each job event. Cleared to null once the
5665
+ * step reaches a final status.
5481
5666
  */
5482
- readonly estimatedProgressRate?: null | number;
5667
+ estimatedProgressRate?: null | number;
5483
5668
  };
5484
5669
  /**
5485
5670
  * Details of a workflow step event.
@@ -5939,23 +6124,6 @@ export declare const ZoeDepthEnvironment: {
5939
6124
  readonly OUTDOOR: 'outdoor';
5940
6125
  };
5941
6126
  export type ZoeDepthEnvironment = (typeof ZoeDepthEnvironment)[keyof typeof ZoeDepthEnvironment];
5942
- /**
5943
- * Workflow step for generating music using ACE Step 1.5.
5944
- * Produces full songs from text descriptions and structured lyrics.
5945
- */
5946
- export type AceStepAudioStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
5947
- input: AceStepAudioInput;
5948
- output?: AceStepAudioOutput;
5949
- $type: 'aceStepAudio';
5950
- };
5951
- /**
5952
- * Age classification
5953
- */
5954
- export type AgeClassificationStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
5955
- input: AgeClassificationInput;
5956
- output?: AgeClassificationOutput;
5957
- $type: 'ageClassification';
5958
- };
5959
6127
  /**
5960
6128
  * Base type for message content parts.
5961
6129
  * Supports both camelCase (imageUrl) and snake_case (image_url) type discriminators via ContentPartJsonConverter.
@@ -5967,42 +6135,10 @@ export type ChatCompletionContentPartWritable = {
5967
6135
  text?: null | string;
5968
6136
  imageUrl?: ChatCompletionImageUrl;
5969
6137
  };
5970
- /**
5971
- * ChatCompletion
5972
- */
5973
- export type ChatCompletionStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
5974
- input: ChatCompletionInput;
5975
- output?: ChatCompletionOutput;
5976
- $type: 'chatCompletion';
5977
- };
5978
- /**
5979
- * Comfy workflows
5980
- */
5981
- export type ComfyStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
5982
- input: ComfyInput;
5983
- output?: ComfyOutput;
5984
- $type: 'comfy';
5985
- };
5986
- /**
5987
- * A workflow step that converts images to different formats and applies optional transforms.
5988
- */
5989
- export type ConvertImageStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
5990
- input: ConvertImageInput;
5991
- output?: ConvertImageOutput;
5992
- $type: 'convertImage';
5993
- };
5994
6138
  export type CursedArrayOfTelemetryCursorAndWorkflowWritable = {
5995
6139
  next: string;
5996
6140
  items: Array<WorkflowWritable>;
5997
6141
  };
5998
- /**
5999
- * Echo
6000
- */
6001
- export type EchoStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6002
- input: EchoInput;
6003
- output?: EchoOutput;
6004
- $type: 'echo';
6005
- };
6006
6142
  export type Flux1KontextDevImageGenInputWritable = Omit<
6007
6143
  Flux1KontextImageGenInputWritable,
6008
6144
  'engine'
@@ -6033,38 +6169,6 @@ export type Flux1KontextProImageGenInputWritable = Omit<
6033
6169
  model: 'pro';
6034
6170
  engine: 'flux1-kontext';
6035
6171
  };
6036
- /**
6037
- * Image Generation
6038
- */
6039
- export type ImageGenStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6040
- input: ImageGenInput;
6041
- output?: ImageGenOutput;
6042
- $type: 'imageGen';
6043
- };
6044
- /**
6045
- * LORA Training
6046
- */
6047
- export type ImageResourceTrainingStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6048
- input: ImageResourceTrainingInput;
6049
- output?: ImageResourceTrainingOutput;
6050
- $type: 'imageResourceTraining';
6051
- };
6052
- /**
6053
- * Image upload
6054
- */
6055
- export type ImageUploadStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6056
- /**
6057
- * The workflow's input.
6058
- */
6059
- input: string;
6060
- output?: ImageUploadOutput;
6061
- $type: 'imageUpload';
6062
- };
6063
- export type ImageUpscalerStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6064
- input: ImageUpscalerInput;
6065
- output?: ImageUpscalerOutput;
6066
- $type: 'imageUpscaler';
6067
- };
6068
6172
  export type KohyaImageResourceTrainingInputWritable = Omit<
6069
6173
  ImageResourceTrainingInputWritable,
6070
6174
  'engine'
@@ -6156,54 +6260,6 @@ export type KohyaImageResourceTrainingInputWritable = Omit<
6156
6260
  optimizerType?: null | string;
6157
6261
  engine: 'kohya';
6158
6262
  };
6159
- /**
6160
- * Media Captioning
6161
- */
6162
- export type MediaCaptioningStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6163
- input: MediaCaptioningInput;
6164
- output?: MediaCaptioningOutput;
6165
- $type: 'mediaCaptioning';
6166
- };
6167
- /**
6168
- * MediaHash
6169
- */
6170
- export type MediaHashStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6171
- input: MediaHashInput;
6172
- output?: MediaHashOutput;
6173
- $type: 'mediaHash';
6174
- };
6175
- /**
6176
- * MediaRating
6177
- */
6178
- export type MediaRatingStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6179
- input: MediaRatingInput;
6180
- output?: MediaRatingOutput;
6181
- $type: 'mediaRating';
6182
- };
6183
- /**
6184
- * ModelClamScan
6185
- */
6186
- export type ModelClamScanStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6187
- input: ModelClamScanInput;
6188
- output?: ModelClamScanOutput;
6189
- $type: 'modelClamScan';
6190
- };
6191
- /**
6192
- * ModelHash
6193
- */
6194
- export type ModelHashStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6195
- input: ModelHashInput;
6196
- output?: ModelHashOutput;
6197
- $type: 'modelHash';
6198
- };
6199
- /**
6200
- * ModelPickleScan
6201
- */
6202
- export type ModelPickleScanStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6203
- input: ModelPickleScanInput;
6204
- output?: ModelPickleScanOutput;
6205
- $type: 'modelPickleScan';
6206
- };
6207
6263
  export type MusubiImageResourceTrainingInputWritable = Omit<
6208
6264
  ImageResourceTrainingInputWritable,
6209
6265
  'engine'
@@ -6455,7 +6511,7 @@ export type PreprocessImageStandardLineartInputWritable = Omit<
6455
6511
  intensityThreshold?: number;
6456
6512
  kind: 'lineart-standard';
6457
6513
  };
6458
- export type PreprocessImageStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6514
+ export type PreprocessImageStepWritable = Omit<WorkflowStepWritable, '$type'> & {
6459
6515
  input: PreprocessImageInputWritable;
6460
6516
  output?: PreprocessImageOutput;
6461
6517
  $type: 'preprocessImage';
@@ -6485,14 +6541,6 @@ export type PreprocessImageZoeDepthAnythingInputWritable = Omit<
6485
6541
  export type PreprocessImageZoeDepthInputWritable = Omit<PreprocessImageInputWritable2, 'kind'> & {
6486
6542
  kind: 'zoe-depth';
6487
6543
  };
6488
- /**
6489
- * PromptEnhancement
6490
- */
6491
- export type PromptEnhancementStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6492
- input: PromptEnhancementInput;
6493
- output?: PromptEnhancementOutput;
6494
- $type: 'promptEnhancement';
6495
- };
6496
6544
  export type Qwen20bEditImageGenInputWritable = Omit<
6497
6545
  Qwen20bImageGenInput,
6498
6546
  'engine' | 'ecosystem' | 'model' | 'operation'
@@ -6519,52 +6567,6 @@ export type Qwen20bVariantImageGenInputWritable = Omit<
6519
6567
  ecosystem: 'qwen';
6520
6568
  engine: 'sdcpp';
6521
6569
  };
6522
- /**
6523
- * Represents the output information returned from the Repeat workflow step.
6524
- */
6525
- export type RepeatOutputWritable = {
6526
- steps: Array<WorkflowStepWritable>;
6527
- };
6528
- /**
6529
- * TextToImage
6530
- */
6531
- export type TextToImageStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6532
- input: TextToImageInput;
6533
- output?: TextToImageOutput;
6534
- $type: 'textToImage';
6535
- };
6536
- /**
6537
- * Text-to-Speech
6538
- */
6539
- export type TextToSpeechStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6540
- input: TextToSpeechInput;
6541
- output?: TextToSpeechOutput;
6542
- $type: 'textToSpeech';
6543
- };
6544
- /**
6545
- * Training
6546
- */
6547
- export type TrainingStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6548
- input: TrainingInput;
6549
- output?: TrainingOutput;
6550
- $type: 'training';
6551
- };
6552
- /**
6553
- * Transcoding
6554
- */
6555
- export type TranscodeStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6556
- input: TranscodeInput;
6557
- output?: TranscodeOutput;
6558
- $type: 'transcode';
6559
- };
6560
- /**
6561
- * Transcription
6562
- */
6563
- export type TranscriptionStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6564
- input: TranscriptionInput;
6565
- output?: TranscriptionOutput;
6566
- $type: 'transcription';
6567
- };
6568
6570
  /**
6569
6571
  * A user message that can contain text and/or images.
6570
6572
  */
@@ -6580,62 +6582,6 @@ export type UserMessageWritable = Omit<ChatCompletionMessageWritable, 'role'> &
6580
6582
  name?: null | string;
6581
6583
  role: 'user';
6582
6584
  };
6583
- /**
6584
- * Upscale videos and/or interpolate frames
6585
- */
6586
- export type VideoEnhancementStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6587
- input: VideoEnhancementInput;
6588
- output?: VideoEnhancementOutput;
6589
- $type: 'videoEnhancement';
6590
- };
6591
- /**
6592
- * Video Frame Extraction
6593
- */
6594
- export type VideoFrameExtractionStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6595
- input: VideoFrameExtractionInput;
6596
- output?: VideoFrameExtractionOutput;
6597
- $type: 'videoFrameExtraction';
6598
- };
6599
- /**
6600
- * Video generation
6601
- */
6602
- export type VideoGenStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6603
- input: VideoGenInput;
6604
- output?: VideoGenOutput;
6605
- $type: 'videoGen';
6606
- };
6607
- /**
6608
- * Interpolate videos using VFI Mamba
6609
- */
6610
- export type VideoInterpolationStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6611
- input: VideoInterpolationInput;
6612
- output?: VideoInterpolationOutput;
6613
- $type: 'videoInterpolation';
6614
- };
6615
- /**
6616
- * Extract metadata from videos including width, height, FPS, and duration
6617
- */
6618
- export type VideoMetadataStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6619
- input: VideoMetadataInput;
6620
- output?: VideoMetadataOutput;
6621
- $type: 'videoMetadata';
6622
- };
6623
- /**
6624
- * Upscale videos using FlashVSR
6625
- */
6626
- export type VideoUpscalerStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6627
- input: VideoUpscalerInput;
6628
- output?: VideoUpscalerOutput;
6629
- $type: 'videoUpscaler';
6630
- };
6631
- /**
6632
- * WDTagging
6633
- */
6634
- export type WdTaggingStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6635
- input: WdTaggingInput;
6636
- output?: WdTaggingOutput;
6637
- $type: 'wdTagging';
6638
- };
6639
6585
  /**
6640
6586
  * Details of a workflow.
6641
6587
  */
@@ -6734,44 +6680,6 @@ export type WorkflowEventWritable = {
6734
6680
  timestamp: string;
6735
6681
  details?: WorkflowEventDetails;
6736
6682
  };
6737
- /**
6738
- * Details of a workflow step.
6739
- */
6740
- export type WorkflowStepWritable = {
6741
- $type: string;
6742
- /**
6743
- * The name of the workflow step. Used to allow steps to refer to one another.
6744
- */
6745
- name: string;
6746
- priority: Priority;
6747
- /**
6748
- * The maximum time to wait for this step to complete.
6749
- */
6750
- timeout?: null | string;
6751
- /**
6752
- * The maximum number of times this step should be retried.
6753
- */
6754
- retries?: null | number;
6755
- /**
6756
- * The jobs generated by this step.
6757
- */
6758
- jobs?: null | Array<WorkflowStepJob>;
6759
- status: WorkflowStatus;
6760
- /**
6761
- * The date / time the step was started. Null if not yet started.
6762
- */
6763
- startedAt?: null | string;
6764
- /**
6765
- * The date / time the step was completed. Null if not yet completed.
6766
- */
6767
- completedAt?: null | string;
6768
- /**
6769
- * A collection of user defined metadata for the workflow step.
6770
- */
6771
- metadata: {
6772
- [key: string]: unknown;
6773
- };
6774
- };
6775
6683
  /**
6776
6684
  * Details of a workflow step event.
6777
6685
  */
@@ -6830,7 +6738,7 @@ export type XGuardModerationOutputWritable = {
6830
6738
  /**
6831
6739
  * XGuardModeration
6832
6740
  */
6833
- export type XGuardModerationStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6741
+ export type XGuardModerationStepWritable = Omit<WorkflowStepWritable, '$type'> & {
6834
6742
  input: XGuardModerationInput;
6835
6743
  output?: XGuardModerationOutputWritable;
6836
6744
  $type: 'xGuardModeration';
@@ -6856,48 +6764,6 @@ export type XGuardSignalMetadataWritable = {
6856
6764
  };
6857
6765
  customSignals: Array<XGuardCustomSignalMetadataWritable>;
6858
6766
  };
6859
- /**
6860
- * Details of a workflow step.
6861
- */
6862
- export type WorkflowStepWritable2 = {
6863
- $type: string;
6864
- /**
6865
- * The name of the workflow step. Used to allow steps to refer to one another.
6866
- */
6867
- name: string;
6868
- priority: Priority;
6869
- /**
6870
- * The maximum time to wait for this step to complete.
6871
- */
6872
- timeout?: null | string;
6873
- /**
6874
- * The maximum number of times this step should be retried.
6875
- */
6876
- retries?: null | number;
6877
- /**
6878
- * The jobs generated by this step.
6879
- */
6880
- jobs?: null | Array<WorkflowStepJob>;
6881
- status: WorkflowStatus;
6882
- /**
6883
- * The date / time the step was started. Null if not yet started.
6884
- */
6885
- startedAt?: null | string;
6886
- /**
6887
- * The date / time the step was completed. Null if not yet completed.
6888
- */
6889
- completedAt?: null | string;
6890
- /**
6891
- * A collection of user defined metadata for the workflow step.
6892
- */
6893
- metadata: {
6894
- [key: string]: unknown;
6895
- };
6896
- /**
6897
- * An estimation on the current progression of this step, or null if there is no estimation
6898
- */
6899
- readonly estimatedProgressRate?: null | number;
6900
- };
6901
6767
  export type ImageGenInputWritable = {
6902
6768
  engine: string;
6903
6769
  outputFormat?: ImageGenOutputFormat;
@@ -6949,6 +6815,51 @@ export type PreprocessImageInputWritable2 = {
6949
6815
  */
6950
6816
  readonly preprocessorType: string;
6951
6817
  };
6818
+ /**
6819
+ * Details of a workflow step.
6820
+ */
6821
+ export type WorkflowStepWritable = {
6822
+ $type: string;
6823
+ /**
6824
+ * The name of the workflow step. Used to allow steps to refer to one another.
6825
+ */
6826
+ name: string;
6827
+ priority: Priority;
6828
+ /**
6829
+ * The maximum time to wait for this step to complete.
6830
+ */
6831
+ timeout?: null | string;
6832
+ /**
6833
+ * The maximum number of times this step should be retried.
6834
+ */
6835
+ retries?: null | number;
6836
+ /**
6837
+ * The jobs generated by this step.
6838
+ */
6839
+ jobs?: null | Array<WorkflowStepJob>;
6840
+ status: WorkflowStatus;
6841
+ /**
6842
+ * The date / time the step was started. Null if not yet started.
6843
+ */
6844
+ startedAt?: null | string;
6845
+ /**
6846
+ * The date / time the step was completed. Null if not yet completed.
6847
+ */
6848
+ completedAt?: null | string;
6849
+ /**
6850
+ * A collection of user defined metadata for the workflow step.
6851
+ */
6852
+ metadata: {
6853
+ [key: string]: unknown;
6854
+ };
6855
+ /**
6856
+ * An estimation on the current progression of this step, or null if there is no estimation.
6857
+ * Computed by the step's handler (see `WorkflowStepHandler.GetEstimatedProgressRate`)
6858
+ * and refreshed by `WorkflowStepManager` on each job event. Cleared to null once the
6859
+ * step reaches a final status.
6860
+ */
6861
+ estimatedProgressRate?: null | number;
6862
+ };
6952
6863
  /**
6953
6864
  * Details of a workflow step template.
6954
6865
  */
@@ -7728,6 +7639,36 @@ export type InvokeModelHashStepTemplateResponses = {
7728
7639
  };
7729
7640
  export type InvokeModelHashStepTemplateResponse =
7730
7641
  InvokeModelHashStepTemplateResponses[keyof InvokeModelHashStepTemplateResponses];
7642
+ export type InvokeModelParseMetadataStepTemplateData = {
7643
+ body?: ModelParseMetadataInput;
7644
+ path?: never;
7645
+ query?: {
7646
+ experimental?: boolean;
7647
+ allowMatureContent?: boolean;
7648
+ whatif?: boolean;
7649
+ };
7650
+ url: '/v2/consumer/recipes/modelParseMetadata';
7651
+ };
7652
+ export type InvokeModelParseMetadataStepTemplateErrors = {
7653
+ /**
7654
+ * Bad Request
7655
+ */
7656
+ 400: ProblemDetails;
7657
+ /**
7658
+ * Unauthorized
7659
+ */
7660
+ 401: ProblemDetails;
7661
+ };
7662
+ export type InvokeModelParseMetadataStepTemplateError =
7663
+ InvokeModelParseMetadataStepTemplateErrors[keyof InvokeModelParseMetadataStepTemplateErrors];
7664
+ export type InvokeModelParseMetadataStepTemplateResponses = {
7665
+ /**
7666
+ * OK
7667
+ */
7668
+ 200: ModelParseMetadataOutput;
7669
+ };
7670
+ export type InvokeModelParseMetadataStepTemplateResponse =
7671
+ InvokeModelParseMetadataStepTemplateResponses[keyof InvokeModelParseMetadataStepTemplateResponses];
7731
7672
  export type InvokeModelPickleScanStepTemplateData = {
7732
7673
  body?: ModelPickleScanInput;
7733
7674
  path?: never;
@@ -146,8 +146,39 @@ export const ImageResouceTrainingModerationStatus = {
146
146
  */
147
147
  export const ImageTransformer = {
148
148
  CANNY: 'canny',
149
+ MLSD: 'mlsd',
149
150
  DEPTH_ZOE: 'depthZoe',
151
+ DEPTH_ANYTHING: 'depthAnything',
152
+ DEPTH_ANYTHING_V2: 'depthAnythingV2',
153
+ ZOE_DEPTH_ANYTHING: 'zoeDepthAnything',
154
+ ZOE_DEPTH: 'zoeDepth',
155
+ MIDAS_DEPTH: 'midasDepth',
156
+ LERES_DEPTH: 'leresDepth',
157
+ METRIC3D_DEPTH: 'metric3dDepth',
150
158
  SOFTEDGE_PIDINET: 'softedgePidinet',
159
+ HED: 'hed',
160
+ TEED: 'teed',
161
+ MIDAS_NORMAL: 'midasNormal',
162
+ BAE_NORMAL: 'baeNormal',
163
+ DSINE_NORMAL: 'dsineNormal',
164
+ METRIC3D_NORMAL: 'metric3dNormal',
165
+ LINEART_REALISTIC: 'lineartRealistic',
166
+ LINEART_STANDARD: 'lineartStandard',
167
+ LINEART_ANIME: 'lineartAnime',
168
+ LINEART_MANGA: 'lineartManga',
169
+ ANYLINE: 'anyline',
170
+ SCRIBBLE: 'scribble',
171
+ SCRIBBLE_XDOG: 'scribbleXdog',
172
+ SCRIBBLE_PIDINET: 'scribblePidinet',
173
+ FAKE_SCRIBBLE: 'fakeScribble',
174
+ OPENPOSE: 'openpose',
175
+ DWPOSE: 'dwpose',
176
+ ONEFORMER_COCO: 'oneformerCoco',
177
+ ONEFORMER_ADE20K: 'oneformerAde20k',
178
+ UNIFORMER: 'uniformer',
179
+ SHUFFLE: 'shuffle',
180
+ TILE: 'tile',
181
+ GRAY: 'gray',
151
182
  REMBG: 'rembg',
152
183
  };
153
184
  /**
@@ -280,6 +311,7 @@ export const SdCppSchedule = {
280
311
  LCM: 'lcm',
281
312
  };
282
313
  export const SdCppUCacheMode = { OFF: 'off', NORMAL: 'normal' };
314
+ export const SeedanceModel = { V2: 'v2', V2_FAST: 'v2-fast' };
283
315
  export const SeedreamVersion = {
284
316
  V3: 'v3',
285
317
  V4: 'v4',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.52",
3
+ "version": "0.2.0-beta.53",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",