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

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,10 +842,16 @@ export {
842
842
  type Wan26FalTextToVideoInput,
843
843
  type Wan26FalVideoGenInput,
844
844
  type Wan26VideoGenInput,
845
- type Wan27FalEditInput,
845
+ type Wan27FalEditVideoInput,
846
+ type Wan27FalImageEditInput,
846
847
  type Wan27FalImageGenInput,
848
+ type Wan27FalImageToVideoInput,
849
+ type Wan27FalReferenceToVideoInput,
847
850
  type Wan27FalTextToImageInput,
851
+ type Wan27FalTextToVideoInput,
852
+ type Wan27FalVideoGenInput,
848
853
  type Wan27ImageGenInput,
854
+ type Wan27VideoGenInput,
849
855
  type WanImageGenInput,
850
856
  type WanVideoGenInput,
851
857
  type WdTaggingInput,
@@ -4875,12 +4875,40 @@ export type Wan26VideoGenInput = Omit<WanVideoGenInput, 'engine' | 'version'> &
4875
4875
  version: 'v2.6';
4876
4876
  engine: 'wan';
4877
4877
  };
4878
- export type Wan27FalEditInput = Omit<
4878
+ export type Wan27FalEditVideoInput = Omit<
4879
+ Wan27FalVideoGenInput,
4880
+ 'engine' | 'version' | 'provider' | 'operation'
4881
+ > & {
4882
+ /**
4883
+ * URL of the input video to edit (MP4/MOV, 2-10s, max 100 MB)
4884
+ */
4885
+ videoUrl: string;
4886
+ /**
4887
+ * Reference image for reference-based editing
4888
+ */
4889
+ referenceImage?: null | string;
4890
+ /**
4891
+ * Aspect ratio of the generated video. If not provided, uses the input video's aspect ratio.
4892
+ */
4893
+ aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4';
4894
+ /**
4895
+ * Audio handling: "auto" or "origin" (keep original audio)
4896
+ */
4897
+ audioSetting?: 'auto' | 'origin';
4898
+ operation: 'edit-video';
4899
+ provider: 'fal';
4900
+ version: 'v2.7';
4901
+ engine: 'wan';
4902
+ };
4903
+ export type Wan27FalImageEditInput = Omit<
4879
4904
  Wan27FalImageGenInput,
4880
4905
  'engine' | 'version' | 'provider' | 'operation'
4881
4906
  > & {
4882
- images?: Array<string>;
4883
- operation: 'edit';
4907
+ /**
4908
+ * Reference images for editing (1-4 images required)
4909
+ */
4910
+ images: Array<string>;
4911
+ operation: 'editImage';
4884
4912
  provider: 'fal';
4885
4913
  version: 'v2.7';
4886
4914
  engine: 'wan';
@@ -4892,11 +4920,83 @@ export type Wan27FalImageGenInput = Omit<Wan27ImageGenInput, 'engine' | 'version
4892
4920
  version: 'v2.7';
4893
4921
  engine: 'wan';
4894
4922
  };
4923
+ export type Wan27FalImageToVideoInput = Omit<
4924
+ Wan27FalVideoGenInput,
4925
+ 'engine' | 'version' | 'provider' | 'operation'
4926
+ > & {
4927
+ /**
4928
+ * First frame image URL
4929
+ */
4930
+ startImage?: null | string;
4931
+ /**
4932
+ * Last frame image for first-and-last-frame-to-video
4933
+ */
4934
+ endImage?: null | string;
4935
+ /**
4936
+ * URL of a video clip to continue from (MP4/MOV, 2-10s, max 100 MB)
4937
+ */
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;
4945
+ operation: 'image-to-video';
4946
+ provider: 'fal';
4947
+ version: 'v2.7';
4948
+ engine: 'wan';
4949
+ };
4950
+ export type Wan27FalReferenceToVideoInput = Omit<
4951
+ Wan27FalVideoGenInput,
4952
+ 'engine' | 'version' | 'provider' | 'operation'
4953
+ > & {
4954
+ /**
4955
+ * Reference images for character/object appearance (max 20 MB each)
4956
+ */
4957
+ referenceImages?: Array<string>;
4958
+ /**
4959
+ * Reference videos for character/object appearance and motion (max 100 MB each)
4960
+ * Use @Video1, @Video2, @Video3 in the prompt to reference subjects
4961
+ */
4962
+ referenceVideoUrls?: Array<string>;
4963
+ aspectRatio?: '16:9' | '9:16' | '1:1' | '4:3' | '3:4';
4964
+ multiShots?: boolean;
4965
+ negativePrompt?: null | string;
4966
+ operation: 'reference-to-video';
4967
+ provider: 'fal';
4968
+ version: 'v2.7';
4969
+ engine: 'wan';
4970
+ };
4895
4971
  export type Wan27FalTextToImageInput = Omit<
4896
4972
  Wan27FalImageGenInput,
4897
4973
  'engine' | 'version' | 'provider' | 'operation'
4898
4974
  > & {
4899
- operation: 'text-to-image';
4975
+ operation: 'createImage';
4976
+ provider: 'fal';
4977
+ version: 'v2.7';
4978
+ engine: 'wan';
4979
+ };
4980
+ export type Wan27FalTextToVideoInput = Omit<
4981
+ Wan27FalVideoGenInput,
4982
+ 'engine' | 'version' | 'provider' | 'operation'
4983
+ > & {
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;
4991
+ operation: 'text-to-video';
4992
+ provider: 'fal';
4993
+ version: 'v2.7';
4994
+ engine: 'wan';
4995
+ };
4996
+ export type Wan27FalVideoGenInput = Omit<Wan27VideoGenInput, 'engine' | 'version' | 'provider'> & {
4997
+ operation: null | string;
4998
+ resolution?: '720p' | '1080p';
4999
+ enableSafetyChecker?: boolean;
4900
5000
  provider: 'fal';
4901
5001
  version: 'v2.7';
4902
5002
  engine: 'wan';
@@ -4906,6 +5006,11 @@ export type Wan27ImageGenInput = Omit<WanImageGenInput, 'engine' | 'version'> &
4906
5006
  version: 'v2.7';
4907
5007
  engine: 'wan';
4908
5008
  };
5009
+ export type Wan27VideoGenInput = Omit<WanVideoGenInput, 'engine' | 'version'> & {
5010
+ provider: null | string;
5011
+ version: 'v2.7';
5012
+ engine: 'wan';
5013
+ };
4909
5014
  export type WanImageGenInput = Omit<ImageGenInput, 'engine'> & {
4910
5015
  version: null | string;
4911
5016
  prompt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.2.0-beta.43",
3
+ "version": "0.2.0-beta.46",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",