@civitai/client 0.2.0-beta.45 → 0.2.0-beta.47
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.
|
@@ -842,8 +842,8 @@ export {
|
|
|
842
842
|
type Wan26FalTextToVideoInput,
|
|
843
843
|
type Wan26FalVideoGenInput,
|
|
844
844
|
type Wan26VideoGenInput,
|
|
845
|
-
type Wan27FalEditInput,
|
|
846
845
|
type Wan27FalEditVideoInput,
|
|
846
|
+
type Wan27FalImageEditInput,
|
|
847
847
|
type Wan27FalImageGenInput,
|
|
848
848
|
type Wan27FalImageToVideoInput,
|
|
849
849
|
type Wan27FalReferenceToVideoInput,
|
|
@@ -892,14 +892,15 @@ export {
|
|
|
892
892
|
type XGuardLabelResult,
|
|
893
893
|
type XGuardMatchedTerms,
|
|
894
894
|
type XGuardModerationInput,
|
|
895
|
-
XGuardModerationMode,
|
|
896
895
|
type XGuardModerationOutput,
|
|
897
896
|
type XGuardModerationOutputWritable,
|
|
898
897
|
type XGuardModerationStep,
|
|
899
898
|
type XGuardModerationStepTemplate,
|
|
900
899
|
type XGuardModerationStepWritable,
|
|
900
|
+
type XGuardPromptModerationInput,
|
|
901
901
|
type XGuardSignalMetadata,
|
|
902
902
|
type XGuardSignalMetadataWritable,
|
|
903
|
+
type XGuardTextModerationInput,
|
|
903
904
|
type ZImageBaseAiToolkitTrainingInput,
|
|
904
905
|
type ZImageBaseCreateImageGenInput,
|
|
905
906
|
type ZImageBaseImageGenInput,
|
package/dist/generated/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
export { addWorkflowTag, deleteWorkflow, getBlob, getBlobContent, getBlockedContent, getConsumerBlobUploadUrl, getResource, getStreamingBlob, getWorkflow, getWorkflowStep, headBlob, invalidateResource, invalidateUserCache, invokeAceStepAudioStepTemplate, invokeAgeClassificationStepTemplate, invokeBatchOcrSafetyClassificationStepTemplate, invokeChatCompletionStepTemplate, invokeComfyStepTemplate, invokeConvertImageStepTemplate, invokeEchoStepTemplate, invokeHumanoidImageMaskStepTemplate, invokeImageGenStepTemplate, invokeImageResourceTrainingStepTemplate, invokeImageUploadStepTemplate, invokeImageUpscalerStepTemplate, invokeMediaCaptioningStepTemplate, invokeMediaHashStepTemplate, invokeMediaRatingStepTemplate, invokePreprocessImageStepTemplate, invokePromptEnhancementStepTemplate, invokeRepeatStepTemplate, invokeTextToImageStepTemplate, invokeTextToSpeechStepTemplate, invokeTrainingStepTemplate, invokeTranscodeStepTemplate, invokeTranscriptionStepTemplate, invokeTryOnUStepTemplate, invokeVideoEnhancementStepTemplate, invokeVideoFrameExtractionStepTemplate, invokeVideoGenStepTemplate, invokeVideoInterpolationStepTemplate, invokeVideoMetadataStepTemplate, invokeVideoUpscalerStepTemplate, invokeWdTaggingStepTemplate, invokeXGuardModerationStepTemplate, patchWorkflow, patchWorkflowStep, queryWorkflows, refreshBlob, removeAllWorkflowTags, removeWorkflowTag, submitWorkflow, updateWorkflow, updateWorkflowStep, uploadConsumerBlob, } from './sdk.gen';
|
|
3
|
-
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaHashType, Metric3dBackbone, MiniMaxVideoGenModel, NsfwLevel, OutputFormat, Priority, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode,
|
|
3
|
+
export { AnimalPoseBboxDetector, AnimalPoseEstimator, AnylineMergeWith, BlurRegionMode, BuzzClientAccount, CoarseMode, ComfySampler, ComfyScheduler, ContainerFormat, DensePoseColormap, DensePoseModel, DepthAnythingCheckpoint, DepthAnythingV2Checkpoint, DwPoseBboxDetector, DwPoseEstimator, FileFormat, HaiperVideoGenAspectRatio, HaiperVideoGenCameraMovement, HaiperVideoGenModel, HumanoidImageMaskCategory, ImageGenOutputFormat, ImageResouceTrainingModerationStatus, ImageTransformer, JobSupport, KlingMode, KlingModel, KlingV3Operation, KlingVideoGenAspectRatio, KlingVideoGenDuration, LeresBoost, LightricksAspectRatio, MediaHashType, Metric3dBackbone, MiniMaxVideoGenModel, NsfwLevel, OutputFormat, Priority, SafeMode, Scheduler, SdCppSampleMethod, SdCppSchedule, SdCppUCacheMode, SeedreamVersion, TrainingModerationStatus, TransactionType, UpdateWorkflowStatus, Veo3AspectRatio, Veo3GenerationMode, Veo3Version, ViduVideoGenModel, ViduVideoGenStyle, WorkflowStatus, WorkflowUpgradeMode, ZoeDepthEnvironment, } from './types.gen';
|
|
@@ -4875,16 +4875,6 @@ export type Wan26VideoGenInput = Omit<WanVideoGenInput, 'engine' | 'version'> &
|
|
|
4875
4875
|
version: 'v2.6';
|
|
4876
4876
|
engine: 'wan';
|
|
4877
4877
|
};
|
|
4878
|
-
export type Wan27FalEditInput = Omit<
|
|
4879
|
-
Wan27FalImageGenInput,
|
|
4880
|
-
'engine' | 'version' | 'provider' | 'operation'
|
|
4881
|
-
> & {
|
|
4882
|
-
images?: Array<string>;
|
|
4883
|
-
operation: 'edit';
|
|
4884
|
-
provider: 'fal';
|
|
4885
|
-
version: 'v2.7';
|
|
4886
|
-
engine: 'wan';
|
|
4887
|
-
};
|
|
4888
4878
|
export type Wan27FalEditVideoInput = Omit<
|
|
4889
4879
|
Wan27FalVideoGenInput,
|
|
4890
4880
|
'engine' | 'version' | 'provider' | 'operation'
|
|
@@ -4905,11 +4895,20 @@ export type Wan27FalEditVideoInput = Omit<
|
|
|
4905
4895
|
* Audio handling: "auto" or "origin" (keep original audio)
|
|
4906
4896
|
*/
|
|
4907
4897
|
audioSetting?: 'auto' | 'origin';
|
|
4898
|
+
operation: 'edit-video';
|
|
4899
|
+
provider: 'fal';
|
|
4900
|
+
version: 'v2.7';
|
|
4901
|
+
engine: 'wan';
|
|
4902
|
+
};
|
|
4903
|
+
export type Wan27FalImageEditInput = Omit<
|
|
4904
|
+
Wan27FalImageGenInput,
|
|
4905
|
+
'engine' | 'version' | 'provider' | 'operation'
|
|
4906
|
+
> & {
|
|
4908
4907
|
/**
|
|
4909
|
-
*
|
|
4908
|
+
* Reference images for editing (1-4 images required)
|
|
4910
4909
|
*/
|
|
4911
|
-
|
|
4912
|
-
operation: '
|
|
4910
|
+
images: Array<string>;
|
|
4911
|
+
operation: 'editImage';
|
|
4913
4912
|
provider: 'fal';
|
|
4914
4913
|
version: 'v2.7';
|
|
4915
4914
|
engine: 'wan';
|
|
@@ -4925,7 +4924,10 @@ export type Wan27FalImageToVideoInput = Omit<
|
|
|
4925
4924
|
Wan27FalVideoGenInput,
|
|
4926
4925
|
'engine' | 'version' | 'provider' | 'operation'
|
|
4927
4926
|
> & {
|
|
4928
|
-
|
|
4927
|
+
/**
|
|
4928
|
+
* First frame image URL
|
|
4929
|
+
*/
|
|
4930
|
+
startImage?: null | string;
|
|
4929
4931
|
/**
|
|
4930
4932
|
* Last frame image for first-and-last-frame-to-video
|
|
4931
4933
|
*/
|
|
@@ -4934,6 +4936,12 @@ export type Wan27FalImageToVideoInput = Omit<
|
|
|
4934
4936
|
* URL of a video clip to continue from (MP4/MOV, 2-10s, max 100 MB)
|
|
4935
4937
|
*/
|
|
4936
4938
|
videoUrl?: null | string;
|
|
4939
|
+
negativePrompt?: null | string;
|
|
4940
|
+
enablePromptExpansion?: boolean;
|
|
4941
|
+
/**
|
|
4942
|
+
* URL of audio file (WAV/MP3, 3-30 seconds, up to 15 MB)
|
|
4943
|
+
*/
|
|
4944
|
+
audioUrl?: null | string;
|
|
4937
4945
|
operation: 'image-to-video';
|
|
4938
4946
|
provider: 'fal';
|
|
4939
4947
|
version: 'v2.7';
|
|
@@ -4954,10 +4962,7 @@ export type Wan27FalReferenceToVideoInput = Omit<
|
|
|
4954
4962
|
referenceVideoUrls?: Array<string>;
|
|
4955
4963
|
aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4';
|
|
4956
4964
|
multiShots?: boolean;
|
|
4957
|
-
|
|
4958
|
-
* Duration for reference-to-video is limited to 2-10 seconds
|
|
4959
|
-
*/
|
|
4960
|
-
duration?: number;
|
|
4965
|
+
negativePrompt?: null | string;
|
|
4961
4966
|
operation: 'reference-to-video';
|
|
4962
4967
|
provider: 'fal';
|
|
4963
4968
|
version: 'v2.7';
|
|
@@ -4967,7 +4972,7 @@ export type Wan27FalTextToImageInput = Omit<
|
|
|
4967
4972
|
Wan27FalImageGenInput,
|
|
4968
4973
|
'engine' | 'version' | 'provider' | 'operation'
|
|
4969
4974
|
> & {
|
|
4970
|
-
operation: '
|
|
4975
|
+
operation: 'createImage';
|
|
4971
4976
|
provider: 'fal';
|
|
4972
4977
|
version: 'v2.7';
|
|
4973
4978
|
engine: 'wan';
|
|
@@ -4977,6 +4982,12 @@ export type Wan27FalTextToVideoInput = Omit<
|
|
|
4977
4982
|
'engine' | 'version' | 'provider' | 'operation'
|
|
4978
4983
|
> & {
|
|
4979
4984
|
aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4';
|
|
4985
|
+
negativePrompt?: null | string;
|
|
4986
|
+
enablePromptExpansion?: boolean;
|
|
4987
|
+
/**
|
|
4988
|
+
* URL of audio file (WAV/MP3, 3-30 seconds, up to 15 MB)
|
|
4989
|
+
*/
|
|
4990
|
+
audioUrl?: null | string;
|
|
4980
4991
|
operation: 'text-to-video';
|
|
4981
4992
|
provider: 'fal';
|
|
4982
4993
|
version: 'v2.7';
|
|
@@ -4985,14 +4996,7 @@ export type Wan27FalTextToVideoInput = Omit<
|
|
|
4985
4996
|
export type Wan27FalVideoGenInput = Omit<Wan27VideoGenInput, 'engine' | 'version' | 'provider'> & {
|
|
4986
4997
|
operation: null | string;
|
|
4987
4998
|
resolution?: '720p' | '1080p';
|
|
4988
|
-
negativePrompt?: null | string;
|
|
4989
|
-
enablePromptExpansion?: boolean;
|
|
4990
4999
|
enableSafetyChecker?: boolean;
|
|
4991
|
-
/**
|
|
4992
|
-
* URL of audio file (WAV/MP3, 3-30 seconds, up to 15 MB)
|
|
4993
|
-
* Supported for text-to-video and image-to-video
|
|
4994
|
-
*/
|
|
4995
|
-
audioUrl?: null | string;
|
|
4996
5000
|
provider: 'fal';
|
|
4997
5001
|
version: 'v2.7';
|
|
4998
5002
|
engine: 'wan';
|
|
@@ -5592,30 +5596,13 @@ export type XGuardMatchedTerms = {
|
|
|
5592
5596
|
negativePrompt: Array<string>;
|
|
5593
5597
|
};
|
|
5594
5598
|
export type XGuardModerationInput = {
|
|
5595
|
-
mode:
|
|
5596
|
-
/**
|
|
5597
|
-
* The text to evaluate (for Text mode).
|
|
5598
|
-
*/
|
|
5599
|
-
text?: null | string;
|
|
5600
|
-
/**
|
|
5601
|
-
* The positive prompt (for Prompt mode).
|
|
5602
|
-
*/
|
|
5603
|
-
positivePrompt?: null | string;
|
|
5604
|
-
/**
|
|
5605
|
-
* The negative prompt (for Prompt mode).
|
|
5606
|
-
*/
|
|
5607
|
-
negativePrompt?: null | string;
|
|
5599
|
+
mode: string;
|
|
5608
5600
|
/**
|
|
5609
5601
|
* Optional label configuration overrides. When provided, these merge with/override the
|
|
5610
5602
|
* defaults from the XGuardModerationOptionsGrain for the given mode.
|
|
5611
5603
|
*/
|
|
5612
5604
|
labelOverrides?: null | Array<XGuardLabelConfiguration>;
|
|
5613
5605
|
};
|
|
5614
|
-
export declare const XGuardModerationMode: {
|
|
5615
|
-
readonly PROMPT: 'prompt';
|
|
5616
|
-
readonly TEXT: 'text';
|
|
5617
|
-
};
|
|
5618
|
-
export type XGuardModerationMode = (typeof XGuardModerationMode)[keyof typeof XGuardModerationMode];
|
|
5619
5606
|
export type XGuardModerationOutput = {
|
|
5620
5607
|
results: Array<XGuardLabelResult>;
|
|
5621
5608
|
signalMetadata?: XGuardSignalMetadata;
|
|
@@ -5637,6 +5624,24 @@ export type XGuardModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> &
|
|
|
5637
5624
|
input: XGuardModerationInput;
|
|
5638
5625
|
$type: 'xGuardModeration';
|
|
5639
5626
|
};
|
|
5627
|
+
/**
|
|
5628
|
+
* Input for evaluating generation prompts (positive/negative) against XGuard moderation policies.
|
|
5629
|
+
*/
|
|
5630
|
+
export type XGuardPromptModerationInput = Omit<XGuardModerationInput, 'mode'> & {
|
|
5631
|
+
/**
|
|
5632
|
+
* The positive prompt to evaluate.
|
|
5633
|
+
*/
|
|
5634
|
+
positivePrompt: string;
|
|
5635
|
+
/**
|
|
5636
|
+
* The negative prompt to evaluate.
|
|
5637
|
+
*/
|
|
5638
|
+
negativePrompt?: null | string;
|
|
5639
|
+
/**
|
|
5640
|
+
* Additional instructions or context for the moderation evaluation.
|
|
5641
|
+
*/
|
|
5642
|
+
instructions?: null | string;
|
|
5643
|
+
mode: 'prompt';
|
|
5644
|
+
};
|
|
5640
5645
|
export type XGuardSignalMetadata = {
|
|
5641
5646
|
positiveAgeDownSignals: {
|
|
5642
5647
|
[key: string]: number;
|
|
@@ -5664,6 +5669,16 @@ export type XGuardSignalMetadata = {
|
|
|
5664
5669
|
readonly positiveSexualCount: number;
|
|
5665
5670
|
readonly negativeSexualCount: number;
|
|
5666
5671
|
};
|
|
5672
|
+
/**
|
|
5673
|
+
* Input for evaluating site text content against XGuard moderation policies.
|
|
5674
|
+
*/
|
|
5675
|
+
export type XGuardTextModerationInput = Omit<XGuardModerationInput, 'mode'> & {
|
|
5676
|
+
/**
|
|
5677
|
+
* The text to evaluate.
|
|
5678
|
+
*/
|
|
5679
|
+
text: string;
|
|
5680
|
+
mode: 'text';
|
|
5681
|
+
};
|
|
5667
5682
|
/**
|
|
5668
5683
|
* AI Toolkit training for Z Image Turbo models
|
|
5669
5684
|
*/
|
|
@@ -333,5 +333,4 @@ export const WorkflowStatus = {
|
|
|
333
333
|
* Specifies how a workflow should be upgraded when mature content is detected and green or blue buzz was used for payment.
|
|
334
334
|
*/
|
|
335
335
|
export const WorkflowUpgradeMode = { MANUAL: 'manual', AUTOMATIC: 'automatic' };
|
|
336
|
-
export const XGuardModerationMode = { PROMPT: 'prompt', TEXT: 'text' };
|
|
337
336
|
export const ZoeDepthEnvironment = { INDOOR: 'indoor', OUTDOOR: 'outdoor' };
|