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 +1 -1
- package/types/fal/endpoints/schema.d.ts +5 -0
- package/types/fal/index.d.ts +18 -14
package/package.json
CHANGED
|
@@ -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.
|
package/types/fal/index.d.ts
CHANGED
|
@@ -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.
|
|
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 [
|
|
15
|
-
O extends
|
|
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
|
|
18
|
-
|
|
19
|
-
M extends fal.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|