@layer_ai/sdk 1.0.46 → 1.0.48

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.
@@ -628,6 +628,10 @@ export interface EstimateInferencePriceV2Request {
628
628
  tile_grid?: TileGrid | null;
629
629
  /** 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. */
630
630
  output_fit?: OutputFit | null;
631
+ /** Deliver the image as a 9-slice UI element (a button, frame or panel that stretches): after everything else the run does, the plain band through its middle is found on each axis, the stretched regions are cleaned so nothing smears, 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. */
632
+ nine_slice?: boolean | null;
633
+ /** 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. Honored by the models whose capabilities report `max_palette_colors`, which is also the most colors a run takes; others ignore it. */
634
+ color_palette?: InferenceColorPalette | null;
631
635
  /** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
632
636
  expression?: string | null;
633
637
  /** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
@@ -1016,6 +1020,10 @@ export interface ExecuteInferenceV2Request {
1016
1020
  tile_grid?: TileGrid | null;
1017
1021
  /** 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. */
1018
1022
  output_fit?: OutputFit | null;
1023
+ /** Deliver the image as a 9-slice UI element (a button, frame or panel that stretches): after everything else the run does, the plain band through its middle is found on each axis, the stretched regions are cleaned so nothing smears, 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. */
1024
+ nine_slice?: boolean | null;
1025
+ /** 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. Honored by the models whose capabilities report `max_palette_colors`, which is also the most colors a run takes; others ignore it. */
1026
+ color_palette?: InferenceColorPalette | null;
1019
1027
  /** The expression a face edit gives the face, one of the names the model's capabilities list under `expressions`. */
1020
1028
  expression?: string | null;
1021
1029
  /** The language a dub speaks, as one of the ISO 639-1 codes the model's capabilities list under `dub_languages`. */
@@ -1343,6 +1351,16 @@ export interface HTTPValidationError {
1343
1351
  }
1344
1352
  /** The geometry an output image is drawn in, when it is not an ordinary flat picture. */
1345
1353
  export type ImageProjection = "EQUIRECTANGULAR";
1354
+ /**
1355
+ * The colors a generation is asked to use, and the reference set they were picked from.
1356
+ *
1357
+ * The run uses the colors it carries: a later edit to the set changes no run already made.
1358
+ * ``reference_set_id`` only names where they came from, so a form can show and restore it.
1359
+ */
1360
+ export interface InferenceColorPalette {
1361
+ colors?: Array<PaletteColor>;
1362
+ reference_set_id?: string | null;
1363
+ }
1346
1364
  export interface InferenceReferenceSetInput {
1347
1365
  /** Reference set ID from GET /v2/workspaces/{workspace_id}/reference-sets. */
1348
1366
  set_id: string;
@@ -1613,6 +1631,12 @@ export interface PaginationOutput {
1613
1631
  /** Total number of results matching the query */
1614
1632
  total_count?: number | null;
1615
1633
  }
1634
+ /** One named color of a palette. */
1635
+ export interface PaletteColor {
1636
+ name: string;
1637
+ hex: string;
1638
+ role?: string | null;
1639
+ }
1616
1640
  /**
1617
1641
  * Canonical rest pose a character-mesh model is asked to generate in.
1618
1642
  * ``A_POSE`` places the arms angled down at roughly 45°; ``T_POSE`` holds them
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.0.46";
1
+ export const VERSION = "1.0.48";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layer_ai/sdk",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Official JavaScript and TypeScript SDK for Layer \u2014 AI asset creation for game studios.",
5
5
  "keywords": [
6
6
  "ai",