@civitai/orchestration-client 0.2.5 → 0.2.7

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.
@@ -46,6 +46,7 @@ export {
46
46
  invokeImageUpscalerStepTemplate,
47
47
  invokeLiveTextToSpeechStepTemplate,
48
48
  invokeLiveTranscriptionStepTemplate,
49
+ invokeLyricsAlignmentStepTemplate,
49
50
  invokeMediaCaptioningStepTemplate,
50
51
  invokeMediaHashStepTemplate,
51
52
  invokeMediaRatingStepTemplate,
@@ -651,6 +652,7 @@ export {
651
652
  type IdolComfyPolyGenInput,
652
653
  ImageBackgroundRemovalFormat,
653
654
  type ImageBackgroundRemovalInput,
655
+ ImageBackgroundRemovalModel,
654
656
  type ImageBackgroundRemovalOutput,
655
657
  type ImageBackgroundRemovalStep,
656
658
  type ImageBackgroundRemovalStepTemplate,
@@ -840,6 +842,11 @@ export {
840
842
  type InvokeLiveTranscriptionStepTemplateErrors,
841
843
  type InvokeLiveTranscriptionStepTemplateResponse,
842
844
  type InvokeLiveTranscriptionStepTemplateResponses,
845
+ type InvokeLyricsAlignmentStepTemplateData,
846
+ type InvokeLyricsAlignmentStepTemplateError,
847
+ type InvokeLyricsAlignmentStepTemplateErrors,
848
+ type InvokeLyricsAlignmentStepTemplateResponse,
849
+ type InvokeLyricsAlignmentStepTemplateResponses,
843
850
  type InvokeMediaCaptioningStepTemplateData,
844
851
  type InvokeMediaCaptioningStepTemplateError,
845
852
  type InvokeMediaCaptioningStepTemplateErrors,
@@ -1098,8 +1105,18 @@ export {
1098
1105
  type Ltx25AiToolkitTrainingInputWritable,
1099
1106
  type Ltx2AiToolkitTrainingInput,
1100
1107
  type Ltx2AiToolkitTrainingInputWritable,
1108
+ type LyricsAlignmentInput,
1109
+ type LyricsAlignmentLine,
1110
+ type LyricsAlignmentOutput,
1111
+ LyricsAlignmentStatus,
1112
+ type LyricsAlignmentStep,
1113
+ type LyricsAlignmentStepTemplate,
1114
+ type LyricsAlignmentWord,
1101
1115
  type MageFlowAiToolkitTrainingInput,
1102
1116
  type MageFlowAiToolkitTrainingInputWritable,
1117
+ type MaiImage27CreateFalImageGenInput,
1118
+ type MaiImage27EditFalImageGenInput,
1119
+ type MaiImage27FalImageGenInput,
1103
1120
  type MaiImageCreateFalImageGenInput,
1104
1121
  type MaiImageEditFalImageGenInput,
1105
1122
  type MaiImageFalImageGenInput,
@@ -1736,6 +1753,7 @@ export {
1736
1753
  type XGuardModerationStep,
1737
1754
  type XGuardModerationStepTemplate,
1738
1755
  type XGuardModerationStepWritable,
1756
+ type XGuardProfanityModerationInput,
1739
1757
  type XGuardPromptModerationInput,
1740
1758
  XGuardPromptScope,
1741
1759
  type XGuardSignalMetadata,
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- export { addWorkflowTag, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeArchiveExtractionStepTemplate, invokeAudioCaptioningStepTemplate, invokeAudioClassificationStepTemplate, invokeAudioModerationStepTemplate, invokeAudioTextModerationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelAnalysisStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokeMultimodalEmbeddingStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokePromptModerationStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeSoniloAudioGenStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, refundFund, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen.js';
3
- export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveEntryMediaType, ArchiveEntryRejectionReason, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, EmbeddingPrecision, 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, MergeMissingBehavior, MergeReducer, Metric3dBackbone, MiniMaxH3Model, 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, WorkflowTier, WorkflowUpgradeMode, WorkflowWaitUntil, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen.js';
2
+ export { addWorkflowTag, appendStreamingBlob, createFund, deleteFund, deleteWorkflow, depositIntoFund, getBlob, getBlobArchive, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getFreeTier, getFund, getResource, getService, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateUserCache, invalidateUserTokens, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeArchiveExtractionStepTemplate, invokeAudioCaptioningStepTemplate, invokeAudioClassificationStepTemplate, invokeAudioModerationStepTemplate, invokeAudioTextModerationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeBlobArchiveStepTemplate, invokeChatCompletionStepTemplate, invokeComfyNodepackSnapshotStepTemplate, invokeComfyStepTemplate, invokeComposeMediaStepTemplate, invokeConvertImageStepTemplate, invokeCustomComfyStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageBackgroundRemovalStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageScanningStepTemplate, invokeImageToSvgStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeLiveTextToSpeechStepTemplate, invokeLiveTranscriptionStepTemplate, invokeLyricsAlignmentStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokeMergeStepTemplate, invokeMiniMaxMusic3StepTemplate, invokeModel3dPreviewStepTemplate, invokeModelAnalysisStepTemplate, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelParseMetadataStepTemplate, invokeModelPickleScanStepTemplate, invokeMultimodalEmbeddingStepTemplate, invokePolyGenStepTemplate, invokePrepareResourceStepTemplate, invokePreprocessImageStepTemplate, invokePreprocessVideoStepTemplate, invokePromptEnhancementStepTemplate, invokePromptModerationStepTemplate, invokeQwenImageBenchStepTemplate, invokeRepeatStepTemplate, invokeShieldstralModerationStepTemplate, invokeSoniloAudioGenStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoBackgroundRemovalStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeWebScrapeStepTemplate, invokeWebSearchStepTemplate, invokeXGuardModerationStepTemplate, invokeYuE2StepTemplate, listServices, patchWorkflow, patchWorkflowStep, queryResources, queryWorkflows, refreshBlob, refundFund, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateFund, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen.js';
3
+ export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, ArchiveEntryMediaType, ArchiveEntryRejectionReason, ArchiveFormat, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, EmbeddingPrecision, FileFormat, GeminiOmniModel, GeminiOmniResolution, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HiDreamI1Precision, HiDreamI1Variant, HumanoidImageMaskCategory, ImageBackgroundRemovalFormat, ImageBackgroundRemovalModel, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, LyricsAlignmentStatus, MediaContainer, MediaFit, MediaHashType, MediaOutputType, MergeMissingBehavior, MergeReducer, Metric3dBackbone, MiniMaxH3Model, 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, WorkflowTier, WorkflowUpgradeMode, WorkflowWaitUntil, XGuardPromptScope, ZoeDepthEnvironment, } from './types.gen.js';
@@ -139,6 +139,9 @@ import type {
139
139
  InvokeLiveTranscriptionStepTemplateData,
140
140
  InvokeLiveTranscriptionStepTemplateErrors,
141
141
  InvokeLiveTranscriptionStepTemplateResponses,
142
+ InvokeLyricsAlignmentStepTemplateData,
143
+ InvokeLyricsAlignmentStepTemplateErrors,
144
+ InvokeLyricsAlignmentStepTemplateResponses,
142
145
  InvokeMediaCaptioningStepTemplateData,
143
146
  InvokeMediaCaptioningStepTemplateErrors,
144
147
  InvokeMediaCaptioningStepTemplateResponses,
@@ -696,7 +699,7 @@ export declare const invokeHumanoidImageMaskStepTemplate: <ThrowOnError extends
696
699
  'fields'
697
700
  >;
698
701
  /**
699
- * Removes the background from an image using BiRefNet.
702
+ * Removes the background from an image using BiRefNet or Bria RMBG 3.0.
700
703
  */
701
704
  export declare const invokeImageBackgroundRemovalStepTemplate: <
702
705
  ThrowOnError extends boolean = false,
@@ -808,6 +811,17 @@ export declare const invokeLiveTranscriptionStepTemplate: <ThrowOnError extends
808
811
  ThrowOnError,
809
812
  'fields'
810
813
  >;
814
+ /**
815
+ * Aligns known lyrics to a song and returns line- and word-level timestamps, keeping the supplied text unchanged.
816
+ */
817
+ export declare const invokeLyricsAlignmentStepTemplate: <ThrowOnError extends boolean = false>(
818
+ options?: Options<InvokeLyricsAlignmentStepTemplateData, ThrowOnError>
819
+ ) => import('./client/types.gen.js').RequestResult<
820
+ InvokeLyricsAlignmentStepTemplateResponses,
821
+ InvokeLyricsAlignmentStepTemplateErrors,
822
+ ThrowOnError,
823
+ 'fields'
824
+ >;
811
825
  /**
812
826
  * Media Captioning
813
827
  *
@@ -413,7 +413,7 @@ export const invokeHumanoidImageMaskStepTemplate = (options) => {
413
413
  });
414
414
  };
415
415
  /**
416
- * Removes the background from an image using BiRefNet.
416
+ * Removes the background from an image using BiRefNet or Bria RMBG 3.0.
417
417
  */
418
418
  export const invokeImageBackgroundRemovalStepTemplate = (options) => {
419
419
  var _a;
@@ -548,6 +548,20 @@ export const invokeLiveTranscriptionStepTemplate = (options) => {
548
548
  },
549
549
  });
550
550
  };
551
+ /**
552
+ * Aligns known lyrics to a song and returns line- and word-level timestamps, keeping the supplied text unchanged.
553
+ */
554
+ export const invokeLyricsAlignmentStepTemplate = (options) => {
555
+ var _a;
556
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
557
+ url: '/v2/consumer/recipes/lyricsAlignment',
558
+ ...options,
559
+ headers: {
560
+ 'Content-Type': 'application/json',
561
+ ...options === null || options === void 0 ? void 0 : options.headers,
562
+ },
563
+ });
564
+ };
551
565
  /**
552
566
  * Media Captioning
553
567
  *
@@ -1793,6 +1793,7 @@ export declare const services: {
1793
1793
  readonly ecosystem: 'ltx2';
1794
1794
  },
1795
1795
  ];
1796
+ readonly LyricsAlignmentInput: readonly ['audio', 'internal', 'lyricsAlignment'];
1796
1797
  readonly MageFlowAIToolkitTrainingInput: readonly [
1797
1798
  'model',
1798
1799
  'internal',
@@ -1802,6 +1803,26 @@ export declare const services: {
1802
1803
  readonly ecosystem: 'mageflow';
1803
1804
  },
1804
1805
  ];
1806
+ readonly MaiImage27CreateFalImageGenInput: readonly [
1807
+ 'image',
1808
+ 'partner',
1809
+ 'imageGen',
1810
+ {
1811
+ readonly engine: 'fal';
1812
+ readonly model: 'maiImage27';
1813
+ readonly operation: 'createImage';
1814
+ },
1815
+ ];
1816
+ readonly MaiImage27EditFalImageGenInput: readonly [
1817
+ 'image',
1818
+ 'partner',
1819
+ 'imageGen',
1820
+ {
1821
+ readonly engine: 'fal';
1822
+ readonly model: 'maiImage27';
1823
+ readonly operation: 'editImage';
1824
+ },
1825
+ ];
1805
1826
  readonly MaiImageCreateFalImageGenInput: readonly [
1806
1827
  'image',
1807
1828
  'partner',
@@ -3337,6 +3358,14 @@ export declare const services: {
3337
3358
  ];
3338
3359
  readonly WebScrapeInput: readonly ['utility', 'internal', 'webScrape'];
3339
3360
  readonly WebSearchInput: readonly ['utility', 'internal', 'webSearch'];
3361
+ readonly XGuardProfanityModerationInput: readonly [
3362
+ 'text',
3363
+ 'internal',
3364
+ 'xGuardModeration',
3365
+ {
3366
+ readonly mode: 'profanity';
3367
+ },
3368
+ ];
3340
3369
  readonly XGuardPromptModerationInput: readonly [
3341
3370
  'text',
3342
3371
  'internal',
@@ -198,7 +198,10 @@ export const services = {
198
198
  Ltx23AIToolkitTrainingInput: ['model', 'internal', 'training', { engine: 'ai-toolkit', ecosystem: 'ltx23' }],
199
199
  Ltx25AIToolkitTrainingInput: ['model', 'internal', 'training', { engine: 'ai-toolkit', ecosystem: 'ltx25' }],
200
200
  Ltx2AIToolkitTrainingInput: ['model', 'internal', 'training', { engine: 'ai-toolkit', ecosystem: 'ltx2' }],
201
+ LyricsAlignmentInput: ['audio', 'internal', 'lyricsAlignment'],
201
202
  MageFlowAIToolkitTrainingInput: ['model', 'internal', 'training', { engine: 'ai-toolkit', ecosystem: 'mageflow' }],
203
+ MaiImage27CreateFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'maiImage27', operation: 'createImage' }],
204
+ MaiImage27EditFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'maiImage27', operation: 'editImage' }],
202
205
  MaiImageCreateFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'maiImage', operation: 'createImage' }],
203
206
  MaiImageEditFalImageGenInput: ['image', 'partner', 'imageGen', { engine: 'fal', model: 'maiImage', operation: 'editImage' }],
204
207
  MediaCaptioningInput: ['text', 'internal', 'mediaCaptioning'],
@@ -389,6 +392,7 @@ export const services = {
389
392
  Wan30TextToVideoInput: ['video', 'partner', 'videoGen', { engine: 'wan', version: 'v3.0', operation: 'text-to-video' }],
390
393
  WebScrapeInput: ['utility', 'internal', 'webScrape'],
391
394
  WebSearchInput: ['utility', 'internal', 'webSearch'],
395
+ XGuardProfanityModerationInput: ['text', 'internal', 'xGuardModeration', { mode: 'profanity' }],
392
396
  XGuardPromptModerationInput: ['text', 'internal', 'xGuardModeration', { mode: 'prompt' }],
393
397
  XGuardTextModerationInput: ['text', 'internal', 'xGuardModeration', { mode: 'text' }],
394
398
  YuE2AIToolkitTrainingInput: ['model', 'internal', 'training', { engine: 'ai-toolkit', ecosystem: 'yue2' }],
@@ -5504,12 +5504,22 @@ export type ImageBackgroundRemovalInput = {
5504
5504
  * The output image format. Defaults to PNG, which preserves transparency.
5505
5505
  */
5506
5506
  format?: ImageBackgroundRemovalFormat;
5507
+ /**
5508
+ * BiRefNet, or Bria RMBG 3.0: better on hair, fur and crowded scenes, with a fixed 13 Buzz fee per image.
5509
+ */
5510
+ model?: ImageBackgroundRemovalModel;
5507
5511
  };
5512
+ export declare const ImageBackgroundRemovalModel: {
5513
+ readonly BIREFNET: 'birefnet';
5514
+ readonly RMBG3: 'rmbg3';
5515
+ };
5516
+ export type ImageBackgroundRemovalModel =
5517
+ (typeof ImageBackgroundRemovalModel)[keyof typeof ImageBackgroundRemovalModel];
5508
5518
  export type ImageBackgroundRemovalOutput = {
5509
5519
  image?: ImageBlob;
5510
5520
  };
5511
5521
  /**
5512
- * Removes the background from an image using BiRefNet.
5522
+ * Removes the background from an image using BiRefNet or Bria RMBG 3.0.
5513
5523
  */
5514
5524
  export type ImageBackgroundRemovalStep = Omit<WorkflowStep, '$type'> & {
5515
5525
  input: ImageBackgroundRemovalInput;
@@ -5517,7 +5527,7 @@ export type ImageBackgroundRemovalStep = Omit<WorkflowStep, '$type'> & {
5517
5527
  $type: 'imageBackgroundRemoval';
5518
5528
  };
5519
5529
  /**
5520
- * Removes the background from an image using BiRefNet.
5530
+ * Removes the background from an image using BiRefNet or Bria RMBG 3.0.
5521
5531
  */
5522
5532
  export type ImageBackgroundRemovalStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
5523
5533
  /**
@@ -6749,6 +6759,67 @@ export type Ltx2AiToolkitTrainingInput = Omit<AiToolkitTrainingInput, 'engine' |
6749
6759
  */
6750
6760
  batchSize?: null | number;
6751
6761
  };
6762
+ export type LyricsAlignmentInput = {
6763
+ /**
6764
+ * The song to align, up to 10 minutes long.
6765
+ */
6766
+ mediaUrl: string;
6767
+ /**
6768
+ * The lyrics as sung, one display line per line. Section labels such as [Verse] and empty lines are kept but not timed.
6769
+ */
6770
+ lyrics: string;
6771
+ };
6772
+ export type LyricsAlignmentLine = {
6773
+ index: number;
6774
+ text: string;
6775
+ status: LyricsAlignmentStatus;
6776
+ /**
6777
+ * Seconds from the start of the song; null for ignored lines.
6778
+ */
6779
+ startTime?: null | number;
6780
+ endTime?: null | number;
6781
+ /**
6782
+ * A heuristic acoustic score between 0 and 1, not a calibrated probability.
6783
+ */
6784
+ confidence?: null | number;
6785
+ words: Array<LyricsAlignmentWord>;
6786
+ };
6787
+ export type LyricsAlignmentOutput = {
6788
+ text: string;
6789
+ /**
6790
+ * Every supplied line in order, with its timing and words.
6791
+ */
6792
+ lines: Array<LyricsAlignmentLine>;
6793
+ audioDurationSeconds: number;
6794
+ lowConfidenceWords: number;
6795
+ elapsedSeconds: number;
6796
+ };
6797
+ export declare const LyricsAlignmentStatus: {
6798
+ readonly ALIGNED: 'aligned';
6799
+ readonly LOW_CONFIDENCE: 'lowConfidence';
6800
+ readonly IGNORED: 'ignored';
6801
+ };
6802
+ export type LyricsAlignmentStatus =
6803
+ (typeof LyricsAlignmentStatus)[keyof typeof LyricsAlignmentStatus];
6804
+ export type LyricsAlignmentStep = Omit<WorkflowStep, '$type'> & {
6805
+ input: LyricsAlignmentInput;
6806
+ output?: LyricsAlignmentOutput;
6807
+ $type: 'lyricsAlignment';
6808
+ };
6809
+ export type LyricsAlignmentStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
6810
+ /**
6811
+ * Input for the LyricsAlignmentStep step.
6812
+ */
6813
+ input: LyricsAlignmentInput;
6814
+ $type: 'lyricsAlignment';
6815
+ };
6816
+ export type LyricsAlignmentWord = {
6817
+ text: string;
6818
+ startTime: number;
6819
+ endTime: number;
6820
+ confidence: number;
6821
+ status: LyricsAlignmentStatus;
6822
+ };
6752
6823
  export type MageFlowAiToolkitTrainingInput = Omit<
6753
6824
  AiToolkitTrainingInput,
6754
6825
  'engine' | 'ecosystem'
@@ -6761,6 +6832,62 @@ export type MageFlowAiToolkitTrainingInput = Omit<
6761
6832
  */
6762
6833
  batchSize?: null | number;
6763
6834
  };
6835
+ export type MaiImage27CreateFalImageGenInput = Omit<
6836
+ MaiImage27FalImageGenInput,
6837
+ 'engine' | 'model' | 'operation'
6838
+ > & {
6839
+ imageSize?:
6840
+ | 'square_hd'
6841
+ | 'portrait_4_3'
6842
+ | 'landscape_4_3'
6843
+ | 'portrait_3_2'
6844
+ | 'landscape_3_2'
6845
+ | 'portrait_16_9'
6846
+ | 'landscape_16_9';
6847
+ operation: 'createImage';
6848
+ model: 'maiImage27';
6849
+ engine: 'fal';
6850
+ };
6851
+ export type MaiImage27EditFalImageGenInput = Omit<
6852
+ MaiImage27FalImageGenInput,
6853
+ 'engine' | 'model' | 'operation'
6854
+ > & {
6855
+ /**
6856
+ * "auto" lets the model pick a size close to the first image.
6857
+ */
6858
+ imageSize?:
6859
+ | 'auto'
6860
+ | 'square_hd'
6861
+ | 'portrait_4_3'
6862
+ | 'landscape_4_3'
6863
+ | 'portrait_3_2'
6864
+ | 'landscape_3_2'
6865
+ | 'portrait_16_9'
6866
+ | 'landscape_16_9';
6867
+ images: Array<string>;
6868
+ operation: 'editImage';
6869
+ model: 'maiImage27';
6870
+ engine: 'fal';
6871
+ };
6872
+ export type MaiImage27FalImageGenInput = Omit<FalImageGenInput, 'engine' | 'model'> & {
6873
+ operation: string;
6874
+ prompt: string;
6875
+ variant?: 'standard' | 'flash';
6876
+ quantity?: number;
6877
+ imageSize?: string;
6878
+ /**
6879
+ * Scales the imageSize presets: 2K doubles each side. Ignored for custom dimensions.
6880
+ */
6881
+ resolution?: '1K' | '2K';
6882
+ /**
6883
+ * Custom dimensions override imageSize. Set width and height together.
6884
+ */
6885
+ width?: null | number;
6886
+ height?: null | number;
6887
+ background?: 'opaque' | 'transparent';
6888
+ model: 'maiImage27';
6889
+ engine: 'fal';
6890
+ };
6764
6891
  export type MaiImageCreateFalImageGenInput = Omit<
6765
6892
  MaiImageFalImageGenInput,
6766
6893
  'engine' | 'model' | 'operation'
@@ -9667,6 +9794,7 @@ export declare const SeedanceModel: {
9667
9794
  readonly V2_FAST: 'v2-fast';
9668
9795
  readonly V2_MINI: 'v2-mini';
9669
9796
  readonly V2_5: 'v2.5';
9797
+ readonly V2_5_FLASH: 'v2.5-flash';
9670
9798
  };
9671
9799
  export type SeedanceModel = (typeof SeedanceModel)[keyof typeof SeedanceModel];
9672
9800
  export type SeedanceVideoGenInput = Omit<VideoGenInput, 'engine'> & {
@@ -12146,17 +12274,16 @@ export type XGuardModerationInput = {
12146
12274
  mode: string;
12147
12275
  /**
12148
12276
  * Only the named labels are evaluated; names not in the defaults (or overrides) are silently ignored.
12149
- * Omitted or empty evaluates all labels.
12277
+ * Omitted or empty evaluates all labels. Profanity mode does not support label selection.
12150
12278
  */
12151
12279
  labels?: null | Array<string>;
12152
12280
  /**
12153
12281
  * Optional label configuration overrides. When provided, these merge with/override the
12154
- * defaults from the XGuardModerationOptionsGrain for the given mode.
12282
+ * defaults from the XGuardModerationOptionsGrain for the given mode. Unsupported in profanity mode.
12155
12283
  */
12156
12284
  labelOverrides?: null | Array<XGuardLabelConfiguration>;
12157
12285
  /**
12158
- * Stores the full raw chat completion (including all logprobs) in the destination blob, ~200KB instead of ~2-3KB; debugging only.
12159
- * Not the reasoning switch (see Civitai.Orchestration.Grains.Workflows.Steps.XGuardModeration.XGuardModerationInput.IncludeReasoning): it only raises the token budget from 1 to 128.
12286
+ * Stores the full raw completion and logprobs for debugging. Fixed Civitai models still emit only one token.
12160
12287
  */
12161
12288
  storeFullResponse: boolean;
12162
12289
  /**
@@ -12166,6 +12293,10 @@ export type XGuardModerationInput = {
12166
12293
  includeReasoning: boolean;
12167
12294
  };
12168
12295
  export type XGuardModerationOutput = {
12296
+ /**
12297
+ * Profanity mode only: 0 = none, 1 = mild/moderate, 2 = strong. Null if scoring failed.
12298
+ */
12299
+ languageLevel?: null | number;
12169
12300
  results: Array<XGuardLabelResult>;
12170
12301
  signalMetadata?: XGuardSignalMetadata;
12171
12302
  blocked: boolean;
@@ -12189,6 +12320,16 @@ export type XGuardModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> &
12189
12320
  input: XGuardModerationInput;
12190
12321
  $type: 'xGuardModeration';
12191
12322
  };
12323
+ /**
12324
+ * Rates complete text L0/L1/L2 with the checkpoint's fixed policies and thresholds.
12325
+ */
12326
+ export type XGuardProfanityModerationInput = Omit<XGuardModerationInput, 'mode'> & {
12327
+ /**
12328
+ * Unmodified text. The policy, chat template and text must fit 8191 input tokens; no truncation is performed.
12329
+ */
12330
+ text: string;
12331
+ mode: 'profanity';
12332
+ };
12192
12333
  export type XGuardPromptModerationInput = Omit<XGuardModerationInput, 'mode'> & {
12193
12334
  positivePrompt: string;
12194
12335
  negativePrompt?: null | string;
@@ -13981,6 +14122,10 @@ export type XGuardCustomSignalMetadataWritable = {
13981
14122
  };
13982
14123
  };
13983
14124
  export type XGuardModerationOutputWritable = {
14125
+ /**
14126
+ * Profanity mode only: 0 = none, 1 = mild/moderate, 2 = strong. Null if scoring failed.
14127
+ */
14128
+ languageLevel?: null | number;
13984
14129
  results: Array<XGuardLabelResult>;
13985
14130
  signalMetadata?: XGuardSignalMetadataWritable;
13986
14131
  blocked: boolean;
@@ -15695,6 +15840,46 @@ export type InvokeLiveTranscriptionStepTemplateResponses = {
15695
15840
  };
15696
15841
  export type InvokeLiveTranscriptionStepTemplateResponse =
15697
15842
  InvokeLiveTranscriptionStepTemplateResponses[keyof InvokeLiveTranscriptionStepTemplateResponses];
15843
+ export type InvokeLyricsAlignmentStepTemplateData = {
15844
+ body?: LyricsAlignmentInput;
15845
+ path?: never;
15846
+ query?: {
15847
+ experimental?: boolean;
15848
+ allowMatureContent?: boolean;
15849
+ whatif?: boolean;
15850
+ ephemeral?: boolean;
15851
+ /**
15852
+ * How a workflow is paid for.
15853
+ */
15854
+ tier?: WorkflowTier;
15855
+ tags?: Array<string>;
15856
+ };
15857
+ url: '/v2/consumer/recipes/lyricsAlignment';
15858
+ };
15859
+ export type InvokeLyricsAlignmentStepTemplateErrors = {
15860
+ /**
15861
+ * Bad Request
15862
+ */
15863
+ 400: ProblemDetails;
15864
+ /**
15865
+ * Unauthorized
15866
+ */
15867
+ 401: ProblemDetails;
15868
+ /**
15869
+ * Forbidden
15870
+ */
15871
+ 403: ProblemDetails;
15872
+ };
15873
+ export type InvokeLyricsAlignmentStepTemplateError =
15874
+ InvokeLyricsAlignmentStepTemplateErrors[keyof InvokeLyricsAlignmentStepTemplateErrors];
15875
+ export type InvokeLyricsAlignmentStepTemplateResponses = {
15876
+ /**
15877
+ * OK
15878
+ */
15879
+ 200: LyricsAlignmentOutput;
15880
+ };
15881
+ export type InvokeLyricsAlignmentStepTemplateResponse =
15882
+ InvokeLyricsAlignmentStepTemplateResponses[keyof InvokeLyricsAlignmentStepTemplateResponses];
15698
15883
  export type InvokeMediaCaptioningStepTemplateData = {
15699
15884
  body?: MediaCaptioningInput;
15700
15885
  path?: never;
@@ -159,6 +159,7 @@ export const HumanoidImageMaskCategory = {
159
159
  LOWER_BODY: 'lowerBody',
160
160
  };
161
161
  export const ImageBackgroundRemovalFormat = { PNG: 'png', WEBP: 'webp' };
162
+ export const ImageBackgroundRemovalModel = { BIREFNET: 'birefnet', RMBG3: 'rmbg3' };
162
163
  export const ImageGenOutputFormat = {
163
164
  JPEG: 'jpeg',
164
165
  PNG: 'png',
@@ -244,6 +245,11 @@ export const LightricksAspectRatio = {
244
245
  '3_2': '3:2',
245
246
  '2_3': '2:3',
246
247
  };
248
+ export const LyricsAlignmentStatus = {
249
+ ALIGNED: 'aligned',
250
+ LOW_CONFIDENCE: 'lowConfidence',
251
+ IGNORED: 'ignored',
252
+ };
247
253
  export const MediaContainer = {
248
254
  AUTO: 'auto',
249
255
  MP4: 'mp4',
@@ -409,6 +415,7 @@ export const SeedanceModel = {
409
415
  V2_FAST: 'v2-fast',
410
416
  V2_MINI: 'v2-mini',
411
417
  V2_5: 'v2.5',
418
+ V2_5_FLASH: 'v2.5-flash',
412
419
  };
413
420
  export const SeedreamVersion = {
414
421
  V3: 'v3',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/orchestration-client",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "packageManager": "pnpm@10.34.4",
6
6
  "main": "dist/index.js",