fal-endpoint-types 1.3.16 → 1.3.17

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.16",
3
+ "version": "1.3.17",
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": {
@@ -26497,6 +26497,11 @@ export interface Sam33dObjectsInput {
26497
26497
  * @default []
26498
26498
  */
26499
26499
  box_prompts?: Components.BoxPromptBase[];
26500
+ /**
26501
+ * Detection Threshold
26502
+ * @description Detection confidence threshold (0.1-1.0). Lower = more detections but less precise. If not set, uses the model's default.
26503
+ */
26504
+ detection_threshold?: number;
26500
26505
  /**
26501
26506
  * Export Textured Glb
26502
26507
  * @description If True, exports GLB with baked texture and UVs instead of vertex colors.
@@ -5,26 +5,30 @@ declare global {
5
5
  export type Endpoint = keyof fal.endpoints.Endpoints;
6
6
  export type EndpointInput<T extends fal.Endpoint> =
7
7
  T extends keyof fal.endpoints.Endpoints ? fal.endpoints.Endpoints[T]['input'] : never;
8
- export type EndpointOutput<T extends fal.Endpoint> =
8
+ export type EndpointOutput<T extends keyof fal.endpoints.Endpoints> =
9
9
  T extends keyof fal.endpoints.Endpoints ? fal.endpoints.Endpoints[T]['output'] : never;
10
10
 
11
11
  /** Show all possible output properties for a set of endpoints. */
12
12
  export type EndpointsOutputsCombined<
13
13
  E extends fal.Endpoint,
14
- T extends readonly fal.Endpoint[] = readonly [E, ...(readonly [E])],
15
- O extends Record<string, never> = Record<string, never>,
14
+ T extends readonly fal.Endpoint[] = readonly [E, ...(readonly E[])],
15
+ O extends Partial<{ [key: string]: any }> = Partial<{ [key: string]: never }>,
16
16
  > =
17
- T extends readonly [infer M, ...infer R extends readonly fal.Endpoint[]] ?
18
- R extends never ?
19
- M extends fal.Endpoint ?
20
- Partial<fal.EndpointOutput<M>> & O
21
- : O
22
- : EndpointsOutputsCombined<
23
- E,
24
- R,
25
- Partial<fal.EndpointOutput<M extends fal.Endpoint ? M : never>> & O
26
- >
27
- : O;
17
+ T extends readonly [infer M, ...infer R] ?
18
+ O &
19
+ (M extends keyof fal.endpoints.Endpoints ? Partial<fal.EndpointOutput<M>>
20
+ : never) &
21
+ (R extends readonly [] ?
22
+ EndpointsOutputsCombined<
23
+ E,
24
+ readonly Exclude<R[number], M>[],
25
+ O &
26
+ (M extends keyof fal.endpoints.Endpoints ?
27
+ Partial<fal.EndpointOutput<M>>
28
+ : never)
29
+ >
30
+ : O)
31
+ : never;
28
32
  }
29
33
  }
30
34