@civitai/client 0.2.0-beta.50 → 0.2.0-beta.52

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.
@@ -27,6 +27,9 @@ export {
27
27
  invokeMediaCaptioningStepTemplate,
28
28
  invokeMediaHashStepTemplate,
29
29
  invokeMediaRatingStepTemplate,
30
+ invokeModelClamScanStepTemplate,
31
+ invokeModelHashStepTemplate,
32
+ invokeModelPickleScanStepTemplate,
30
33
  invokePreprocessImageStepTemplate,
31
34
  invokePromptEnhancementStepTemplate,
32
35
  invokeRepeatStepTemplate,
@@ -398,6 +401,21 @@ export {
398
401
  type InvokeMediaRatingStepTemplateErrors,
399
402
  type InvokeMediaRatingStepTemplateResponse,
400
403
  type InvokeMediaRatingStepTemplateResponses,
404
+ type InvokeModelClamScanStepTemplateData,
405
+ type InvokeModelClamScanStepTemplateError,
406
+ type InvokeModelClamScanStepTemplateErrors,
407
+ type InvokeModelClamScanStepTemplateResponse,
408
+ type InvokeModelClamScanStepTemplateResponses,
409
+ type InvokeModelHashStepTemplateData,
410
+ type InvokeModelHashStepTemplateError,
411
+ type InvokeModelHashStepTemplateErrors,
412
+ type InvokeModelHashStepTemplateResponse,
413
+ type InvokeModelHashStepTemplateResponses,
414
+ type InvokeModelPickleScanStepTemplateData,
415
+ type InvokeModelPickleScanStepTemplateError,
416
+ type InvokeModelPickleScanStepTemplateErrors,
417
+ type InvokeModelPickleScanStepTemplateResponse,
418
+ type InvokeModelPickleScanStepTemplateResponses,
401
419
  type InvokePreprocessImageStepTemplateData,
402
420
  type InvokePreprocessImageStepTemplateError,
403
421
  type InvokePreprocessImageStepTemplateErrors,
@@ -525,6 +543,21 @@ export {
525
543
  type MiniMaxVideoGenInput,
526
544
  MiniMaxVideoGenModel,
527
545
  type MochiVideoGenInput,
546
+ type ModelClamScanInput,
547
+ type ModelClamScanOutput,
548
+ type ModelClamScanStep,
549
+ type ModelClamScanStepTemplate,
550
+ type ModelClamScanStepWritable,
551
+ type ModelHashInput,
552
+ type ModelHashOutput,
553
+ type ModelHashStep,
554
+ type ModelHashStepTemplate,
555
+ type ModelHashStepWritable,
556
+ type ModelPickleScanInput,
557
+ type ModelPickleScanOutput,
558
+ type ModelPickleScanStep,
559
+ type ModelPickleScanStepTemplate,
560
+ type ModelPickleScanStepWritable,
528
561
  type MusubiImageResourceTrainingInput,
529
562
  type MusubiImageResourceTrainingInputWritable,
530
563
  type NanoBanana2ImageGenInput,
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
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';
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, invokeModelClamScanStepTemplate, invokeModelHashStepTemplate, invokeModelPickleScanStepTemplate, 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
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';
@@ -82,6 +82,15 @@ import type {
82
82
  InvokeMediaRatingStepTemplateData,
83
83
  InvokeMediaRatingStepTemplateErrors,
84
84
  InvokeMediaRatingStepTemplateResponses,
85
+ InvokeModelClamScanStepTemplateData,
86
+ InvokeModelClamScanStepTemplateErrors,
87
+ InvokeModelClamScanStepTemplateResponses,
88
+ InvokeModelHashStepTemplateData,
89
+ InvokeModelHashStepTemplateErrors,
90
+ InvokeModelHashStepTemplateResponses,
91
+ InvokeModelPickleScanStepTemplateData,
92
+ InvokeModelPickleScanStepTemplateErrors,
93
+ InvokeModelPickleScanStepTemplateResponses,
85
94
  InvokePreprocessImageStepTemplateData,
86
95
  InvokePreprocessImageStepTemplateErrors,
87
96
  InvokePreprocessImageStepTemplateResponses,
@@ -436,6 +445,45 @@ export declare const invokeMediaRatingStepTemplate: <ThrowOnError extends boolea
436
445
  ThrowOnError,
437
446
  'fields'
438
447
  >;
448
+ /**
449
+ * ModelClamScan
450
+ *
451
+ * Runs ClamAV malware scanning against a model file.
452
+ */
453
+ export declare const invokeModelClamScanStepTemplate: <ThrowOnError extends boolean = false>(
454
+ options?: Options<InvokeModelClamScanStepTemplateData, ThrowOnError>
455
+ ) => import('./client').RequestResult<
456
+ InvokeModelClamScanStepTemplateResponses,
457
+ InvokeModelClamScanStepTemplateErrors,
458
+ ThrowOnError,
459
+ 'fields'
460
+ >;
461
+ /**
462
+ * ModelHash
463
+ *
464
+ * Computes Civitai content hashes (SHA256, AutoV1/2/3, Blake3, CRC32) of a model file.
465
+ */
466
+ export declare const invokeModelHashStepTemplate: <ThrowOnError extends boolean = false>(
467
+ options?: Options<InvokeModelHashStepTemplateData, ThrowOnError>
468
+ ) => import('./client').RequestResult<
469
+ InvokeModelHashStepTemplateResponses,
470
+ InvokeModelHashStepTemplateErrors,
471
+ ThrowOnError,
472
+ 'fields'
473
+ >;
474
+ /**
475
+ * ModelPickleScan
476
+ *
477
+ * Runs picklescan against a model file to detect dangerous pickle imports.
478
+ */
479
+ export declare const invokeModelPickleScanStepTemplate: <ThrowOnError extends boolean = false>(
480
+ options?: Options<InvokeModelPickleScanStepTemplateData, ThrowOnError>
481
+ ) => import('./client').RequestResult<
482
+ InvokeModelPickleScanStepTemplateResponses,
483
+ InvokeModelPickleScanStepTemplateErrors,
484
+ ThrowOnError,
485
+ 'fields'
486
+ >;
439
487
  export declare const invokePreprocessImageStepTemplate: <ThrowOnError extends boolean = false>(
440
488
  options?: Options<InvokePreprocessImageStepTemplateData, ThrowOnError>
441
489
  ) => import('./client').RequestResult<
@@ -295,6 +295,54 @@ export const invokeMediaRatingStepTemplate = (options) => {
295
295
  },
296
296
  });
297
297
  };
298
+ /**
299
+ * ModelClamScan
300
+ *
301
+ * Runs ClamAV malware scanning against a model file.
302
+ */
303
+ export const invokeModelClamScanStepTemplate = (options) => {
304
+ var _a;
305
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
306
+ url: '/v2/consumer/recipes/modelClamScan',
307
+ ...options,
308
+ headers: {
309
+ 'Content-Type': 'application/json',
310
+ ...options === null || options === void 0 ? void 0 : options.headers,
311
+ },
312
+ });
313
+ };
314
+ /**
315
+ * ModelHash
316
+ *
317
+ * Computes Civitai content hashes (SHA256, AutoV1/2/3, Blake3, CRC32) of a model file.
318
+ */
319
+ export const invokeModelHashStepTemplate = (options) => {
320
+ var _a;
321
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
322
+ url: '/v2/consumer/recipes/modelHash',
323
+ ...options,
324
+ headers: {
325
+ 'Content-Type': 'application/json',
326
+ ...options === null || options === void 0 ? void 0 : options.headers,
327
+ },
328
+ });
329
+ };
330
+ /**
331
+ * ModelPickleScan
332
+ *
333
+ * Runs picklescan against a model file to detect dangerous pickle imports.
334
+ */
335
+ export const invokeModelPickleScanStepTemplate = (options) => {
336
+ var _a;
337
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
338
+ url: '/v2/consumer/recipes/modelPickleScan',
339
+ ...options,
340
+ headers: {
341
+ 'Content-Type': 'application/json',
342
+ ...options === null || options === void 0 ? void 0 : options.headers,
343
+ },
344
+ });
345
+ };
298
346
  export const invokePreprocessImageStepTemplate = (options) => {
299
347
  var _a;
300
348
  return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post({
@@ -322,6 +322,7 @@ export type AnimaImageGenInput = Omit<SdCppImageGenInput, 'engine' | 'ecosystem'
322
322
  loras?: {
323
323
  [key: string]: number;
324
324
  };
325
+ diffuserModel?: string;
325
326
  ecosystem: 'anima';
326
327
  engine: 'sdcpp';
327
328
  };
@@ -2720,6 +2721,141 @@ export type MochiVideoGenInput = Omit<VideoGenInput, 'engine'> & {
2720
2721
  enablePromptEnhancer?: boolean;
2721
2722
  engine: 'mochi';
2722
2723
  };
2724
+ /**
2725
+ * Represents the input information needed for the ModelClamScan workflow step.
2726
+ */
2727
+ export type ModelClamScanInput = {
2728
+ /**
2729
+ * The AIR of the model file to scan.
2730
+ */
2731
+ model: string;
2732
+ };
2733
+ /**
2734
+ * Represents the output information returned from the ModelClamScan workflow step.
2735
+ */
2736
+ export type ModelClamScanOutput = {
2737
+ /**
2738
+ * The ClamAV scan exit code.
2739
+ */
2740
+ exitCode?: null | number;
2741
+ /**
2742
+ * The raw ClamAV scan output.
2743
+ */
2744
+ output?: null | string;
2745
+ };
2746
+ /**
2747
+ * ModelClamScan
2748
+ */
2749
+ export type ModelClamScanStep = Omit<WorkflowStep, '$type'> & {
2750
+ input: ModelClamScanInput;
2751
+ output?: ModelClamScanOutput;
2752
+ $type: 'modelClamScan';
2753
+ };
2754
+ /**
2755
+ * ModelClamScan
2756
+ */
2757
+ export type ModelClamScanStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2758
+ input: ModelClamScanInput;
2759
+ $type: 'modelClamScan';
2760
+ };
2761
+ /**
2762
+ * Represents the input information needed for the ModelHash workflow step.
2763
+ */
2764
+ export type ModelHashInput = {
2765
+ /**
2766
+ * The AIR of the model file to hash.
2767
+ */
2768
+ model: string;
2769
+ };
2770
+ /**
2771
+ * Represents the output information returned from the ModelHash workflow step.
2772
+ */
2773
+ export type ModelHashOutput = {
2774
+ /**
2775
+ * SHA256 hash of the full file.
2776
+ */
2777
+ shA256?: null | string;
2778
+ /**
2779
+ * AutoV1 short hash (8 chars of SHA256 over a 64 KB block starting at 1 MB).
2780
+ */
2781
+ autoV1?: null | string;
2782
+ /**
2783
+ * AutoV2 short hash (first 10 chars of SHA256).
2784
+ */
2785
+ autoV2?: null | string;
2786
+ /**
2787
+ * AutoV3 hash (SHA256 of the file with safetensors header metadata stripped).
2788
+ */
2789
+ autoV3?: null | string;
2790
+ /**
2791
+ * Blake3 hash of the full file.
2792
+ */
2793
+ blake3?: null | string;
2794
+ /**
2795
+ * CRC32 of the full file.
2796
+ */
2797
+ crC32?: null | string;
2798
+ };
2799
+ /**
2800
+ * ModelHash
2801
+ */
2802
+ export type ModelHashStep = Omit<WorkflowStep, '$type'> & {
2803
+ input: ModelHashInput;
2804
+ output?: ModelHashOutput;
2805
+ $type: 'modelHash';
2806
+ };
2807
+ /**
2808
+ * ModelHash
2809
+ */
2810
+ export type ModelHashStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2811
+ input: ModelHashInput;
2812
+ $type: 'modelHash';
2813
+ };
2814
+ /**
2815
+ * Represents the input information needed for the ModelPickleScan workflow step.
2816
+ */
2817
+ export type ModelPickleScanInput = {
2818
+ /**
2819
+ * The AIR of the model file to scan.
2820
+ */
2821
+ model: string;
2822
+ };
2823
+ /**
2824
+ * Represents the output information returned from the ModelPickleScan workflow step.
2825
+ */
2826
+ export type ModelPickleScanOutput = {
2827
+ /**
2828
+ * The picklescan exit code.
2829
+ */
2830
+ exitCode?: null | number;
2831
+ /**
2832
+ * The raw picklescan output.
2833
+ */
2834
+ output?: null | string;
2835
+ /**
2836
+ * Global imports discovered during pickle scanning.
2837
+ */
2838
+ globalImports?: null | Array<string>;
2839
+ /**
2840
+ * Dangerous imports discovered during pickle scanning.
2841
+ */
2842
+ dangerousImports?: null | Array<string>;
2843
+ };
2844
+ /**
2845
+ * ModelPickleScan
2846
+ */
2847
+ export type ModelPickleScanStep = Omit<WorkflowStep, '$type'> & {
2848
+ input: ModelPickleScanInput;
2849
+ output?: ModelPickleScanOutput;
2850
+ $type: 'modelPickleScan';
2851
+ };
2852
+ /**
2853
+ * ModelPickleScan
2854
+ */
2855
+ export type ModelPickleScanStepTemplate = Omit<WorkflowStepTemplate, '$type'> & {
2856
+ input: ModelPickleScanInput;
2857
+ $type: 'modelPickleScan';
2858
+ };
2723
2859
  export type MusubiImageResourceTrainingInput = Omit<ImageResourceTrainingInput, 'engine'> & {
2724
2860
  /**
2725
2861
  * Number of training epochs. An epoch is one complete pass through the training dataset.
@@ -5612,6 +5748,14 @@ export type XGuardModerationInput = {
5612
5748
  * defaults from the XGuardModerationOptionsGrain for the given mode.
5613
5749
  */
5614
5750
  labelOverrides?: null | Array<XGuardLabelConfiguration>;
5751
+ /**
5752
+ * Debug opt-out. When true, the worker stores the full raw chat completion response
5753
+ * (including the complete logprobs.content array) in the destination blob instead of
5754
+ * the trimmed version. Intended for one-off debugging of classification decisions
5755
+ * where the full logprobs distribution or generated token stream needs inspection.
5756
+ * Leaves blobs at ~200KB instead of ~2-3KB — do not enable in normal traffic.
5757
+ */
5758
+ storeFullResponse: boolean;
5615
5759
  };
5616
5760
  export type XGuardModerationOutput = {
5617
5761
  results: Array<XGuardLabelResult>;
@@ -6036,6 +6180,30 @@ export type MediaRatingStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6036
6180
  output?: MediaRatingOutput;
6037
6181
  $type: 'mediaRating';
6038
6182
  };
6183
+ /**
6184
+ * ModelClamScan
6185
+ */
6186
+ export type ModelClamScanStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6187
+ input: ModelClamScanInput;
6188
+ output?: ModelClamScanOutput;
6189
+ $type: 'modelClamScan';
6190
+ };
6191
+ /**
6192
+ * ModelHash
6193
+ */
6194
+ export type ModelHashStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6195
+ input: ModelHashInput;
6196
+ output?: ModelHashOutput;
6197
+ $type: 'modelHash';
6198
+ };
6199
+ /**
6200
+ * ModelPickleScan
6201
+ */
6202
+ export type ModelPickleScanStepWritable = Omit<WorkflowStepWritable2, '$type'> & {
6203
+ input: ModelPickleScanInput;
6204
+ output?: ModelPickleScanOutput;
6205
+ $type: 'modelPickleScan';
6206
+ };
6039
6207
  export type MusubiImageResourceTrainingInputWritable = Omit<
6040
6208
  ImageResourceTrainingInputWritable,
6041
6209
  'engine'
@@ -7056,6 +7224,7 @@ export type InvokeAceStepAudioStepTemplateData = {
7056
7224
  query?: {
7057
7225
  experimental?: boolean;
7058
7226
  allowMatureContent?: boolean;
7227
+ whatif?: boolean;
7059
7228
  };
7060
7229
  url: '/v2/consumer/recipes/aceStepAudio';
7061
7230
  };
@@ -7085,6 +7254,7 @@ export type InvokeAgeClassificationStepTemplateData = {
7085
7254
  query?: {
7086
7255
  experimental?: boolean;
7087
7256
  allowMatureContent?: boolean;
7257
+ whatif?: boolean;
7088
7258
  };
7089
7259
  url: '/v2/consumer/recipes/ageClassification';
7090
7260
  };
@@ -7114,6 +7284,7 @@ export type InvokeBatchOcrSafetyClassificationStepTemplateData = {
7114
7284
  query?: {
7115
7285
  experimental?: boolean;
7116
7286
  allowMatureContent?: boolean;
7287
+ whatif?: boolean;
7117
7288
  };
7118
7289
  url: '/v2/consumer/recipes/batchOCRSafetyClassification';
7119
7290
  };
@@ -7143,6 +7314,7 @@ export type InvokeChatCompletionStepTemplateData = {
7143
7314
  query?: {
7144
7315
  experimental?: boolean;
7145
7316
  allowMatureContent?: boolean;
7317
+ whatif?: boolean;
7146
7318
  };
7147
7319
  url: '/v2/consumer/recipes/chatCompletion';
7148
7320
  };
@@ -7172,6 +7344,7 @@ export type InvokeComfyStepTemplateData = {
7172
7344
  query?: {
7173
7345
  experimental?: boolean;
7174
7346
  allowMatureContent?: boolean;
7347
+ whatif?: boolean;
7175
7348
  };
7176
7349
  url: '/v2/consumer/recipes/comfy';
7177
7350
  };
@@ -7201,6 +7374,7 @@ export type InvokeConvertImageStepTemplateData = {
7201
7374
  query?: {
7202
7375
  experimental?: boolean;
7203
7376
  allowMatureContent?: boolean;
7377
+ whatif?: boolean;
7204
7378
  };
7205
7379
  url: '/v2/consumer/recipes/convertImage';
7206
7380
  };
@@ -7230,6 +7404,7 @@ export type InvokeEchoStepTemplateData = {
7230
7404
  query?: {
7231
7405
  experimental?: boolean;
7232
7406
  allowMatureContent?: boolean;
7407
+ whatif?: boolean;
7233
7408
  };
7234
7409
  url: '/v2/consumer/recipes/echo';
7235
7410
  };
@@ -7259,6 +7434,7 @@ export type InvokeHumanoidImageMaskStepTemplateData = {
7259
7434
  query?: {
7260
7435
  experimental?: boolean;
7261
7436
  allowMatureContent?: boolean;
7437
+ whatif?: boolean;
7262
7438
  };
7263
7439
  url: '/v2/consumer/recipes/humanoidImageMask';
7264
7440
  };
@@ -7288,6 +7464,7 @@ export type InvokeImageGenStepTemplateData = {
7288
7464
  query?: {
7289
7465
  experimental?: boolean;
7290
7466
  allowMatureContent?: boolean;
7467
+ whatif?: boolean;
7291
7468
  };
7292
7469
  url: '/v2/consumer/recipes/imageGen';
7293
7470
  };
@@ -7317,6 +7494,7 @@ export type InvokeImageResourceTrainingStepTemplateData = {
7317
7494
  query?: {
7318
7495
  experimental?: boolean;
7319
7496
  allowMatureContent?: boolean;
7497
+ whatif?: boolean;
7320
7498
  };
7321
7499
  url: '/v2/consumer/recipes/imageResourceTraining';
7322
7500
  };
@@ -7346,6 +7524,7 @@ export type InvokeImageUploadStepTemplateData = {
7346
7524
  query?: {
7347
7525
  experimental?: boolean;
7348
7526
  allowMatureContent?: boolean;
7527
+ whatif?: boolean;
7349
7528
  };
7350
7529
  url: '/v2/consumer/recipes/imageUpload';
7351
7530
  };
@@ -7375,6 +7554,7 @@ export type InvokeImageUpscalerStepTemplateData = {
7375
7554
  query?: {
7376
7555
  experimental?: boolean;
7377
7556
  allowMatureContent?: boolean;
7557
+ whatif?: boolean;
7378
7558
  };
7379
7559
  url: '/v2/consumer/recipes/imageUpscaler';
7380
7560
  };
@@ -7404,6 +7584,7 @@ export type InvokeMediaCaptioningStepTemplateData = {
7404
7584
  query?: {
7405
7585
  experimental?: boolean;
7406
7586
  allowMatureContent?: boolean;
7587
+ whatif?: boolean;
7407
7588
  };
7408
7589
  url: '/v2/consumer/recipes/mediaCaptioning';
7409
7590
  };
@@ -7433,6 +7614,7 @@ export type InvokeMediaHashStepTemplateData = {
7433
7614
  query?: {
7434
7615
  experimental?: boolean;
7435
7616
  allowMatureContent?: boolean;
7617
+ whatif?: boolean;
7436
7618
  };
7437
7619
  url: '/v2/consumer/recipes/mediaHash';
7438
7620
  };
@@ -7462,6 +7644,7 @@ export type InvokeMediaRatingStepTemplateData = {
7462
7644
  query?: {
7463
7645
  experimental?: boolean;
7464
7646
  allowMatureContent?: boolean;
7647
+ whatif?: boolean;
7465
7648
  };
7466
7649
  url: '/v2/consumer/recipes/mediaRating';
7467
7650
  };
@@ -7485,12 +7668,103 @@ export type InvokeMediaRatingStepTemplateResponses = {
7485
7668
  };
7486
7669
  export type InvokeMediaRatingStepTemplateResponse =
7487
7670
  InvokeMediaRatingStepTemplateResponses[keyof InvokeMediaRatingStepTemplateResponses];
7671
+ export type InvokeModelClamScanStepTemplateData = {
7672
+ body?: ModelClamScanInput;
7673
+ path?: never;
7674
+ query?: {
7675
+ experimental?: boolean;
7676
+ allowMatureContent?: boolean;
7677
+ whatif?: boolean;
7678
+ };
7679
+ url: '/v2/consumer/recipes/modelClamScan';
7680
+ };
7681
+ export type InvokeModelClamScanStepTemplateErrors = {
7682
+ /**
7683
+ * Bad Request
7684
+ */
7685
+ 400: ProblemDetails;
7686
+ /**
7687
+ * Unauthorized
7688
+ */
7689
+ 401: ProblemDetails;
7690
+ };
7691
+ export type InvokeModelClamScanStepTemplateError =
7692
+ InvokeModelClamScanStepTemplateErrors[keyof InvokeModelClamScanStepTemplateErrors];
7693
+ export type InvokeModelClamScanStepTemplateResponses = {
7694
+ /**
7695
+ * OK
7696
+ */
7697
+ 200: ModelClamScanOutput;
7698
+ };
7699
+ export type InvokeModelClamScanStepTemplateResponse =
7700
+ InvokeModelClamScanStepTemplateResponses[keyof InvokeModelClamScanStepTemplateResponses];
7701
+ export type InvokeModelHashStepTemplateData = {
7702
+ body?: ModelHashInput;
7703
+ path?: never;
7704
+ query?: {
7705
+ experimental?: boolean;
7706
+ allowMatureContent?: boolean;
7707
+ whatif?: boolean;
7708
+ };
7709
+ url: '/v2/consumer/recipes/modelHash';
7710
+ };
7711
+ export type InvokeModelHashStepTemplateErrors = {
7712
+ /**
7713
+ * Bad Request
7714
+ */
7715
+ 400: ProblemDetails;
7716
+ /**
7717
+ * Unauthorized
7718
+ */
7719
+ 401: ProblemDetails;
7720
+ };
7721
+ export type InvokeModelHashStepTemplateError =
7722
+ InvokeModelHashStepTemplateErrors[keyof InvokeModelHashStepTemplateErrors];
7723
+ export type InvokeModelHashStepTemplateResponses = {
7724
+ /**
7725
+ * OK
7726
+ */
7727
+ 200: ModelHashOutput;
7728
+ };
7729
+ export type InvokeModelHashStepTemplateResponse =
7730
+ InvokeModelHashStepTemplateResponses[keyof InvokeModelHashStepTemplateResponses];
7731
+ export type InvokeModelPickleScanStepTemplateData = {
7732
+ body?: ModelPickleScanInput;
7733
+ path?: never;
7734
+ query?: {
7735
+ experimental?: boolean;
7736
+ allowMatureContent?: boolean;
7737
+ whatif?: boolean;
7738
+ };
7739
+ url: '/v2/consumer/recipes/modelPickleScan';
7740
+ };
7741
+ export type InvokeModelPickleScanStepTemplateErrors = {
7742
+ /**
7743
+ * Bad Request
7744
+ */
7745
+ 400: ProblemDetails;
7746
+ /**
7747
+ * Unauthorized
7748
+ */
7749
+ 401: ProblemDetails;
7750
+ };
7751
+ export type InvokeModelPickleScanStepTemplateError =
7752
+ InvokeModelPickleScanStepTemplateErrors[keyof InvokeModelPickleScanStepTemplateErrors];
7753
+ export type InvokeModelPickleScanStepTemplateResponses = {
7754
+ /**
7755
+ * OK
7756
+ */
7757
+ 200: ModelPickleScanOutput;
7758
+ };
7759
+ export type InvokeModelPickleScanStepTemplateResponse =
7760
+ InvokeModelPickleScanStepTemplateResponses[keyof InvokeModelPickleScanStepTemplateResponses];
7488
7761
  export type InvokePreprocessImageStepTemplateData = {
7489
7762
  body?: PreprocessImageInputWritable;
7490
7763
  path?: never;
7491
7764
  query?: {
7492
7765
  experimental?: boolean;
7493
7766
  allowMatureContent?: boolean;
7767
+ whatif?: boolean;
7494
7768
  };
7495
7769
  url: '/v2/consumer/recipes/preprocessImage';
7496
7770
  };
@@ -7520,6 +7794,7 @@ export type InvokePromptEnhancementStepTemplateData = {
7520
7794
  query?: {
7521
7795
  experimental?: boolean;
7522
7796
  allowMatureContent?: boolean;
7797
+ whatif?: boolean;
7523
7798
  };
7524
7799
  url: '/v2/consumer/recipes/promptEnhancement';
7525
7800
  };
@@ -7549,6 +7824,7 @@ export type InvokeRepeatStepTemplateData = {
7549
7824
  query?: {
7550
7825
  experimental?: boolean;
7551
7826
  allowMatureContent?: boolean;
7827
+ whatif?: boolean;
7552
7828
  };
7553
7829
  url: '/v2/consumer/recipes/repeat';
7554
7830
  };
@@ -7578,6 +7854,7 @@ export type InvokeTextToImageStepTemplateData = {
7578
7854
  query?: {
7579
7855
  experimental?: boolean;
7580
7856
  allowMatureContent?: boolean;
7857
+ whatif?: boolean;
7581
7858
  };
7582
7859
  url: '/v2/consumer/recipes/textToImage';
7583
7860
  };
@@ -7607,6 +7884,7 @@ export type InvokeTextToSpeechStepTemplateData = {
7607
7884
  query?: {
7608
7885
  experimental?: boolean;
7609
7886
  allowMatureContent?: boolean;
7887
+ whatif?: boolean;
7610
7888
  };
7611
7889
  url: '/v2/consumer/recipes/textToSpeech';
7612
7890
  };
@@ -7636,6 +7914,7 @@ export type InvokeTrainingStepTemplateData = {
7636
7914
  query?: {
7637
7915
  experimental?: boolean;
7638
7916
  allowMatureContent?: boolean;
7917
+ whatif?: boolean;
7639
7918
  };
7640
7919
  url: '/v2/consumer/recipes/training';
7641
7920
  };
@@ -7665,6 +7944,7 @@ export type InvokeTranscodeStepTemplateData = {
7665
7944
  query?: {
7666
7945
  experimental?: boolean;
7667
7946
  allowMatureContent?: boolean;
7947
+ whatif?: boolean;
7668
7948
  };
7669
7949
  url: '/v2/consumer/recipes/transcode';
7670
7950
  };
@@ -7694,6 +7974,7 @@ export type InvokeTranscriptionStepTemplateData = {
7694
7974
  query?: {
7695
7975
  experimental?: boolean;
7696
7976
  allowMatureContent?: boolean;
7977
+ whatif?: boolean;
7697
7978
  };
7698
7979
  url: '/v2/consumer/recipes/transcription';
7699
7980
  };
@@ -7723,6 +8004,7 @@ export type InvokeTryOnUStepTemplateData = {
7723
8004
  query?: {
7724
8005
  experimental?: boolean;
7725
8006
  allowMatureContent?: boolean;
8007
+ whatif?: boolean;
7726
8008
  };
7727
8009
  url: '/v2/consumer/recipes/tryOnU';
7728
8010
  };
@@ -7752,6 +8034,7 @@ export type InvokeVideoEnhancementStepTemplateData = {
7752
8034
  query?: {
7753
8035
  experimental?: boolean;
7754
8036
  allowMatureContent?: boolean;
8037
+ whatif?: boolean;
7755
8038
  };
7756
8039
  url: '/v2/consumer/recipes/videoEnhancement';
7757
8040
  };
@@ -7781,6 +8064,7 @@ export type InvokeVideoFrameExtractionStepTemplateData = {
7781
8064
  query?: {
7782
8065
  experimental?: boolean;
7783
8066
  allowMatureContent?: boolean;
8067
+ whatif?: boolean;
7784
8068
  };
7785
8069
  url: '/v2/consumer/recipes/videoFrameExtraction';
7786
8070
  };
@@ -7810,6 +8094,7 @@ export type InvokeVideoGenStepTemplateData = {
7810
8094
  query?: {
7811
8095
  experimental?: boolean;
7812
8096
  allowMatureContent?: boolean;
8097
+ whatif?: boolean;
7813
8098
  };
7814
8099
  url: '/v2/consumer/recipes/videoGen';
7815
8100
  };
@@ -7839,6 +8124,7 @@ export type InvokeVideoInterpolationStepTemplateData = {
7839
8124
  query?: {
7840
8125
  experimental?: boolean;
7841
8126
  allowMatureContent?: boolean;
8127
+ whatif?: boolean;
7842
8128
  };
7843
8129
  url: '/v2/consumer/recipes/videoInterpolation';
7844
8130
  };
@@ -7868,6 +8154,7 @@ export type InvokeVideoMetadataStepTemplateData = {
7868
8154
  query?: {
7869
8155
  experimental?: boolean;
7870
8156
  allowMatureContent?: boolean;
8157
+ whatif?: boolean;
7871
8158
  };
7872
8159
  url: '/v2/consumer/recipes/videoMetadata';
7873
8160
  };
@@ -7897,6 +8184,7 @@ export type InvokeVideoUpscalerStepTemplateData = {
7897
8184
  query?: {
7898
8185
  experimental?: boolean;
7899
8186
  allowMatureContent?: boolean;
8187
+ whatif?: boolean;
7900
8188
  };
7901
8189
  url: '/v2/consumer/recipes/videoUpscaler';
7902
8190
  };
@@ -7926,6 +8214,7 @@ export type InvokeWdTaggingStepTemplateData = {
7926
8214
  query?: {
7927
8215
  experimental?: boolean;
7928
8216
  allowMatureContent?: boolean;
8217
+ whatif?: boolean;
7929
8218
  };
7930
8219
  url: '/v2/consumer/recipes/wdTagging';
7931
8220
  };
@@ -7955,6 +8244,7 @@ export type InvokeXGuardModerationStepTemplateData = {
7955
8244
  query?: {
7956
8245
  experimental?: boolean;
7957
8246
  allowMatureContent?: boolean;
8247
+ whatif?: boolean;
7958
8248
  };
7959
8249
  url: '/v2/consumer/recipes/xGuardModeration';
7960
8250
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.50",
3
+ "version": "0.2.0-beta.52",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",