@civitai/orchestration-client 0.2.0-beta.104 → 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,
@@ -1098,6 +1123,7 @@ export {
1098
1123
  type QueryWorkflowsErrors,
1099
1124
  type QueryWorkflowsResponse,
1100
1125
  type QueryWorkflowsResponses,
1126
+ type QueuedResourceAvailability,
1101
1127
  type Qwen20bCreateImageGenInput,
1102
1128
  type Qwen20bEditImageGenInput,
1103
1129
  type Qwen20bEditImageGenInputWritable,
@@ -1383,10 +1409,12 @@ export {
1383
1409
  type WorkflowStepEventWritable,
1384
1410
  type WorkflowStepJobEvent,
1385
1411
  type WorkflowStepJobEventWritable,
1386
- type WorkflowStepPreparation,
1412
+ type WorkflowStepPreparationResource,
1387
1413
  type WorkflowStepQueuePosition,
1388
1414
  type WorkflowStepTemplate,
1389
1415
  type WorkflowStepTemplateWritable,
1416
+ type WorkflowStepWarning,
1417
+ WorkflowStepWarningCode,
1390
1418
  type WorkflowStepWritable,
1391
1419
  type WorkflowTemplate,
1392
1420
  type WorkflowTips,
@@ -1408,6 +1436,10 @@ export {
1408
1436
  type XGuardSignalMetadata,
1409
1437
  type XGuardSignalMetadataWritable,
1410
1438
  type XGuardTextModerationInput,
1439
+ type YuE2Input,
1440
+ type YuE2Output,
1441
+ type YuE2Step,
1442
+ type YuE2StepTemplate,
1411
1443
  type ZImageBaseAiToolkitTrainingInput,
1412
1444
  type ZImageBaseAiToolkitTrainingInputWritable,
1413
1445
  type ZImageBaseCreateImageGenInput,
@@ -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
  /**
@@ -5589,12 +5716,20 @@ export type LightricksVideoGenInput = Omit<VideoGenInput, 'engine'> & {
5589
5716
  expandPrompt?: boolean;
5590
5717
  engine: 'lightricks';
5591
5718
  };
5719
+ /**
5720
+ * Transferring. No queue position — it is no longer waiting.
5721
+ */
5592
5722
  export type LoadingResourceAvailability = Omit<ResourceAvailability, 'status'> & {
5593
5723
  progress: number;
5594
5724
  workers: number;
5595
5725
  startedAt?: null | string;
5596
5726
  lastProgressAt?: null | string;
5597
5727
  etaSeconds?: null | number;
5728
+ lane?: Priority;
5729
+ /**
5730
+ * Inferred from reported progress over elapsed time; the worker's byte counters never leave it.
5731
+ */
5732
+ bytesPerSecond?: null | number;
5598
5733
  status: 'loading';
5599
5734
  };
5600
5735
  /**
@@ -7336,6 +7471,19 @@ export type PromptIssue = {
7336
7471
  */
7337
7472
  severity?: null | string;
7338
7473
  };
7474
+ /**
7475
+ * Waiting in a download lane. No progress or speed — nothing is transferring yet.
7476
+ */
7477
+ export type QueuedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
7478
+ queuePosition: number;
7479
+ lane: Priority;
7480
+ etaSeconds?: null | number;
7481
+ /**
7482
+ * What Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability.EtaSeconds would become in the High lane. Null when already High.
7483
+ */
7484
+ boostedEtaSeconds?: null | number;
7485
+ status: 'queued';
7486
+ };
7339
7487
  export type Qwen20bCreateImageGenInput = Omit<
7340
7488
  Qwen20bImageGenInput,
7341
7489
  'engine' | 'ecosystem' | 'model' | 'operation'
@@ -8879,8 +9027,11 @@ export type TryOnUInput = {
8879
9027
  export type TryOnUOutput = {
8880
9028
  blob: Blob;
8881
9029
  };
9030
+ /**
9031
+ * Eligible, but nothing is pulling it. A resource waiting in a download lane reports
9032
+ * Civitai.Orchestration.Grains.Resources.QueuedResourceAvailability instead.
9033
+ */
8882
9034
  export type UnavailableResourceAvailability = Omit<ResourceAvailability, 'status'> & {
8883
- queuePosition?: null | number;
8884
9035
  status: 'unavailable';
8885
9036
  };
8886
9037
  export type UnsupportedResourceAvailability = Omit<ResourceAvailability, 'status'> & {
@@ -8905,6 +9056,7 @@ export type UpdateWorkflowRequest = {
8905
9056
  * Set to true to remove the mature content restriction on the workflow.
8906
9057
  */
8907
9058
  allowMatureContent?: null | boolean;
9059
+ downloadPriority?: Priority;
8908
9060
  };
8909
9061
  /**
8910
9062
  * Available statuses for updating workflows.
@@ -10102,6 +10254,7 @@ export type Workflow = {
10102
10254
  * consumer reads and queries treat the workflow as gone.
10103
10255
  */
10104
10256
  deletedAt?: null | string;
10257
+ downloadPriority?: Priority;
10105
10258
  };
10106
10259
  /**
10107
10260
  * Details of a callback setup for a workflow.
@@ -10340,8 +10493,17 @@ export type WorkflowStep = {
10340
10493
  * step reaches a final status.
10341
10494
  */
10342
10495
  estimatedProgressRate?: null | number;
10343
- preparation?: WorkflowStepPreparation;
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>;
10344
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>;
10345
10507
  };
10346
10508
  /**
10347
10509
  * Details of a workflow step event.
@@ -10358,7 +10520,10 @@ export type WorkflowStepEvent = {
10358
10520
  status: WorkflowStatus;
10359
10521
  readonly $type: string;
10360
10522
  details?: WorkflowStepEventDetails;
10361
- preparation?: WorkflowStepPreparation;
10523
+ /**
10524
+ * Every resource download this step is waiting on, gating resource first. Only set while preparing.
10525
+ */
10526
+ preparation?: null | Array<WorkflowStepPreparationResource>;
10362
10527
  };
10363
10528
  /**
10364
10529
  * Detailed information about a workflow step included in webhook callbacks when detailed mode is enabled.
@@ -10394,7 +10559,10 @@ export type WorkflowStepEventDetails = {
10394
10559
  * The output result from the step
10395
10560
  */
10396
10561
  output?: null;
10397
- preparation?: WorkflowStepPreparation;
10562
+ /**
10563
+ * Every resource download this step is waiting on, gating resource first. Only set while preparing.
10564
+ */
10565
+ preparation?: null | Array<WorkflowStepPreparationResource>;
10398
10566
  };
10399
10567
  /**
10400
10568
  * Details of a workflow step job event.
@@ -10420,25 +10588,21 @@ export type WorkflowStepJobEvent = {
10420
10588
  matureContent?: null | boolean;
10421
10589
  };
10422
10590
  /**
10423
- * The resource download a step is waiting on while its status is preparing.
10591
+ * One resource a step is waiting on. A queued resource reports a position and no progress; one that
10592
+ * is transferring reports the reverse.
10424
10593
  */
10425
- export type WorkflowStepPreparation = {
10426
- /**
10427
- * The resource currently holding the step back.
10428
- */
10594
+ export type WorkflowStepPreparationResource = {
10429
10595
  resource: string;
10430
- /**
10431
- * Downloads ahead of this one. Zero means it is transferring now.
10432
- */
10433
- queuePosition: number;
10434
- /**
10435
- * Download completion, 0.0 to 1.0. Null while the download is still queued.
10436
- */
10596
+ sizeBytes: number;
10597
+ lane: Priority;
10598
+ queuePosition?: null | number;
10437
10599
  progress?: null | number;
10600
+ bytesPerSecond?: null | number;
10601
+ etaSeconds?: null | number;
10438
10602
  /**
10439
- * Estimated seconds until the download completes. Null when there is not enough progress to extrapolate.
10603
+ * What Civitai.Orchestration.Grains.Workflows.WorkflowStepPreparationResource.EtaSeconds would become in the High lane. Null when already High.
10440
10604
  */
10441
- etaSeconds?: null | number;
10605
+ boostedEtaSeconds?: null | number;
10442
10606
  };
10443
10607
  /**
10444
10608
  * Details of a workflow step's position in the queue.
@@ -10483,6 +10647,33 @@ export type WorkflowStepTemplate = {
10483
10647
  [key: string]: unknown;
10484
10648
  };
10485
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];
10486
10677
  /**
10487
10678
  * Details of a requested workflow.
10488
10679
  */
@@ -10515,6 +10706,7 @@ export type WorkflowTemplate = {
10515
10706
  [key: string]: unknown;
10516
10707
  };
10517
10708
  nsfwLevel?: NsfwLevel;
10709
+ downloadPriority?: Priority;
10518
10710
  /**
10519
10711
  * Get or set whether this workflow is experimental
10520
10712
  */
@@ -10730,6 +10922,61 @@ export type XGuardTextModerationInput = Omit<XGuardModerationInput, 'mode'> & {
10730
10922
  text: string;
10731
10923
  mode: 'text';
10732
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
+ };
10733
10980
  /**
10734
10981
  * AI Toolkit training for Z Image Turbo models
10735
10982
  */
@@ -12207,6 +12454,7 @@ export type WorkflowWritable = {
12207
12454
  * consumer reads and queries treat the workflow as gone.
12208
12455
  */
12209
12456
  deletedAt?: null | string;
12457
+ downloadPriority?: Priority;
12210
12458
  };
12211
12459
  export type WorkflowCostWritable = {
12212
12460
  /**
@@ -12270,7 +12518,10 @@ export type WorkflowStepEventWritable = {
12270
12518
  name: string;
12271
12519
  status: WorkflowStatus;
12272
12520
  details?: WorkflowStepEventDetails;
12273
- preparation?: WorkflowStepPreparation;
12521
+ /**
12522
+ * Every resource download this step is waiting on, gating resource first. Only set while preparing.
12523
+ */
12524
+ preparation?: null | Array<WorkflowStepPreparationResource>;
12274
12525
  };
12275
12526
  /**
12276
12527
  * Details of a workflow step job event.
@@ -12432,8 +12683,17 @@ export type WorkflowStepWritable = {
12432
12683
  * step reaches a final status.
12433
12684
  */
12434
12685
  estimatedProgressRate?: null | number;
12435
- preparation?: WorkflowStepPreparation;
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>;
12436
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>;
12437
12697
  };
12438
12698
  export type ImageGenInputWritable = {
12439
12699
  engine: string;
@@ -13326,6 +13586,37 @@ export type InvokeImageResourceTrainingStepTemplateResponses = {
13326
13586
  };
13327
13587
  export type InvokeImageResourceTrainingStepTemplateResponse =
13328
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];
13329
13620
  export type InvokeImageToSvgStepTemplateData = {
13330
13621
  body?: ImageToSvgInput;
13331
13622
  path?: never;
@@ -14473,6 +14764,37 @@ export type InvokeXGuardModerationStepTemplateResponses = {
14473
14764
  };
14474
14765
  export type InvokeXGuardModerationStepTemplateResponse =
14475
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];
14476
14798
  export type QueryResourcesData = {
14477
14799
  body?: never;
14478
14800
  path?: never;
@@ -14874,7 +15196,12 @@ export type UpdateWorkflowData = {
14874
15196
  */
14875
15197
  workflowId: string;
14876
15198
  };
14877
- query?: never;
15199
+ query?: {
15200
+ /**
15201
+ * Whether to apply the update or return what it would cost.
15202
+ */
15203
+ whatif?: boolean;
15204
+ };
14878
15205
  url: '/v2/consumer/workflows/{workflowId}';
14879
15206
  };
14880
15207
  export type UpdateWorkflowErrors = {
@@ -14894,9 +15221,9 @@ export type UpdateWorkflowErrors = {
14894
15221
  export type UpdateWorkflowError = UpdateWorkflowErrors[keyof UpdateWorkflowErrors];
14895
15222
  export type UpdateWorkflowResponses = {
14896
15223
  /**
14897
- * No Content
15224
+ * OK
14898
15225
  */
14899
- 204: void;
15226
+ 200: Workflow;
14900
15227
  };
14901
15228
  export type UpdateWorkflowResponse = UpdateWorkflowResponses[keyof UpdateWorkflowResponses];
14902
15229
  export type RemoveAllWorkflowTagsData = {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/orchestration-client",
3
- "version": "0.2.0-beta.104",
3
+ "version": "0.2.0-beta.106",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "packageManager": "pnpm@10.34.4",
6
6
  "main": "dist/index.js",