@civitai/client 0.2.0-beta.46 → 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.
|
@@ -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';
|
|
@@ -5596,30 +5596,13 @@ export type XGuardMatchedTerms = {
|
|
|
5596
5596
|
negativePrompt: Array<string>;
|
|
5597
5597
|
};
|
|
5598
5598
|
export type XGuardModerationInput = {
|
|
5599
|
-
mode:
|
|
5600
|
-
/**
|
|
5601
|
-
* The text to evaluate (for Text mode).
|
|
5602
|
-
*/
|
|
5603
|
-
text?: null | string;
|
|
5604
|
-
/**
|
|
5605
|
-
* The positive prompt (for Prompt mode).
|
|
5606
|
-
*/
|
|
5607
|
-
positivePrompt?: null | string;
|
|
5608
|
-
/**
|
|
5609
|
-
* The negative prompt (for Prompt mode).
|
|
5610
|
-
*/
|
|
5611
|
-
negativePrompt?: null | string;
|
|
5599
|
+
mode: string;
|
|
5612
5600
|
/**
|
|
5613
5601
|
* Optional label configuration overrides. When provided, these merge with/override the
|
|
5614
5602
|
* defaults from the XGuardModerationOptionsGrain for the given mode.
|
|
5615
5603
|
*/
|
|
5616
5604
|
labelOverrides?: null | Array<XGuardLabelConfiguration>;
|
|
5617
5605
|
};
|
|
5618
|
-
export declare const XGuardModerationMode: {
|
|
5619
|
-
readonly PROMPT: 'prompt';
|
|
5620
|
-
readonly TEXT: 'text';
|
|
5621
|
-
};
|
|
5622
|
-
export type XGuardModerationMode = (typeof XGuardModerationMode)[keyof typeof XGuardModerationMode];
|
|
5623
5606
|
export type XGuardModerationOutput = {
|
|
5624
5607
|
results: Array<XGuardLabelResult>;
|
|
5625
5608
|
signalMetadata?: XGuardSignalMetadata;
|
|
@@ -5641,6 +5624,24 @@ export type XGuardModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> &
|
|
|
5641
5624
|
input: XGuardModerationInput;
|
|
5642
5625
|
$type: 'xGuardModeration';
|
|
5643
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
|
+
};
|
|
5644
5645
|
export type XGuardSignalMetadata = {
|
|
5645
5646
|
positiveAgeDownSignals: {
|
|
5646
5647
|
[key: string]: number;
|
|
@@ -5668,6 +5669,16 @@ export type XGuardSignalMetadata = {
|
|
|
5668
5669
|
readonly positiveSexualCount: number;
|
|
5669
5670
|
readonly negativeSexualCount: number;
|
|
5670
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
|
+
};
|
|
5671
5682
|
/**
|
|
5672
5683
|
* AI Toolkit training for Z Image Turbo models
|
|
5673
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' };
|