@civitai/orchestration-client 0.2.0-beta.105 → 0.2.0-beta.107
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.
|
@@ -30,6 +30,7 @@ export {
|
|
|
30
30
|
invokeImageBackgroundRemovalStepTemplate,
|
|
31
31
|
invokeImageGenStepTemplate,
|
|
32
32
|
invokeImageResourceTrainingStepTemplate,
|
|
33
|
+
invokeImageScanningStepTemplate,
|
|
33
34
|
invokeImageToSvgStepTemplate,
|
|
34
35
|
invokeImageUploadStepTemplate,
|
|
35
36
|
invokeImageUpscalerStepTemplate,
|
|
@@ -67,6 +68,7 @@ export {
|
|
|
67
68
|
invokeWebScrapeStepTemplate,
|
|
68
69
|
invokeWebSearchStepTemplate,
|
|
69
70
|
invokeXGuardModerationStepTemplate,
|
|
71
|
+
invokeYuE2StepTemplate,
|
|
70
72
|
listServices,
|
|
71
73
|
type Options,
|
|
72
74
|
patchWorkflow,
|
|
@@ -132,6 +134,7 @@ export {
|
|
|
132
134
|
type AudioCaptioningStepTemplate,
|
|
133
135
|
type AudioComposeMediaOutput,
|
|
134
136
|
type AvailableResourceAvailability,
|
|
137
|
+
type AvifOutputFormat,
|
|
135
138
|
type BackgroundRemovalTransformer,
|
|
136
139
|
type BasicAnimationsBlobs,
|
|
137
140
|
type BatchOcrSafetyClassificationInput,
|
|
@@ -194,6 +197,8 @@ export {
|
|
|
194
197
|
type ComfyBooguImageGenInput,
|
|
195
198
|
type ComfyBooguTurboCreateImageGenInput,
|
|
196
199
|
type ComfyBooguTurboImageGenInput,
|
|
200
|
+
type ComfyChromaCreateImageGenInput,
|
|
201
|
+
type ComfyChromaImageGenInput,
|
|
197
202
|
type ComfyErnieImageGenInput,
|
|
198
203
|
type ComfyErnieStandardCreateImageGenInput,
|
|
199
204
|
type ComfyErnieStandardImageGenInput,
|
|
@@ -211,6 +216,8 @@ export {
|
|
|
211
216
|
type ComfyFlux2KleinEditImageInput,
|
|
212
217
|
type ComfyFlux2KleinImageGenInput,
|
|
213
218
|
type ComfyFlux2KleinVariantImageGenInput,
|
|
219
|
+
type ComfyHiDreamI1CreateImageGenInput,
|
|
220
|
+
type ComfyHiDreamI1ImageGenInput,
|
|
214
221
|
type ComfyHiDreamImageGenInput,
|
|
215
222
|
type ComfyHiDreamO1CreateImageGenInput,
|
|
216
223
|
type ComfyHiDreamO1DevCreateImageGenInput,
|
|
@@ -275,6 +282,8 @@ export {
|
|
|
275
282
|
type ComfyNodepackSnapshotStepTemplate,
|
|
276
283
|
type ComfyOutput,
|
|
277
284
|
type ComfyPolyGenInput,
|
|
285
|
+
type ComfyPonyV7CreateImageGenInput,
|
|
286
|
+
type ComfyPonyV7ImageGenInput,
|
|
278
287
|
type ComfyQwen20bCreateImageGenInput,
|
|
279
288
|
type ComfyQwen20bEditImageGenInput,
|
|
280
289
|
type ComfyQwen20bEditImageGenInputWritable,
|
|
@@ -359,6 +368,9 @@ export {
|
|
|
359
368
|
type Flux1KontextMaxImageGenInputWritable,
|
|
360
369
|
type Flux1KontextProImageGenInput,
|
|
361
370
|
type Flux1KontextProImageGenInputWritable,
|
|
371
|
+
type Flux1ProFamilyImageGenInput,
|
|
372
|
+
type Flux1ProImageGenInput,
|
|
373
|
+
type Flux1ProUltraImageGenInput,
|
|
362
374
|
type Flux1SchnellAiToolkitTrainingInput,
|
|
363
375
|
type Flux1SchnellAiToolkitTrainingInputWritable,
|
|
364
376
|
type Flux1SdCppCreateImageInput,
|
|
@@ -496,6 +508,8 @@ export {
|
|
|
496
508
|
type HeadBlobErrors,
|
|
497
509
|
type HeadBlobResponse,
|
|
498
510
|
type HeadBlobResponses,
|
|
511
|
+
HiDreamI1Precision,
|
|
512
|
+
HiDreamI1Variant,
|
|
499
513
|
type HiDreamO1AiToolkitTrainingInput,
|
|
500
514
|
type HiDreamO1AiToolkitTrainingInputWritable,
|
|
501
515
|
HumanoidImageMaskCategory,
|
|
@@ -532,6 +546,18 @@ export {
|
|
|
532
546
|
type ImageResourceTrainingOutput,
|
|
533
547
|
type ImageResourceTrainingStep,
|
|
534
548
|
type ImageResourceTrainingStepTemplate,
|
|
549
|
+
type ImageScanningHumanEvidence,
|
|
550
|
+
type ImageScanningHumanRecognition,
|
|
551
|
+
type ImageScanningInput,
|
|
552
|
+
type ImageScanningJointAgeClassification,
|
|
553
|
+
type ImageScanningJointAgeDetection,
|
|
554
|
+
type ImageScanningLabelScore,
|
|
555
|
+
type ImageScanningOutput,
|
|
556
|
+
type ImageScanningRecognition,
|
|
557
|
+
type ImageScanningStep,
|
|
558
|
+
type ImageScanningStepTemplate,
|
|
559
|
+
type ImageScanningTag,
|
|
560
|
+
type ImageScanningTagging,
|
|
535
561
|
type ImageToSvgInput,
|
|
536
562
|
type ImageToSvgOutput,
|
|
537
563
|
type ImageToSvgStep,
|
|
@@ -635,6 +661,11 @@ export {
|
|
|
635
661
|
type InvokeImageResourceTrainingStepTemplateErrors,
|
|
636
662
|
type InvokeImageResourceTrainingStepTemplateResponse,
|
|
637
663
|
type InvokeImageResourceTrainingStepTemplateResponses,
|
|
664
|
+
type InvokeImageScanningStepTemplateData,
|
|
665
|
+
type InvokeImageScanningStepTemplateError,
|
|
666
|
+
type InvokeImageScanningStepTemplateErrors,
|
|
667
|
+
type InvokeImageScanningStepTemplateResponse,
|
|
668
|
+
type InvokeImageScanningStepTemplateResponses,
|
|
638
669
|
type InvokeImageToSvgStepTemplateData,
|
|
639
670
|
type InvokeImageToSvgStepTemplateError,
|
|
640
671
|
type InvokeImageToSvgStepTemplateErrors,
|
|
@@ -820,6 +851,11 @@ export {
|
|
|
820
851
|
type InvokeXGuardModerationStepTemplateErrors,
|
|
821
852
|
type InvokeXGuardModerationStepTemplateResponse,
|
|
822
853
|
type InvokeXGuardModerationStepTemplateResponses,
|
|
854
|
+
type InvokeYuE2StepTemplateData,
|
|
855
|
+
type InvokeYuE2StepTemplateError,
|
|
856
|
+
type InvokeYuE2StepTemplateErrors,
|
|
857
|
+
type InvokeYuE2StepTemplateResponse,
|
|
858
|
+
type InvokeYuE2StepTemplateResponses,
|
|
823
859
|
JobSupport,
|
|
824
860
|
type JointAgeClassificationResult,
|
|
825
861
|
type JointAgeDetection,
|
|
@@ -1384,11 +1420,12 @@ export {
|
|
|
1384
1420
|
type WorkflowStepEventWritable,
|
|
1385
1421
|
type WorkflowStepJobEvent,
|
|
1386
1422
|
type WorkflowStepJobEventWritable,
|
|
1387
|
-
type WorkflowStepPreparation,
|
|
1388
1423
|
type WorkflowStepPreparationResource,
|
|
1389
1424
|
type WorkflowStepQueuePosition,
|
|
1390
1425
|
type WorkflowStepTemplate,
|
|
1391
1426
|
type WorkflowStepTemplateWritable,
|
|
1427
|
+
type WorkflowStepWarning,
|
|
1428
|
+
WorkflowStepWarningCode,
|
|
1392
1429
|
type WorkflowStepWritable,
|
|
1393
1430
|
type WorkflowTemplate,
|
|
1394
1431
|
type WorkflowTips,
|
|
@@ -1410,6 +1447,10 @@ export {
|
|
|
1410
1447
|
type XGuardSignalMetadata,
|
|
1411
1448
|
type XGuardSignalMetadataWritable,
|
|
1412
1449
|
type XGuardTextModerationInput,
|
|
1450
|
+
type YuE2Input,
|
|
1451
|
+
type YuE2Output,
|
|
1452
|
+
type YuE2Step,
|
|
1453
|
+
type YuE2StepTemplate,
|
|
1413
1454
|
type ZImageBaseAiToolkitTrainingInput,
|
|
1414
1455
|
type ZImageBaseAiToolkitTrainingInputWritable,
|
|
1415
1456
|
type ZImageBaseCreateImageGenInput,
|
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, 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, 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, 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, WorkflowUpgradeMode, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen';
|
|
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';
|
|
@@ -91,6 +91,9 @@ import type {
|
|
|
91
91
|
InvokeImageResourceTrainingStepTemplateData,
|
|
92
92
|
InvokeImageResourceTrainingStepTemplateErrors,
|
|
93
93
|
InvokeImageResourceTrainingStepTemplateResponses,
|
|
94
|
+
InvokeImageScanningStepTemplateData,
|
|
95
|
+
InvokeImageScanningStepTemplateErrors,
|
|
96
|
+
InvokeImageScanningStepTemplateResponses,
|
|
94
97
|
InvokeImageToSvgStepTemplateData,
|
|
95
98
|
InvokeImageToSvgStepTemplateErrors,
|
|
96
99
|
InvokeImageToSvgStepTemplateResponses,
|
|
@@ -202,6 +205,9 @@ import type {
|
|
|
202
205
|
InvokeXGuardModerationStepTemplateData,
|
|
203
206
|
InvokeXGuardModerationStepTemplateErrors,
|
|
204
207
|
InvokeXGuardModerationStepTemplateResponses,
|
|
208
|
+
InvokeYuE2StepTemplateData,
|
|
209
|
+
InvokeYuE2StepTemplateErrors,
|
|
210
|
+
InvokeYuE2StepTemplateResponses,
|
|
205
211
|
ListServicesData,
|
|
206
212
|
ListServicesErrors,
|
|
207
213
|
ListServicesResponses,
|
|
@@ -555,6 +561,19 @@ export declare const invokeImageResourceTrainingStepTemplate: <
|
|
|
555
561
|
ThrowOnError,
|
|
556
562
|
'fields'
|
|
557
563
|
>;
|
|
564
|
+
/**
|
|
565
|
+
* Image scanning
|
|
566
|
+
*
|
|
567
|
+
* Classifies one image for safety, origin, tags, human presence, and apparent age.
|
|
568
|
+
*/
|
|
569
|
+
export declare const invokeImageScanningStepTemplate: <ThrowOnError extends boolean = false>(
|
|
570
|
+
options?: Options<InvokeImageScanningStepTemplateData, ThrowOnError>
|
|
571
|
+
) => import('./client').RequestResult<
|
|
572
|
+
InvokeImageScanningStepTemplateResponses,
|
|
573
|
+
InvokeImageScanningStepTemplateErrors,
|
|
574
|
+
ThrowOnError,
|
|
575
|
+
'fields'
|
|
576
|
+
>;
|
|
558
577
|
/**
|
|
559
578
|
* Converts a raster image to an SVG using a local StarVector or OmniSVG model.
|
|
560
579
|
*/
|
|
@@ -1007,6 +1026,17 @@ export declare const invokeXGuardModerationStepTemplate: <ThrowOnError extends b
|
|
|
1007
1026
|
ThrowOnError,
|
|
1008
1027
|
'fields'
|
|
1009
1028
|
>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Generate a song from style and lyrics with YuE2.
|
|
1031
|
+
*/
|
|
1032
|
+
export declare const invokeYuE2StepTemplate: <ThrowOnError extends boolean = false>(
|
|
1033
|
+
options?: Options<InvokeYuE2StepTemplateData, ThrowOnError>
|
|
1034
|
+
) => import('./client').RequestResult<
|
|
1035
|
+
InvokeYuE2StepTemplateResponses,
|
|
1036
|
+
InvokeYuE2StepTemplateErrors,
|
|
1037
|
+
ThrowOnError,
|
|
1038
|
+
'fields'
|
|
1039
|
+
>;
|
|
1010
1040
|
export declare const queryResources: <ThrowOnError extends boolean = false>(
|
|
1011
1041
|
options: Options<QueryResourcesData, ThrowOnError>
|
|
1012
1042
|
) => import('./client').RequestResult<
|
|
@@ -333,6 +333,22 @@ export const invokeImageResourceTrainingStepTemplate = (options) => {
|
|
|
333
333
|
},
|
|
334
334
|
});
|
|
335
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* Image scanning
|
|
338
|
+
*
|
|
339
|
+
* Classifies one image for safety, origin, tags, human presence, and apparent age.
|
|
340
|
+
*/
|
|
341
|
+
export const invokeImageScanningStepTemplate = (options) => {
|
|
342
|
+
var _a;
|
|
343
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
344
|
+
url: '/v2/consumer/recipes/imageScanning',
|
|
345
|
+
...options,
|
|
346
|
+
headers: {
|
|
347
|
+
'Content-Type': 'application/json',
|
|
348
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
349
|
+
},
|
|
350
|
+
});
|
|
351
|
+
};
|
|
336
352
|
/**
|
|
337
353
|
* Converts a raster image to an SVG using a local StarVector or OmniSVG model.
|
|
338
354
|
*/
|
|
@@ -892,6 +908,20 @@ export const invokeXGuardModerationStepTemplate = (options) => {
|
|
|
892
908
|
},
|
|
893
909
|
});
|
|
894
910
|
};
|
|
911
|
+
/**
|
|
912
|
+
* Generate a song from style and lyrics with YuE2.
|
|
913
|
+
*/
|
|
914
|
+
export const invokeYuE2StepTemplate = (options) => {
|
|
915
|
+
var _a;
|
|
916
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
|
|
917
|
+
url: '/v2/consumer/recipes/yuE2',
|
|
918
|
+
...options,
|
|
919
|
+
headers: {
|
|
920
|
+
'Content-Type': 'application/json',
|
|
921
|
+
...options === null || options === void 0 ? void 0 : options.headers,
|
|
922
|
+
},
|
|
923
|
+
});
|
|
924
|
+
};
|
|
895
925
|
export const queryResources = (options) => {
|
|
896
926
|
var _a;
|
|
897
927
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client).get({
|
|
@@ -723,6 +723,20 @@ export type AvailableResourceAvailability = Omit<ResourceAvailability, 'status'>
|
|
|
723
723
|
workers: number;
|
|
724
724
|
status: 'available';
|
|
725
725
|
};
|
|
726
|
+
/**
|
|
727
|
+
* AVIF output format configuration. Animated sources are reduced to their first frame.
|
|
728
|
+
*/
|
|
729
|
+
export type AvifOutputFormat = Omit<ImageOutputFormat, 'format'> & {
|
|
730
|
+
/**
|
|
731
|
+
* Quality setting for AVIF compression (1-100). Only applies when Lossless is false.
|
|
732
|
+
*/
|
|
733
|
+
quality?: number;
|
|
734
|
+
/**
|
|
735
|
+
* When true, uses lossless compression. When false, uses lossy compression with the Quality setting.
|
|
736
|
+
*/
|
|
737
|
+
lossless?: boolean;
|
|
738
|
+
format: 'avif';
|
|
739
|
+
};
|
|
726
740
|
/**
|
|
727
741
|
* Removes the element's background per frame via a deterministic edge-connected flood fill
|
|
728
742
|
* (unlike the AI-matting `imageBackgroundRemoval` step): the background colour is estimated
|
|
@@ -1507,6 +1521,32 @@ export type ComfyBooguTurboImageGenInput = Omit<
|
|
|
1507
1521
|
ecosystem: 'boogu';
|
|
1508
1522
|
engine: 'comfy';
|
|
1509
1523
|
};
|
|
1524
|
+
export type ComfyChromaCreateImageGenInput = Omit<
|
|
1525
|
+
ComfyChromaImageGenInput,
|
|
1526
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1527
|
+
> & {
|
|
1528
|
+
width?: number;
|
|
1529
|
+
height?: number;
|
|
1530
|
+
operation: 'createImage';
|
|
1531
|
+
ecosystem: 'chroma';
|
|
1532
|
+
engine: 'comfy';
|
|
1533
|
+
};
|
|
1534
|
+
export type ComfyChromaImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1535
|
+
operation: string;
|
|
1536
|
+
prompt: string;
|
|
1537
|
+
negativePrompt?: null | string;
|
|
1538
|
+
sampler?: ComfySampler;
|
|
1539
|
+
steps?: number;
|
|
1540
|
+
cfgScale?: number;
|
|
1541
|
+
seed?: null | number;
|
|
1542
|
+
quantity?: number;
|
|
1543
|
+
model: string;
|
|
1544
|
+
loras?: {
|
|
1545
|
+
[key: string]: number;
|
|
1546
|
+
};
|
|
1547
|
+
ecosystem: 'chroma';
|
|
1548
|
+
engine: 'comfy';
|
|
1549
|
+
};
|
|
1510
1550
|
export type ComfyErnieImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1511
1551
|
model: string;
|
|
1512
1552
|
ecosystem: 'ernie';
|
|
@@ -1738,6 +1778,39 @@ export type ComfyFlux2KleinVariantImageGenInput = Omit<
|
|
|
1738
1778
|
ecosystem: 'flux2Klein';
|
|
1739
1779
|
engine: 'comfy';
|
|
1740
1780
|
};
|
|
1781
|
+
export type ComfyHiDreamI1CreateImageGenInput = Omit<
|
|
1782
|
+
ComfyHiDreamI1ImageGenInput,
|
|
1783
|
+
'engine' | 'ecosystem' | 'operation'
|
|
1784
|
+
> & {
|
|
1785
|
+
width?: number;
|
|
1786
|
+
height?: number;
|
|
1787
|
+
operation: 'createImage';
|
|
1788
|
+
ecosystem: 'hidream';
|
|
1789
|
+
engine: 'comfy';
|
|
1790
|
+
};
|
|
1791
|
+
export type ComfyHiDreamI1ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1792
|
+
operation: string;
|
|
1793
|
+
prompt: string;
|
|
1794
|
+
negativePrompt?: null | string;
|
|
1795
|
+
variant?: HiDreamI1Variant;
|
|
1796
|
+
precision?: HiDreamI1Precision;
|
|
1797
|
+
sampler?: ComfySampler;
|
|
1798
|
+
/**
|
|
1799
|
+
* Defaults to 16 for fast, 28 for dev and 50 for full.
|
|
1800
|
+
*/
|
|
1801
|
+
steps?: null | number;
|
|
1802
|
+
/**
|
|
1803
|
+
* Defaults to 1 for fast and dev, 5 for full.
|
|
1804
|
+
*/
|
|
1805
|
+
cfgScale?: null | number;
|
|
1806
|
+
seed?: null | number;
|
|
1807
|
+
quantity?: number;
|
|
1808
|
+
loras?: {
|
|
1809
|
+
[key: string]: number;
|
|
1810
|
+
};
|
|
1811
|
+
ecosystem: 'hidream';
|
|
1812
|
+
engine: 'comfy';
|
|
1813
|
+
};
|
|
1741
1814
|
export type ComfyHiDreamImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
1742
1815
|
model: string;
|
|
1743
1816
|
ecosystem: 'hidream-o1';
|
|
@@ -2559,7 +2632,7 @@ export type ComfyNodepackSnapshotInput = {
|
|
|
2559
2632
|
* the artifact's identity (hashed into the blob key). Optional: when omitted
|
|
2560
2633
|
* (e.g. a caller with no managed image of its own, like civitai-comfy-nodes
|
|
2561
2634
|
* offload) the handler resolves the configured default/"latest" comfy image
|
|
2562
|
-
* (
|
|
2635
|
+
* (`ComfyImageOptions.DefaultComfyImage`).
|
|
2563
2636
|
*/
|
|
2564
2637
|
comfyImage?: null | string;
|
|
2565
2638
|
/**
|
|
@@ -2623,6 +2696,32 @@ export type ComfyPolyGenInput = Omit<PolyGenInput, 'engine'> & {
|
|
|
2623
2696
|
model: string;
|
|
2624
2697
|
engine: 'comfy';
|
|
2625
2698
|
};
|
|
2699
|
+
export type ComfyPonyV7CreateImageGenInput = Omit<
|
|
2700
|
+
ComfyPonyV7ImageGenInput,
|
|
2701
|
+
'engine' | 'ecosystem' | 'operation'
|
|
2702
|
+
> & {
|
|
2703
|
+
width?: number;
|
|
2704
|
+
height?: number;
|
|
2705
|
+
operation: 'createImage';
|
|
2706
|
+
ecosystem: 'ponyV7';
|
|
2707
|
+
engine: 'comfy';
|
|
2708
|
+
};
|
|
2709
|
+
export type ComfyPonyV7ImageGenInput = Omit<ComfyImageGenInput, 'engine' | 'ecosystem'> & {
|
|
2710
|
+
operation: string;
|
|
2711
|
+
prompt: string;
|
|
2712
|
+
negativePrompt?: null | string;
|
|
2713
|
+
sampler?: ComfySampler;
|
|
2714
|
+
steps?: number;
|
|
2715
|
+
cfgScale?: number;
|
|
2716
|
+
seed?: null | number;
|
|
2717
|
+
quantity?: number;
|
|
2718
|
+
model: string;
|
|
2719
|
+
loras?: {
|
|
2720
|
+
[key: string]: number;
|
|
2721
|
+
};
|
|
2722
|
+
ecosystem: 'ponyV7';
|
|
2723
|
+
engine: 'comfy';
|
|
2724
|
+
};
|
|
2626
2725
|
export type ComfyQwen20bCreateImageGenInput = Omit<
|
|
2627
2726
|
ComfyQwen20bImageGenInput,
|
|
2628
2727
|
'engine' | 'ecosystem' | 'model' | 'operation'
|
|
@@ -3593,6 +3692,34 @@ export type Flux1KontextProImageGenInput = Omit<Flux1KontextImageGenInput, 'engi
|
|
|
3593
3692
|
model: 'pro';
|
|
3594
3693
|
engine: 'flux1-kontext';
|
|
3595
3694
|
};
|
|
3695
|
+
export type Flux1ProFamilyImageGenInput = Omit<ImageGenInput, 'engine'> & {
|
|
3696
|
+
model: string;
|
|
3697
|
+
prompt: string;
|
|
3698
|
+
seed?: null | number;
|
|
3699
|
+
quantity?: number;
|
|
3700
|
+
engine: 'flux1-pro';
|
|
3701
|
+
};
|
|
3702
|
+
/**
|
|
3703
|
+
* FLUX1.1 [pro]
|
|
3704
|
+
*/
|
|
3705
|
+
export type Flux1ProImageGenInput = Omit<Flux1ProFamilyImageGenInput, 'engine' | 'model'> & {
|
|
3706
|
+
width?: number;
|
|
3707
|
+
height?: number;
|
|
3708
|
+
model: 'pro';
|
|
3709
|
+
engine: 'flux1-pro';
|
|
3710
|
+
};
|
|
3711
|
+
/**
|
|
3712
|
+
* FLUX1.1 [pro] Ultra
|
|
3713
|
+
*/
|
|
3714
|
+
export type Flux1ProUltraImageGenInput = Omit<Flux1ProFamilyImageGenInput, 'engine' | 'model'> & {
|
|
3715
|
+
aspectRatio?: '21:9' | '16:9' | '4:3' | '1:1' | '3:4' | '9:16' | '9:21';
|
|
3716
|
+
/**
|
|
3717
|
+
* Generates less processed, more natural-looking images.
|
|
3718
|
+
*/
|
|
3719
|
+
raw?: boolean;
|
|
3720
|
+
model: 'ultra';
|
|
3721
|
+
engine: 'flux1-pro';
|
|
3722
|
+
};
|
|
3596
3723
|
/**
|
|
3597
3724
|
* AI Toolkit training for Flux.1 Schnell models
|
|
3598
3725
|
*/
|
|
@@ -4676,6 +4803,17 @@ export type HappyHorseVideoGenInput = Omit<VideoGenInput, 'engine'> & {
|
|
|
4676
4803
|
version: string;
|
|
4677
4804
|
engine: 'happyHorse';
|
|
4678
4805
|
};
|
|
4806
|
+
export declare const HiDreamI1Precision: {
|
|
4807
|
+
readonly FP8: 'fp8';
|
|
4808
|
+
readonly FP16: 'fp16';
|
|
4809
|
+
};
|
|
4810
|
+
export type HiDreamI1Precision = (typeof HiDreamI1Precision)[keyof typeof HiDreamI1Precision];
|
|
4811
|
+
export declare const HiDreamI1Variant: {
|
|
4812
|
+
readonly FAST: 'fast';
|
|
4813
|
+
readonly DEV: 'dev';
|
|
4814
|
+
readonly FULL: 'full';
|
|
4815
|
+
};
|
|
4816
|
+
export type HiDreamI1Variant = (typeof HiDreamI1Variant)[keyof typeof HiDreamI1Variant];
|
|
4679
4817
|
/**
|
|
4680
4818
|
* AI Toolkit training for HiDream O1 Image models.
|
|
4681
4819
|
*/
|
|
@@ -5052,6 +5190,119 @@ export type ImageResourceTrainingStepTemplate = Omit<WorkflowStepTemplate, '$typ
|
|
|
5052
5190
|
input: ImageResourceTrainingInput;
|
|
5053
5191
|
$type: 'imageResourceTraining';
|
|
5054
5192
|
};
|
|
5193
|
+
export type ImageScanningHumanEvidence = {
|
|
5194
|
+
tag: string;
|
|
5195
|
+
score: number;
|
|
5196
|
+
polarity: string;
|
|
5197
|
+
};
|
|
5198
|
+
export type ImageScanningHumanRecognition = {
|
|
5199
|
+
status: string;
|
|
5200
|
+
ran: boolean;
|
|
5201
|
+
label: string;
|
|
5202
|
+
score: number;
|
|
5203
|
+
humanScore: number;
|
|
5204
|
+
noHumanScore: number;
|
|
5205
|
+
scores: {
|
|
5206
|
+
[key: string]: number;
|
|
5207
|
+
};
|
|
5208
|
+
evidence: Array<ImageScanningHumanEvidence>;
|
|
5209
|
+
};
|
|
5210
|
+
/**
|
|
5211
|
+
* Input for a unified image scan.
|
|
5212
|
+
*/
|
|
5213
|
+
export type ImageScanningInput = {
|
|
5214
|
+
/**
|
|
5215
|
+
* Image to scan. URLs are imported into orchestrator blob storage before the job is queued.
|
|
5216
|
+
*/
|
|
5217
|
+
image: string;
|
|
5218
|
+
};
|
|
5219
|
+
export type ImageScanningJointAgeClassification = {
|
|
5220
|
+
status: string;
|
|
5221
|
+
ran: boolean;
|
|
5222
|
+
skipReason?: null | string;
|
|
5223
|
+
detections: Array<ImageScanningJointAgeDetection>;
|
|
5224
|
+
childDetected?: null | boolean;
|
|
5225
|
+
minorDetected?: null | boolean;
|
|
5226
|
+
oodDetected?: null | boolean;
|
|
5227
|
+
warning?: null | string;
|
|
5228
|
+
error?: null | string;
|
|
5229
|
+
};
|
|
5230
|
+
export type ImageScanningJointAgeDetection = {
|
|
5231
|
+
boundingBox: Array<number>;
|
|
5232
|
+
personDetected: boolean;
|
|
5233
|
+
personDetectionConfidence?: null | number;
|
|
5234
|
+
faceBoundingBox?: null | Array<number>;
|
|
5235
|
+
faceDetectionConfidence?: null | number;
|
|
5236
|
+
domain: string;
|
|
5237
|
+
animeProbability: number;
|
|
5238
|
+
apparentAge?: null | number;
|
|
5239
|
+
ageBand?: null | string;
|
|
5240
|
+
under13Probability?: null | number;
|
|
5241
|
+
under18Probability?: null | number;
|
|
5242
|
+
oodProbability?: null | number;
|
|
5243
|
+
ordinalCutpointProbabilities: {
|
|
5244
|
+
[key: string]: number;
|
|
5245
|
+
};
|
|
5246
|
+
isChild: boolean;
|
|
5247
|
+
isMinor: boolean;
|
|
5248
|
+
isOod: boolean;
|
|
5249
|
+
warning?: null | string;
|
|
5250
|
+
};
|
|
5251
|
+
export type ImageScanningLabelScore = {
|
|
5252
|
+
label: string;
|
|
5253
|
+
score: number;
|
|
5254
|
+
};
|
|
5255
|
+
/**
|
|
5256
|
+
* Complete result from the unified image scanner.
|
|
5257
|
+
*/
|
|
5258
|
+
export type ImageScanningOutput = {
|
|
5259
|
+
nsfwLevel: NsfwLevel;
|
|
5260
|
+
score: number;
|
|
5261
|
+
topK: Array<ImageScanningLabelScore>;
|
|
5262
|
+
aiRecognition: ImageScanningRecognition;
|
|
5263
|
+
animeRecognition: ImageScanningRecognition;
|
|
5264
|
+
tagging: ImageScanningTagging;
|
|
5265
|
+
humanRecognition: ImageScanningHumanRecognition;
|
|
5266
|
+
jointAgeClassification: ImageScanningJointAgeClassification;
|
|
5267
|
+
csam?: null | boolean;
|
|
5268
|
+
};
|
|
5269
|
+
export type ImageScanningRecognition = {
|
|
5270
|
+
label: string;
|
|
5271
|
+
score: number;
|
|
5272
|
+
topK?: null | Array<ImageScanningLabelScore>;
|
|
5273
|
+
scores?: null | {
|
|
5274
|
+
[key: string]: number;
|
|
5275
|
+
};
|
|
5276
|
+
};
|
|
5277
|
+
/**
|
|
5278
|
+
* Image scanning
|
|
5279
|
+
*/
|
|
5280
|
+
export type ImageScanningStep = Omit<WorkflowStep, '$type'> & {
|
|
5281
|
+
input: ImageScanningInput;
|
|
5282
|
+
output?: ImageScanningOutput;
|
|
5283
|
+
$type: 'imageScanning';
|
|
5284
|
+
};
|
|
5285
|
+
/**
|
|
5286
|
+
* Image scanning
|
|
5287
|
+
*/
|
|
5288
|
+
export type ImageScanningStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
5289
|
+
input: ImageScanningInput;
|
|
5290
|
+
$type: 'imageScanning';
|
|
5291
|
+
};
|
|
5292
|
+
export type ImageScanningTag = {
|
|
5293
|
+
tag: string;
|
|
5294
|
+
category: string;
|
|
5295
|
+
score: number;
|
|
5296
|
+
};
|
|
5297
|
+
export type ImageScanningTagging = {
|
|
5298
|
+
status: string;
|
|
5299
|
+
ran: boolean;
|
|
5300
|
+
threshold: number;
|
|
5301
|
+
tagCount: number;
|
|
5302
|
+
totalAboveThreshold: number;
|
|
5303
|
+
truncated: boolean;
|
|
5304
|
+
tags: Array<ImageScanningTag>;
|
|
5305
|
+
};
|
|
5055
5306
|
export type ImageToSvgInput = {
|
|
5056
5307
|
engine: string;
|
|
5057
5308
|
/**
|
|
@@ -5603,6 +5854,10 @@ export type LoadingResourceAvailability = Omit<ResourceAvailability, 'status'> &
|
|
|
5603
5854
|
* Inferred from reported progress over elapsed time; the worker's byte counters never leave it.
|
|
5604
5855
|
*/
|
|
5605
5856
|
bytesPerSecond?: null | number;
|
|
5857
|
+
/**
|
|
5858
|
+
* Per-stream ceiling the lane applies to this download. Null when uncapped; boosting to High lifts it.
|
|
5859
|
+
*/
|
|
5860
|
+
rateLimitBytesPerSecond?: null | number;
|
|
5606
5861
|
status: 'loading';
|
|
5607
5862
|
};
|
|
5608
5863
|
/**
|
|
@@ -7355,6 +7610,10 @@ export type QueuedResourceAvailability = Omit<ResourceAvailability, 'status'> &
|
|
|
7355
7610
|
* What Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability.EtaSeconds would become in the High lane. Null when already High.
|
|
7356
7611
|
*/
|
|
7357
7612
|
boostedEtaSeconds?: null | number;
|
|
7613
|
+
/**
|
|
7614
|
+
* Per-stream ceiling the lane applies to this download. Null when uncapped; boosting to High lifts it.
|
|
7615
|
+
*/
|
|
7616
|
+
rateLimitBytesPerSecond?: null | number;
|
|
7358
7617
|
status: 'queued';
|
|
7359
7618
|
};
|
|
7360
7619
|
export type Qwen20bCreateImageGenInput = Omit<
|
|
@@ -10366,8 +10625,17 @@ export type WorkflowStep = {
|
|
|
10366
10625
|
* step reaches a final status.
|
|
10367
10626
|
*/
|
|
10368
10627
|
estimatedProgressRate?: null | number;
|
|
10369
|
-
|
|
10628
|
+
/**
|
|
10629
|
+
* Every resource download this step is waiting on, the one holding it back first. Only set while
|
|
10630
|
+
* the step is preparing.
|
|
10631
|
+
*/
|
|
10632
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
10370
10633
|
queuePosition?: WorkflowStepQueuePosition;
|
|
10634
|
+
/**
|
|
10635
|
+
* Non-fatal warnings about this step, such as a requested model that is scheduled for retirement.
|
|
10636
|
+
* Omitted when there are none.
|
|
10637
|
+
*/
|
|
10638
|
+
warnings?: null | Array<WorkflowStepWarning>;
|
|
10371
10639
|
};
|
|
10372
10640
|
/**
|
|
10373
10641
|
* Details of a workflow step event.
|
|
@@ -10384,7 +10652,10 @@ export type WorkflowStepEvent = {
|
|
|
10384
10652
|
status: WorkflowStatus;
|
|
10385
10653
|
readonly $type: string;
|
|
10386
10654
|
details?: WorkflowStepEventDetails;
|
|
10387
|
-
|
|
10655
|
+
/**
|
|
10656
|
+
* Every resource download this step is waiting on, gating resource first. Only set while preparing.
|
|
10657
|
+
*/
|
|
10658
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
10388
10659
|
};
|
|
10389
10660
|
/**
|
|
10390
10661
|
* Detailed information about a workflow step included in webhook callbacks when detailed mode is enabled.
|
|
@@ -10420,7 +10691,10 @@ export type WorkflowStepEventDetails = {
|
|
|
10420
10691
|
* The output result from the step
|
|
10421
10692
|
*/
|
|
10422
10693
|
output?: null;
|
|
10423
|
-
|
|
10694
|
+
/**
|
|
10695
|
+
* Every resource download this step is waiting on, gating resource first. Only set while preparing.
|
|
10696
|
+
*/
|
|
10697
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
10424
10698
|
};
|
|
10425
10699
|
/**
|
|
10426
10700
|
* Details of a workflow step job event.
|
|
@@ -10445,37 +10719,6 @@ export type WorkflowStepJobEvent = {
|
|
|
10445
10719
|
blockedReason?: null | string;
|
|
10446
10720
|
matureContent?: null | boolean;
|
|
10447
10721
|
};
|
|
10448
|
-
/**
|
|
10449
|
-
* The resource downloads a step is waiting on while its status is preparing. Absent rather than
|
|
10450
|
-
* partially filled: without a resource and its place in the queue it says nothing the status doesn't.
|
|
10451
|
-
*/
|
|
10452
|
-
export type WorkflowStepPreparation = {
|
|
10453
|
-
/**
|
|
10454
|
-
* The resource currently holding the step back.
|
|
10455
|
-
*/
|
|
10456
|
-
resource: string;
|
|
10457
|
-
/**
|
|
10458
|
-
* Downloads ahead of this one. Zero means it is transferring now.
|
|
10459
|
-
*/
|
|
10460
|
-
queuePosition: number;
|
|
10461
|
-
/**
|
|
10462
|
-
* Download completion, 0.0 to 1.0. Null while the download is still queued.
|
|
10463
|
-
*/
|
|
10464
|
-
progress?: null | number;
|
|
10465
|
-
/**
|
|
10466
|
-
* Estimated seconds until the download completes.
|
|
10467
|
-
*/
|
|
10468
|
-
etaSeconds?: null | number;
|
|
10469
|
-
lane: Priority;
|
|
10470
|
-
/**
|
|
10471
|
-
* What Civitai.Orchestration.Grains.Workflows.WorkflowStepPreparation.EtaSeconds would become in the High lane. Null when already High.
|
|
10472
|
-
*/
|
|
10473
|
-
boostedEtaSeconds?: null | number;
|
|
10474
|
-
/**
|
|
10475
|
-
* Every resource this step is waiting on, gating resource first.
|
|
10476
|
-
*/
|
|
10477
|
-
resources: Array<WorkflowStepPreparationResource>;
|
|
10478
|
-
};
|
|
10479
10722
|
/**
|
|
10480
10723
|
* One resource a step is waiting on. A queued resource reports a position and no progress; one that
|
|
10481
10724
|
* is transferring reports the reverse.
|
|
@@ -10488,7 +10731,14 @@ export type WorkflowStepPreparationResource = {
|
|
|
10488
10731
|
progress?: null | number;
|
|
10489
10732
|
bytesPerSecond?: null | number;
|
|
10490
10733
|
etaSeconds?: null | number;
|
|
10734
|
+
/**
|
|
10735
|
+
* What Civitai.Orchestration.Grains.Workflows.WorkflowStepPreparationResource.EtaSeconds would become in the High lane. Null when already High.
|
|
10736
|
+
*/
|
|
10491
10737
|
boostedEtaSeconds?: null | number;
|
|
10738
|
+
/**
|
|
10739
|
+
* Per-stream ceiling the lane applies to this download. Null when uncapped; boosting to High lifts it.
|
|
10740
|
+
*/
|
|
10741
|
+
rateLimitBytesPerSecond?: null | number;
|
|
10492
10742
|
};
|
|
10493
10743
|
/**
|
|
10494
10744
|
* Details of a workflow step's position in the queue.
|
|
@@ -10533,6 +10783,33 @@ export type WorkflowStepTemplate = {
|
|
|
10533
10783
|
[key: string]: unknown;
|
|
10534
10784
|
};
|
|
10535
10785
|
};
|
|
10786
|
+
/**
|
|
10787
|
+
* A non-fatal notice about a workflow step, e.g. a requested model that is scheduled for retirement.
|
|
10788
|
+
*/
|
|
10789
|
+
export type WorkflowStepWarning = {
|
|
10790
|
+
code: WorkflowStepWarningCode;
|
|
10791
|
+
/**
|
|
10792
|
+
* A human-readable description of the warning.
|
|
10793
|
+
*/
|
|
10794
|
+
message: string;
|
|
10795
|
+
/**
|
|
10796
|
+
* When the deprecation was announced, if applicable.
|
|
10797
|
+
*/
|
|
10798
|
+
deprecatedAt?: null | string;
|
|
10799
|
+
/**
|
|
10800
|
+
* When requests relying on the deprecated behavior start being rejected, if applicable.
|
|
10801
|
+
*/
|
|
10802
|
+
retiresAt?: null | string;
|
|
10803
|
+
/**
|
|
10804
|
+
* The suggested replacement, if applicable.
|
|
10805
|
+
*/
|
|
10806
|
+
replacement?: null | string;
|
|
10807
|
+
};
|
|
10808
|
+
export declare const WorkflowStepWarningCode: {
|
|
10809
|
+
readonly MODEL_DEPRECATED: 'modelDeprecated';
|
|
10810
|
+
};
|
|
10811
|
+
export type WorkflowStepWarningCode =
|
|
10812
|
+
(typeof WorkflowStepWarningCode)[keyof typeof WorkflowStepWarningCode];
|
|
10536
10813
|
/**
|
|
10537
10814
|
* Details of a requested workflow.
|
|
10538
10815
|
*/
|
|
@@ -10781,6 +11058,61 @@ export type XGuardTextModerationInput = Omit<XGuardModerationInput, 'mode'> & {
|
|
|
10781
11058
|
text: string;
|
|
10782
11059
|
mode: 'text';
|
|
10783
11060
|
};
|
|
11061
|
+
/**
|
|
11062
|
+
* YuE2 text-to-music generation with optional ABC score planning.
|
|
11063
|
+
*/
|
|
11064
|
+
export type YuE2Input = {
|
|
11065
|
+
/**
|
|
11066
|
+
* Musical style, instrumentation, mood, tempo, and vocal description.
|
|
11067
|
+
*/
|
|
11068
|
+
style: string;
|
|
11069
|
+
/**
|
|
11070
|
+
* Lyrics with section markers such as [verse] and [chorus].
|
|
11071
|
+
*/
|
|
11072
|
+
lyrics: string;
|
|
11073
|
+
seed: number;
|
|
11074
|
+
/**
|
|
11075
|
+
* Maximum song duration in seconds; generation can stop earlier.
|
|
11076
|
+
*/
|
|
11077
|
+
maxDuration?: number;
|
|
11078
|
+
/**
|
|
11079
|
+
* Diffusion steps using the upstream dpm_2 / sgm_uniform sampler.
|
|
11080
|
+
*/
|
|
11081
|
+
steps?: number;
|
|
11082
|
+
/**
|
|
11083
|
+
* Score planning: full (melody and chords), melody, or off.
|
|
11084
|
+
*/
|
|
11085
|
+
mode: string;
|
|
11086
|
+
/**
|
|
11087
|
+
* Optional ABC score to use instead of generating a score. Ignored in off mode.
|
|
11088
|
+
*/
|
|
11089
|
+
abc?: null | string;
|
|
11090
|
+
/**
|
|
11091
|
+
* Optional YuE2 checkpoint override containing the model, text encoder, and audio VAE.
|
|
11092
|
+
*/
|
|
11093
|
+
model?: null | string;
|
|
11094
|
+
};
|
|
11095
|
+
/**
|
|
11096
|
+
* Output from YuE2 generation.
|
|
11097
|
+
*/
|
|
11098
|
+
export type YuE2Output = {
|
|
11099
|
+
blob: AudioBlob;
|
|
11100
|
+
};
|
|
11101
|
+
/**
|
|
11102
|
+
* Generate a song from style and lyrics with YuE2.
|
|
11103
|
+
*/
|
|
11104
|
+
export type YuE2Step = Omit<WorkflowStep, '$type'> & {
|
|
11105
|
+
input: YuE2Input;
|
|
11106
|
+
output?: YuE2Output;
|
|
11107
|
+
$type: 'yuE2';
|
|
11108
|
+
};
|
|
11109
|
+
/**
|
|
11110
|
+
* Generate a song from style and lyrics with YuE2.
|
|
11111
|
+
*/
|
|
11112
|
+
export type YuE2StepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
11113
|
+
input: YuE2Input;
|
|
11114
|
+
$type: 'yuE2';
|
|
11115
|
+
};
|
|
10784
11116
|
/**
|
|
10785
11117
|
* AI Toolkit training for Z Image Turbo models
|
|
10786
11118
|
*/
|
|
@@ -12322,7 +12654,10 @@ export type WorkflowStepEventWritable = {
|
|
|
12322
12654
|
name: string;
|
|
12323
12655
|
status: WorkflowStatus;
|
|
12324
12656
|
details?: WorkflowStepEventDetails;
|
|
12325
|
-
|
|
12657
|
+
/**
|
|
12658
|
+
* Every resource download this step is waiting on, gating resource first. Only set while preparing.
|
|
12659
|
+
*/
|
|
12660
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
12326
12661
|
};
|
|
12327
12662
|
/**
|
|
12328
12663
|
* Details of a workflow step job event.
|
|
@@ -12484,8 +12819,17 @@ export type WorkflowStepWritable = {
|
|
|
12484
12819
|
* step reaches a final status.
|
|
12485
12820
|
*/
|
|
12486
12821
|
estimatedProgressRate?: null | number;
|
|
12487
|
-
|
|
12822
|
+
/**
|
|
12823
|
+
* Every resource download this step is waiting on, the one holding it back first. Only set while
|
|
12824
|
+
* the step is preparing.
|
|
12825
|
+
*/
|
|
12826
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
12488
12827
|
queuePosition?: WorkflowStepQueuePosition;
|
|
12828
|
+
/**
|
|
12829
|
+
* Non-fatal warnings about this step, such as a requested model that is scheduled for retirement.
|
|
12830
|
+
* Omitted when there are none.
|
|
12831
|
+
*/
|
|
12832
|
+
warnings?: null | Array<WorkflowStepWarning>;
|
|
12489
12833
|
};
|
|
12490
12834
|
export type ImageGenInputWritable = {
|
|
12491
12835
|
engine: string;
|
|
@@ -13378,6 +13722,37 @@ export type InvokeImageResourceTrainingStepTemplateResponses = {
|
|
|
13378
13722
|
};
|
|
13379
13723
|
export type InvokeImageResourceTrainingStepTemplateResponse =
|
|
13380
13724
|
InvokeImageResourceTrainingStepTemplateResponses[keyof InvokeImageResourceTrainingStepTemplateResponses];
|
|
13725
|
+
export type InvokeImageScanningStepTemplateData = {
|
|
13726
|
+
body?: ImageScanningInput;
|
|
13727
|
+
path?: never;
|
|
13728
|
+
query?: {
|
|
13729
|
+
experimental?: boolean;
|
|
13730
|
+
allowMatureContent?: boolean;
|
|
13731
|
+
whatif?: boolean;
|
|
13732
|
+
ephemeral?: boolean;
|
|
13733
|
+
};
|
|
13734
|
+
url: '/v2/consumer/recipes/imageScanning';
|
|
13735
|
+
};
|
|
13736
|
+
export type InvokeImageScanningStepTemplateErrors = {
|
|
13737
|
+
/**
|
|
13738
|
+
* Bad Request
|
|
13739
|
+
*/
|
|
13740
|
+
400: ProblemDetails;
|
|
13741
|
+
/**
|
|
13742
|
+
* Unauthorized
|
|
13743
|
+
*/
|
|
13744
|
+
401: ProblemDetails;
|
|
13745
|
+
};
|
|
13746
|
+
export type InvokeImageScanningStepTemplateError =
|
|
13747
|
+
InvokeImageScanningStepTemplateErrors[keyof InvokeImageScanningStepTemplateErrors];
|
|
13748
|
+
export type InvokeImageScanningStepTemplateResponses = {
|
|
13749
|
+
/**
|
|
13750
|
+
* OK
|
|
13751
|
+
*/
|
|
13752
|
+
200: ImageScanningOutput;
|
|
13753
|
+
};
|
|
13754
|
+
export type InvokeImageScanningStepTemplateResponse =
|
|
13755
|
+
InvokeImageScanningStepTemplateResponses[keyof InvokeImageScanningStepTemplateResponses];
|
|
13381
13756
|
export type InvokeImageToSvgStepTemplateData = {
|
|
13382
13757
|
body?: ImageToSvgInput;
|
|
13383
13758
|
path?: never;
|
|
@@ -14525,6 +14900,37 @@ export type InvokeXGuardModerationStepTemplateResponses = {
|
|
|
14525
14900
|
};
|
|
14526
14901
|
export type InvokeXGuardModerationStepTemplateResponse =
|
|
14527
14902
|
InvokeXGuardModerationStepTemplateResponses[keyof InvokeXGuardModerationStepTemplateResponses];
|
|
14903
|
+
export type InvokeYuE2StepTemplateData = {
|
|
14904
|
+
body?: YuE2Input;
|
|
14905
|
+
path?: never;
|
|
14906
|
+
query?: {
|
|
14907
|
+
experimental?: boolean;
|
|
14908
|
+
allowMatureContent?: boolean;
|
|
14909
|
+
whatif?: boolean;
|
|
14910
|
+
ephemeral?: boolean;
|
|
14911
|
+
};
|
|
14912
|
+
url: '/v2/consumer/recipes/yuE2';
|
|
14913
|
+
};
|
|
14914
|
+
export type InvokeYuE2StepTemplateErrors = {
|
|
14915
|
+
/**
|
|
14916
|
+
* Bad Request
|
|
14917
|
+
*/
|
|
14918
|
+
400: ProblemDetails;
|
|
14919
|
+
/**
|
|
14920
|
+
* Unauthorized
|
|
14921
|
+
*/
|
|
14922
|
+
401: ProblemDetails;
|
|
14923
|
+
};
|
|
14924
|
+
export type InvokeYuE2StepTemplateError =
|
|
14925
|
+
InvokeYuE2StepTemplateErrors[keyof InvokeYuE2StepTemplateErrors];
|
|
14926
|
+
export type InvokeYuE2StepTemplateResponses = {
|
|
14927
|
+
/**
|
|
14928
|
+
* OK
|
|
14929
|
+
*/
|
|
14930
|
+
200: YuE2Output;
|
|
14931
|
+
};
|
|
14932
|
+
export type InvokeYuE2StepTemplateResponse =
|
|
14933
|
+
InvokeYuE2StepTemplateResponses[keyof InvokeYuE2StepTemplateResponses];
|
|
14528
14934
|
export type QueryResourcesData = {
|
|
14529
14935
|
body?: never;
|
|
14530
14936
|
path?: never;
|
|
@@ -14610,7 +15016,13 @@ export type ListServicesData = {
|
|
|
14610
15016
|
* Window the metrics and status are computed over: 1h, 24h or 7d.
|
|
14611
15017
|
*/
|
|
14612
15018
|
window?: string;
|
|
15019
|
+
/**
|
|
15020
|
+
* Maximum number of services to return.
|
|
15021
|
+
*/
|
|
14613
15022
|
limit?: number;
|
|
15023
|
+
/**
|
|
15024
|
+
* Number of services to skip.
|
|
15025
|
+
*/
|
|
14614
15026
|
offset?: number;
|
|
14615
15027
|
};
|
|
14616
15028
|
url: '/v2/services';
|
|
@@ -138,6 +138,12 @@ export const HaiperVideoGenCameraMovement = {
|
|
|
138
138
|
ZOOM_OUT: 'zoomOut',
|
|
139
139
|
};
|
|
140
140
|
export const HaiperVideoGenModel = { V1_5: 'v1_5', V2: 'v2' };
|
|
141
|
+
export const HiDreamI1Precision = { FP8: 'fp8', FP16: 'fp16' };
|
|
142
|
+
export const HiDreamI1Variant = {
|
|
143
|
+
FAST: 'fast',
|
|
144
|
+
DEV: 'dev',
|
|
145
|
+
FULL: 'full',
|
|
146
|
+
};
|
|
141
147
|
export const HumanoidImageMaskCategory = {
|
|
142
148
|
DRESSES: 'dresses',
|
|
143
149
|
UPPER_BODY: 'upperBody',
|
|
@@ -468,6 +474,7 @@ export const WorkflowStatus = {
|
|
|
468
474
|
EXPIRED: 'expired',
|
|
469
475
|
CANCELED: 'canceled',
|
|
470
476
|
};
|
|
477
|
+
export const WorkflowStepWarningCode = { MODEL_DEPRECATED: 'modelDeprecated' };
|
|
471
478
|
/**
|
|
472
479
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
473
480
|
*/
|
package/package.json
CHANGED