@apicity/fal 0.28.1 → 0.29.0
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.
- package/README.md +52 -1
- package/dist/src/example.d.ts.map +1 -1
- package/dist/src/example.js +30 -0
- package/dist/src/example.js.map +1 -1
- package/dist/src/fal.d.ts.map +1 -1
- package/dist/src/fal.js +29 -1
- package/dist/src/fal.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types.d.ts +56 -2
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/src/zod.d.ts +187 -0
- package/dist/src/zod.d.ts.map +1 -1
- package/dist/src/zod.js +123 -0
- package/dist/src/zod.js.map +1 -1
- package/package.json +1 -1
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAysCA,cAAc;AACd,MAAM,OAAO,QAAS,SAAQ,KAAK;IACxB,MAAM,CAAS;IACf,IAAI,CAAe;IACnB,UAAU,CAAU;IACpB,QAAQ,CAAU;IAClB,IAAI,CAAU;IAEvB,YACE,OAAe,EACf,MAAc,EACd,IAAkB,EAClB,UAAmB,EACnB,QAAiB,EACjB,IAAc;QAEd,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC;IAC3B,CAAC;CACF"}
|
package/dist/src/zod.d.ts
CHANGED
|
@@ -5960,6 +5960,104 @@ export declare const FalMicrosoftMaiImage2p5ProEditRequestSchema: z.ZodObject<{
|
|
|
5960
5960
|
export type FalMicrosoftMaiImage2p5ProEditRequest = z.input<typeof FalMicrosoftMaiImage2p5ProEditRequestSchema>;
|
|
5961
5961
|
export type FalMicrosoftMaiImage2p5ProEditRequestInput = FalMicrosoftMaiImage2p5ProEditRequest;
|
|
5962
5962
|
export type FalMicrosoftMaiImage2p5ProEditParsedRequest = z.output<typeof FalMicrosoftMaiImage2p5ProEditRequestSchema>;
|
|
5963
|
+
export declare const FalMicrosoftMaiImage2p7EditRequestSchema: z.ZodObject<{
|
|
5964
|
+
prompt: z.ZodString;
|
|
5965
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
5966
|
+
image_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
5967
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
5968
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
5969
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
5970
|
+
square_hd: "square_hd";
|
|
5971
|
+
portrait_4_3: "portrait_4_3";
|
|
5972
|
+
portrait_16_9: "portrait_16_9";
|
|
5973
|
+
landscape_4_3: "landscape_4_3";
|
|
5974
|
+
landscape_16_9: "landscape_16_9";
|
|
5975
|
+
portrait_3_2: "portrait_3_2";
|
|
5976
|
+
landscape_3_2: "landscape_3_2";
|
|
5977
|
+
}>]>>>;
|
|
5978
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
5979
|
+
"1K": "1K";
|
|
5980
|
+
"2K": "2K";
|
|
5981
|
+
}>>;
|
|
5982
|
+
background: z.ZodDefault<z.ZodEnum<{
|
|
5983
|
+
transparent: "transparent";
|
|
5984
|
+
opaque: "opaque";
|
|
5985
|
+
}>>;
|
|
5986
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
5987
|
+
png: "png";
|
|
5988
|
+
jpeg: "jpeg";
|
|
5989
|
+
webp: "webp";
|
|
5990
|
+
}>>;
|
|
5991
|
+
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
5992
|
+
}, z.core.$strip>;
|
|
5993
|
+
export type FalMicrosoftMaiImage2p7EditRequest = z.input<typeof FalMicrosoftMaiImage2p7EditRequestSchema>;
|
|
5994
|
+
export type FalMicrosoftMaiImage2p7EditRequestInput = FalMicrosoftMaiImage2p7EditRequest;
|
|
5995
|
+
export type FalMicrosoftMaiImage2p7EditParsedRequest = z.output<typeof FalMicrosoftMaiImage2p7EditRequestSchema>;
|
|
5996
|
+
export declare const FalMicrosoftMaiImage2p7FlashEditRequestSchema: z.ZodObject<{
|
|
5997
|
+
prompt: z.ZodString;
|
|
5998
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
5999
|
+
image_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
6000
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
6001
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
6002
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
6003
|
+
square_hd: "square_hd";
|
|
6004
|
+
portrait_4_3: "portrait_4_3";
|
|
6005
|
+
portrait_16_9: "portrait_16_9";
|
|
6006
|
+
landscape_4_3: "landscape_4_3";
|
|
6007
|
+
landscape_16_9: "landscape_16_9";
|
|
6008
|
+
portrait_3_2: "portrait_3_2";
|
|
6009
|
+
landscape_3_2: "landscape_3_2";
|
|
6010
|
+
}>]>>>;
|
|
6011
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
6012
|
+
"1K": "1K";
|
|
6013
|
+
"2K": "2K";
|
|
6014
|
+
}>>;
|
|
6015
|
+
background: z.ZodDefault<z.ZodEnum<{
|
|
6016
|
+
transparent: "transparent";
|
|
6017
|
+
opaque: "opaque";
|
|
6018
|
+
}>>;
|
|
6019
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
6020
|
+
png: "png";
|
|
6021
|
+
jpeg: "jpeg";
|
|
6022
|
+
webp: "webp";
|
|
6023
|
+
}>>;
|
|
6024
|
+
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
6025
|
+
}, z.core.$strip>;
|
|
6026
|
+
export type FalMicrosoftMaiImage2p7FlashEditRequest = z.input<typeof FalMicrosoftMaiImage2p7FlashEditRequestSchema>;
|
|
6027
|
+
export type FalMicrosoftMaiImage2p7FlashEditRequestInput = FalMicrosoftMaiImage2p7FlashEditRequest;
|
|
6028
|
+
export type FalMicrosoftMaiImage2p7FlashEditParsedRequest = z.output<typeof FalMicrosoftMaiImage2p7FlashEditRequestSchema>;
|
|
6029
|
+
export declare const FalMicrosoftMaiImage2p7TextToImageRequestSchema: z.ZodObject<{
|
|
6030
|
+
prompt: z.ZodString;
|
|
6031
|
+
image_size: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
6032
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
6033
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
6034
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
6035
|
+
square_hd: "square_hd";
|
|
6036
|
+
portrait_4_3: "portrait_4_3";
|
|
6037
|
+
portrait_16_9: "portrait_16_9";
|
|
6038
|
+
landscape_4_3: "landscape_4_3";
|
|
6039
|
+
landscape_16_9: "landscape_16_9";
|
|
6040
|
+
portrait_3_2: "portrait_3_2";
|
|
6041
|
+
landscape_3_2: "landscape_3_2";
|
|
6042
|
+
}>]>>;
|
|
6043
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
6044
|
+
"1K": "1K";
|
|
6045
|
+
"2K": "2K";
|
|
6046
|
+
}>>;
|
|
6047
|
+
background: z.ZodDefault<z.ZodEnum<{
|
|
6048
|
+
transparent: "transparent";
|
|
6049
|
+
opaque: "opaque";
|
|
6050
|
+
}>>;
|
|
6051
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
6052
|
+
png: "png";
|
|
6053
|
+
jpeg: "jpeg";
|
|
6054
|
+
webp: "webp";
|
|
6055
|
+
}>>;
|
|
6056
|
+
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
6057
|
+
}, z.core.$strip>;
|
|
6058
|
+
export type FalMicrosoftMaiImage2p7TextToImageRequest = z.input<typeof FalMicrosoftMaiImage2p7TextToImageRequestSchema>;
|
|
6059
|
+
export type FalMicrosoftMaiImage2p7TextToImageRequestInput = FalMicrosoftMaiImage2p7TextToImageRequest;
|
|
6060
|
+
export type FalMicrosoftMaiImage2p7TextToImageParsedRequest = z.output<typeof FalMicrosoftMaiImage2p7TextToImageRequestSchema>;
|
|
5963
6061
|
export declare const FalNvidiaCosmos3SuperImageToVideoRequestSchema: z.ZodObject<{
|
|
5964
6062
|
prompt: z.ZodString;
|
|
5965
6063
|
image_url: z.ZodString;
|
|
@@ -22670,6 +22768,95 @@ export declare const FAL_ENDPOINT_REQUEST_SCHEMAS: {
|
|
|
22670
22768
|
}>>;
|
|
22671
22769
|
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
22672
22770
|
}, z.core.$strip>;
|
|
22771
|
+
readonly "microsoft/mai-image-2.7/edit": z.ZodObject<{
|
|
22772
|
+
prompt: z.ZodString;
|
|
22773
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
22774
|
+
image_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
22775
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
22776
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
22777
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
22778
|
+
square_hd: "square_hd";
|
|
22779
|
+
portrait_4_3: "portrait_4_3";
|
|
22780
|
+
portrait_16_9: "portrait_16_9";
|
|
22781
|
+
landscape_4_3: "landscape_4_3";
|
|
22782
|
+
landscape_16_9: "landscape_16_9";
|
|
22783
|
+
portrait_3_2: "portrait_3_2";
|
|
22784
|
+
landscape_3_2: "landscape_3_2";
|
|
22785
|
+
}>]>>>;
|
|
22786
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
22787
|
+
"1K": "1K";
|
|
22788
|
+
"2K": "2K";
|
|
22789
|
+
}>>;
|
|
22790
|
+
background: z.ZodDefault<z.ZodEnum<{
|
|
22791
|
+
transparent: "transparent";
|
|
22792
|
+
opaque: "opaque";
|
|
22793
|
+
}>>;
|
|
22794
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
22795
|
+
png: "png";
|
|
22796
|
+
jpeg: "jpeg";
|
|
22797
|
+
webp: "webp";
|
|
22798
|
+
}>>;
|
|
22799
|
+
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
22800
|
+
}, z.core.$strip>;
|
|
22801
|
+
readonly "microsoft/mai-image-2.7/flash/edit": z.ZodObject<{
|
|
22802
|
+
prompt: z.ZodString;
|
|
22803
|
+
image_urls: z.ZodArray<z.ZodString>;
|
|
22804
|
+
image_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
22805
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
22806
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
22807
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
22808
|
+
square_hd: "square_hd";
|
|
22809
|
+
portrait_4_3: "portrait_4_3";
|
|
22810
|
+
portrait_16_9: "portrait_16_9";
|
|
22811
|
+
landscape_4_3: "landscape_4_3";
|
|
22812
|
+
landscape_16_9: "landscape_16_9";
|
|
22813
|
+
portrait_3_2: "portrait_3_2";
|
|
22814
|
+
landscape_3_2: "landscape_3_2";
|
|
22815
|
+
}>]>>>;
|
|
22816
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
22817
|
+
"1K": "1K";
|
|
22818
|
+
"2K": "2K";
|
|
22819
|
+
}>>;
|
|
22820
|
+
background: z.ZodDefault<z.ZodEnum<{
|
|
22821
|
+
transparent: "transparent";
|
|
22822
|
+
opaque: "opaque";
|
|
22823
|
+
}>>;
|
|
22824
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
22825
|
+
png: "png";
|
|
22826
|
+
jpeg: "jpeg";
|
|
22827
|
+
webp: "webp";
|
|
22828
|
+
}>>;
|
|
22829
|
+
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
22830
|
+
}, z.core.$strip>;
|
|
22831
|
+
readonly "microsoft/mai-image-2.7/text-to-image": z.ZodObject<{
|
|
22832
|
+
prompt: z.ZodString;
|
|
22833
|
+
image_size: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
22834
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
22835
|
+
height: z.ZodDefault<z.ZodNumber>;
|
|
22836
|
+
}, z.core.$strip>, z.ZodEnum<{
|
|
22837
|
+
square_hd: "square_hd";
|
|
22838
|
+
portrait_4_3: "portrait_4_3";
|
|
22839
|
+
portrait_16_9: "portrait_16_9";
|
|
22840
|
+
landscape_4_3: "landscape_4_3";
|
|
22841
|
+
landscape_16_9: "landscape_16_9";
|
|
22842
|
+
portrait_3_2: "portrait_3_2";
|
|
22843
|
+
landscape_3_2: "landscape_3_2";
|
|
22844
|
+
}>]>>;
|
|
22845
|
+
resolution: z.ZodDefault<z.ZodEnum<{
|
|
22846
|
+
"1K": "1K";
|
|
22847
|
+
"2K": "2K";
|
|
22848
|
+
}>>;
|
|
22849
|
+
background: z.ZodDefault<z.ZodEnum<{
|
|
22850
|
+
transparent: "transparent";
|
|
22851
|
+
opaque: "opaque";
|
|
22852
|
+
}>>;
|
|
22853
|
+
output_format: z.ZodDefault<z.ZodEnum<{
|
|
22854
|
+
png: "png";
|
|
22855
|
+
jpeg: "jpeg";
|
|
22856
|
+
webp: "webp";
|
|
22857
|
+
}>>;
|
|
22858
|
+
sync_mode: z.ZodDefault<z.ZodBoolean>;
|
|
22859
|
+
}, z.core.$strip>;
|
|
22673
22860
|
readonly "openai/gpt-image-2.5/flare/text-to-image": z.ZodObject<{
|
|
22674
22861
|
prompt: z.ZodString;
|
|
22675
22862
|
image_size: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|