fal-endpoint-types 1.3.27 → 1.3.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fal-endpoint-types",
3
- "version": "1.3.27",
3
+ "version": "1.3.30",
4
4
  "description": "TypeScript types for Fal AI endpoints generated from the OpenAPI schemas.",
5
5
  "homepage": "https://github.com/rawpixel-vincent/fal-endpoint-types#readme",
6
6
  "bugs": {
@@ -138,63 +138,6 @@ export interface VideoFormat {
138
138
  video_codec: string;
139
139
  }
140
140
 
141
- export interface VideoFile_1 {
142
- /**
143
- * Content Type
144
- * @description The mime type of the file.
145
- * @example image/png
146
- */
147
- content_type?: string;
148
- /**
149
- * Duration
150
- * @description The duration of the video
151
- */
152
- duration?: number;
153
- /**
154
- * File Data
155
- * Format: binary
156
- * @description File data
157
- */
158
- file_data?: string;
159
- /**
160
- * File Name
161
- * @description The name of the file. It will be auto-generated if not provided.
162
- * @example z9RV14K95DvU.png
163
- */
164
- file_name?: string;
165
- /**
166
- * File Size
167
- * @description The size of the file in bytes.
168
- * @example 4404019
169
- */
170
- file_size?: number;
171
- /**
172
- * Fps
173
- * @description The FPS of the video
174
- */
175
- fps?: number;
176
- /**
177
- * Height
178
- * @description The height of the video
179
- */
180
- height?: number;
181
- /**
182
- * Num Frames
183
- * @description The number of frames in the video
184
- */
185
- num_frames?: number;
186
- /**
187
- * Url
188
- * @description The URL where the file can be downloaded from.
189
- */
190
- url: string;
191
- /**
192
- * Width
193
- * @description The width of the video
194
- */
195
- width?: number;
196
- }
197
-
198
141
  export interface VideoFile {
199
142
  /**
200
143
  * Content Type
@@ -1657,7 +1600,6 @@ export interface VideoAgentConfig {
1657
1600
  }
1658
1601
 
1659
1602
  export interface Video_1 {
1660
- /** @description Audio track information if video has audio */
1661
1603
  audio?: AudioTrack;
1662
1604
  /**
1663
1605
  * Bitrate
@@ -1699,7 +1641,6 @@ export interface Video_1 {
1699
1641
  * @description Size of the file in bytes
1700
1642
  */
1701
1643
  file_size: number;
1702
- /** @description Detailed video format information */
1703
1644
  format: VideoFormat;
1704
1645
  /**
1705
1646
  * Fps
@@ -1718,7 +1659,6 @@ export interface Video_1 {
1718
1659
  * @constant
1719
1660
  */
1720
1661
  media_type?: 'video';
1721
- /** @description Video resolution information */
1722
1662
  resolution: Resolution;
1723
1663
  /**
1724
1664
  * Start Frame Url
@@ -1847,11 +1787,8 @@ export interface UsageInfo_1 {
1847
1787
  }
1848
1788
 
1849
1789
  export interface UsageInfo {
1850
- /** Completion Tokens */
1851
1790
  completion_tokens?: number;
1852
- /** Cost */
1853
1791
  cost: number;
1854
- /** Prompt Tokens */
1855
1792
  prompt_tokens?: number;
1856
1793
  /**
1857
1794
  * Total Tokens
@@ -1861,9 +1798,7 @@ export interface UsageInfo {
1861
1798
  }
1862
1799
 
1863
1800
  export interface Turn {
1864
- /** Speaker Id */
1865
1801
  speaker_id: number;
1866
- /** Text */
1867
1802
  text: string;
1868
1803
  }
1869
1804
 
@@ -2004,9 +1939,9 @@ export interface TextVoice {
2004
1939
  /**
2005
1940
  * Prompt
2006
1941
  * @description The text that the avatar will speak in the video
2007
- * @example The Tesla Cybertruck is a battery-electric full-size pickup truck manufactured by Tesla, Inc. since 2023. It was first unveiled as a prototype in November 2019, featuring a distinctive angular design composed of flat, unpainted stainless steel body panels, drawing comparisons to low-polygon computer models.
1942
+ * @example The Tesla Cybertruck is a battery-electric full-size pickup truck manufactured by Tesla, Inc. since 2023.
2008
1943
  */
2009
- prompt: string;
1944
+ prompt?: string;
2010
1945
  /**
2011
1946
  * Speed
2012
1947
  * @description Speed of the speech (0.5 to 2.0)
@@ -2020,9 +1955,9 @@ export interface TextVoice {
2020
1955
  * Voice
2021
1956
  * @description Name of the voice to use for the avatar
2022
1957
  * @example Charming Charlie - Excited 🤩
2023
- * @enum {string}
1958
+ * @enum {unknown}
2024
1959
  */
2025
- voice:
1960
+ voice?:
2026
1961
  | 'Warm Pro Narrator'
2027
1962
  | 'Chill Brian'
2028
1963
  | 'Ivy'
@@ -2125,16 +2060,17 @@ export interface TextVoice {
2125
2060
  | 'Rupert Blackwood'
2126
2061
  | 'Ginny'
2127
2062
  | 'Hope';
2063
+ /**
2064
+ * Voice Id
2065
+ * @description Direct voice ID. When provided, this is used instead of looking up the voice by name.
2066
+ */
2067
+ voice_id?: string;
2128
2068
  }
2129
2069
 
2130
2070
  export interface TextureFiles {
2131
- /** @description Base color texture */
2132
2071
  base_color: File;
2133
- /** @description Metallic texture (PBR) */
2134
2072
  metallic?: File;
2135
- /** @description Normal texture (PBR) */
2136
2073
  normal?: File;
2137
- /** @description Roughness texture (PBR) */
2138
2074
  roughness?: File;
2139
2075
  }
2140
2076
 
@@ -2171,8 +2107,55 @@ export interface TextRender {
2171
2107
  text: string;
2172
2108
  }
2173
2109
 
2110
+ export interface StructuredPrompt_2 {
2111
+ aesthetics?: Aesthetics_1;
2112
+ /**
2113
+ * Artistic Style
2114
+ * @description The artistic style of the image to be generated.
2115
+ */
2116
+ artistic_style?: string;
2117
+ /**
2118
+ * Background Setting
2119
+ * @description The background setting of the image to be generated.
2120
+ */
2121
+ background_setting?: string;
2122
+ /**
2123
+ * Color Palette
2124
+ * @description A list of colors that define the overall color palette of the image.
2125
+ */
2126
+ color_palette?: Color[];
2127
+ /**
2128
+ * Context
2129
+ * @description The context of the image to be generated.
2130
+ */
2131
+ context?: string;
2132
+ lighting?: Lighting_1;
2133
+ /**
2134
+ * Objects
2135
+ * @description A list of objects in the image to be generated, along with their attributes and relationships to other objects in the image.
2136
+ * @default []
2137
+ */
2138
+ objects?: PromptObject_1[];
2139
+ photographic_characteristics?: PhotographicCharacteristics_1;
2140
+ /**
2141
+ * Short Description
2142
+ * @description A short description of the image to be generated.
2143
+ */
2144
+ short_description?: string;
2145
+ /**
2146
+ * Style Medium
2147
+ * @description The style medium of the image to be generated.
2148
+ */
2149
+ style_medium?: string;
2150
+ /**
2151
+ * Text Render
2152
+ * @description A list of text to be rendered in the image.
2153
+ * @default []
2154
+ */
2155
+ text_render?: { [x: string]: any }[];
2156
+ }
2157
+
2174
2158
  export interface StructuredPrompt_1 {
2175
- /** @description Details about the image aesthetics. */
2176
2159
  aesthetics: AestheticsDetails;
2177
2160
  /**
2178
2161
  * Artistic Style
@@ -2189,14 +2172,12 @@ export interface StructuredPrompt_1 {
2189
2172
  * @description Provide any additional context that helps understand the image better.
2190
2173
  */
2191
2174
  context: string;
2192
- /** @description Details about the lighting. */
2193
2175
  lighting: LightingDetails;
2194
2176
  /**
2195
2177
  * Objects
2196
2178
  * @description List of prominent foreground/midground objects.
2197
2179
  */
2198
2180
  objects: ObjectDescription[];
2199
- /** @description Details about photographic characteristics. */
2200
2181
  photographic_characteristics?: PhotographicCharacteristicsDetails;
2201
2182
  /**
2202
2183
  * Short Description
@@ -2221,8 +2202,7 @@ export interface StructuredPrompt_1 {
2221
2202
  }
2222
2203
 
2223
2204
  export interface StructuredPrompt {
2224
- /** @description The aesthetics of the image to be generated. */
2225
- aesthetics?: Aesthetics;
2205
+ aesthetics?: Aesthetics_1;
2226
2206
  /**
2227
2207
  * Artistic Style
2228
2208
  * @description The artistic style of the image to be generated.
@@ -2238,16 +2218,14 @@ export interface StructuredPrompt {
2238
2218
  * @description The context of the image to be generated.
2239
2219
  */
2240
2220
  context?: string;
2241
- /** @description The lighting of the image to be generated. */
2242
- lighting?: Lighting;
2221
+ lighting?: Lighting_1;
2243
2222
  /**
2244
2223
  * Objects
2245
2224
  * @description A list of objects in the image to be generated, along with their attributes and relationships to other objects in the image.
2246
2225
  * @default []
2247
2226
  */
2248
- objects?: PromptObject[];
2249
- /** @description The photographic characteristics of the image to be generated. */
2250
- photographic_characteristics?: PhotographicCharacteristics;
2227
+ objects?: PromptObject_1[];
2228
+ photographic_characteristics?: PhotographicCharacteristics_1;
2251
2229
  /**
2252
2230
  * Short Description
2253
2231
  * @description A short description of the image to be generated.
@@ -2267,8 +2245,7 @@ export interface StructuredPrompt {
2267
2245
  }
2268
2246
 
2269
2247
  export interface StructuredInstruction {
2270
- /** @description The aesthetics of the image to be generated. */
2271
- aesthetics?: Aesthetics;
2248
+ aesthetics?: Aesthetics_1;
2272
2249
  /**
2273
2250
  * Artistic Style
2274
2251
  * @description The artistic style of the image to be generated.
@@ -2289,16 +2266,14 @@ export interface StructuredInstruction {
2289
2266
  * @description The edit instruction for the image.
2290
2267
  */
2291
2268
  edit_instruction?: string;
2292
- /** @description The lighting of the image to be generated. */
2293
- lighting?: Lighting;
2269
+ lighting?: Lighting_1;
2294
2270
  /**
2295
2271
  * Objects
2296
2272
  * @description A list of objects in the image to be generated, along with their attributes and relationships to other objects in the image.
2297
2273
  * @default []
2298
2274
  */
2299
- objects?: PromptObject[];
2300
- /** @description The photographic characteristics of the image to be generated. */
2301
- photographic_characteristics?: PhotographicCharacteristics;
2275
+ objects?: PromptObject_1[];
2276
+ photographic_characteristics?: PhotographicCharacteristics_1;
2302
2277
  /**
2303
2278
  * Short Description
2304
2279
  * @description A short description of the image to be generated.
@@ -2331,11 +2306,8 @@ export interface SpeechTimestamp {
2331
2306
  }
2332
2307
 
2333
2308
  export interface Speaker {
2334
- /** Audio Url */
2335
2309
  audio_url: string;
2336
- /** Prompt */
2337
2310
  prompt: string;
2338
- /** Speaker Id */
2339
2311
  speaker_id: number;
2340
2312
  }
2341
2313
 
@@ -2616,9 +2588,7 @@ export interface RawImage {
2616
2588
  * @default image/jpeg
2617
2589
  */
2618
2590
  content_type?: string;
2619
- /** Height */
2620
2591
  height: number;
2621
- /** Width */
2622
2592
  width: number;
2623
2593
  }
2624
2594
 
@@ -2643,6 +2613,100 @@ export interface PronunciationDict {
2643
2613
  tone_list?: string[];
2644
2614
  }
2645
2615
 
2616
+ export interface PromptObject_1 {
2617
+ /**
2618
+ * Action
2619
+ * @description The action of the object in the image.
2620
+ */
2621
+ action?: string;
2622
+ /**
2623
+ * Appearance Details
2624
+ * @description The appearance details of the object.
2625
+ */
2626
+ appearance_details?: string;
2627
+ /**
2628
+ * Bounding Boxes
2629
+ * @description Bounding boxes defining the location of the object in the image.
2630
+ */
2631
+ bounding_boxes?: BoundingBox_1[];
2632
+ /**
2633
+ * Clothing
2634
+ * @description The clothing of the object in the image.
2635
+ */
2636
+ clothing?: string;
2637
+ /**
2638
+ * Colors
2639
+ * @description A list of colors associated with the object.
2640
+ */
2641
+ colors?: Color[];
2642
+ /**
2643
+ * Description
2644
+ * @description A description of the object to be generated.
2645
+ */
2646
+ description?: string;
2647
+ /**
2648
+ * Expression
2649
+ * @description The expression of the object in the image.
2650
+ */
2651
+ expression?: string;
2652
+ /**
2653
+ * Gender
2654
+ * @description The gender of the object in the image.
2655
+ */
2656
+ gender?: string;
2657
+ /**
2658
+ * Location
2659
+ * @description The location of the object in the image.
2660
+ */
2661
+ location?: string;
2662
+ /**
2663
+ * Number Of Objects
2664
+ * @description The number of objects in the image.
2665
+ */
2666
+ number_of_objects?: number;
2667
+ /**
2668
+ * Orientation
2669
+ * @description The orientation of the object in the image.
2670
+ */
2671
+ orientation?: string;
2672
+ /**
2673
+ * Pose
2674
+ * @description The pose of the object in the image.
2675
+ */
2676
+ pose?: string;
2677
+ /**
2678
+ * Relationship
2679
+ * @description The relationship of the object to other objects in the image.
2680
+ */
2681
+ relationship?: string;
2682
+ /**
2683
+ * Relative Distance
2684
+ * @description The relative distance of the object from the camera or viewer.
2685
+ */
2686
+ relative_distance?: number;
2687
+ /**
2688
+ * Relative Size
2689
+ * @description The relative size of the object in the image.
2690
+ */
2691
+ relative_size?: string;
2692
+ /**
2693
+ * Shape And Color
2694
+ * @description The shape and color of the object.
2695
+ */
2696
+ shape_and_color?: string;
2697
+ skin_color?: Color;
2698
+ /**
2699
+ * Skin Tone And Texture
2700
+ * @description The skin tone and texture of the object in the image.
2701
+ */
2702
+ skin_tone_and_texture?: string;
2703
+ /**
2704
+ * Texture
2705
+ * @description The texture of the object.
2706
+ */
2707
+ texture?: string;
2708
+ }
2709
+
2646
2710
  export interface PromptObject {
2647
2711
  /**
2648
2712
  * Action
@@ -2823,7 +2887,7 @@ export interface PointPrompt {
2823
2887
  y?: number;
2824
2888
  }
2825
2889
 
2826
- export interface Point {
2890
+ export interface Point_1 {
2827
2891
  /**
2828
2892
  * X
2829
2893
  * @description X coordinate of the point in normalized format (0 to 1)
@@ -2836,6 +2900,19 @@ export interface Point {
2836
2900
  y: number;
2837
2901
  }
2838
2902
 
2903
+ export interface Point {
2904
+ /**
2905
+ * X
2906
+ * @description The x coordinate.
2907
+ */
2908
+ x: number;
2909
+ /**
2910
+ * Y
2911
+ * @description The y coordinate.
2912
+ */
2913
+ y: number;
2914
+ }
2915
+
2839
2916
  export interface PhotographicCharacteristicsDetails {
2840
2917
  /**
2841
2918
  * Camera Angle
@@ -2859,6 +2936,31 @@ export interface PhotographicCharacteristicsDetails {
2859
2936
  lens_focal_length: string;
2860
2937
  }
2861
2938
 
2939
+ export type PhotographicCharacteristics_1 = {
2940
+ /**
2941
+ * Camera Angle
2942
+ * @description The angle of the camera in the image to be generated.
2943
+ */
2944
+ camera_angle?: string;
2945
+ /**
2946
+ * Depth Of Field
2947
+ * @description The depth of field in the image to be generated.
2948
+ */
2949
+ depth_of_field?: string;
2950
+ /**
2951
+ * Focus
2952
+ * @description The focus in the image to be generated.
2953
+ */
2954
+ focus?: string;
2955
+ /**
2956
+ * Lens Focal Length
2957
+ * @description The focal length of the lens in the image to be generated.
2958
+ */
2959
+ lens_focal_length?: string;
2960
+ } & {
2961
+ [key: string]: { [x: string]: any } | null;
2962
+ };
2963
+
2862
2964
  export interface PhotographicCharacteristics {
2863
2965
  /**
2864
2966
  * Camera Angle
@@ -3069,43 +3171,27 @@ export interface MoondreamInputParam {
3069
3171
  }
3070
3172
 
3071
3173
  export interface ModelUrls_2 {
3072
- /** @description FBX format 3D model */
3073
3174
  fbx?: File;
3074
- /** @description GLB format 3D model */
3075
3175
  glb?: File;
3076
- /** @description OBJ format 3D model */
3077
3176
  obj?: File;
3078
- /** @description USDZ format 3D model */
3079
3177
  usdz?: File;
3080
3178
  }
3081
3179
 
3082
3180
  export interface ModelUrls_1 {
3083
- /** @description FBX format 3D model */
3084
3181
  fbx?: File;
3085
- /** @description GLB format 3D model */
3086
3182
  glb?: File;
3087
- /** @description MTL material file for OBJ model */
3088
3183
  mtl?: File;
3089
- /** @description OBJ format 3D model */
3090
3184
  obj?: File;
3091
- /** @description Texture image for the 3D model */
3092
3185
  texture?: File;
3093
- /** @description USDZ format 3D model */
3094
3186
  usdz?: File;
3095
3187
  }
3096
3188
 
3097
3189
  export interface ModelUrls {
3098
- /** @description Blender format 3D model */
3099
3190
  blend?: File;
3100
- /** @description FBX format 3D model */
3101
3191
  fbx?: File;
3102
- /** @description GLB format 3D model */
3103
3192
  glb?: File;
3104
- /** @description OBJ format 3D model */
3105
3193
  obj?: File;
3106
- /** @description STL format 3D model */
3107
3194
  stl?: File;
3108
- /** @description USDZ format 3D model */
3109
3195
  usdz?: File;
3110
3196
  }
3111
3197
 
@@ -3424,6 +3510,26 @@ export interface LightingDetails {
3424
3510
  shadows?: string;
3425
3511
  }
3426
3512
 
3513
+ export type Lighting_1 = {
3514
+ /**
3515
+ * Conditions
3516
+ * @description The conditions of the lighting in the image to be generated.
3517
+ */
3518
+ conditions?: string;
3519
+ /**
3520
+ * Direction
3521
+ * @description The direction of the lighting in the image to be generated.
3522
+ */
3523
+ direction?: string;
3524
+ /**
3525
+ * Shadows
3526
+ * @description The shadows in the image to be generated.
3527
+ */
3528
+ shadows?: string;
3529
+ } & {
3530
+ [key: string]: { [x: string]: any } | null;
3531
+ };
3532
+
3427
3533
  export interface Lighting {
3428
3534
  /**
3429
3535
  * Conditions
@@ -3684,7 +3790,6 @@ export interface ImageSize {
3684
3790
  }
3685
3791
 
3686
3792
  export interface ImagePrompt {
3687
- /** Image Url */
3688
3793
  image_url?: string;
3689
3794
  /**
3690
3795
  * Stop At
@@ -3961,11 +4066,8 @@ export interface Image_1 {
3961
4066
  * @default image/jpeg
3962
4067
  */
3963
4068
  content_type?: string;
3964
- /** Height */
3965
4069
  height: number;
3966
- /** Url */
3967
4070
  url: string;
3968
- /** Width */
3969
4071
  width: number;
3970
4072
  }
3971
4073
 
@@ -4696,7 +4798,6 @@ export interface ColorPaletteMember {
4696
4798
  * @default 0.5
4697
4799
  */
4698
4800
  color_weight?: number;
4699
- /** @description RGB color value for the palette member */
4700
4801
  rgb: RGBColor;
4701
4802
  }
4702
4803
 
@@ -4713,6 +4814,29 @@ export interface ColorPalette {
4713
4814
  name?: 'EMBER' | 'FRESH' | 'JUNGLE' | 'MAGIC' | 'MELON' | 'MOSAIC' | 'PASTEL' | 'ULTRAMARINE';
4714
4815
  }
4715
4816
 
4817
+ export interface Color {
4818
+ /**
4819
+ * Blue
4820
+ * @description The blue component of the color (0-255).
4821
+ */
4822
+ blue: number;
4823
+ /**
4824
+ * Green
4825
+ * @description The green component of the color (0-255).
4826
+ */
4827
+ green: number;
4828
+ /**
4829
+ * Name
4830
+ * @description The name of the color.
4831
+ */
4832
+ name?: string;
4833
+ /**
4834
+ * Red
4835
+ * @description The red component of the color (0-255).
4836
+ */
4837
+ red: number;
4838
+ }
4839
+
4716
4840
  export interface ChronoLoraWeight {
4717
4841
  /**
4718
4842
  * Path
@@ -6172,7 +6296,12 @@ export interface BoundingBoxes {
6172
6296
  * Bboxes
6173
6297
  * @description List of bounding boxes
6174
6298
  */
6175
- bboxes: BoundingBox[];
6299
+ bboxes: BoundingBox_1[];
6300
+ }
6301
+
6302
+ export interface BoundingBox_1 {
6303
+ bottom_right: Point;
6304
+ top_left: Point;
6176
6305
  }
6177
6306
 
6178
6307
  export interface BoundingBox {
@@ -6540,7 +6669,7 @@ export interface AestheticsDetails {
6540
6669
  preference_score: string;
6541
6670
  }
6542
6671
 
6543
- export interface Aesthetics_1 {
6672
+ export interface Aesthetics_2 {
6544
6673
  /**
6545
6674
  * Aesthetic Score
6546
6675
  * @description The aesthetic score of the image.
@@ -6568,6 +6697,36 @@ export interface Aesthetics_1 {
6568
6697
  preference_score: string;
6569
6698
  }
6570
6699
 
6700
+ export type Aesthetics_1 = {
6701
+ /**
6702
+ * Aesthetic Score
6703
+ * @description The aesthetic score of the image (e.g., 'very high', 'high', 'medium', 'low').
6704
+ */
6705
+ aesthetic_score?: string;
6706
+ /**
6707
+ * Color Scheme
6708
+ * @description The color scheme of the image to be generated.
6709
+ */
6710
+ color_scheme?: string;
6711
+ /**
6712
+ * Composition
6713
+ * @description The composition of the image to be generated.
6714
+ */
6715
+ composition?: string;
6716
+ /**
6717
+ * Mood Atmosphere
6718
+ * @description The mood and atmosphere of the image to be generated.
6719
+ */
6720
+ mood_atmosphere?: string;
6721
+ /**
6722
+ * Preference Score
6723
+ * @description The preference score of the image (e.g., 'very high', 'high', 'medium', 'low').
6724
+ */
6725
+ preference_score?: string;
6726
+ } & {
6727
+ [key: string]: { [x: string]: any } | null;
6728
+ };
6729
+
6571
6730
  export interface Aesthetics {
6572
6731
  /**
6573
6732
  * Color Scheme