@civitai/client 0.2.0-beta.46 → 0.2.0-beta.48

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,
@@ -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, XGuardModerationMode, ZoeDepthEnvironment, } from './types.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, ZoeDepthEnvironment, } from './types.gen';
@@ -5596,30 +5596,19 @@ export type XGuardMatchedTerms = {
5596
5596
  negativePrompt: Array<string>;
5597
5597
  };
5598
5598
  export type XGuardModerationInput = {
5599
- mode: XGuardModerationMode;
5599
+ mode: string;
5600
5600
  /**
5601
- * The text to evaluate (for Text mode).
5601
+ * Optional label filter. When provided, only the named labels are evaluated.
5602
+ * Labels not found in the defaults (or label overrides) are silently ignored.
5603
+ * When omitted or empty, all labels are evaluated.
5602
5604
  */
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;
5605
+ labels?: null | Array<string>;
5612
5606
  /**
5613
5607
  * Optional label configuration overrides. When provided, these merge with/override the
5614
5608
  * defaults from the XGuardModerationOptionsGrain for the given mode.
5615
5609
  */
5616
5610
  labelOverrides?: null | Array<XGuardLabelConfiguration>;
5617
5611
  };
5618
- export declare const XGuardModerationMode: {
5619
- readonly PROMPT: 'prompt';
5620
- readonly TEXT: 'text';
5621
- };
5622
- export type XGuardModerationMode = (typeof XGuardModerationMode)[keyof typeof XGuardModerationMode];
5623
5612
  export type XGuardModerationOutput = {
5624
5613
  results: Array<XGuardLabelResult>;
5625
5614
  signalMetadata?: XGuardSignalMetadata;
@@ -5641,6 +5630,24 @@ export type XGuardModerationStepTemplate = Omit<WorkflowStepTemplate, '$type'> &
5641
5630
  input: XGuardModerationInput;
5642
5631
  $type: 'xGuardModeration';
5643
5632
  };
5633
+ /**
5634
+ * Input for evaluating generation prompts (positive/negative) against XGuard moderation policies.
5635
+ */
5636
+ export type XGuardPromptModerationInput = Omit<XGuardModerationInput, 'mode'> & {
5637
+ /**
5638
+ * The positive prompt to evaluate.
5639
+ */
5640
+ positivePrompt: string;
5641
+ /**
5642
+ * The negative prompt to evaluate.
5643
+ */
5644
+ negativePrompt?: null | string;
5645
+ /**
5646
+ * Additional instructions or context for the moderation evaluation.
5647
+ */
5648
+ instructions?: null | string;
5649
+ mode: 'prompt';
5650
+ };
5644
5651
  export type XGuardSignalMetadata = {
5645
5652
  positiveAgeDownSignals: {
5646
5653
  [key: string]: number;
@@ -5668,6 +5675,16 @@ export type XGuardSignalMetadata = {
5668
5675
  readonly positiveSexualCount: number;
5669
5676
  readonly negativeSexualCount: number;
5670
5677
  };
5678
+ /**
5679
+ * Input for evaluating site text content against XGuard moderation policies.
5680
+ */
5681
+ export type XGuardTextModerationInput = Omit<XGuardModerationInput, 'mode'> & {
5682
+ /**
5683
+ * The text to evaluate.
5684
+ */
5685
+ text: string;
5686
+ mode: 'text';
5687
+ };
5671
5688
  /**
5672
5689
  * AI Toolkit training for Z Image Turbo models
5673
5690
  */
@@ -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' };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.46",
3
+ "version": "0.2.0-beta.48",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",