@layer_ai/sdk 1.0.60 → 1.0.62
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 +7 -7
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -688,11 +688,11 @@ export interface EstimateInferencePriceV2Request {
|
|
|
688
688
|
tile_grid?: TileGrid | null;
|
|
689
689
|
/** 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
690
|
output_fit?: OutputFit | null;
|
|
691
|
-
/** Deliver the image as a 9-slice UI element (a button, frame or panel that
|
|
691
|
+
/** 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
692
|
nine_slice?: boolean | null;
|
|
693
693
|
/** 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
694
|
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
|
|
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 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
696
|
color_palette?: InferenceColorPalette | null;
|
|
697
697
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
698
698
|
expression?: string | null;
|
|
@@ -1098,11 +1098,11 @@ export interface ExecuteInferenceV2Request {
|
|
|
1098
1098
|
tile_grid?: TileGrid | null;
|
|
1099
1099
|
/** 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
1100
|
output_fit?: OutputFit | null;
|
|
1101
|
-
/** Deliver the image as a 9-slice UI element (a button, frame or panel that
|
|
1101
|
+
/** 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
1102
|
nine_slice?: boolean | null;
|
|
1103
1103
|
/** 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
1104
|
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
|
|
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 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
1106
|
color_palette?: InferenceColorPalette | null;
|
|
1107
1107
|
/** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
|
|
1108
1108
|
expression?: string | null;
|
|
@@ -1222,7 +1222,7 @@ export interface ForgeReferenceSetContribution {
|
|
|
1222
1222
|
voice_applied?: boolean;
|
|
1223
1223
|
/** Number of assets successfully mapped to guidance inputs. */
|
|
1224
1224
|
mapped_asset_count?: number;
|
|
1225
|
-
/** True when the set's color palette
|
|
1225
|
+
/** 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
1226
|
palette_applied?: boolean;
|
|
1227
1227
|
/** True when the set fell back to prompt-only representation. */
|
|
1228
1228
|
prompt_fallback_applied?: boolean;
|
|
@@ -1695,8 +1695,8 @@ export interface MusicSection {
|
|
|
1695
1695
|
/**
|
|
1696
1696
|
* The insets a 9-slice draws a UI element by, in the image's own pixels in from each edge.
|
|
1697
1697
|
*
|
|
1698
|
-
* The corners are drawn at their own size, the edges
|
|
1699
|
-
*
|
|
1698
|
+
* The corners are drawn at their own size, the edges repeat along their length, and the centre
|
|
1699
|
+
* repeats both ways.
|
|
1700
1700
|
*/
|
|
1701
1701
|
export interface NineSliceMetadataView {
|
|
1702
1702
|
/** Pixels in from the left edge. */
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.62";
|