@civitai/orchestration-client 0.2.0-beta.105 → 0.2.0-beta.106
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,
|
|
@@ -532,6 +535,18 @@ export {
|
|
|
532
535
|
type ImageResourceTrainingOutput,
|
|
533
536
|
type ImageResourceTrainingStep,
|
|
534
537
|
type ImageResourceTrainingStepTemplate,
|
|
538
|
+
type ImageScanningHumanEvidence,
|
|
539
|
+
type ImageScanningHumanRecognition,
|
|
540
|
+
type ImageScanningInput,
|
|
541
|
+
type ImageScanningJointAgeClassification,
|
|
542
|
+
type ImageScanningJointAgeDetection,
|
|
543
|
+
type ImageScanningLabelScore,
|
|
544
|
+
type ImageScanningOutput,
|
|
545
|
+
type ImageScanningRecognition,
|
|
546
|
+
type ImageScanningStep,
|
|
547
|
+
type ImageScanningStepTemplate,
|
|
548
|
+
type ImageScanningTag,
|
|
549
|
+
type ImageScanningTagging,
|
|
535
550
|
type ImageToSvgInput,
|
|
536
551
|
type ImageToSvgOutput,
|
|
537
552
|
type ImageToSvgStep,
|
|
@@ -635,6 +650,11 @@ export {
|
|
|
635
650
|
type InvokeImageResourceTrainingStepTemplateErrors,
|
|
636
651
|
type InvokeImageResourceTrainingStepTemplateResponse,
|
|
637
652
|
type InvokeImageResourceTrainingStepTemplateResponses,
|
|
653
|
+
type InvokeImageScanningStepTemplateData,
|
|
654
|
+
type InvokeImageScanningStepTemplateError,
|
|
655
|
+
type InvokeImageScanningStepTemplateErrors,
|
|
656
|
+
type InvokeImageScanningStepTemplateResponse,
|
|
657
|
+
type InvokeImageScanningStepTemplateResponses,
|
|
638
658
|
type InvokeImageToSvgStepTemplateData,
|
|
639
659
|
type InvokeImageToSvgStepTemplateError,
|
|
640
660
|
type InvokeImageToSvgStepTemplateErrors,
|
|
@@ -820,6 +840,11 @@ export {
|
|
|
820
840
|
type InvokeXGuardModerationStepTemplateErrors,
|
|
821
841
|
type InvokeXGuardModerationStepTemplateResponse,
|
|
822
842
|
type InvokeXGuardModerationStepTemplateResponses,
|
|
843
|
+
type InvokeYuE2StepTemplateData,
|
|
844
|
+
type InvokeYuE2StepTemplateError,
|
|
845
|
+
type InvokeYuE2StepTemplateErrors,
|
|
846
|
+
type InvokeYuE2StepTemplateResponse,
|
|
847
|
+
type InvokeYuE2StepTemplateResponses,
|
|
823
848
|
JobSupport,
|
|
824
849
|
type JointAgeClassificationResult,
|
|
825
850
|
type JointAgeDetection,
|
|
@@ -1384,11 +1409,12 @@ export {
|
|
|
1384
1409
|
type WorkflowStepEventWritable,
|
|
1385
1410
|
type WorkflowStepJobEvent,
|
|
1386
1411
|
type WorkflowStepJobEventWritable,
|
|
1387
|
-
type WorkflowStepPreparation,
|
|
1388
1412
|
type WorkflowStepPreparationResource,
|
|
1389
1413
|
type WorkflowStepQueuePosition,
|
|
1390
1414
|
type WorkflowStepTemplate,
|
|
1391
1415
|
type WorkflowStepTemplateWritable,
|
|
1416
|
+
type WorkflowStepWarning,
|
|
1417
|
+
WorkflowStepWarningCode,
|
|
1392
1418
|
type WorkflowStepWritable,
|
|
1393
1419
|
type WorkflowTemplate,
|
|
1394
1420
|
type WorkflowTips,
|
|
@@ -1410,6 +1436,10 @@ export {
|
|
|
1410
1436
|
type XGuardSignalMetadata,
|
|
1411
1437
|
type XGuardSignalMetadataWritable,
|
|
1412
1438
|
type XGuardTextModerationInput,
|
|
1439
|
+
type YuE2Input,
|
|
1440
|
+
type YuE2Output,
|
|
1441
|
+
type YuE2Step,
|
|
1442
|
+
type YuE2StepTemplate,
|
|
1413
1443
|
type ZImageBaseAiToolkitTrainingInput,
|
|
1414
1444
|
type ZImageBaseAiToolkitTrainingInputWritable,
|
|
1415
1445
|
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, 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
|
|
@@ -5052,6 +5066,119 @@ export type ImageResourceTrainingStepTemplate = Omit<WorkflowStepTemplate, '$typ
|
|
|
5052
5066
|
input: ImageResourceTrainingInput;
|
|
5053
5067
|
$type: 'imageResourceTraining';
|
|
5054
5068
|
};
|
|
5069
|
+
export type ImageScanningHumanEvidence = {
|
|
5070
|
+
tag: string;
|
|
5071
|
+
score: number;
|
|
5072
|
+
polarity: string;
|
|
5073
|
+
};
|
|
5074
|
+
export type ImageScanningHumanRecognition = {
|
|
5075
|
+
status: string;
|
|
5076
|
+
ran: boolean;
|
|
5077
|
+
label: string;
|
|
5078
|
+
score: number;
|
|
5079
|
+
humanScore: number;
|
|
5080
|
+
noHumanScore: number;
|
|
5081
|
+
scores: {
|
|
5082
|
+
[key: string]: number;
|
|
5083
|
+
};
|
|
5084
|
+
evidence: Array<ImageScanningHumanEvidence>;
|
|
5085
|
+
};
|
|
5086
|
+
/**
|
|
5087
|
+
* Input for a unified image scan.
|
|
5088
|
+
*/
|
|
5089
|
+
export type ImageScanningInput = {
|
|
5090
|
+
/**
|
|
5091
|
+
* Image to scan. URLs are imported into orchestrator blob storage before the job is queued.
|
|
5092
|
+
*/
|
|
5093
|
+
image: string;
|
|
5094
|
+
};
|
|
5095
|
+
export type ImageScanningJointAgeClassification = {
|
|
5096
|
+
status: string;
|
|
5097
|
+
ran: boolean;
|
|
5098
|
+
skipReason?: null | string;
|
|
5099
|
+
detections: Array<ImageScanningJointAgeDetection>;
|
|
5100
|
+
childDetected?: null | boolean;
|
|
5101
|
+
minorDetected?: null | boolean;
|
|
5102
|
+
oodDetected?: null | boolean;
|
|
5103
|
+
warning?: null | string;
|
|
5104
|
+
error?: null | string;
|
|
5105
|
+
};
|
|
5106
|
+
export type ImageScanningJointAgeDetection = {
|
|
5107
|
+
boundingBox: Array<number>;
|
|
5108
|
+
personDetected: boolean;
|
|
5109
|
+
personDetectionConfidence?: null | number;
|
|
5110
|
+
faceBoundingBox?: null | Array<number>;
|
|
5111
|
+
faceDetectionConfidence?: null | number;
|
|
5112
|
+
domain: string;
|
|
5113
|
+
animeProbability: number;
|
|
5114
|
+
apparentAge?: null | number;
|
|
5115
|
+
ageBand?: null | string;
|
|
5116
|
+
under13Probability?: null | number;
|
|
5117
|
+
under18Probability?: null | number;
|
|
5118
|
+
oodProbability?: null | number;
|
|
5119
|
+
ordinalCutpointProbabilities: {
|
|
5120
|
+
[key: string]: number;
|
|
5121
|
+
};
|
|
5122
|
+
isChild: boolean;
|
|
5123
|
+
isMinor: boolean;
|
|
5124
|
+
isOod: boolean;
|
|
5125
|
+
warning?: null | string;
|
|
5126
|
+
};
|
|
5127
|
+
export type ImageScanningLabelScore = {
|
|
5128
|
+
label: string;
|
|
5129
|
+
score: number;
|
|
5130
|
+
};
|
|
5131
|
+
/**
|
|
5132
|
+
* Complete result from the unified image scanner.
|
|
5133
|
+
*/
|
|
5134
|
+
export type ImageScanningOutput = {
|
|
5135
|
+
nsfwLevel: NsfwLevel;
|
|
5136
|
+
score: number;
|
|
5137
|
+
topK: Array<ImageScanningLabelScore>;
|
|
5138
|
+
aiRecognition: ImageScanningRecognition;
|
|
5139
|
+
animeRecognition: ImageScanningRecognition;
|
|
5140
|
+
tagging: ImageScanningTagging;
|
|
5141
|
+
humanRecognition: ImageScanningHumanRecognition;
|
|
5142
|
+
jointAgeClassification: ImageScanningJointAgeClassification;
|
|
5143
|
+
csam?: null | boolean;
|
|
5144
|
+
};
|
|
5145
|
+
export type ImageScanningRecognition = {
|
|
5146
|
+
label: string;
|
|
5147
|
+
score: number;
|
|
5148
|
+
topK?: null | Array<ImageScanningLabelScore>;
|
|
5149
|
+
scores?: null | {
|
|
5150
|
+
[key: string]: number;
|
|
5151
|
+
};
|
|
5152
|
+
};
|
|
5153
|
+
/**
|
|
5154
|
+
* Image scanning
|
|
5155
|
+
*/
|
|
5156
|
+
export type ImageScanningStep = Omit<WorkflowStep, '$type'> & {
|
|
5157
|
+
input: ImageScanningInput;
|
|
5158
|
+
output?: ImageScanningOutput;
|
|
5159
|
+
$type: 'imageScanning';
|
|
5160
|
+
};
|
|
5161
|
+
/**
|
|
5162
|
+
* Image scanning
|
|
5163
|
+
*/
|
|
5164
|
+
export type ImageScanningStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
5165
|
+
input: ImageScanningInput;
|
|
5166
|
+
$type: 'imageScanning';
|
|
5167
|
+
};
|
|
5168
|
+
export type ImageScanningTag = {
|
|
5169
|
+
tag: string;
|
|
5170
|
+
category: string;
|
|
5171
|
+
score: number;
|
|
5172
|
+
};
|
|
5173
|
+
export type ImageScanningTagging = {
|
|
5174
|
+
status: string;
|
|
5175
|
+
ran: boolean;
|
|
5176
|
+
threshold: number;
|
|
5177
|
+
tagCount: number;
|
|
5178
|
+
totalAboveThreshold: number;
|
|
5179
|
+
truncated: boolean;
|
|
5180
|
+
tags: Array<ImageScanningTag>;
|
|
5181
|
+
};
|
|
5055
5182
|
export type ImageToSvgInput = {
|
|
5056
5183
|
engine: string;
|
|
5057
5184
|
/**
|
|
@@ -10366,8 +10493,17 @@ export type WorkflowStep = {
|
|
|
10366
10493
|
* step reaches a final status.
|
|
10367
10494
|
*/
|
|
10368
10495
|
estimatedProgressRate?: null | number;
|
|
10369
|
-
|
|
10496
|
+
/**
|
|
10497
|
+
* Every resource download this step is waiting on, the one holding it back first. Only set while
|
|
10498
|
+
* the step is preparing.
|
|
10499
|
+
*/
|
|
10500
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
10370
10501
|
queuePosition?: WorkflowStepQueuePosition;
|
|
10502
|
+
/**
|
|
10503
|
+
* Non-fatal warnings about this step, such as a requested model that is scheduled for retirement.
|
|
10504
|
+
* Omitted when there are none.
|
|
10505
|
+
*/
|
|
10506
|
+
warnings?: null | Array<WorkflowStepWarning>;
|
|
10371
10507
|
};
|
|
10372
10508
|
/**
|
|
10373
10509
|
* Details of a workflow step event.
|
|
@@ -10384,7 +10520,10 @@ export type WorkflowStepEvent = {
|
|
|
10384
10520
|
status: WorkflowStatus;
|
|
10385
10521
|
readonly $type: string;
|
|
10386
10522
|
details?: WorkflowStepEventDetails;
|
|
10387
|
-
|
|
10523
|
+
/**
|
|
10524
|
+
* Every resource download this step is waiting on, gating resource first. Only set while preparing.
|
|
10525
|
+
*/
|
|
10526
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
10388
10527
|
};
|
|
10389
10528
|
/**
|
|
10390
10529
|
* Detailed information about a workflow step included in webhook callbacks when detailed mode is enabled.
|
|
@@ -10420,7 +10559,10 @@ export type WorkflowStepEventDetails = {
|
|
|
10420
10559
|
* The output result from the step
|
|
10421
10560
|
*/
|
|
10422
10561
|
output?: null;
|
|
10423
|
-
|
|
10562
|
+
/**
|
|
10563
|
+
* Every resource download this step is waiting on, gating resource first. Only set while preparing.
|
|
10564
|
+
*/
|
|
10565
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
10424
10566
|
};
|
|
10425
10567
|
/**
|
|
10426
10568
|
* Details of a workflow step job event.
|
|
@@ -10445,37 +10587,6 @@ export type WorkflowStepJobEvent = {
|
|
|
10445
10587
|
blockedReason?: null | string;
|
|
10446
10588
|
matureContent?: null | boolean;
|
|
10447
10589
|
};
|
|
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
10590
|
/**
|
|
10480
10591
|
* One resource a step is waiting on. A queued resource reports a position and no progress; one that
|
|
10481
10592
|
* is transferring reports the reverse.
|
|
@@ -10488,6 +10599,9 @@ export type WorkflowStepPreparationResource = {
|
|
|
10488
10599
|
progress?: null | number;
|
|
10489
10600
|
bytesPerSecond?: null | number;
|
|
10490
10601
|
etaSeconds?: null | number;
|
|
10602
|
+
/**
|
|
10603
|
+
* What Civitai.Orchestration.Grains.Workflows.WorkflowStepPreparationResource.EtaSeconds would become in the High lane. Null when already High.
|
|
10604
|
+
*/
|
|
10491
10605
|
boostedEtaSeconds?: null | number;
|
|
10492
10606
|
};
|
|
10493
10607
|
/**
|
|
@@ -10533,6 +10647,33 @@ export type WorkflowStepTemplate = {
|
|
|
10533
10647
|
[key: string]: unknown;
|
|
10534
10648
|
};
|
|
10535
10649
|
};
|
|
10650
|
+
/**
|
|
10651
|
+
* A non-fatal notice about a workflow step, e.g. a requested model that is scheduled for retirement.
|
|
10652
|
+
*/
|
|
10653
|
+
export type WorkflowStepWarning = {
|
|
10654
|
+
code: WorkflowStepWarningCode;
|
|
10655
|
+
/**
|
|
10656
|
+
* A human-readable description of the warning.
|
|
10657
|
+
*/
|
|
10658
|
+
message: string;
|
|
10659
|
+
/**
|
|
10660
|
+
* When the deprecation was announced, if applicable.
|
|
10661
|
+
*/
|
|
10662
|
+
deprecatedAt?: null | string;
|
|
10663
|
+
/**
|
|
10664
|
+
* When requests relying on the deprecated behavior start being rejected, if applicable.
|
|
10665
|
+
*/
|
|
10666
|
+
retiresAt?: null | string;
|
|
10667
|
+
/**
|
|
10668
|
+
* The suggested replacement, if applicable.
|
|
10669
|
+
*/
|
|
10670
|
+
replacement?: null | string;
|
|
10671
|
+
};
|
|
10672
|
+
export declare const WorkflowStepWarningCode: {
|
|
10673
|
+
readonly MODEL_DEPRECATED: 'modelDeprecated';
|
|
10674
|
+
};
|
|
10675
|
+
export type WorkflowStepWarningCode =
|
|
10676
|
+
(typeof WorkflowStepWarningCode)[keyof typeof WorkflowStepWarningCode];
|
|
10536
10677
|
/**
|
|
10537
10678
|
* Details of a requested workflow.
|
|
10538
10679
|
*/
|
|
@@ -10781,6 +10922,61 @@ export type XGuardTextModerationInput = Omit<XGuardModerationInput, 'mode'> & {
|
|
|
10781
10922
|
text: string;
|
|
10782
10923
|
mode: 'text';
|
|
10783
10924
|
};
|
|
10925
|
+
/**
|
|
10926
|
+
* YuE2 text-to-music generation with optional ABC score planning.
|
|
10927
|
+
*/
|
|
10928
|
+
export type YuE2Input = {
|
|
10929
|
+
/**
|
|
10930
|
+
* Musical style, instrumentation, mood, tempo, and vocal description.
|
|
10931
|
+
*/
|
|
10932
|
+
style: string;
|
|
10933
|
+
/**
|
|
10934
|
+
* Lyrics with section markers such as [verse] and [chorus].
|
|
10935
|
+
*/
|
|
10936
|
+
lyrics: string;
|
|
10937
|
+
seed: number;
|
|
10938
|
+
/**
|
|
10939
|
+
* Maximum song duration in seconds; generation can stop earlier.
|
|
10940
|
+
*/
|
|
10941
|
+
maxDuration?: number;
|
|
10942
|
+
/**
|
|
10943
|
+
* Diffusion steps using the upstream dpm_2 / sgm_uniform sampler.
|
|
10944
|
+
*/
|
|
10945
|
+
steps?: number;
|
|
10946
|
+
/**
|
|
10947
|
+
* Score planning: full (melody and chords), melody, or off.
|
|
10948
|
+
*/
|
|
10949
|
+
mode: string;
|
|
10950
|
+
/**
|
|
10951
|
+
* Optional ABC score to use instead of generating a score. Ignored in off mode.
|
|
10952
|
+
*/
|
|
10953
|
+
abc?: null | string;
|
|
10954
|
+
/**
|
|
10955
|
+
* Optional YuE2 checkpoint override containing the model, text encoder, and audio VAE.
|
|
10956
|
+
*/
|
|
10957
|
+
model?: null | string;
|
|
10958
|
+
};
|
|
10959
|
+
/**
|
|
10960
|
+
* Output from YuE2 generation.
|
|
10961
|
+
*/
|
|
10962
|
+
export type YuE2Output = {
|
|
10963
|
+
blob: AudioBlob;
|
|
10964
|
+
};
|
|
10965
|
+
/**
|
|
10966
|
+
* Generate a song from style and lyrics with YuE2.
|
|
10967
|
+
*/
|
|
10968
|
+
export type YuE2Step = Omit<WorkflowStep, '$type'> & {
|
|
10969
|
+
input: YuE2Input;
|
|
10970
|
+
output?: YuE2Output;
|
|
10971
|
+
$type: 'yuE2';
|
|
10972
|
+
};
|
|
10973
|
+
/**
|
|
10974
|
+
* Generate a song from style and lyrics with YuE2.
|
|
10975
|
+
*/
|
|
10976
|
+
export type YuE2StepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
|
|
10977
|
+
input: YuE2Input;
|
|
10978
|
+
$type: 'yuE2';
|
|
10979
|
+
};
|
|
10784
10980
|
/**
|
|
10785
10981
|
* AI Toolkit training for Z Image Turbo models
|
|
10786
10982
|
*/
|
|
@@ -12322,7 +12518,10 @@ export type WorkflowStepEventWritable = {
|
|
|
12322
12518
|
name: string;
|
|
12323
12519
|
status: WorkflowStatus;
|
|
12324
12520
|
details?: WorkflowStepEventDetails;
|
|
12325
|
-
|
|
12521
|
+
/**
|
|
12522
|
+
* Every resource download this step is waiting on, gating resource first. Only set while preparing.
|
|
12523
|
+
*/
|
|
12524
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
12326
12525
|
};
|
|
12327
12526
|
/**
|
|
12328
12527
|
* Details of a workflow step job event.
|
|
@@ -12484,8 +12683,17 @@ export type WorkflowStepWritable = {
|
|
|
12484
12683
|
* step reaches a final status.
|
|
12485
12684
|
*/
|
|
12486
12685
|
estimatedProgressRate?: null | number;
|
|
12487
|
-
|
|
12686
|
+
/**
|
|
12687
|
+
* Every resource download this step is waiting on, the one holding it back first. Only set while
|
|
12688
|
+
* the step is preparing.
|
|
12689
|
+
*/
|
|
12690
|
+
preparation?: null | Array<WorkflowStepPreparationResource>;
|
|
12488
12691
|
queuePosition?: WorkflowStepQueuePosition;
|
|
12692
|
+
/**
|
|
12693
|
+
* Non-fatal warnings about this step, such as a requested model that is scheduled for retirement.
|
|
12694
|
+
* Omitted when there are none.
|
|
12695
|
+
*/
|
|
12696
|
+
warnings?: null | Array<WorkflowStepWarning>;
|
|
12489
12697
|
};
|
|
12490
12698
|
export type ImageGenInputWritable = {
|
|
12491
12699
|
engine: string;
|
|
@@ -13378,6 +13586,37 @@ export type InvokeImageResourceTrainingStepTemplateResponses = {
|
|
|
13378
13586
|
};
|
|
13379
13587
|
export type InvokeImageResourceTrainingStepTemplateResponse =
|
|
13380
13588
|
InvokeImageResourceTrainingStepTemplateResponses[keyof InvokeImageResourceTrainingStepTemplateResponses];
|
|
13589
|
+
export type InvokeImageScanningStepTemplateData = {
|
|
13590
|
+
body?: ImageScanningInput;
|
|
13591
|
+
path?: never;
|
|
13592
|
+
query?: {
|
|
13593
|
+
experimental?: boolean;
|
|
13594
|
+
allowMatureContent?: boolean;
|
|
13595
|
+
whatif?: boolean;
|
|
13596
|
+
ephemeral?: boolean;
|
|
13597
|
+
};
|
|
13598
|
+
url: '/v2/consumer/recipes/imageScanning';
|
|
13599
|
+
};
|
|
13600
|
+
export type InvokeImageScanningStepTemplateErrors = {
|
|
13601
|
+
/**
|
|
13602
|
+
* Bad Request
|
|
13603
|
+
*/
|
|
13604
|
+
400: ProblemDetails;
|
|
13605
|
+
/**
|
|
13606
|
+
* Unauthorized
|
|
13607
|
+
*/
|
|
13608
|
+
401: ProblemDetails;
|
|
13609
|
+
};
|
|
13610
|
+
export type InvokeImageScanningStepTemplateError =
|
|
13611
|
+
InvokeImageScanningStepTemplateErrors[keyof InvokeImageScanningStepTemplateErrors];
|
|
13612
|
+
export type InvokeImageScanningStepTemplateResponses = {
|
|
13613
|
+
/**
|
|
13614
|
+
* OK
|
|
13615
|
+
*/
|
|
13616
|
+
200: ImageScanningOutput;
|
|
13617
|
+
};
|
|
13618
|
+
export type InvokeImageScanningStepTemplateResponse =
|
|
13619
|
+
InvokeImageScanningStepTemplateResponses[keyof InvokeImageScanningStepTemplateResponses];
|
|
13381
13620
|
export type InvokeImageToSvgStepTemplateData = {
|
|
13382
13621
|
body?: ImageToSvgInput;
|
|
13383
13622
|
path?: never;
|
|
@@ -14525,6 +14764,37 @@ export type InvokeXGuardModerationStepTemplateResponses = {
|
|
|
14525
14764
|
};
|
|
14526
14765
|
export type InvokeXGuardModerationStepTemplateResponse =
|
|
14527
14766
|
InvokeXGuardModerationStepTemplateResponses[keyof InvokeXGuardModerationStepTemplateResponses];
|
|
14767
|
+
export type InvokeYuE2StepTemplateData = {
|
|
14768
|
+
body?: YuE2Input;
|
|
14769
|
+
path?: never;
|
|
14770
|
+
query?: {
|
|
14771
|
+
experimental?: boolean;
|
|
14772
|
+
allowMatureContent?: boolean;
|
|
14773
|
+
whatif?: boolean;
|
|
14774
|
+
ephemeral?: boolean;
|
|
14775
|
+
};
|
|
14776
|
+
url: '/v2/consumer/recipes/yuE2';
|
|
14777
|
+
};
|
|
14778
|
+
export type InvokeYuE2StepTemplateErrors = {
|
|
14779
|
+
/**
|
|
14780
|
+
* Bad Request
|
|
14781
|
+
*/
|
|
14782
|
+
400: ProblemDetails;
|
|
14783
|
+
/**
|
|
14784
|
+
* Unauthorized
|
|
14785
|
+
*/
|
|
14786
|
+
401: ProblemDetails;
|
|
14787
|
+
};
|
|
14788
|
+
export type InvokeYuE2StepTemplateError =
|
|
14789
|
+
InvokeYuE2StepTemplateErrors[keyof InvokeYuE2StepTemplateErrors];
|
|
14790
|
+
export type InvokeYuE2StepTemplateResponses = {
|
|
14791
|
+
/**
|
|
14792
|
+
* OK
|
|
14793
|
+
*/
|
|
14794
|
+
200: YuE2Output;
|
|
14795
|
+
};
|
|
14796
|
+
export type InvokeYuE2StepTemplateResponse =
|
|
14797
|
+
InvokeYuE2StepTemplateResponses[keyof InvokeYuE2StepTemplateResponses];
|
|
14528
14798
|
export type QueryResourcesData = {
|
|
14529
14799
|
body?: never;
|
|
14530
14800
|
path?: never;
|
|
@@ -468,6 +468,7 @@ export const WorkflowStatus = {
|
|
|
468
468
|
EXPIRED: 'expired',
|
|
469
469
|
CANCELED: 'canceled',
|
|
470
470
|
};
|
|
471
|
+
export const WorkflowStepWarningCode = { MODEL_DEPRECATED: 'modelDeprecated' };
|
|
471
472
|
/**
|
|
472
473
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
473
474
|
*/
|
package/package.json
CHANGED