@layer_ai/sdk 1.0.60 → 1.0.63
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/dist/generated/types.d.ts +51 -8
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -441,6 +441,14 @@ export interface EstimateInferencePriceRequest {
|
|
|
441
441
|
segment_by?: SegmentBy | null;
|
|
442
442
|
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
443
443
|
segment_part_names?: Array<string> | null;
|
|
444
|
+
/** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
|
|
445
|
+
segment_target?: SegmentTarget | null;
|
|
446
|
+
/** How many parts a CHARACTER split makes. Support varies by model. */
|
|
447
|
+
segment_parts?: number | null;
|
|
448
|
+
/** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
|
|
449
|
+
segment_level?: SegmentLevel | null;
|
|
450
|
+
/** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
|
|
451
|
+
segment_strength?: number | null;
|
|
444
452
|
/** Generate quad mesh. */
|
|
445
453
|
quad_mesh?: boolean | null;
|
|
446
454
|
/** Generate PBR materials. */
|
|
@@ -586,6 +594,14 @@ export interface EstimateInferencePriceV2Request {
|
|
|
586
594
|
segment_by?: SegmentBy | null;
|
|
587
595
|
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
588
596
|
segment_part_names?: Array<string> | null;
|
|
597
|
+
/** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
|
|
598
|
+
segment_target?: SegmentTarget | null;
|
|
599
|
+
/** How many parts a CHARACTER split makes. Support varies by model. */
|
|
600
|
+
segment_parts?: number | null;
|
|
601
|
+
/** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
|
|
602
|
+
segment_level?: SegmentLevel | null;
|
|
603
|
+
/** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
|
|
604
|
+
segment_strength?: number | null;
|
|
589
605
|
/** Generate quad mesh. */
|
|
590
606
|
quad_mesh?: boolean | null;
|
|
591
607
|
/** Generate PBR materials. */
|
|
@@ -688,11 +704,11 @@ export interface EstimateInferencePriceV2Request {
|
|
|
688
704
|
tile_grid?: TileGrid | null;
|
|
689
705
|
/** Fit the image onto its delivery canvas after everything else the run does: `trim` its transparent margin, keep the drawing's own size (`canvas: CONTENT`) or place it on a `FIXED` `width` x `height` canvas, scaled as `scale` says and aligned on `anchor` (`BASE` stands a game tile's base on the bottom centre), with `padding` px of transparent margin. Image outputs only. */
|
|
690
706
|
output_fit?: OutputFit | null;
|
|
691
|
-
/** Deliver the image as a 9-slice UI element (a button, frame or panel that
|
|
707
|
+
/** Deliver the image as a 9-slice UI element (a button, frame or panel that resizes): after everything else the run does, the plain band through its middle is found on each axis, the edges and centre are made to tile (painted texture kept, light evened out), and the insets are recorded as the file's `nineSlice` metadata. An image with no such band is delivered as drawn, without insets. Image outputs only. */
|
|
692
708
|
nine_slice?: boolean | null;
|
|
693
709
|
/** Split the init image into parallax layers by depth: `layers` (2 to 6, default 5) cut at `cuts`, ascending nearness values in (0, 1), one fewer than the layers (unset cuts at the gaps in the scene's own depth); `loop` makes every layer repeat left to right. The model fills in what each layer hides, so it must be an image eraser or inpainting model (an `ERASE_OBJECT` or `INPAINTING` use case); an inpainting model given no prompt is told to continue the scenery. Delivered as a layered PSD, farthest layer at the bottom, with each layer's scroll speed in the file's `parallax` metadata. Billed as one run of the model per layer but the nearest. */
|
|
694
710
|
parallax?: ParallaxSplit | null;
|
|
695
|
-
/** Colors the output should use: `colors`, each a `name` and a `#RRGGBB` `hex` (and an optional `role`), and optionally the `reference_set_id` they were picked from. The provider steers toward the hex values
|
|
711
|
+
/** Colors the output should use: `colors`, each a `name` and a `#RRGGBB` `hex` (and an optional `role`), and optionally the `reference_set_id` they were picked from. The provider steers toward the hex values on the models whose capabilities report `max_palette_colors`, which is also the most colors a run takes there. Other models whose prompt describes how the output looks get the colors added to a non-empty prompt; models whose prompt is spoken, set into the output as text, a query, or a description of sound or motion, and text and audio models, ignore it. */
|
|
696
712
|
color_palette?: InferenceColorPalette | null;
|
|
697
713
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
698
714
|
expression?: string | null;
|
|
@@ -841,6 +857,14 @@ export interface ExecuteInferenceRequest {
|
|
|
841
857
|
segment_by?: SegmentBy | null;
|
|
842
858
|
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
843
859
|
segment_part_names?: Array<string> | null;
|
|
860
|
+
/** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
|
|
861
|
+
segment_target?: SegmentTarget | null;
|
|
862
|
+
/** How many parts a CHARACTER split makes. Support varies by model. */
|
|
863
|
+
segment_parts?: number | null;
|
|
864
|
+
/** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
|
|
865
|
+
segment_level?: SegmentLevel | null;
|
|
866
|
+
/** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
|
|
867
|
+
segment_strength?: number | null;
|
|
844
868
|
/** Generate quad mesh. */
|
|
845
869
|
quad_mesh?: boolean | null;
|
|
846
870
|
/** Generate PBR materials. */
|
|
@@ -996,6 +1020,14 @@ export interface ExecuteInferenceV2Request {
|
|
|
996
1020
|
segment_by?: SegmentBy | null;
|
|
997
1021
|
/** Parts to split along when segment_by is PARTS, at most 10. */
|
|
998
1022
|
segment_part_names?: Array<string> | null;
|
|
1023
|
+
/** What a mesh split treats the mesh as: CHARACTER, split by a body-part template, or GENERAL, split by segment_level. Support varies by model. */
|
|
1024
|
+
segment_target?: SegmentTarget | null;
|
|
1025
|
+
/** How many parts a CHARACTER split makes. Support varies by model. */
|
|
1026
|
+
segment_parts?: number | null;
|
|
1027
|
+
/** How finely a GENERAL split cuts the mesh: LOW, MEDIUM or HIGH. Support varies by model. */
|
|
1028
|
+
segment_level?: SegmentLevel | null;
|
|
1029
|
+
/** How aggressively a mesh split cuts: higher makes more parts. Support varies by model. */
|
|
1030
|
+
segment_strength?: number | null;
|
|
999
1031
|
/** Generate quad mesh. */
|
|
1000
1032
|
quad_mesh?: boolean | null;
|
|
1001
1033
|
/** Generate PBR materials. */
|
|
@@ -1098,11 +1130,11 @@ export interface ExecuteInferenceV2Request {
|
|
|
1098
1130
|
tile_grid?: TileGrid | null;
|
|
1099
1131
|
/** Fit the image onto its delivery canvas after everything else the run does: `trim` its transparent margin, keep the drawing's own size (`canvas: CONTENT`) or place it on a `FIXED` `width` x `height` canvas, scaled as `scale` says and aligned on `anchor` (`BASE` stands a game tile's base on the bottom centre), with `padding` px of transparent margin. Image outputs only. */
|
|
1100
1132
|
output_fit?: OutputFit | null;
|
|
1101
|
-
/** Deliver the image as a 9-slice UI element (a button, frame or panel that
|
|
1133
|
+
/** Deliver the image as a 9-slice UI element (a button, frame or panel that resizes): after everything else the run does, the plain band through its middle is found on each axis, the edges and centre are made to tile (painted texture kept, light evened out), and the insets are recorded as the file's `nineSlice` metadata. An image with no such band is delivered as drawn, without insets. Image outputs only. */
|
|
1102
1134
|
nine_slice?: boolean | null;
|
|
1103
1135
|
/** Split the init image into parallax layers by depth: `layers` (2 to 6, default 5) cut at `cuts`, ascending nearness values in (0, 1), one fewer than the layers (unset cuts at the gaps in the scene's own depth); `loop` makes every layer repeat left to right. The model fills in what each layer hides, so it must be an image eraser or inpainting model (an `ERASE_OBJECT` or `INPAINTING` use case); an inpainting model given no prompt is told to continue the scenery. Delivered as a layered PSD, farthest layer at the bottom, with each layer's scroll speed in the file's `parallax` metadata. Billed as one run of the model per layer but the nearest. */
|
|
1104
1136
|
parallax?: ParallaxSplit | null;
|
|
1105
|
-
/** Colors the output should use: `colors`, each a `name` and a `#RRGGBB` `hex` (and an optional `role`), and optionally the `reference_set_id` they were picked from. The provider steers toward the hex values
|
|
1137
|
+
/** Colors the output should use: `colors`, each a `name` and a `#RRGGBB` `hex` (and an optional `role`), and optionally the `reference_set_id` they were picked from. The provider steers toward the hex values on the models whose capabilities report `max_palette_colors`, which is also the most colors a run takes there. Other models whose prompt describes how the output looks get the colors added to a non-empty prompt; models whose prompt is spoken, set into the output as text, a query, or a description of sound or motion, and text and audio models, ignore it. */
|
|
1106
1138
|
color_palette?: InferenceColorPalette | null;
|
|
1107
1139
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
1108
1140
|
expression?: string | null;
|
|
@@ -1222,7 +1254,7 @@ export interface ForgeReferenceSetContribution {
|
|
|
1222
1254
|
voice_applied?: boolean;
|
|
1223
1255
|
/** Number of assets successfully mapped to guidance inputs. */
|
|
1224
1256
|
mapped_asset_count?: number;
|
|
1225
|
-
/** True when the set's color palette
|
|
1257
|
+
/** True when the set's palette went into the run's color palette (up to the model's color limit), or a palette passed with the request stood in for it. */
|
|
1226
1258
|
palette_applied?: boolean;
|
|
1227
1259
|
/** True when the set fell back to prompt-only representation. */
|
|
1228
1260
|
prompt_fallback_applied?: boolean;
|
|
@@ -1497,7 +1529,7 @@ export interface InferenceReferenceSetInput {
|
|
|
1497
1529
|
weight?: number;
|
|
1498
1530
|
}
|
|
1499
1531
|
export type InferenceStatus = "in_progress" | "complete" | "failed" | "cancelled" | "deleted";
|
|
1500
|
-
export type InferenceUseCase = "text_to_image" | "image_editing" | "multi_angle" | "inpainting" | "reframing" | "split_into_layers" | "text_to_video" | "image_to_video" | "video_editing" | "video_extend" | "insert_video" | "video_subtitle" | "video_lipsync" | "motion_transfer" | "video_object_swap" | "video_character_swap" | "relight_video" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "text_to_world" | "image_to_world" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "denoise_audio" | "voice_change" | "audio_separation" | "audio_isolation" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "restyle" | "pixelate" | "colorize" | "change_expression" | "erase_object" | "edit_text" | "dub_video" | "extend_audio" | "generate_pbr_materials" | "create_skybox" | "complete_draft";
|
|
1532
|
+
export type InferenceUseCase = "text_to_image" | "image_editing" | "multi_angle" | "inpainting" | "reframing" | "split_into_layers" | "text_to_video" | "image_to_video" | "video_editing" | "video_extend" | "insert_video" | "video_subtitle" | "video_lipsync" | "motion_transfer" | "video_object_swap" | "video_character_swap" | "relight_video" | "image_to_video_lipsync" | "text_to_3d" | "image_to_3d" | "text_to_world" | "image_to_world" | "remesh" | "retexture" | "uv_unwrap" | "animate" | "rig" | "segment" | "image_segment" | "image_mask" | "text_to_speech" | "sound_effects" | "music" | "upscaling" | "video_interpolation" | "denoise_image" | "denoise_video" | "denoise_audio" | "voice_change" | "audio_separation" | "audio_isolation" | "deblur_video" | "restore_image" | "sdr_to_hdr_video" | "background_removal" | "vectorization" | "virtual_try_on" | "restyle" | "pixelate" | "colorize" | "change_expression" | "erase_object" | "edit_text" | "dub_video" | "extend_audio" | "generate_pbr_materials" | "create_skybox" | "complete_draft";
|
|
1501
1533
|
/** Delivered when an inference run reaches a terminal state. */
|
|
1502
1534
|
export interface InferenceWebhookEvent {
|
|
1503
1535
|
/** Unique event id, repeated in the webhook-id header. */
|
|
@@ -1695,8 +1727,8 @@ export interface MusicSection {
|
|
|
1695
1727
|
/**
|
|
1696
1728
|
* The insets a 9-slice draws a UI element by, in the image's own pixels in from each edge.
|
|
1697
1729
|
*
|
|
1698
|
-
* The corners are drawn at their own size, the edges
|
|
1699
|
-
*
|
|
1730
|
+
* The corners are drawn at their own size, the edges repeat along their length, and the centre
|
|
1731
|
+
* repeats both ways.
|
|
1700
1732
|
*/
|
|
1701
1733
|
export interface NineSliceMetadataView {
|
|
1702
1734
|
/** Pixels in from the left edge. */
|
|
@@ -2027,6 +2059,17 @@ export interface ScoringRunWebhookEvent {
|
|
|
2027
2059
|
* Offered where the model's ``segment_by`` capability lists it.
|
|
2028
2060
|
*/
|
|
2029
2061
|
export type SegmentBy = "AUTO" | "PARTS";
|
|
2062
|
+
/**
|
|
2063
|
+
* Split granularity for a general-target segmentation (more parts as it
|
|
2064
|
+
* rises). Only meaningful when the target is ``GENERAL``.
|
|
2065
|
+
*/
|
|
2066
|
+
export type SegmentLevel = "LOW" | "MEDIUM" | "HIGH";
|
|
2067
|
+
/**
|
|
2068
|
+
* What a mesh-segmentation model treats the input as, selecting its split
|
|
2069
|
+
* strategy. ``CHARACTER`` splits a humanoid mesh with a body-part template;
|
|
2070
|
+
* ``GENERAL`` splits any mesh by granularity level (e.g. Hi3D Parts).
|
|
2071
|
+
*/
|
|
2072
|
+
export type SegmentTarget = "CHARACTER" | "GENERAL";
|
|
2030
2073
|
/** One `object` event on a session's stream. */
|
|
2031
2074
|
export interface SessionEvent {
|
|
2032
2075
|
/** What happened to the object: created, updated, or deleted. */
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.63";
|