pixelkiln 0.103.0 → 0.105.0

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/index.d.ts CHANGED
@@ -164,6 +164,10 @@ interface SubmitContext {
164
164
  parentOutputs?: {
165
165
  path: string;
166
166
  role?: string;
167
+ /** Which asset the file belongs to, when the spec reads several (a layer). */
168
+ assetId?: string;
169
+ /** True for a base or state's rotation, false for a loop's frame. */
170
+ still?: boolean;
167
171
  }[];
168
172
  /**
169
173
  * For a terrain set that shares a terrain with another set (`connect`),
@@ -1400,6 +1404,346 @@ declare const CharacterOutfitSchema: z.ZodObject<{
1400
1404
  additionalInstructions?: string | undefined;
1401
1405
  }>;
1402
1406
  type CharacterOutfit = z.infer<typeof CharacterOutfitSchema>;
1407
+ /** A layer's nudge once resolved: the pair for every frame, and any per-asset pairs over it. */
1408
+ interface LayerOffset {
1409
+ x: number;
1410
+ y: number;
1411
+ per?: Record<string, {
1412
+ x: number;
1413
+ y: number;
1414
+ }>;
1415
+ }
1416
+ /** The pair that applies to one source asset's frames. */
1417
+ declare function layerOffsetFor(offset: LayerOffset | undefined, assetId: string): {
1418
+ x: number;
1419
+ y: number;
1420
+ };
1421
+ declare const ATTACH_JOINTS: readonly ["right-hand", "left-hand"];
1422
+ type AttachJoint = (typeof ATTACH_JOINTS)[number];
1423
+ /**
1424
+ * A held item: a rigid sprite (a sword, a shield, a lantern) pinned to a hand
1425
+ * in every frame of the layer's `of` assets. The item is drawn once and
1426
+ * placed, never redrawn, so it is the same pixels in every frame and cannot
1427
+ * change hands. See `src/attach.ts` and docs/PAPERDOLL.md.
1428
+ */
1429
+ declare const CharacterAttachSchema: z.ZodObject<{
1430
+ /**
1431
+ * Manifest-relative PNG of the item. With `{direction}` in the path, one
1432
+ * file per direction the frames face (an 8-direction object's rotations);
1433
+ * without it, the same image in every direction.
1434
+ */
1435
+ item: z.ZodString;
1436
+ /**
1437
+ * Manifest-relative anchors file: every frame's skeleton, which is where
1438
+ * its hands are. `pixelkiln anchors <asset>` writes it; one file serves
1439
+ * every item the character holds.
1440
+ */
1441
+ anchors: z.ZodString;
1442
+ /** Which hand holds it. Default `right-hand`. */
1443
+ joint: z.ZodOptional<z.ZodEnum<["right-hand", "left-hand"]>>;
1444
+ /**
1445
+ * The point of the item the hand holds: `"center"` (a shield), or item
1446
+ * pixels as drawn, one `[x, y]` for every direction or one per direction.
1447
+ * Default: the middle of the item's lowest fifth, which is the handle of
1448
+ * anything drawn handle-down.
1449
+ */
1450
+ grip: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
1451
+ /**
1452
+ * Resize the item by this factor before placing it, nearest neighbour.
1453
+ * An object generator fills its canvas, so an item often comes back
1454
+ * larger than the hand it goes in. Default 1.
1455
+ */
1456
+ scale: z.ZodOptional<z.ZodNumber>;
1457
+ /**
1458
+ * Degrees to lean an upright item the way the figure faces, turned
1459
+ * locally. Shows from the side, not from the front or back. Default 0:
1460
+ * the item is used as drawn, which is right for one drawn already leaning.
1461
+ */
1462
+ tilt: z.ZodOptional<z.ZodNumber>;
1463
+ /** Degrees to tip an upright item outward from the body, seen from the front and back. Default 0. */
1464
+ lean: z.ZodOptional<z.ZodNumber>;
1465
+ /**
1466
+ * Whether the body covers the item. `auto` (default) follows each frame's
1467
+ * skeleton: the item goes behind the figure when its hand is.
1468
+ */
1469
+ depth: z.ZodOptional<z.ZodEnum<["auto", "front", "behind"]>>;
1470
+ /**
1471
+ * Redraw the hand around the item so it is held, not resting on the
1472
+ * hand: one inpaint over a small disc at each hand, the rest of the item
1473
+ * untouched. `true`, or `{ "radius": 9 }` for the disc in pixels. This
1474
+ * makes the layer a paid one (one inpaint, priced by the sheet); the
1475
+ * asset's `prompt`, when it has one, tells the provider what the item is.
1476
+ */
1477
+ grasp: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
1478
+ radius: z.ZodOptional<z.ZodNumber>;
1479
+ }, "strict", z.ZodTypeAny, {
1480
+ radius?: number | undefined;
1481
+ }, {
1482
+ radius?: number | undefined;
1483
+ }>]>>;
1484
+ }, "strict", z.ZodTypeAny, {
1485
+ item: string;
1486
+ anchors: string;
1487
+ depth?: "auto" | "front" | "behind" | undefined;
1488
+ joint?: "right-hand" | "left-hand" | undefined;
1489
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1490
+ scale?: number | undefined;
1491
+ tilt?: number | undefined;
1492
+ lean?: number | undefined;
1493
+ grasp?: boolean | {
1494
+ radius?: number | undefined;
1495
+ } | undefined;
1496
+ }, {
1497
+ item: string;
1498
+ anchors: string;
1499
+ depth?: "auto" | "front" | "behind" | undefined;
1500
+ joint?: "right-hand" | "left-hand" | undefined;
1501
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1502
+ scale?: number | undefined;
1503
+ tilt?: number | undefined;
1504
+ lean?: number | undefined;
1505
+ grasp?: boolean | {
1506
+ radius?: number | undefined;
1507
+ } | undefined;
1508
+ }>;
1509
+ type CharacterAttach = z.infer<typeof CharacterAttachSchema>;
1510
+ /**
1511
+ * A paperdoll layer: the asset's prompt, drawn as clothing over existing
1512
+ * frames and returned as transparent PNGs that sit on top of them. Every
1513
+ * frame of every `of` asset is repainted in one inpaint, on one sheet, which
1514
+ * is what keeps the outfit the same from frame to frame. See
1515
+ * `src/paperdoll.ts` for the steps and docs/CHARACTERS.md for the workflow.
1516
+ */
1517
+ declare const CharacterLayerSchema: z.ZodEffects<z.ZodObject<{
1518
+ /** The assets to dress, in the same style: a base, its states, its loops. Their frames share one sheet, in this order. */
1519
+ of: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1520
+ /**
1521
+ * Manifest-relative black-and-white PNG the size of the sheet, replacing
1522
+ * the computed mask (white below each figure's neck). The escape hatch for
1523
+ * hair, hats and raised arms, where the neck is not the narrowest row.
1524
+ */
1525
+ mask: z.ZodOptional<z.ZodString>;
1526
+ /** Manifest-relative PNG the size of the sheet, replacing the computed keyed sheet. */
1527
+ keyed: z.ZodOptional<z.ZodString>;
1528
+ /** The colours that are skin. Omit on a bare base, where everything that is not outline is skin. */
1529
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1530
+ /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
1531
+ key: z.ZodOptional<z.ZodString>;
1532
+ /**
1533
+ * Remove animation ghosts from the loops before dressing them, judged
1534
+ * against the stills among `of` (bases and states). Default true; it has
1535
+ * nothing to judge against, and is skipped, when `of` holds no still.
1536
+ */
1537
+ clean: z.ZodOptional<z.ZodBoolean>;
1538
+ /** Sheet columns. Chosen to fit the provider's limit in the smallest area when omitted. */
1539
+ columns: z.ZodOptional<z.ZodNumber>;
1540
+ /**
1541
+ * Which part of each figure may be repainted. `body` (default): the
1542
+ * figure's own pixels below the neck, for clothing. `head`: everything
1543
+ * from the top of the cell to the neck, for hats, hair and helmets.
1544
+ * `around`: everything below the neck, empty space included, for held
1545
+ * items, capes and packs.
1546
+ */
1547
+ region: z.ZodOptional<z.ZodEnum<["body", "head", "around"]>>;
1548
+ /**
1549
+ * Empty pixels added around every figure on the sheet, for a layer that
1550
+ * reaches past it. Each layer frame comes back on its source frame's
1551
+ * canvas grown by this much on every side. Default 0 for `body`, 8 otherwise.
1552
+ */
1553
+ padding: z.ZodOptional<z.ZodNumber>;
1554
+ /**
1555
+ * Nudge the layer by `[x, y]` pixels, x to the right and y down: a hat a
1556
+ * pixel or two higher, a mask lower on the face. One pair moves every
1557
+ * frame; an object moves the frames of each `of` asset it names by that
1558
+ * asset's own pair, with `"*"` for the rest, since a provider can seat a
1559
+ * hat a little differently on a walk than on the stills. On a drawn layer
1560
+ * it is applied at download and changing it costs nothing; on a held item
1561
+ * it moves the item on the hand.
1562
+ */
1563
+ offset: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
1564
+ /**
1565
+ * Make this layer a held item instead of an inpaint: a sprite you already
1566
+ * have, pinned to a hand in every frame. Free and local. See
1567
+ * CharacterAttachSchema.
1568
+ */
1569
+ attach: z.ZodOptional<z.ZodObject<{
1570
+ /**
1571
+ * Manifest-relative PNG of the item. With `{direction}` in the path, one
1572
+ * file per direction the frames face (an 8-direction object's rotations);
1573
+ * without it, the same image in every direction.
1574
+ */
1575
+ item: z.ZodString;
1576
+ /**
1577
+ * Manifest-relative anchors file: every frame's skeleton, which is where
1578
+ * its hands are. `pixelkiln anchors <asset>` writes it; one file serves
1579
+ * every item the character holds.
1580
+ */
1581
+ anchors: z.ZodString;
1582
+ /** Which hand holds it. Default `right-hand`. */
1583
+ joint: z.ZodOptional<z.ZodEnum<["right-hand", "left-hand"]>>;
1584
+ /**
1585
+ * The point of the item the hand holds: `"center"` (a shield), or item
1586
+ * pixels as drawn, one `[x, y]` for every direction or one per direction.
1587
+ * Default: the middle of the item's lowest fifth, which is the handle of
1588
+ * anything drawn handle-down.
1589
+ */
1590
+ grip: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
1591
+ /**
1592
+ * Resize the item by this factor before placing it, nearest neighbour.
1593
+ * An object generator fills its canvas, so an item often comes back
1594
+ * larger than the hand it goes in. Default 1.
1595
+ */
1596
+ scale: z.ZodOptional<z.ZodNumber>;
1597
+ /**
1598
+ * Degrees to lean an upright item the way the figure faces, turned
1599
+ * locally. Shows from the side, not from the front or back. Default 0:
1600
+ * the item is used as drawn, which is right for one drawn already leaning.
1601
+ */
1602
+ tilt: z.ZodOptional<z.ZodNumber>;
1603
+ /** Degrees to tip an upright item outward from the body, seen from the front and back. Default 0. */
1604
+ lean: z.ZodOptional<z.ZodNumber>;
1605
+ /**
1606
+ * Whether the body covers the item. `auto` (default) follows each frame's
1607
+ * skeleton: the item goes behind the figure when its hand is.
1608
+ */
1609
+ depth: z.ZodOptional<z.ZodEnum<["auto", "front", "behind"]>>;
1610
+ /**
1611
+ * Redraw the hand around the item so it is held, not resting on the
1612
+ * hand: one inpaint over a small disc at each hand, the rest of the item
1613
+ * untouched. `true`, or `{ "radius": 9 }` for the disc in pixels. This
1614
+ * makes the layer a paid one (one inpaint, priced by the sheet); the
1615
+ * asset's `prompt`, when it has one, tells the provider what the item is.
1616
+ */
1617
+ grasp: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
1618
+ radius: z.ZodOptional<z.ZodNumber>;
1619
+ }, "strict", z.ZodTypeAny, {
1620
+ radius?: number | undefined;
1621
+ }, {
1622
+ radius?: number | undefined;
1623
+ }>]>>;
1624
+ }, "strict", z.ZodTypeAny, {
1625
+ item: string;
1626
+ anchors: string;
1627
+ depth?: "auto" | "front" | "behind" | undefined;
1628
+ joint?: "right-hand" | "left-hand" | undefined;
1629
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1630
+ scale?: number | undefined;
1631
+ tilt?: number | undefined;
1632
+ lean?: number | undefined;
1633
+ grasp?: boolean | {
1634
+ radius?: number | undefined;
1635
+ } | undefined;
1636
+ }, {
1637
+ item: string;
1638
+ anchors: string;
1639
+ depth?: "auto" | "front" | "behind" | undefined;
1640
+ joint?: "right-hand" | "left-hand" | undefined;
1641
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1642
+ scale?: number | undefined;
1643
+ tilt?: number | undefined;
1644
+ lean?: number | undefined;
1645
+ grasp?: boolean | {
1646
+ radius?: number | undefined;
1647
+ } | undefined;
1648
+ }>>;
1649
+ }, "strict", z.ZodTypeAny, {
1650
+ of: string | string[];
1651
+ key?: string | undefined;
1652
+ mask?: string | undefined;
1653
+ keyed?: string | undefined;
1654
+ skin?: string[] | undefined;
1655
+ clean?: boolean | undefined;
1656
+ columns?: number | undefined;
1657
+ region?: "body" | "head" | "around" | undefined;
1658
+ padding?: number | undefined;
1659
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
1660
+ attach?: {
1661
+ item: string;
1662
+ anchors: string;
1663
+ depth?: "auto" | "front" | "behind" | undefined;
1664
+ joint?: "right-hand" | "left-hand" | undefined;
1665
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1666
+ scale?: number | undefined;
1667
+ tilt?: number | undefined;
1668
+ lean?: number | undefined;
1669
+ grasp?: boolean | {
1670
+ radius?: number | undefined;
1671
+ } | undefined;
1672
+ } | undefined;
1673
+ }, {
1674
+ of: string | string[];
1675
+ key?: string | undefined;
1676
+ mask?: string | undefined;
1677
+ keyed?: string | undefined;
1678
+ skin?: string[] | undefined;
1679
+ clean?: boolean | undefined;
1680
+ columns?: number | undefined;
1681
+ region?: "body" | "head" | "around" | undefined;
1682
+ padding?: number | undefined;
1683
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
1684
+ attach?: {
1685
+ item: string;
1686
+ anchors: string;
1687
+ depth?: "auto" | "front" | "behind" | undefined;
1688
+ joint?: "right-hand" | "left-hand" | undefined;
1689
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1690
+ scale?: number | undefined;
1691
+ tilt?: number | undefined;
1692
+ lean?: number | undefined;
1693
+ grasp?: boolean | {
1694
+ radius?: number | undefined;
1695
+ } | undefined;
1696
+ } | undefined;
1697
+ }>, {
1698
+ of: string | string[];
1699
+ key?: string | undefined;
1700
+ mask?: string | undefined;
1701
+ keyed?: string | undefined;
1702
+ skin?: string[] | undefined;
1703
+ clean?: boolean | undefined;
1704
+ columns?: number | undefined;
1705
+ region?: "body" | "head" | "around" | undefined;
1706
+ padding?: number | undefined;
1707
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
1708
+ attach?: {
1709
+ item: string;
1710
+ anchors: string;
1711
+ depth?: "auto" | "front" | "behind" | undefined;
1712
+ joint?: "right-hand" | "left-hand" | undefined;
1713
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1714
+ scale?: number | undefined;
1715
+ tilt?: number | undefined;
1716
+ lean?: number | undefined;
1717
+ grasp?: boolean | {
1718
+ radius?: number | undefined;
1719
+ } | undefined;
1720
+ } | undefined;
1721
+ }, {
1722
+ of: string | string[];
1723
+ key?: string | undefined;
1724
+ mask?: string | undefined;
1725
+ keyed?: string | undefined;
1726
+ skin?: string[] | undefined;
1727
+ clean?: boolean | undefined;
1728
+ columns?: number | undefined;
1729
+ region?: "body" | "head" | "around" | undefined;
1730
+ padding?: number | undefined;
1731
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
1732
+ attach?: {
1733
+ item: string;
1734
+ anchors: string;
1735
+ depth?: "auto" | "front" | "behind" | undefined;
1736
+ joint?: "right-hand" | "left-hand" | undefined;
1737
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
1738
+ scale?: number | undefined;
1739
+ tilt?: number | undefined;
1740
+ lean?: number | undefined;
1741
+ grasp?: boolean | {
1742
+ radius?: number | undefined;
1743
+ } | undefined;
1744
+ } | undefined;
1745
+ }>;
1746
+ type CharacterLayer = z.infer<typeof CharacterLayerSchema>;
1403
1747
  /** A loop of one character in one direction. One asset per direction. */
1404
1748
  declare const CharacterAnimationSchema$1: z.ZodEffects<z.ZodObject<{
1405
1749
  /** The character to animate: a base or a state in the same style. */
@@ -1434,6 +1778,14 @@ declare const CharacterAnimationSchema$1: z.ZodEffects<z.ZodObject<{
1434
1778
  fps: z.ZodDefault<z.ZodNumber>;
1435
1779
  /** v3 only: keep the resting pose as frame 0, so `frames` generated frames land as `frames + 1` files. */
1436
1780
  keepFirstFrame: z.ZodDefault<z.ZodBoolean>;
1781
+ /**
1782
+ * `character` loops: strip the ghost pixels an animation model leaves
1783
+ * around a figure (pale arcs beside the head, fragments off a limb) from
1784
+ * each frame as it is downloaded, judged against the parent's rotations.
1785
+ * Applied to the downloaded bytes, so turning it on or off re-processes
1786
+ * the frames without generating them again.
1787
+ */
1788
+ clean: z.ZodOptional<z.ZodBoolean>;
1437
1789
  /**
1438
1790
  * `template` when a template is named, otherwise `v3`; `skeleton-v3`
1439
1791
  * poses a template with PixelLab's skeleton model instead, or, with no
@@ -1468,6 +1820,7 @@ declare const CharacterAnimationSchema$1: z.ZodEffects<z.ZodObject<{
1468
1820
  keepFirstFrame: boolean;
1469
1821
  frames?: number | undefined;
1470
1822
  template?: string | undefined;
1823
+ clean?: boolean | undefined;
1471
1824
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
1472
1825
  motionFrom?: string | undefined;
1473
1826
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -1483,6 +1836,7 @@ declare const CharacterAnimationSchema$1: z.ZodEffects<z.ZodObject<{
1483
1836
  frames?: number | undefined;
1484
1837
  fps?: number | undefined;
1485
1838
  template?: string | undefined;
1839
+ clean?: boolean | undefined;
1486
1840
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
1487
1841
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
1488
1842
  motionFrom?: string | undefined;
@@ -1502,6 +1856,7 @@ declare const CharacterAnimationSchema$1: z.ZodEffects<z.ZodObject<{
1502
1856
  keepFirstFrame: boolean;
1503
1857
  frames?: number | undefined;
1504
1858
  template?: string | undefined;
1859
+ clean?: boolean | undefined;
1505
1860
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
1506
1861
  motionFrom?: string | undefined;
1507
1862
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -1517,6 +1872,7 @@ declare const CharacterAnimationSchema$1: z.ZodEffects<z.ZodObject<{
1517
1872
  frames?: number | undefined;
1518
1873
  fps?: number | undefined;
1519
1874
  template?: string | undefined;
1875
+ clean?: boolean | undefined;
1520
1876
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
1521
1877
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
1522
1878
  motionFrom?: string | undefined;
@@ -1550,7 +1906,7 @@ interface ResolvedStyleAnchor {
1550
1906
  }
1551
1907
  /** How a resolved spec describes its place in a character family. */
1552
1908
  interface ResolvedCharacter {
1553
- kind: "base" | "state" | "animation" | "portrait" | "outfit";
1909
+ kind: "base" | "state" | "animation" | "portrait" | "outfit" | "layer";
1554
1910
  /** Creation engine for a base; states inherit the parent's. */
1555
1911
  mode: CharacterMode;
1556
1912
  /** Rotations a base or state has. */
@@ -1607,6 +1963,52 @@ interface ResolvedCharacter {
1607
1963
  reference: ResolvedReferenceImage;
1608
1964
  additionalInstructions?: string;
1609
1965
  };
1966
+ /** For a layer: the assets whose frames it dresses, and how the sheet is prepared. */
1967
+ layer?: {
1968
+ sources: Array<{
1969
+ assetId: string;
1970
+ spec: ResolvedSpec;
1971
+ }>;
1972
+ /** Absolute path and hash of a mask the author supplied; null hash while the file does not exist. */
1973
+ mask?: {
1974
+ path: string;
1975
+ sha256: string | null;
1976
+ };
1977
+ keyed?: {
1978
+ path: string;
1979
+ sha256: string | null;
1980
+ };
1981
+ skin?: string[];
1982
+ key?: string;
1983
+ clean: boolean;
1984
+ columns?: number;
1985
+ region: "body" | "head" | "around";
1986
+ padding: number;
1987
+ /** Pixels the layer's frames are moved by; absent when none are. */
1988
+ offset?: LayerOffset;
1989
+ /** For a held item: its files, the anchors file, and how it is turned. Hashes are null while a file does not exist. */
1990
+ attach?: {
1991
+ item: Array<{
1992
+ direction: CharacterDirection;
1993
+ path: string;
1994
+ sha256: string | null;
1995
+ }>;
1996
+ anchors: {
1997
+ path: string;
1998
+ sha256: string | null;
1999
+ };
2000
+ joint: AttachJoint;
2001
+ grip?: "center" | [number, number] | Partial<Record<CharacterDirection, [number, number]>>;
2002
+ scale: number;
2003
+ tilt: number;
2004
+ lean: number;
2005
+ depth: "auto" | "front" | "behind";
2006
+ /** Set when the hand is redrawn around the item; the disc's radius in pixels. */
2007
+ grasp?: {
2008
+ radius: number;
2009
+ };
2010
+ };
2011
+ };
1610
2012
  animation?: {
1611
2013
  mode: CharacterAnimationMode;
1612
2014
  template?: string;
@@ -1615,6 +2017,8 @@ interface ResolvedCharacter {
1615
2017
  frames: number;
1616
2018
  fps: number;
1617
2019
  keepFirstFrame: boolean;
2020
+ /** Strip animation ghosts from each frame at download, judged against the parent's rotations. */
2021
+ clean?: boolean;
1618
2022
  /** v3: the pose to start from, and the pose to reach. */
1619
2023
  startFrame?: ResolvedReferenceImage;
1620
2024
  endFrame?: ResolvedReferenceImage;
@@ -2365,8 +2769,18 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2365
2769
  * it. Part of a `pixflux` asset's identity only when set.
2366
2770
  */
2367
2771
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
2368
- /** `character` only. Draw `standard` bases and every loop in isometric view. */
2772
+ /**
2773
+ * `character` and `pixflux`. Draw `standard` character bases and every
2774
+ * loop, or a `pixflux` image, in isometric view. PixelLab calls it weakly
2775
+ * guiding on `pixflux`. Part of a `pixflux` asset's identity only when true.
2776
+ */
2369
2777
  isometric: z.ZodOptional<z.ZodBoolean>;
2778
+ /**
2779
+ * `pixflux` only, with `noBackground`: how the background is cut away.
2780
+ * `simple` is PixelLab's default and faster; `complex` handles fine or
2781
+ * busy edges better. Part of the asset's identity only when set.
2782
+ */
2783
+ backgroundRemoval: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
2370
2784
  /** `character` only, `v3` bases: let PixelLab expand the prompt into a fuller one before drawing. */
2371
2785
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
2372
2786
  /**
@@ -2576,6 +2990,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2576
2990
  hipWidth?: number | undefined;
2577
2991
  } | undefined;
2578
2992
  textGuidanceScale?: number | undefined;
2993
+ backgroundRemoval?: "simple" | "complex" | undefined;
2579
2994
  styleCharacter?: string | undefined;
2580
2995
  seed?: number | undefined;
2581
2996
  paletteName?: string | undefined;
@@ -2676,6 +3091,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2676
3091
  hipWidth?: number | undefined;
2677
3092
  } | undefined;
2678
3093
  textGuidanceScale?: number | undefined;
3094
+ backgroundRemoval?: "simple" | "complex" | undefined;
2679
3095
  styleCharacter?: string | undefined;
2680
3096
  seed?: number | undefined;
2681
3097
  paletteName?: string | undefined;
@@ -2782,6 +3198,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2782
3198
  hipWidth?: number | undefined;
2783
3199
  } | undefined;
2784
3200
  textGuidanceScale?: number | undefined;
3201
+ backgroundRemoval?: "simple" | "complex" | undefined;
2785
3202
  styleCharacter?: string | undefined;
2786
3203
  seed?: number | undefined;
2787
3204
  paletteName?: string | undefined;
@@ -2882,6 +3299,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2882
3299
  hipWidth?: number | undefined;
2883
3300
  } | undefined;
2884
3301
  textGuidanceScale?: number | undefined;
3302
+ backgroundRemoval?: "simple" | "complex" | undefined;
2885
3303
  styleCharacter?: string | undefined;
2886
3304
  seed?: number | undefined;
2887
3305
  paletteName?: string | undefined;
@@ -2988,6 +3406,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
2988
3406
  hipWidth?: number | undefined;
2989
3407
  } | undefined;
2990
3408
  textGuidanceScale?: number | undefined;
3409
+ backgroundRemoval?: "simple" | "complex" | undefined;
2991
3410
  styleCharacter?: string | undefined;
2992
3411
  seed?: number | undefined;
2993
3412
  paletteName?: string | undefined;
@@ -3088,6 +3507,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3088
3507
  hipWidth?: number | undefined;
3089
3508
  } | undefined;
3090
3509
  textGuidanceScale?: number | undefined;
3510
+ backgroundRemoval?: "simple" | "complex" | undefined;
3091
3511
  styleCharacter?: string | undefined;
3092
3512
  seed?: number | undefined;
3093
3513
  paletteName?: string | undefined;
@@ -3220,6 +3640,7 @@ declare const InheritedStyleSchema: z.ZodObject<{
3220
3640
  }>]>>>;
3221
3641
  textGuidanceScale: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3222
3642
  isometric: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3643
+ backgroundRemoval: z.ZodOptional<z.ZodOptional<z.ZodEnum<["simple", "complex"]>>>;
3223
3644
  enhancePrompt: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
3224
3645
  styleCharacter: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3225
3646
  seed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -3362,6 +3783,7 @@ declare const InheritedStyleSchema: z.ZodObject<{
3362
3783
  hipWidth?: number | undefined;
3363
3784
  } | undefined;
3364
3785
  textGuidanceScale?: number | undefined;
3786
+ backgroundRemoval?: "simple" | "complex" | undefined;
3365
3787
  styleCharacter?: string | undefined;
3366
3788
  seed?: number | undefined;
3367
3789
  paletteName?: string | undefined;
@@ -3466,6 +3888,7 @@ declare const InheritedStyleSchema: z.ZodObject<{
3466
3888
  hipWidth?: number | undefined;
3467
3889
  } | undefined;
3468
3890
  textGuidanceScale?: number | undefined;
3891
+ backgroundRemoval?: "simple" | "complex" | undefined;
3469
3892
  styleCharacter?: string | undefined;
3470
3893
  seed?: number | undefined;
3471
3894
  paletteName?: string | undefined;
@@ -3865,8 +4288,18 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
3865
4288
  * it. Part of a `pixflux` asset's identity only when set.
3866
4289
  */
3867
4290
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
3868
- /** `character` only. Draw `standard` bases and every loop in isometric view. */
4291
+ /**
4292
+ * `character` and `pixflux`. Draw `standard` character bases and every
4293
+ * loop, or a `pixflux` image, in isometric view. PixelLab calls it weakly
4294
+ * guiding on `pixflux`. Part of a `pixflux` asset's identity only when true.
4295
+ */
3869
4296
  isometric: z.ZodOptional<z.ZodBoolean>;
4297
+ /**
4298
+ * `pixflux` only, with `noBackground`: how the background is cut away.
4299
+ * `simple` is PixelLab's default and faster; `complex` handles fine or
4300
+ * busy edges better. Part of the asset's identity only when set.
4301
+ */
4302
+ backgroundRemoval: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
3870
4303
  /** `character` only, `v3` bases: let PixelLab expand the prompt into a fuller one before drawing. */
3871
4304
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
3872
4305
  /**
@@ -4076,6 +4509,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4076
4509
  hipWidth?: number | undefined;
4077
4510
  } | undefined;
4078
4511
  textGuidanceScale?: number | undefined;
4512
+ backgroundRemoval?: "simple" | "complex" | undefined;
4079
4513
  styleCharacter?: string | undefined;
4080
4514
  seed?: number | undefined;
4081
4515
  paletteName?: string | undefined;
@@ -4176,6 +4610,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4176
4610
  hipWidth?: number | undefined;
4177
4611
  } | undefined;
4178
4612
  textGuidanceScale?: number | undefined;
4613
+ backgroundRemoval?: "simple" | "complex" | undefined;
4179
4614
  styleCharacter?: string | undefined;
4180
4615
  seed?: number | undefined;
4181
4616
  paletteName?: string | undefined;
@@ -4282,6 +4717,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4282
4717
  hipWidth?: number | undefined;
4283
4718
  } | undefined;
4284
4719
  textGuidanceScale?: number | undefined;
4720
+ backgroundRemoval?: "simple" | "complex" | undefined;
4285
4721
  styleCharacter?: string | undefined;
4286
4722
  seed?: number | undefined;
4287
4723
  paletteName?: string | undefined;
@@ -4382,6 +4818,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4382
4818
  hipWidth?: number | undefined;
4383
4819
  } | undefined;
4384
4820
  textGuidanceScale?: number | undefined;
4821
+ backgroundRemoval?: "simple" | "complex" | undefined;
4385
4822
  styleCharacter?: string | undefined;
4386
4823
  seed?: number | undefined;
4387
4824
  paletteName?: string | undefined;
@@ -4488,6 +4925,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4488
4925
  hipWidth?: number | undefined;
4489
4926
  } | undefined;
4490
4927
  textGuidanceScale?: number | undefined;
4928
+ backgroundRemoval?: "simple" | "complex" | undefined;
4491
4929
  styleCharacter?: string | undefined;
4492
4930
  seed?: number | undefined;
4493
4931
  paletteName?: string | undefined;
@@ -4588,6 +5026,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4588
5026
  hipWidth?: number | undefined;
4589
5027
  } | undefined;
4590
5028
  textGuidanceScale?: number | undefined;
5029
+ backgroundRemoval?: "simple" | "complex" | undefined;
4591
5030
  styleCharacter?: string | undefined;
4592
5031
  seed?: number | undefined;
4593
5032
  paletteName?: string | undefined;
@@ -4715,6 +5154,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4715
5154
  }>]>>>;
4716
5155
  textGuidanceScale: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
4717
5156
  isometric: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5157
+ backgroundRemoval: z.ZodOptional<z.ZodOptional<z.ZodEnum<["simple", "complex"]>>>;
4718
5158
  enhancePrompt: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4719
5159
  styleCharacter: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4720
5160
  seed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -4857,6 +5297,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4857
5297
  hipWidth?: number | undefined;
4858
5298
  } | undefined;
4859
5299
  textGuidanceScale?: number | undefined;
5300
+ backgroundRemoval?: "simple" | "complex" | undefined;
4860
5301
  styleCharacter?: string | undefined;
4861
5302
  seed?: number | undefined;
4862
5303
  paletteName?: string | undefined;
@@ -4961,6 +5402,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
4961
5402
  hipWidth?: number | undefined;
4962
5403
  } | undefined;
4963
5404
  textGuidanceScale?: number | undefined;
5405
+ backgroundRemoval?: "simple" | "complex" | undefined;
4964
5406
  styleCharacter?: string | undefined;
4965
5407
  seed?: number | undefined;
4966
5408
  paletteName?: string | undefined;
@@ -4996,7 +5438,20 @@ declare const AssetDeriveSchema: z.ZodEffects<z.ZodObject<{
4996
5438
  from: z.ZodOptional<z.ZodString>;
4997
5439
  /** A committed PNG, relative to the manifest, as the input. */
4998
5440
  file: z.ZodOptional<z.ZodString>;
4999
- transform: z.ZodEnum<["recolor", "palette-snap", "scale"]>;
5441
+ transform: z.ZodEnum<["recolor", "palette-snap", "hue-shift", "scale", "key-skin", "despeckle"]>;
5442
+ /** hue-shift: degrees to turn each pixel's hue by, -180 to 180. */
5443
+ degrees: z.ZodOptional<z.ZodNumber>;
5444
+ /**
5445
+ * hue-shift: only pixels whose hue lies in this window, `[from, to]` in
5446
+ * degrees going clockwise (so `[330, 30]` is the reds), are changed.
5447
+ * Everything is, when omitted. Greys and near-blacks have no hue to speak
5448
+ * of and are left alone either way.
5449
+ */
5450
+ hue: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
5451
+ /** hue-shift: multiply saturation by this, 0 to 4. Default 1. */
5452
+ saturation: z.ZodOptional<z.ZodNumber>;
5453
+ /** hue-shift: multiply brightness by this, 0 to 4. Default 1. */
5454
+ brightness: z.ZodOptional<z.ZodNumber>;
5000
5455
  /** recolor: exact replacements, `#rrggbb` to `#rrggbb`. Unmapped colors and every alpha value stay. */
5001
5456
  map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5002
5457
  /** palette-snap: the closed palette every visible pixel moves to. */
@@ -5006,42 +5461,86 @@ declare const AssetDeriveSchema: z.ZodEffects<z.ZodObject<{
5006
5461
  height: z.ZodOptional<z.ZodNumber>;
5007
5462
  /** scale: `nearest` (default) keeps hard edges; `box` averages the covered pixels. */
5008
5463
  mode: z.ZodOptional<z.ZodEnum<["nearest", "box"]>>;
5464
+ /** key-skin: the colours that are skin; every pixel that is not outline when omitted. */
5465
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5466
+ /** key-skin: the stand-in colour. Default cyan. */
5467
+ key: z.ZodOptional<z.ZodString>;
5468
+ /**
5469
+ * despeckle: committed PNGs, relative to the manifest, whose colours are known good (the character's stills).
5470
+ * hue-shift: only pixels in a colour one of these PNGs uses are changed, which
5471
+ * is how skin on a layer (the fingers of a grip) is told from the item in it.
5472
+ */
5473
+ reference: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5474
+ /** key-skin: how far a pixel may sit from a `skin` colour. despeckle: how near a reference colour must be to vouch for a pixel. */
5475
+ tolerance: z.ZodOptional<z.ZodNumber>;
5009
5476
  }, "strict", z.ZodTypeAny, {
5010
- transform: "recolor" | "palette-snap" | "scale";
5477
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5011
5478
  map?: Record<string, string> | undefined;
5012
5479
  width?: number | undefined;
5013
5480
  height?: number | undefined;
5481
+ key?: string | undefined;
5014
5482
  palette?: string[] | undefined;
5483
+ reference?: string[] | undefined;
5484
+ skin?: string[] | undefined;
5015
5485
  mode?: "nearest" | "box" | undefined;
5016
5486
  from?: string | undefined;
5017
5487
  file?: string | undefined;
5488
+ degrees?: number | undefined;
5489
+ hue?: [number, number] | undefined;
5490
+ saturation?: number | undefined;
5491
+ brightness?: number | undefined;
5492
+ tolerance?: number | undefined;
5018
5493
  }, {
5019
- transform: "recolor" | "palette-snap" | "scale";
5494
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5020
5495
  map?: Record<string, string> | undefined;
5021
5496
  width?: number | undefined;
5022
5497
  height?: number | undefined;
5498
+ key?: string | undefined;
5023
5499
  palette?: string[] | undefined;
5500
+ reference?: string[] | undefined;
5501
+ skin?: string[] | undefined;
5024
5502
  mode?: "nearest" | "box" | undefined;
5025
5503
  from?: string | undefined;
5026
5504
  file?: string | undefined;
5505
+ degrees?: number | undefined;
5506
+ hue?: [number, number] | undefined;
5507
+ saturation?: number | undefined;
5508
+ brightness?: number | undefined;
5509
+ tolerance?: number | undefined;
5027
5510
  }>, {
5028
- transform: "recolor" | "palette-snap" | "scale";
5511
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5029
5512
  map?: Record<string, string> | undefined;
5030
5513
  width?: number | undefined;
5031
5514
  height?: number | undefined;
5515
+ key?: string | undefined;
5032
5516
  palette?: string[] | undefined;
5517
+ reference?: string[] | undefined;
5518
+ skin?: string[] | undefined;
5033
5519
  mode?: "nearest" | "box" | undefined;
5034
5520
  from?: string | undefined;
5035
5521
  file?: string | undefined;
5522
+ degrees?: number | undefined;
5523
+ hue?: [number, number] | undefined;
5524
+ saturation?: number | undefined;
5525
+ brightness?: number | undefined;
5526
+ tolerance?: number | undefined;
5036
5527
  }, {
5037
- transform: "recolor" | "palette-snap" | "scale";
5528
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5038
5529
  map?: Record<string, string> | undefined;
5039
5530
  width?: number | undefined;
5040
5531
  height?: number | undefined;
5532
+ key?: string | undefined;
5041
5533
  palette?: string[] | undefined;
5534
+ reference?: string[] | undefined;
5535
+ skin?: string[] | undefined;
5042
5536
  mode?: "nearest" | "box" | undefined;
5043
5537
  from?: string | undefined;
5044
5538
  file?: string | undefined;
5539
+ degrees?: number | undefined;
5540
+ hue?: [number, number] | undefined;
5541
+ saturation?: number | undefined;
5542
+ brightness?: number | undefined;
5543
+ tolerance?: number | undefined;
5045
5544
  }>;
5046
5545
  type AssetDerive = z.infer<typeof AssetDeriveSchema>;
5047
5546
  /**
@@ -5435,6 +5934,14 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5435
5934
  fps: z.ZodDefault<z.ZodNumber>;
5436
5935
  /** v3 only: keep the resting pose as frame 0, so `frames` generated frames land as `frames + 1` files. */
5437
5936
  keepFirstFrame: z.ZodDefault<z.ZodBoolean>;
5937
+ /**
5938
+ * `character` loops: strip the ghost pixels an animation model leaves
5939
+ * around a figure (pale arcs beside the head, fragments off a limb) from
5940
+ * each frame as it is downloaded, judged against the parent's rotations.
5941
+ * Applied to the downloaded bytes, so turning it on or off re-processes
5942
+ * the frames without generating them again.
5943
+ */
5944
+ clean: z.ZodOptional<z.ZodBoolean>;
5438
5945
  /**
5439
5946
  * `template` when a template is named, otherwise `v3`; `skeleton-v3`
5440
5947
  * poses a template with PixelLab's skeleton model instead, or, with no
@@ -5469,6 +5976,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5469
5976
  keepFirstFrame: boolean;
5470
5977
  frames?: number | undefined;
5471
5978
  template?: string | undefined;
5979
+ clean?: boolean | undefined;
5472
5980
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
5473
5981
  motionFrom?: string | undefined;
5474
5982
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -5484,6 +5992,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5484
5992
  frames?: number | undefined;
5485
5993
  fps?: number | undefined;
5486
5994
  template?: string | undefined;
5995
+ clean?: boolean | undefined;
5487
5996
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
5488
5997
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
5489
5998
  motionFrom?: string | undefined;
@@ -5503,6 +6012,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5503
6012
  keepFirstFrame: boolean;
5504
6013
  frames?: number | undefined;
5505
6014
  template?: string | undefined;
6015
+ clean?: boolean | undefined;
5506
6016
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
5507
6017
  motionFrom?: string | undefined;
5508
6018
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -5518,6 +6028,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5518
6028
  frames?: number | undefined;
5519
6029
  fps?: number | undefined;
5520
6030
  template?: string | undefined;
6031
+ clean?: boolean | undefined;
5521
6032
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
5522
6033
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
5523
6034
  motionFrom?: string | undefined;
@@ -5656,6 +6167,236 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5656
6167
  reference: string;
5657
6168
  additionalInstructions?: string | undefined;
5658
6169
  }>>;
6170
+ /** `character` styles: this asset's prompt, drawn as a clothing layer over existing frames. See CharacterLayerSchema. */
6171
+ layer: z.ZodOptional<z.ZodEffects<z.ZodObject<{
6172
+ /** The assets to dress, in the same style: a base, its states, its loops. Their frames share one sheet, in this order. */
6173
+ of: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
6174
+ /**
6175
+ * Manifest-relative black-and-white PNG the size of the sheet, replacing
6176
+ * the computed mask (white below each figure's neck). The escape hatch for
6177
+ * hair, hats and raised arms, where the neck is not the narrowest row.
6178
+ */
6179
+ mask: z.ZodOptional<z.ZodString>;
6180
+ /** Manifest-relative PNG the size of the sheet, replacing the computed keyed sheet. */
6181
+ keyed: z.ZodOptional<z.ZodString>;
6182
+ /** The colours that are skin. Omit on a bare base, where everything that is not outline is skin. */
6183
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6184
+ /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
6185
+ key: z.ZodOptional<z.ZodString>;
6186
+ /**
6187
+ * Remove animation ghosts from the loops before dressing them, judged
6188
+ * against the stills among `of` (bases and states). Default true; it has
6189
+ * nothing to judge against, and is skipped, when `of` holds no still.
6190
+ */
6191
+ clean: z.ZodOptional<z.ZodBoolean>;
6192
+ /** Sheet columns. Chosen to fit the provider's limit in the smallest area when omitted. */
6193
+ columns: z.ZodOptional<z.ZodNumber>;
6194
+ /**
6195
+ * Which part of each figure may be repainted. `body` (default): the
6196
+ * figure's own pixels below the neck, for clothing. `head`: everything
6197
+ * from the top of the cell to the neck, for hats, hair and helmets.
6198
+ * `around`: everything below the neck, empty space included, for held
6199
+ * items, capes and packs.
6200
+ */
6201
+ region: z.ZodOptional<z.ZodEnum<["body", "head", "around"]>>;
6202
+ /**
6203
+ * Empty pixels added around every figure on the sheet, for a layer that
6204
+ * reaches past it. Each layer frame comes back on its source frame's
6205
+ * canvas grown by this much on every side. Default 0 for `body`, 8 otherwise.
6206
+ */
6207
+ padding: z.ZodOptional<z.ZodNumber>;
6208
+ /**
6209
+ * Nudge the layer by `[x, y]` pixels, x to the right and y down: a hat a
6210
+ * pixel or two higher, a mask lower on the face. One pair moves every
6211
+ * frame; an object moves the frames of each `of` asset it names by that
6212
+ * asset's own pair, with `"*"` for the rest, since a provider can seat a
6213
+ * hat a little differently on a walk than on the stills. On a drawn layer
6214
+ * it is applied at download and changing it costs nothing; on a held item
6215
+ * it moves the item on the hand.
6216
+ */
6217
+ offset: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
6218
+ /**
6219
+ * Make this layer a held item instead of an inpaint: a sprite you already
6220
+ * have, pinned to a hand in every frame. Free and local. See
6221
+ * CharacterAttachSchema.
6222
+ */
6223
+ attach: z.ZodOptional<z.ZodObject<{
6224
+ /**
6225
+ * Manifest-relative PNG of the item. With `{direction}` in the path, one
6226
+ * file per direction the frames face (an 8-direction object's rotations);
6227
+ * without it, the same image in every direction.
6228
+ */
6229
+ item: z.ZodString;
6230
+ /**
6231
+ * Manifest-relative anchors file: every frame's skeleton, which is where
6232
+ * its hands are. `pixelkiln anchors <asset>` writes it; one file serves
6233
+ * every item the character holds.
6234
+ */
6235
+ anchors: z.ZodString;
6236
+ /** Which hand holds it. Default `right-hand`. */
6237
+ joint: z.ZodOptional<z.ZodEnum<["right-hand", "left-hand"]>>;
6238
+ /**
6239
+ * The point of the item the hand holds: `"center"` (a shield), or item
6240
+ * pixels as drawn, one `[x, y]` for every direction or one per direction.
6241
+ * Default: the middle of the item's lowest fifth, which is the handle of
6242
+ * anything drawn handle-down.
6243
+ */
6244
+ grip: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
6245
+ /**
6246
+ * Resize the item by this factor before placing it, nearest neighbour.
6247
+ * An object generator fills its canvas, so an item often comes back
6248
+ * larger than the hand it goes in. Default 1.
6249
+ */
6250
+ scale: z.ZodOptional<z.ZodNumber>;
6251
+ /**
6252
+ * Degrees to lean an upright item the way the figure faces, turned
6253
+ * locally. Shows from the side, not from the front or back. Default 0:
6254
+ * the item is used as drawn, which is right for one drawn already leaning.
6255
+ */
6256
+ tilt: z.ZodOptional<z.ZodNumber>;
6257
+ /** Degrees to tip an upright item outward from the body, seen from the front and back. Default 0. */
6258
+ lean: z.ZodOptional<z.ZodNumber>;
6259
+ /**
6260
+ * Whether the body covers the item. `auto` (default) follows each frame's
6261
+ * skeleton: the item goes behind the figure when its hand is.
6262
+ */
6263
+ depth: z.ZodOptional<z.ZodEnum<["auto", "front", "behind"]>>;
6264
+ /**
6265
+ * Redraw the hand around the item so it is held, not resting on the
6266
+ * hand: one inpaint over a small disc at each hand, the rest of the item
6267
+ * untouched. `true`, or `{ "radius": 9 }` for the disc in pixels. This
6268
+ * makes the layer a paid one (one inpaint, priced by the sheet); the
6269
+ * asset's `prompt`, when it has one, tells the provider what the item is.
6270
+ */
6271
+ grasp: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
6272
+ radius: z.ZodOptional<z.ZodNumber>;
6273
+ }, "strict", z.ZodTypeAny, {
6274
+ radius?: number | undefined;
6275
+ }, {
6276
+ radius?: number | undefined;
6277
+ }>]>>;
6278
+ }, "strict", z.ZodTypeAny, {
6279
+ item: string;
6280
+ anchors: string;
6281
+ depth?: "auto" | "front" | "behind" | undefined;
6282
+ joint?: "right-hand" | "left-hand" | undefined;
6283
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6284
+ scale?: number | undefined;
6285
+ tilt?: number | undefined;
6286
+ lean?: number | undefined;
6287
+ grasp?: boolean | {
6288
+ radius?: number | undefined;
6289
+ } | undefined;
6290
+ }, {
6291
+ item: string;
6292
+ anchors: string;
6293
+ depth?: "auto" | "front" | "behind" | undefined;
6294
+ joint?: "right-hand" | "left-hand" | undefined;
6295
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6296
+ scale?: number | undefined;
6297
+ tilt?: number | undefined;
6298
+ lean?: number | undefined;
6299
+ grasp?: boolean | {
6300
+ radius?: number | undefined;
6301
+ } | undefined;
6302
+ }>>;
6303
+ }, "strict", z.ZodTypeAny, {
6304
+ of: string | string[];
6305
+ key?: string | undefined;
6306
+ mask?: string | undefined;
6307
+ keyed?: string | undefined;
6308
+ skin?: string[] | undefined;
6309
+ clean?: boolean | undefined;
6310
+ columns?: number | undefined;
6311
+ region?: "body" | "head" | "around" | undefined;
6312
+ padding?: number | undefined;
6313
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
6314
+ attach?: {
6315
+ item: string;
6316
+ anchors: string;
6317
+ depth?: "auto" | "front" | "behind" | undefined;
6318
+ joint?: "right-hand" | "left-hand" | undefined;
6319
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6320
+ scale?: number | undefined;
6321
+ tilt?: number | undefined;
6322
+ lean?: number | undefined;
6323
+ grasp?: boolean | {
6324
+ radius?: number | undefined;
6325
+ } | undefined;
6326
+ } | undefined;
6327
+ }, {
6328
+ of: string | string[];
6329
+ key?: string | undefined;
6330
+ mask?: string | undefined;
6331
+ keyed?: string | undefined;
6332
+ skin?: string[] | undefined;
6333
+ clean?: boolean | undefined;
6334
+ columns?: number | undefined;
6335
+ region?: "body" | "head" | "around" | undefined;
6336
+ padding?: number | undefined;
6337
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
6338
+ attach?: {
6339
+ item: string;
6340
+ anchors: string;
6341
+ depth?: "auto" | "front" | "behind" | undefined;
6342
+ joint?: "right-hand" | "left-hand" | undefined;
6343
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6344
+ scale?: number | undefined;
6345
+ tilt?: number | undefined;
6346
+ lean?: number | undefined;
6347
+ grasp?: boolean | {
6348
+ radius?: number | undefined;
6349
+ } | undefined;
6350
+ } | undefined;
6351
+ }>, {
6352
+ of: string | string[];
6353
+ key?: string | undefined;
6354
+ mask?: string | undefined;
6355
+ keyed?: string | undefined;
6356
+ skin?: string[] | undefined;
6357
+ clean?: boolean | undefined;
6358
+ columns?: number | undefined;
6359
+ region?: "body" | "head" | "around" | undefined;
6360
+ padding?: number | undefined;
6361
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
6362
+ attach?: {
6363
+ item: string;
6364
+ anchors: string;
6365
+ depth?: "auto" | "front" | "behind" | undefined;
6366
+ joint?: "right-hand" | "left-hand" | undefined;
6367
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6368
+ scale?: number | undefined;
6369
+ tilt?: number | undefined;
6370
+ lean?: number | undefined;
6371
+ grasp?: boolean | {
6372
+ radius?: number | undefined;
6373
+ } | undefined;
6374
+ } | undefined;
6375
+ }, {
6376
+ of: string | string[];
6377
+ key?: string | undefined;
6378
+ mask?: string | undefined;
6379
+ keyed?: string | undefined;
6380
+ skin?: string[] | undefined;
6381
+ clean?: boolean | undefined;
6382
+ columns?: number | undefined;
6383
+ region?: "body" | "head" | "around" | undefined;
6384
+ padding?: number | undefined;
6385
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
6386
+ attach?: {
6387
+ item: string;
6388
+ anchors: string;
6389
+ depth?: "auto" | "front" | "behind" | undefined;
6390
+ joint?: "right-hand" | "left-hand" | undefined;
6391
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6392
+ scale?: number | undefined;
6393
+ tilt?: number | undefined;
6394
+ lean?: number | undefined;
6395
+ grasp?: boolean | {
6396
+ radius?: number | undefined;
6397
+ } | undefined;
6398
+ } | undefined;
6399
+ }>>;
5659
6400
  /** `map` styles only: draw this object in the style of a scene image. See `MapSceneSchema`. */
5660
6401
  scene: z.ZodOptional<z.ZodObject<{
5661
6402
  /** Manifest-relative PNG of the scene. Any earlier asset's output file works. */
@@ -5893,6 +6634,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5893
6634
  * instead of starting from nothing.
5894
6635
  */
5895
6636
  initImage: z.ZodOptional<z.ZodString>;
6637
+ /**
6638
+ * `pixflux` styles: the way the subject faces. PixelLab calls it weakly
6639
+ * guiding, so treat it as a nudge. Part of the asset's identity only
6640
+ * when set.
6641
+ */
6642
+ direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
5896
6643
  /**
5897
6644
  * With `initImage`: how strongly the starting image holds, 1 to 999.
5898
6645
  * PixelLab's default is 300.
@@ -5924,7 +6671,20 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5924
6671
  from: z.ZodOptional<z.ZodString>;
5925
6672
  /** A committed PNG, relative to the manifest, as the input. */
5926
6673
  file: z.ZodOptional<z.ZodString>;
5927
- transform: z.ZodEnum<["recolor", "palette-snap", "scale"]>;
6674
+ transform: z.ZodEnum<["recolor", "palette-snap", "hue-shift", "scale", "key-skin", "despeckle"]>;
6675
+ /** hue-shift: degrees to turn each pixel's hue by, -180 to 180. */
6676
+ degrees: z.ZodOptional<z.ZodNumber>;
6677
+ /**
6678
+ * hue-shift: only pixels whose hue lies in this window, `[from, to]` in
6679
+ * degrees going clockwise (so `[330, 30]` is the reds), are changed.
6680
+ * Everything is, when omitted. Greys and near-blacks have no hue to speak
6681
+ * of and are left alone either way.
6682
+ */
6683
+ hue: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
6684
+ /** hue-shift: multiply saturation by this, 0 to 4. Default 1. */
6685
+ saturation: z.ZodOptional<z.ZodNumber>;
6686
+ /** hue-shift: multiply brightness by this, 0 to 4. Default 1. */
6687
+ brightness: z.ZodOptional<z.ZodNumber>;
5928
6688
  /** recolor: exact replacements, `#rrggbb` to `#rrggbb`. Unmapped colors and every alpha value stay. */
5929
6689
  map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5930
6690
  /** palette-snap: the closed palette every visible pixel moves to. */
@@ -5934,42 +6694,86 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
5934
6694
  height: z.ZodOptional<z.ZodNumber>;
5935
6695
  /** scale: `nearest` (default) keeps hard edges; `box` averages the covered pixels. */
5936
6696
  mode: z.ZodOptional<z.ZodEnum<["nearest", "box"]>>;
6697
+ /** key-skin: the colours that are skin; every pixel that is not outline when omitted. */
6698
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6699
+ /** key-skin: the stand-in colour. Default cyan. */
6700
+ key: z.ZodOptional<z.ZodString>;
6701
+ /**
6702
+ * despeckle: committed PNGs, relative to the manifest, whose colours are known good (the character's stills).
6703
+ * hue-shift: only pixels in a colour one of these PNGs uses are changed, which
6704
+ * is how skin on a layer (the fingers of a grip) is told from the item in it.
6705
+ */
6706
+ reference: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6707
+ /** key-skin: how far a pixel may sit from a `skin` colour. despeckle: how near a reference colour must be to vouch for a pixel. */
6708
+ tolerance: z.ZodOptional<z.ZodNumber>;
5937
6709
  }, "strict", z.ZodTypeAny, {
5938
- transform: "recolor" | "palette-snap" | "scale";
6710
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5939
6711
  map?: Record<string, string> | undefined;
5940
6712
  width?: number | undefined;
5941
6713
  height?: number | undefined;
6714
+ key?: string | undefined;
5942
6715
  palette?: string[] | undefined;
6716
+ reference?: string[] | undefined;
6717
+ skin?: string[] | undefined;
5943
6718
  mode?: "nearest" | "box" | undefined;
5944
6719
  from?: string | undefined;
5945
6720
  file?: string | undefined;
6721
+ degrees?: number | undefined;
6722
+ hue?: [number, number] | undefined;
6723
+ saturation?: number | undefined;
6724
+ brightness?: number | undefined;
6725
+ tolerance?: number | undefined;
5946
6726
  }, {
5947
- transform: "recolor" | "palette-snap" | "scale";
6727
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5948
6728
  map?: Record<string, string> | undefined;
5949
6729
  width?: number | undefined;
5950
6730
  height?: number | undefined;
6731
+ key?: string | undefined;
5951
6732
  palette?: string[] | undefined;
6733
+ reference?: string[] | undefined;
6734
+ skin?: string[] | undefined;
5952
6735
  mode?: "nearest" | "box" | undefined;
5953
6736
  from?: string | undefined;
5954
6737
  file?: string | undefined;
6738
+ degrees?: number | undefined;
6739
+ hue?: [number, number] | undefined;
6740
+ saturation?: number | undefined;
6741
+ brightness?: number | undefined;
6742
+ tolerance?: number | undefined;
5955
6743
  }>, {
5956
- transform: "recolor" | "palette-snap" | "scale";
6744
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5957
6745
  map?: Record<string, string> | undefined;
5958
6746
  width?: number | undefined;
5959
6747
  height?: number | undefined;
6748
+ key?: string | undefined;
5960
6749
  palette?: string[] | undefined;
6750
+ reference?: string[] | undefined;
6751
+ skin?: string[] | undefined;
5961
6752
  mode?: "nearest" | "box" | undefined;
5962
6753
  from?: string | undefined;
5963
6754
  file?: string | undefined;
6755
+ degrees?: number | undefined;
6756
+ hue?: [number, number] | undefined;
6757
+ saturation?: number | undefined;
6758
+ brightness?: number | undefined;
6759
+ tolerance?: number | undefined;
5964
6760
  }, {
5965
- transform: "recolor" | "palette-snap" | "scale";
6761
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
5966
6762
  map?: Record<string, string> | undefined;
5967
6763
  width?: number | undefined;
5968
6764
  height?: number | undefined;
6765
+ key?: string | undefined;
5969
6766
  palette?: string[] | undefined;
6767
+ reference?: string[] | undefined;
6768
+ skin?: string[] | undefined;
5970
6769
  mode?: "nearest" | "box" | undefined;
5971
6770
  from?: string | undefined;
5972
6771
  file?: string | undefined;
6772
+ degrees?: number | undefined;
6773
+ hue?: [number, number] | undefined;
6774
+ saturation?: number | undefined;
6775
+ brightness?: number | undefined;
6776
+ tolerance?: number | undefined;
5973
6777
  }>>;
5974
6778
  /** Built by a tool outside pixelkiln; see AssetExternalSchema. Never generated. */
5975
6779
  external: z.ZodOptional<z.ZodObject<{
@@ -6025,6 +6829,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6025
6829
  keepFirstFrame: boolean;
6026
6830
  frames?: number | undefined;
6027
6831
  template?: string | undefined;
6832
+ clean?: boolean | undefined;
6028
6833
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
6029
6834
  motionFrom?: string | undefined;
6030
6835
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -6052,6 +6857,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6052
6857
  } | undefined;
6053
6858
  size?: number | undefined;
6054
6859
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
6860
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
6055
6861
  state?: {
6056
6862
  of: string;
6057
6863
  paletteFromReference: boolean;
@@ -6069,6 +6875,31 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6069
6875
  reference: string;
6070
6876
  additionalInstructions?: string | undefined;
6071
6877
  } | undefined;
6878
+ layer?: {
6879
+ of: string | string[];
6880
+ key?: string | undefined;
6881
+ mask?: string | undefined;
6882
+ keyed?: string | undefined;
6883
+ skin?: string[] | undefined;
6884
+ clean?: boolean | undefined;
6885
+ columns?: number | undefined;
6886
+ region?: "body" | "head" | "around" | undefined;
6887
+ padding?: number | undefined;
6888
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
6889
+ attach?: {
6890
+ item: string;
6891
+ anchors: string;
6892
+ depth?: "auto" | "front" | "behind" | undefined;
6893
+ joint?: "right-hand" | "left-hand" | undefined;
6894
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
6895
+ scale?: number | undefined;
6896
+ tilt?: number | undefined;
6897
+ lean?: number | undefined;
6898
+ grasp?: boolean | {
6899
+ radius?: number | undefined;
6900
+ } | undefined;
6901
+ } | undefined;
6902
+ } | undefined;
6072
6903
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
6073
6904
  headSize?: number | undefined;
6074
6905
  armsLength?: number | undefined;
@@ -6176,14 +7007,22 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6176
7007
  transition?: string | undefined;
6177
7008
  } | undefined;
6178
7009
  derive?: {
6179
- transform: "recolor" | "palette-snap" | "scale";
7010
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
6180
7011
  map?: Record<string, string> | undefined;
6181
7012
  width?: number | undefined;
6182
7013
  height?: number | undefined;
7014
+ key?: string | undefined;
6183
7015
  palette?: string[] | undefined;
7016
+ reference?: string[] | undefined;
7017
+ skin?: string[] | undefined;
6184
7018
  mode?: "nearest" | "box" | undefined;
6185
7019
  from?: string | undefined;
6186
7020
  file?: string | undefined;
7021
+ degrees?: number | undefined;
7022
+ hue?: [number, number] | undefined;
7023
+ saturation?: number | undefined;
7024
+ brightness?: number | undefined;
7025
+ tolerance?: number | undefined;
6187
7026
  } | undefined;
6188
7027
  external?: {
6189
7028
  builder: string;
@@ -6198,6 +7037,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6198
7037
  frames?: number | undefined;
6199
7038
  fps?: number | undefined;
6200
7039
  template?: string | undefined;
7040
+ clean?: boolean | undefined;
6201
7041
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
6202
7042
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
6203
7043
  motionFrom?: string | undefined;
@@ -6227,6 +7067,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6227
7067
  } | undefined;
6228
7068
  size?: number | undefined;
6229
7069
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
7070
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
6230
7071
  state?: {
6231
7072
  of: string;
6232
7073
  paletteFromReference?: boolean | undefined;
@@ -6244,6 +7085,31 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6244
7085
  reference: string;
6245
7086
  additionalInstructions?: string | undefined;
6246
7087
  } | undefined;
7088
+ layer?: {
7089
+ of: string | string[];
7090
+ key?: string | undefined;
7091
+ mask?: string | undefined;
7092
+ keyed?: string | undefined;
7093
+ skin?: string[] | undefined;
7094
+ clean?: boolean | undefined;
7095
+ columns?: number | undefined;
7096
+ region?: "body" | "head" | "around" | undefined;
7097
+ padding?: number | undefined;
7098
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
7099
+ attach?: {
7100
+ item: string;
7101
+ anchors: string;
7102
+ depth?: "auto" | "front" | "behind" | undefined;
7103
+ joint?: "right-hand" | "left-hand" | undefined;
7104
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
7105
+ scale?: number | undefined;
7106
+ tilt?: number | undefined;
7107
+ lean?: number | undefined;
7108
+ grasp?: boolean | {
7109
+ radius?: number | undefined;
7110
+ } | undefined;
7111
+ } | undefined;
7112
+ } | undefined;
6247
7113
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
6248
7114
  headSize?: number | undefined;
6249
7115
  armsLength?: number | undefined;
@@ -6353,14 +7219,22 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6353
7219
  transition?: string | undefined;
6354
7220
  } | undefined;
6355
7221
  derive?: {
6356
- transform: "recolor" | "palette-snap" | "scale";
7222
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
6357
7223
  map?: Record<string, string> | undefined;
6358
7224
  width?: number | undefined;
6359
7225
  height?: number | undefined;
7226
+ key?: string | undefined;
6360
7227
  palette?: string[] | undefined;
7228
+ reference?: string[] | undefined;
7229
+ skin?: string[] | undefined;
6361
7230
  mode?: "nearest" | "box" | undefined;
6362
7231
  from?: string | undefined;
6363
7232
  file?: string | undefined;
7233
+ degrees?: number | undefined;
7234
+ hue?: [number, number] | undefined;
7235
+ saturation?: number | undefined;
7236
+ brightness?: number | undefined;
7237
+ tolerance?: number | undefined;
6364
7238
  } | undefined;
6365
7239
  external?: {
6366
7240
  builder: string;
@@ -6385,6 +7259,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6385
7259
  keepFirstFrame: boolean;
6386
7260
  frames?: number | undefined;
6387
7261
  template?: string | undefined;
7262
+ clean?: boolean | undefined;
6388
7263
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
6389
7264
  motionFrom?: string | undefined;
6390
7265
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -6412,6 +7287,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6412
7287
  } | undefined;
6413
7288
  size?: number | undefined;
6414
7289
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
7290
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
6415
7291
  state?: {
6416
7292
  of: string;
6417
7293
  paletteFromReference: boolean;
@@ -6429,6 +7305,31 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6429
7305
  reference: string;
6430
7306
  additionalInstructions?: string | undefined;
6431
7307
  } | undefined;
7308
+ layer?: {
7309
+ of: string | string[];
7310
+ key?: string | undefined;
7311
+ mask?: string | undefined;
7312
+ keyed?: string | undefined;
7313
+ skin?: string[] | undefined;
7314
+ clean?: boolean | undefined;
7315
+ columns?: number | undefined;
7316
+ region?: "body" | "head" | "around" | undefined;
7317
+ padding?: number | undefined;
7318
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
7319
+ attach?: {
7320
+ item: string;
7321
+ anchors: string;
7322
+ depth?: "auto" | "front" | "behind" | undefined;
7323
+ joint?: "right-hand" | "left-hand" | undefined;
7324
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
7325
+ scale?: number | undefined;
7326
+ tilt?: number | undefined;
7327
+ lean?: number | undefined;
7328
+ grasp?: boolean | {
7329
+ radius?: number | undefined;
7330
+ } | undefined;
7331
+ } | undefined;
7332
+ } | undefined;
6432
7333
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
6433
7334
  headSize?: number | undefined;
6434
7335
  armsLength?: number | undefined;
@@ -6536,14 +7437,22 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6536
7437
  transition?: string | undefined;
6537
7438
  } | undefined;
6538
7439
  derive?: {
6539
- transform: "recolor" | "palette-snap" | "scale";
7440
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
6540
7441
  map?: Record<string, string> | undefined;
6541
7442
  width?: number | undefined;
6542
7443
  height?: number | undefined;
7444
+ key?: string | undefined;
6543
7445
  palette?: string[] | undefined;
7446
+ reference?: string[] | undefined;
7447
+ skin?: string[] | undefined;
6544
7448
  mode?: "nearest" | "box" | undefined;
6545
7449
  from?: string | undefined;
6546
7450
  file?: string | undefined;
7451
+ degrees?: number | undefined;
7452
+ hue?: [number, number] | undefined;
7453
+ saturation?: number | undefined;
7454
+ brightness?: number | undefined;
7455
+ tolerance?: number | undefined;
6547
7456
  } | undefined;
6548
7457
  external?: {
6549
7458
  builder: string;
@@ -6558,6 +7467,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6558
7467
  frames?: number | undefined;
6559
7468
  fps?: number | undefined;
6560
7469
  template?: string | undefined;
7470
+ clean?: boolean | undefined;
6561
7471
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
6562
7472
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
6563
7473
  motionFrom?: string | undefined;
@@ -6587,6 +7497,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6587
7497
  } | undefined;
6588
7498
  size?: number | undefined;
6589
7499
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
7500
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
6590
7501
  state?: {
6591
7502
  of: string;
6592
7503
  paletteFromReference?: boolean | undefined;
@@ -6604,6 +7515,31 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6604
7515
  reference: string;
6605
7516
  additionalInstructions?: string | undefined;
6606
7517
  } | undefined;
7518
+ layer?: {
7519
+ of: string | string[];
7520
+ key?: string | undefined;
7521
+ mask?: string | undefined;
7522
+ keyed?: string | undefined;
7523
+ skin?: string[] | undefined;
7524
+ clean?: boolean | undefined;
7525
+ columns?: number | undefined;
7526
+ region?: "body" | "head" | "around" | undefined;
7527
+ padding?: number | undefined;
7528
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
7529
+ attach?: {
7530
+ item: string;
7531
+ anchors: string;
7532
+ depth?: "auto" | "front" | "behind" | undefined;
7533
+ joint?: "right-hand" | "left-hand" | undefined;
7534
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
7535
+ scale?: number | undefined;
7536
+ tilt?: number | undefined;
7537
+ lean?: number | undefined;
7538
+ grasp?: boolean | {
7539
+ radius?: number | undefined;
7540
+ } | undefined;
7541
+ } | undefined;
7542
+ } | undefined;
6607
7543
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
6608
7544
  headSize?: number | undefined;
6609
7545
  armsLength?: number | undefined;
@@ -6713,14 +7649,22 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
6713
7649
  transition?: string | undefined;
6714
7650
  } | undefined;
6715
7651
  derive?: {
6716
- transform: "recolor" | "palette-snap" | "scale";
7652
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
6717
7653
  map?: Record<string, string> | undefined;
6718
7654
  width?: number | undefined;
6719
7655
  height?: number | undefined;
7656
+ key?: string | undefined;
6720
7657
  palette?: string[] | undefined;
7658
+ reference?: string[] | undefined;
7659
+ skin?: string[] | undefined;
6721
7660
  mode?: "nearest" | "box" | undefined;
6722
7661
  from?: string | undefined;
6723
7662
  file?: string | undefined;
7663
+ degrees?: number | undefined;
7664
+ hue?: [number, number] | undefined;
7665
+ saturation?: number | undefined;
7666
+ brightness?: number | undefined;
7667
+ tolerance?: number | undefined;
6724
7668
  } | undefined;
6725
7669
  external?: {
6726
7670
  builder: string;
@@ -7116,8 +8060,18 @@ declare const ManifestSchema: z.ZodObject<{
7116
8060
  * it. Part of a `pixflux` asset's identity only when set.
7117
8061
  */
7118
8062
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
7119
- /** `character` only. Draw `standard` bases and every loop in isometric view. */
8063
+ /**
8064
+ * `character` and `pixflux`. Draw `standard` character bases and every
8065
+ * loop, or a `pixflux` image, in isometric view. PixelLab calls it weakly
8066
+ * guiding on `pixflux`. Part of a `pixflux` asset's identity only when true.
8067
+ */
7120
8068
  isometric: z.ZodOptional<z.ZodBoolean>;
8069
+ /**
8070
+ * `pixflux` only, with `noBackground`: how the background is cut away.
8071
+ * `simple` is PixelLab's default and faster; `complex` handles fine or
8072
+ * busy edges better. Part of the asset's identity only when set.
8073
+ */
8074
+ backgroundRemoval: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
7121
8075
  /** `character` only, `v3` bases: let PixelLab expand the prompt into a fuller one before drawing. */
7122
8076
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
7123
8077
  /**
@@ -7327,6 +8281,7 @@ declare const ManifestSchema: z.ZodObject<{
7327
8281
  hipWidth?: number | undefined;
7328
8282
  } | undefined;
7329
8283
  textGuidanceScale?: number | undefined;
8284
+ backgroundRemoval?: "simple" | "complex" | undefined;
7330
8285
  styleCharacter?: string | undefined;
7331
8286
  seed?: number | undefined;
7332
8287
  paletteName?: string | undefined;
@@ -7427,6 +8382,7 @@ declare const ManifestSchema: z.ZodObject<{
7427
8382
  hipWidth?: number | undefined;
7428
8383
  } | undefined;
7429
8384
  textGuidanceScale?: number | undefined;
8385
+ backgroundRemoval?: "simple" | "complex" | undefined;
7430
8386
  styleCharacter?: string | undefined;
7431
8387
  seed?: number | undefined;
7432
8388
  paletteName?: string | undefined;
@@ -7533,6 +8489,7 @@ declare const ManifestSchema: z.ZodObject<{
7533
8489
  hipWidth?: number | undefined;
7534
8490
  } | undefined;
7535
8491
  textGuidanceScale?: number | undefined;
8492
+ backgroundRemoval?: "simple" | "complex" | undefined;
7536
8493
  styleCharacter?: string | undefined;
7537
8494
  seed?: number | undefined;
7538
8495
  paletteName?: string | undefined;
@@ -7633,6 +8590,7 @@ declare const ManifestSchema: z.ZodObject<{
7633
8590
  hipWidth?: number | undefined;
7634
8591
  } | undefined;
7635
8592
  textGuidanceScale?: number | undefined;
8593
+ backgroundRemoval?: "simple" | "complex" | undefined;
7636
8594
  styleCharacter?: string | undefined;
7637
8595
  seed?: number | undefined;
7638
8596
  paletteName?: string | undefined;
@@ -7739,6 +8697,7 @@ declare const ManifestSchema: z.ZodObject<{
7739
8697
  hipWidth?: number | undefined;
7740
8698
  } | undefined;
7741
8699
  textGuidanceScale?: number | undefined;
8700
+ backgroundRemoval?: "simple" | "complex" | undefined;
7742
8701
  styleCharacter?: string | undefined;
7743
8702
  seed?: number | undefined;
7744
8703
  paletteName?: string | undefined;
@@ -7839,6 +8798,7 @@ declare const ManifestSchema: z.ZodObject<{
7839
8798
  hipWidth?: number | undefined;
7840
8799
  } | undefined;
7841
8800
  textGuidanceScale?: number | undefined;
8801
+ backgroundRemoval?: "simple" | "complex" | undefined;
7842
8802
  styleCharacter?: string | undefined;
7843
8803
  seed?: number | undefined;
7844
8804
  paletteName?: string | undefined;
@@ -8234,6 +9194,14 @@ declare const ManifestSchema: z.ZodObject<{
8234
9194
  fps: z.ZodDefault<z.ZodNumber>;
8235
9195
  /** v3 only: keep the resting pose as frame 0, so `frames` generated frames land as `frames + 1` files. */
8236
9196
  keepFirstFrame: z.ZodDefault<z.ZodBoolean>;
9197
+ /**
9198
+ * `character` loops: strip the ghost pixels an animation model leaves
9199
+ * around a figure (pale arcs beside the head, fragments off a limb) from
9200
+ * each frame as it is downloaded, judged against the parent's rotations.
9201
+ * Applied to the downloaded bytes, so turning it on or off re-processes
9202
+ * the frames without generating them again.
9203
+ */
9204
+ clean: z.ZodOptional<z.ZodBoolean>;
8237
9205
  /**
8238
9206
  * `template` when a template is named, otherwise `v3`; `skeleton-v3`
8239
9207
  * poses a template with PixelLab's skeleton model instead, or, with no
@@ -8268,6 +9236,7 @@ declare const ManifestSchema: z.ZodObject<{
8268
9236
  keepFirstFrame: boolean;
8269
9237
  frames?: number | undefined;
8270
9238
  template?: string | undefined;
9239
+ clean?: boolean | undefined;
8271
9240
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
8272
9241
  motionFrom?: string | undefined;
8273
9242
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -8283,6 +9252,7 @@ declare const ManifestSchema: z.ZodObject<{
8283
9252
  frames?: number | undefined;
8284
9253
  fps?: number | undefined;
8285
9254
  template?: string | undefined;
9255
+ clean?: boolean | undefined;
8286
9256
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
8287
9257
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
8288
9258
  motionFrom?: string | undefined;
@@ -8302,6 +9272,7 @@ declare const ManifestSchema: z.ZodObject<{
8302
9272
  keepFirstFrame: boolean;
8303
9273
  frames?: number | undefined;
8304
9274
  template?: string | undefined;
9275
+ clean?: boolean | undefined;
8305
9276
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
8306
9277
  motionFrom?: string | undefined;
8307
9278
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -8317,6 +9288,7 @@ declare const ManifestSchema: z.ZodObject<{
8317
9288
  frames?: number | undefined;
8318
9289
  fps?: number | undefined;
8319
9290
  template?: string | undefined;
9291
+ clean?: boolean | undefined;
8320
9292
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
8321
9293
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
8322
9294
  motionFrom?: string | undefined;
@@ -8455,6 +9427,236 @@ declare const ManifestSchema: z.ZodObject<{
8455
9427
  reference: string;
8456
9428
  additionalInstructions?: string | undefined;
8457
9429
  }>>;
9430
+ /** `character` styles: this asset's prompt, drawn as a clothing layer over existing frames. See CharacterLayerSchema. */
9431
+ layer: z.ZodOptional<z.ZodEffects<z.ZodObject<{
9432
+ /** The assets to dress, in the same style: a base, its states, its loops. Their frames share one sheet, in this order. */
9433
+ of: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
9434
+ /**
9435
+ * Manifest-relative black-and-white PNG the size of the sheet, replacing
9436
+ * the computed mask (white below each figure's neck). The escape hatch for
9437
+ * hair, hats and raised arms, where the neck is not the narrowest row.
9438
+ */
9439
+ mask: z.ZodOptional<z.ZodString>;
9440
+ /** Manifest-relative PNG the size of the sheet, replacing the computed keyed sheet. */
9441
+ keyed: z.ZodOptional<z.ZodString>;
9442
+ /** The colours that are skin. Omit on a bare base, where everything that is not outline is skin. */
9443
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9444
+ /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
9445
+ key: z.ZodOptional<z.ZodString>;
9446
+ /**
9447
+ * Remove animation ghosts from the loops before dressing them, judged
9448
+ * against the stills among `of` (bases and states). Default true; it has
9449
+ * nothing to judge against, and is skipped, when `of` holds no still.
9450
+ */
9451
+ clean: z.ZodOptional<z.ZodBoolean>;
9452
+ /** Sheet columns. Chosen to fit the provider's limit in the smallest area when omitted. */
9453
+ columns: z.ZodOptional<z.ZodNumber>;
9454
+ /**
9455
+ * Which part of each figure may be repainted. `body` (default): the
9456
+ * figure's own pixels below the neck, for clothing. `head`: everything
9457
+ * from the top of the cell to the neck, for hats, hair and helmets.
9458
+ * `around`: everything below the neck, empty space included, for held
9459
+ * items, capes and packs.
9460
+ */
9461
+ region: z.ZodOptional<z.ZodEnum<["body", "head", "around"]>>;
9462
+ /**
9463
+ * Empty pixels added around every figure on the sheet, for a layer that
9464
+ * reaches past it. Each layer frame comes back on its source frame's
9465
+ * canvas grown by this much on every side. Default 0 for `body`, 8 otherwise.
9466
+ */
9467
+ padding: z.ZodOptional<z.ZodNumber>;
9468
+ /**
9469
+ * Nudge the layer by `[x, y]` pixels, x to the right and y down: a hat a
9470
+ * pixel or two higher, a mask lower on the face. One pair moves every
9471
+ * frame; an object moves the frames of each `of` asset it names by that
9472
+ * asset's own pair, with `"*"` for the rest, since a provider can seat a
9473
+ * hat a little differently on a walk than on the stills. On a drawn layer
9474
+ * it is applied at download and changing it costs nothing; on a held item
9475
+ * it moves the item on the hand.
9476
+ */
9477
+ offset: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
9478
+ /**
9479
+ * Make this layer a held item instead of an inpaint: a sprite you already
9480
+ * have, pinned to a hand in every frame. Free and local. See
9481
+ * CharacterAttachSchema.
9482
+ */
9483
+ attach: z.ZodOptional<z.ZodObject<{
9484
+ /**
9485
+ * Manifest-relative PNG of the item. With `{direction}` in the path, one
9486
+ * file per direction the frames face (an 8-direction object's rotations);
9487
+ * without it, the same image in every direction.
9488
+ */
9489
+ item: z.ZodString;
9490
+ /**
9491
+ * Manifest-relative anchors file: every frame's skeleton, which is where
9492
+ * its hands are. `pixelkiln anchors <asset>` writes it; one file serves
9493
+ * every item the character holds.
9494
+ */
9495
+ anchors: z.ZodString;
9496
+ /** Which hand holds it. Default `right-hand`. */
9497
+ joint: z.ZodOptional<z.ZodEnum<["right-hand", "left-hand"]>>;
9498
+ /**
9499
+ * The point of the item the hand holds: `"center"` (a shield), or item
9500
+ * pixels as drawn, one `[x, y]` for every direction or one per direction.
9501
+ * Default: the middle of the item's lowest fifth, which is the handle of
9502
+ * anything drawn handle-down.
9503
+ */
9504
+ grip: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
9505
+ /**
9506
+ * Resize the item by this factor before placing it, nearest neighbour.
9507
+ * An object generator fills its canvas, so an item often comes back
9508
+ * larger than the hand it goes in. Default 1.
9509
+ */
9510
+ scale: z.ZodOptional<z.ZodNumber>;
9511
+ /**
9512
+ * Degrees to lean an upright item the way the figure faces, turned
9513
+ * locally. Shows from the side, not from the front or back. Default 0:
9514
+ * the item is used as drawn, which is right for one drawn already leaning.
9515
+ */
9516
+ tilt: z.ZodOptional<z.ZodNumber>;
9517
+ /** Degrees to tip an upright item outward from the body, seen from the front and back. Default 0. */
9518
+ lean: z.ZodOptional<z.ZodNumber>;
9519
+ /**
9520
+ * Whether the body covers the item. `auto` (default) follows each frame's
9521
+ * skeleton: the item goes behind the figure when its hand is.
9522
+ */
9523
+ depth: z.ZodOptional<z.ZodEnum<["auto", "front", "behind"]>>;
9524
+ /**
9525
+ * Redraw the hand around the item so it is held, not resting on the
9526
+ * hand: one inpaint over a small disc at each hand, the rest of the item
9527
+ * untouched. `true`, or `{ "radius": 9 }` for the disc in pixels. This
9528
+ * makes the layer a paid one (one inpaint, priced by the sheet); the
9529
+ * asset's `prompt`, when it has one, tells the provider what the item is.
9530
+ */
9531
+ grasp: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
9532
+ radius: z.ZodOptional<z.ZodNumber>;
9533
+ }, "strict", z.ZodTypeAny, {
9534
+ radius?: number | undefined;
9535
+ }, {
9536
+ radius?: number | undefined;
9537
+ }>]>>;
9538
+ }, "strict", z.ZodTypeAny, {
9539
+ item: string;
9540
+ anchors: string;
9541
+ depth?: "auto" | "front" | "behind" | undefined;
9542
+ joint?: "right-hand" | "left-hand" | undefined;
9543
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
9544
+ scale?: number | undefined;
9545
+ tilt?: number | undefined;
9546
+ lean?: number | undefined;
9547
+ grasp?: boolean | {
9548
+ radius?: number | undefined;
9549
+ } | undefined;
9550
+ }, {
9551
+ item: string;
9552
+ anchors: string;
9553
+ depth?: "auto" | "front" | "behind" | undefined;
9554
+ joint?: "right-hand" | "left-hand" | undefined;
9555
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
9556
+ scale?: number | undefined;
9557
+ tilt?: number | undefined;
9558
+ lean?: number | undefined;
9559
+ grasp?: boolean | {
9560
+ radius?: number | undefined;
9561
+ } | undefined;
9562
+ }>>;
9563
+ }, "strict", z.ZodTypeAny, {
9564
+ of: string | string[];
9565
+ key?: string | undefined;
9566
+ mask?: string | undefined;
9567
+ keyed?: string | undefined;
9568
+ skin?: string[] | undefined;
9569
+ clean?: boolean | undefined;
9570
+ columns?: number | undefined;
9571
+ region?: "body" | "head" | "around" | undefined;
9572
+ padding?: number | undefined;
9573
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
9574
+ attach?: {
9575
+ item: string;
9576
+ anchors: string;
9577
+ depth?: "auto" | "front" | "behind" | undefined;
9578
+ joint?: "right-hand" | "left-hand" | undefined;
9579
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
9580
+ scale?: number | undefined;
9581
+ tilt?: number | undefined;
9582
+ lean?: number | undefined;
9583
+ grasp?: boolean | {
9584
+ radius?: number | undefined;
9585
+ } | undefined;
9586
+ } | undefined;
9587
+ }, {
9588
+ of: string | string[];
9589
+ key?: string | undefined;
9590
+ mask?: string | undefined;
9591
+ keyed?: string | undefined;
9592
+ skin?: string[] | undefined;
9593
+ clean?: boolean | undefined;
9594
+ columns?: number | undefined;
9595
+ region?: "body" | "head" | "around" | undefined;
9596
+ padding?: number | undefined;
9597
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
9598
+ attach?: {
9599
+ item: string;
9600
+ anchors: string;
9601
+ depth?: "auto" | "front" | "behind" | undefined;
9602
+ joint?: "right-hand" | "left-hand" | undefined;
9603
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
9604
+ scale?: number | undefined;
9605
+ tilt?: number | undefined;
9606
+ lean?: number | undefined;
9607
+ grasp?: boolean | {
9608
+ radius?: number | undefined;
9609
+ } | undefined;
9610
+ } | undefined;
9611
+ }>, {
9612
+ of: string | string[];
9613
+ key?: string | undefined;
9614
+ mask?: string | undefined;
9615
+ keyed?: string | undefined;
9616
+ skin?: string[] | undefined;
9617
+ clean?: boolean | undefined;
9618
+ columns?: number | undefined;
9619
+ region?: "body" | "head" | "around" | undefined;
9620
+ padding?: number | undefined;
9621
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
9622
+ attach?: {
9623
+ item: string;
9624
+ anchors: string;
9625
+ depth?: "auto" | "front" | "behind" | undefined;
9626
+ joint?: "right-hand" | "left-hand" | undefined;
9627
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
9628
+ scale?: number | undefined;
9629
+ tilt?: number | undefined;
9630
+ lean?: number | undefined;
9631
+ grasp?: boolean | {
9632
+ radius?: number | undefined;
9633
+ } | undefined;
9634
+ } | undefined;
9635
+ }, {
9636
+ of: string | string[];
9637
+ key?: string | undefined;
9638
+ mask?: string | undefined;
9639
+ keyed?: string | undefined;
9640
+ skin?: string[] | undefined;
9641
+ clean?: boolean | undefined;
9642
+ columns?: number | undefined;
9643
+ region?: "body" | "head" | "around" | undefined;
9644
+ padding?: number | undefined;
9645
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
9646
+ attach?: {
9647
+ item: string;
9648
+ anchors: string;
9649
+ depth?: "auto" | "front" | "behind" | undefined;
9650
+ joint?: "right-hand" | "left-hand" | undefined;
9651
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
9652
+ scale?: number | undefined;
9653
+ tilt?: number | undefined;
9654
+ lean?: number | undefined;
9655
+ grasp?: boolean | {
9656
+ radius?: number | undefined;
9657
+ } | undefined;
9658
+ } | undefined;
9659
+ }>>;
8458
9660
  /** `map` styles only: draw this object in the style of a scene image. See `MapSceneSchema`. */
8459
9661
  scene: z.ZodOptional<z.ZodObject<{
8460
9662
  /** Manifest-relative PNG of the scene. Any earlier asset's output file works. */
@@ -8692,6 +9894,12 @@ declare const ManifestSchema: z.ZodObject<{
8692
9894
  * instead of starting from nothing.
8693
9895
  */
8694
9896
  initImage: z.ZodOptional<z.ZodString>;
9897
+ /**
9898
+ * `pixflux` styles: the way the subject faces. PixelLab calls it weakly
9899
+ * guiding, so treat it as a nudge. Part of the asset's identity only
9900
+ * when set.
9901
+ */
9902
+ direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
8695
9903
  /**
8696
9904
  * With `initImage`: how strongly the starting image holds, 1 to 999.
8697
9905
  * PixelLab's default is 300.
@@ -8723,7 +9931,20 @@ declare const ManifestSchema: z.ZodObject<{
8723
9931
  from: z.ZodOptional<z.ZodString>;
8724
9932
  /** A committed PNG, relative to the manifest, as the input. */
8725
9933
  file: z.ZodOptional<z.ZodString>;
8726
- transform: z.ZodEnum<["recolor", "palette-snap", "scale"]>;
9934
+ transform: z.ZodEnum<["recolor", "palette-snap", "hue-shift", "scale", "key-skin", "despeckle"]>;
9935
+ /** hue-shift: degrees to turn each pixel's hue by, -180 to 180. */
9936
+ degrees: z.ZodOptional<z.ZodNumber>;
9937
+ /**
9938
+ * hue-shift: only pixels whose hue lies in this window, `[from, to]` in
9939
+ * degrees going clockwise (so `[330, 30]` is the reds), are changed.
9940
+ * Everything is, when omitted. Greys and near-blacks have no hue to speak
9941
+ * of and are left alone either way.
9942
+ */
9943
+ hue: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
9944
+ /** hue-shift: multiply saturation by this, 0 to 4. Default 1. */
9945
+ saturation: z.ZodOptional<z.ZodNumber>;
9946
+ /** hue-shift: multiply brightness by this, 0 to 4. Default 1. */
9947
+ brightness: z.ZodOptional<z.ZodNumber>;
8727
9948
  /** recolor: exact replacements, `#rrggbb` to `#rrggbb`. Unmapped colors and every alpha value stay. */
8728
9949
  map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8729
9950
  /** palette-snap: the closed palette every visible pixel moves to. */
@@ -8733,42 +9954,86 @@ declare const ManifestSchema: z.ZodObject<{
8733
9954
  height: z.ZodOptional<z.ZodNumber>;
8734
9955
  /** scale: `nearest` (default) keeps hard edges; `box` averages the covered pixels. */
8735
9956
  mode: z.ZodOptional<z.ZodEnum<["nearest", "box"]>>;
9957
+ /** key-skin: the colours that are skin; every pixel that is not outline when omitted. */
9958
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9959
+ /** key-skin: the stand-in colour. Default cyan. */
9960
+ key: z.ZodOptional<z.ZodString>;
9961
+ /**
9962
+ * despeckle: committed PNGs, relative to the manifest, whose colours are known good (the character's stills).
9963
+ * hue-shift: only pixels in a colour one of these PNGs uses are changed, which
9964
+ * is how skin on a layer (the fingers of a grip) is told from the item in it.
9965
+ */
9966
+ reference: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9967
+ /** key-skin: how far a pixel may sit from a `skin` colour. despeckle: how near a reference colour must be to vouch for a pixel. */
9968
+ tolerance: z.ZodOptional<z.ZodNumber>;
8736
9969
  }, "strict", z.ZodTypeAny, {
8737
- transform: "recolor" | "palette-snap" | "scale";
9970
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
8738
9971
  map?: Record<string, string> | undefined;
8739
9972
  width?: number | undefined;
8740
9973
  height?: number | undefined;
9974
+ key?: string | undefined;
8741
9975
  palette?: string[] | undefined;
9976
+ reference?: string[] | undefined;
9977
+ skin?: string[] | undefined;
8742
9978
  mode?: "nearest" | "box" | undefined;
8743
9979
  from?: string | undefined;
8744
9980
  file?: string | undefined;
9981
+ degrees?: number | undefined;
9982
+ hue?: [number, number] | undefined;
9983
+ saturation?: number | undefined;
9984
+ brightness?: number | undefined;
9985
+ tolerance?: number | undefined;
8745
9986
  }, {
8746
- transform: "recolor" | "palette-snap" | "scale";
9987
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
8747
9988
  map?: Record<string, string> | undefined;
8748
9989
  width?: number | undefined;
8749
9990
  height?: number | undefined;
9991
+ key?: string | undefined;
8750
9992
  palette?: string[] | undefined;
9993
+ reference?: string[] | undefined;
9994
+ skin?: string[] | undefined;
8751
9995
  mode?: "nearest" | "box" | undefined;
8752
9996
  from?: string | undefined;
8753
9997
  file?: string | undefined;
9998
+ degrees?: number | undefined;
9999
+ hue?: [number, number] | undefined;
10000
+ saturation?: number | undefined;
10001
+ brightness?: number | undefined;
10002
+ tolerance?: number | undefined;
8754
10003
  }>, {
8755
- transform: "recolor" | "palette-snap" | "scale";
10004
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
8756
10005
  map?: Record<string, string> | undefined;
8757
10006
  width?: number | undefined;
8758
10007
  height?: number | undefined;
10008
+ key?: string | undefined;
8759
10009
  palette?: string[] | undefined;
10010
+ reference?: string[] | undefined;
10011
+ skin?: string[] | undefined;
8760
10012
  mode?: "nearest" | "box" | undefined;
8761
10013
  from?: string | undefined;
8762
10014
  file?: string | undefined;
10015
+ degrees?: number | undefined;
10016
+ hue?: [number, number] | undefined;
10017
+ saturation?: number | undefined;
10018
+ brightness?: number | undefined;
10019
+ tolerance?: number | undefined;
8763
10020
  }, {
8764
- transform: "recolor" | "palette-snap" | "scale";
10021
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
8765
10022
  map?: Record<string, string> | undefined;
8766
10023
  width?: number | undefined;
8767
10024
  height?: number | undefined;
10025
+ key?: string | undefined;
8768
10026
  palette?: string[] | undefined;
10027
+ reference?: string[] | undefined;
10028
+ skin?: string[] | undefined;
8769
10029
  mode?: "nearest" | "box" | undefined;
8770
10030
  from?: string | undefined;
8771
10031
  file?: string | undefined;
10032
+ degrees?: number | undefined;
10033
+ hue?: [number, number] | undefined;
10034
+ saturation?: number | undefined;
10035
+ brightness?: number | undefined;
10036
+ tolerance?: number | undefined;
8772
10037
  }>>;
8773
10038
  /** Built by a tool outside pixelkiln; see AssetExternalSchema. Never generated. */
8774
10039
  external: z.ZodOptional<z.ZodObject<{
@@ -8824,6 +10089,7 @@ declare const ManifestSchema: z.ZodObject<{
8824
10089
  keepFirstFrame: boolean;
8825
10090
  frames?: number | undefined;
8826
10091
  template?: string | undefined;
10092
+ clean?: boolean | undefined;
8827
10093
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
8828
10094
  motionFrom?: string | undefined;
8829
10095
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -8851,6 +10117,7 @@ declare const ManifestSchema: z.ZodObject<{
8851
10117
  } | undefined;
8852
10118
  size?: number | undefined;
8853
10119
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
10120
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
8854
10121
  state?: {
8855
10122
  of: string;
8856
10123
  paletteFromReference: boolean;
@@ -8868,6 +10135,31 @@ declare const ManifestSchema: z.ZodObject<{
8868
10135
  reference: string;
8869
10136
  additionalInstructions?: string | undefined;
8870
10137
  } | undefined;
10138
+ layer?: {
10139
+ of: string | string[];
10140
+ key?: string | undefined;
10141
+ mask?: string | undefined;
10142
+ keyed?: string | undefined;
10143
+ skin?: string[] | undefined;
10144
+ clean?: boolean | undefined;
10145
+ columns?: number | undefined;
10146
+ region?: "body" | "head" | "around" | undefined;
10147
+ padding?: number | undefined;
10148
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
10149
+ attach?: {
10150
+ item: string;
10151
+ anchors: string;
10152
+ depth?: "auto" | "front" | "behind" | undefined;
10153
+ joint?: "right-hand" | "left-hand" | undefined;
10154
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
10155
+ scale?: number | undefined;
10156
+ tilt?: number | undefined;
10157
+ lean?: number | undefined;
10158
+ grasp?: boolean | {
10159
+ radius?: number | undefined;
10160
+ } | undefined;
10161
+ } | undefined;
10162
+ } | undefined;
8871
10163
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
8872
10164
  headSize?: number | undefined;
8873
10165
  armsLength?: number | undefined;
@@ -8975,14 +10267,22 @@ declare const ManifestSchema: z.ZodObject<{
8975
10267
  transition?: string | undefined;
8976
10268
  } | undefined;
8977
10269
  derive?: {
8978
- transform: "recolor" | "palette-snap" | "scale";
10270
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
8979
10271
  map?: Record<string, string> | undefined;
8980
10272
  width?: number | undefined;
8981
10273
  height?: number | undefined;
10274
+ key?: string | undefined;
8982
10275
  palette?: string[] | undefined;
10276
+ reference?: string[] | undefined;
10277
+ skin?: string[] | undefined;
8983
10278
  mode?: "nearest" | "box" | undefined;
8984
10279
  from?: string | undefined;
8985
10280
  file?: string | undefined;
10281
+ degrees?: number | undefined;
10282
+ hue?: [number, number] | undefined;
10283
+ saturation?: number | undefined;
10284
+ brightness?: number | undefined;
10285
+ tolerance?: number | undefined;
8986
10286
  } | undefined;
8987
10287
  external?: {
8988
10288
  builder: string;
@@ -8997,6 +10297,7 @@ declare const ManifestSchema: z.ZodObject<{
8997
10297
  frames?: number | undefined;
8998
10298
  fps?: number | undefined;
8999
10299
  template?: string | undefined;
10300
+ clean?: boolean | undefined;
9000
10301
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9001
10302
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
9002
10303
  motionFrom?: string | undefined;
@@ -9026,6 +10327,7 @@ declare const ManifestSchema: z.ZodObject<{
9026
10327
  } | undefined;
9027
10328
  size?: number | undefined;
9028
10329
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
10330
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9029
10331
  state?: {
9030
10332
  of: string;
9031
10333
  paletteFromReference?: boolean | undefined;
@@ -9043,6 +10345,31 @@ declare const ManifestSchema: z.ZodObject<{
9043
10345
  reference: string;
9044
10346
  additionalInstructions?: string | undefined;
9045
10347
  } | undefined;
10348
+ layer?: {
10349
+ of: string | string[];
10350
+ key?: string | undefined;
10351
+ mask?: string | undefined;
10352
+ keyed?: string | undefined;
10353
+ skin?: string[] | undefined;
10354
+ clean?: boolean | undefined;
10355
+ columns?: number | undefined;
10356
+ region?: "body" | "head" | "around" | undefined;
10357
+ padding?: number | undefined;
10358
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
10359
+ attach?: {
10360
+ item: string;
10361
+ anchors: string;
10362
+ depth?: "auto" | "front" | "behind" | undefined;
10363
+ joint?: "right-hand" | "left-hand" | undefined;
10364
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
10365
+ scale?: number | undefined;
10366
+ tilt?: number | undefined;
10367
+ lean?: number | undefined;
10368
+ grasp?: boolean | {
10369
+ radius?: number | undefined;
10370
+ } | undefined;
10371
+ } | undefined;
10372
+ } | undefined;
9046
10373
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
9047
10374
  headSize?: number | undefined;
9048
10375
  armsLength?: number | undefined;
@@ -9152,14 +10479,22 @@ declare const ManifestSchema: z.ZodObject<{
9152
10479
  transition?: string | undefined;
9153
10480
  } | undefined;
9154
10481
  derive?: {
9155
- transform: "recolor" | "palette-snap" | "scale";
10482
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
9156
10483
  map?: Record<string, string> | undefined;
9157
10484
  width?: number | undefined;
9158
10485
  height?: number | undefined;
10486
+ key?: string | undefined;
9159
10487
  palette?: string[] | undefined;
10488
+ reference?: string[] | undefined;
10489
+ skin?: string[] | undefined;
9160
10490
  mode?: "nearest" | "box" | undefined;
9161
10491
  from?: string | undefined;
9162
10492
  file?: string | undefined;
10493
+ degrees?: number | undefined;
10494
+ hue?: [number, number] | undefined;
10495
+ saturation?: number | undefined;
10496
+ brightness?: number | undefined;
10497
+ tolerance?: number | undefined;
9163
10498
  } | undefined;
9164
10499
  external?: {
9165
10500
  builder: string;
@@ -9184,6 +10519,7 @@ declare const ManifestSchema: z.ZodObject<{
9184
10519
  keepFirstFrame: boolean;
9185
10520
  frames?: number | undefined;
9186
10521
  template?: string | undefined;
10522
+ clean?: boolean | undefined;
9187
10523
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
9188
10524
  motionFrom?: string | undefined;
9189
10525
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -9211,6 +10547,7 @@ declare const ManifestSchema: z.ZodObject<{
9211
10547
  } | undefined;
9212
10548
  size?: number | undefined;
9213
10549
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
10550
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9214
10551
  state?: {
9215
10552
  of: string;
9216
10553
  paletteFromReference: boolean;
@@ -9228,6 +10565,31 @@ declare const ManifestSchema: z.ZodObject<{
9228
10565
  reference: string;
9229
10566
  additionalInstructions?: string | undefined;
9230
10567
  } | undefined;
10568
+ layer?: {
10569
+ of: string | string[];
10570
+ key?: string | undefined;
10571
+ mask?: string | undefined;
10572
+ keyed?: string | undefined;
10573
+ skin?: string[] | undefined;
10574
+ clean?: boolean | undefined;
10575
+ columns?: number | undefined;
10576
+ region?: "body" | "head" | "around" | undefined;
10577
+ padding?: number | undefined;
10578
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
10579
+ attach?: {
10580
+ item: string;
10581
+ anchors: string;
10582
+ depth?: "auto" | "front" | "behind" | undefined;
10583
+ joint?: "right-hand" | "left-hand" | undefined;
10584
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
10585
+ scale?: number | undefined;
10586
+ tilt?: number | undefined;
10587
+ lean?: number | undefined;
10588
+ grasp?: boolean | {
10589
+ radius?: number | undefined;
10590
+ } | undefined;
10591
+ } | undefined;
10592
+ } | undefined;
9231
10593
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
9232
10594
  headSize?: number | undefined;
9233
10595
  armsLength?: number | undefined;
@@ -9335,14 +10697,22 @@ declare const ManifestSchema: z.ZodObject<{
9335
10697
  transition?: string | undefined;
9336
10698
  } | undefined;
9337
10699
  derive?: {
9338
- transform: "recolor" | "palette-snap" | "scale";
10700
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
9339
10701
  map?: Record<string, string> | undefined;
9340
10702
  width?: number | undefined;
9341
10703
  height?: number | undefined;
10704
+ key?: string | undefined;
9342
10705
  palette?: string[] | undefined;
10706
+ reference?: string[] | undefined;
10707
+ skin?: string[] | undefined;
9343
10708
  mode?: "nearest" | "box" | undefined;
9344
10709
  from?: string | undefined;
9345
10710
  file?: string | undefined;
10711
+ degrees?: number | undefined;
10712
+ hue?: [number, number] | undefined;
10713
+ saturation?: number | undefined;
10714
+ brightness?: number | undefined;
10715
+ tolerance?: number | undefined;
9346
10716
  } | undefined;
9347
10717
  external?: {
9348
10718
  builder: string;
@@ -9357,6 +10727,7 @@ declare const ManifestSchema: z.ZodObject<{
9357
10727
  frames?: number | undefined;
9358
10728
  fps?: number | undefined;
9359
10729
  template?: string | undefined;
10730
+ clean?: boolean | undefined;
9360
10731
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9361
10732
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
9362
10733
  motionFrom?: string | undefined;
@@ -9386,6 +10757,7 @@ declare const ManifestSchema: z.ZodObject<{
9386
10757
  } | undefined;
9387
10758
  size?: number | undefined;
9388
10759
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
10760
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9389
10761
  state?: {
9390
10762
  of: string;
9391
10763
  paletteFromReference?: boolean | undefined;
@@ -9403,6 +10775,31 @@ declare const ManifestSchema: z.ZodObject<{
9403
10775
  reference: string;
9404
10776
  additionalInstructions?: string | undefined;
9405
10777
  } | undefined;
10778
+ layer?: {
10779
+ of: string | string[];
10780
+ key?: string | undefined;
10781
+ mask?: string | undefined;
10782
+ keyed?: string | undefined;
10783
+ skin?: string[] | undefined;
10784
+ clean?: boolean | undefined;
10785
+ columns?: number | undefined;
10786
+ region?: "body" | "head" | "around" | undefined;
10787
+ padding?: number | undefined;
10788
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
10789
+ attach?: {
10790
+ item: string;
10791
+ anchors: string;
10792
+ depth?: "auto" | "front" | "behind" | undefined;
10793
+ joint?: "right-hand" | "left-hand" | undefined;
10794
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
10795
+ scale?: number | undefined;
10796
+ tilt?: number | undefined;
10797
+ lean?: number | undefined;
10798
+ grasp?: boolean | {
10799
+ radius?: number | undefined;
10800
+ } | undefined;
10801
+ } | undefined;
10802
+ } | undefined;
9406
10803
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
9407
10804
  headSize?: number | undefined;
9408
10805
  armsLength?: number | undefined;
@@ -9512,14 +10909,22 @@ declare const ManifestSchema: z.ZodObject<{
9512
10909
  transition?: string | undefined;
9513
10910
  } | undefined;
9514
10911
  derive?: {
9515
- transform: "recolor" | "palette-snap" | "scale";
10912
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
9516
10913
  map?: Record<string, string> | undefined;
9517
10914
  width?: number | undefined;
9518
10915
  height?: number | undefined;
10916
+ key?: string | undefined;
9519
10917
  palette?: string[] | undefined;
10918
+ reference?: string[] | undefined;
10919
+ skin?: string[] | undefined;
9520
10920
  mode?: "nearest" | "box" | undefined;
9521
10921
  from?: string | undefined;
9522
10922
  file?: string | undefined;
10923
+ degrees?: number | undefined;
10924
+ hue?: [number, number] | undefined;
10925
+ saturation?: number | undefined;
10926
+ brightness?: number | undefined;
10927
+ tolerance?: number | undefined;
9523
10928
  } | undefined;
9524
10929
  external?: {
9525
10930
  builder: string;
@@ -9617,6 +11022,7 @@ declare const ManifestSchema: z.ZodObject<{
9617
11022
  hipWidth?: number | undefined;
9618
11023
  } | undefined;
9619
11024
  textGuidanceScale?: number | undefined;
11025
+ backgroundRemoval?: "simple" | "complex" | undefined;
9620
11026
  styleCharacter?: string | undefined;
9621
11027
  seed?: number | undefined;
9622
11028
  paletteName?: string | undefined;
@@ -9652,6 +11058,7 @@ declare const ManifestSchema: z.ZodObject<{
9652
11058
  keepFirstFrame: boolean;
9653
11059
  frames?: number | undefined;
9654
11060
  template?: string | undefined;
11061
+ clean?: boolean | undefined;
9655
11062
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
9656
11063
  motionFrom?: string | undefined;
9657
11064
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -9679,6 +11086,7 @@ declare const ManifestSchema: z.ZodObject<{
9679
11086
  } | undefined;
9680
11087
  size?: number | undefined;
9681
11088
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
11089
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9682
11090
  state?: {
9683
11091
  of: string;
9684
11092
  paletteFromReference: boolean;
@@ -9696,6 +11104,31 @@ declare const ManifestSchema: z.ZodObject<{
9696
11104
  reference: string;
9697
11105
  additionalInstructions?: string | undefined;
9698
11106
  } | undefined;
11107
+ layer?: {
11108
+ of: string | string[];
11109
+ key?: string | undefined;
11110
+ mask?: string | undefined;
11111
+ keyed?: string | undefined;
11112
+ skin?: string[] | undefined;
11113
+ clean?: boolean | undefined;
11114
+ columns?: number | undefined;
11115
+ region?: "body" | "head" | "around" | undefined;
11116
+ padding?: number | undefined;
11117
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
11118
+ attach?: {
11119
+ item: string;
11120
+ anchors: string;
11121
+ depth?: "auto" | "front" | "behind" | undefined;
11122
+ joint?: "right-hand" | "left-hand" | undefined;
11123
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
11124
+ scale?: number | undefined;
11125
+ tilt?: number | undefined;
11126
+ lean?: number | undefined;
11127
+ grasp?: boolean | {
11128
+ radius?: number | undefined;
11129
+ } | undefined;
11130
+ } | undefined;
11131
+ } | undefined;
9699
11132
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
9700
11133
  headSize?: number | undefined;
9701
11134
  armsLength?: number | undefined;
@@ -9803,14 +11236,22 @@ declare const ManifestSchema: z.ZodObject<{
9803
11236
  transition?: string | undefined;
9804
11237
  } | undefined;
9805
11238
  derive?: {
9806
- transform: "recolor" | "palette-snap" | "scale";
11239
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
9807
11240
  map?: Record<string, string> | undefined;
9808
11241
  width?: number | undefined;
9809
11242
  height?: number | undefined;
11243
+ key?: string | undefined;
9810
11244
  palette?: string[] | undefined;
11245
+ reference?: string[] | undefined;
11246
+ skin?: string[] | undefined;
9811
11247
  mode?: "nearest" | "box" | undefined;
9812
11248
  from?: string | undefined;
9813
11249
  file?: string | undefined;
11250
+ degrees?: number | undefined;
11251
+ hue?: [number, number] | undefined;
11252
+ saturation?: number | undefined;
11253
+ brightness?: number | undefined;
11254
+ tolerance?: number | undefined;
9814
11255
  } | undefined;
9815
11256
  external?: {
9816
11257
  builder: string;
@@ -9903,6 +11344,7 @@ declare const ManifestSchema: z.ZodObject<{
9903
11344
  hipWidth?: number | undefined;
9904
11345
  } | undefined;
9905
11346
  textGuidanceScale?: number | undefined;
11347
+ backgroundRemoval?: "simple" | "complex" | undefined;
9906
11348
  styleCharacter?: string | undefined;
9907
11349
  seed?: number | undefined;
9908
11350
  paletteName?: string | undefined;
@@ -9934,6 +11376,7 @@ declare const ManifestSchema: z.ZodObject<{
9934
11376
  frames?: number | undefined;
9935
11377
  fps?: number | undefined;
9936
11378
  template?: string | undefined;
11379
+ clean?: boolean | undefined;
9937
11380
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9938
11381
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
9939
11382
  motionFrom?: string | undefined;
@@ -9963,6 +11406,7 @@ declare const ManifestSchema: z.ZodObject<{
9963
11406
  } | undefined;
9964
11407
  size?: number | undefined;
9965
11408
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
11409
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
9966
11410
  state?: {
9967
11411
  of: string;
9968
11412
  paletteFromReference?: boolean | undefined;
@@ -9980,6 +11424,31 @@ declare const ManifestSchema: z.ZodObject<{
9980
11424
  reference: string;
9981
11425
  additionalInstructions?: string | undefined;
9982
11426
  } | undefined;
11427
+ layer?: {
11428
+ of: string | string[];
11429
+ key?: string | undefined;
11430
+ mask?: string | undefined;
11431
+ keyed?: string | undefined;
11432
+ skin?: string[] | undefined;
11433
+ clean?: boolean | undefined;
11434
+ columns?: number | undefined;
11435
+ region?: "body" | "head" | "around" | undefined;
11436
+ padding?: number | undefined;
11437
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
11438
+ attach?: {
11439
+ item: string;
11440
+ anchors: string;
11441
+ depth?: "auto" | "front" | "behind" | undefined;
11442
+ joint?: "right-hand" | "left-hand" | undefined;
11443
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
11444
+ scale?: number | undefined;
11445
+ tilt?: number | undefined;
11446
+ lean?: number | undefined;
11447
+ grasp?: boolean | {
11448
+ radius?: number | undefined;
11449
+ } | undefined;
11450
+ } | undefined;
11451
+ } | undefined;
9983
11452
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
9984
11453
  headSize?: number | undefined;
9985
11454
  armsLength?: number | undefined;
@@ -10089,14 +11558,22 @@ declare const ManifestSchema: z.ZodObject<{
10089
11558
  transition?: string | undefined;
10090
11559
  } | undefined;
10091
11560
  derive?: {
10092
- transform: "recolor" | "palette-snap" | "scale";
11561
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
10093
11562
  map?: Record<string, string> | undefined;
10094
11563
  width?: number | undefined;
10095
11564
  height?: number | undefined;
11565
+ key?: string | undefined;
10096
11566
  palette?: string[] | undefined;
11567
+ reference?: string[] | undefined;
11568
+ skin?: string[] | undefined;
10097
11569
  mode?: "nearest" | "box" | undefined;
10098
11570
  from?: string | undefined;
10099
11571
  file?: string | undefined;
11572
+ degrees?: number | undefined;
11573
+ hue?: [number, number] | undefined;
11574
+ saturation?: number | undefined;
11575
+ brightness?: number | undefined;
11576
+ tolerance?: number | undefined;
10100
11577
  } | undefined;
10101
11578
  external?: {
10102
11579
  builder: string;
@@ -10493,8 +11970,18 @@ declare const ManifestInputSchema: z.ZodObject<{
10493
11970
  * it. Part of a `pixflux` asset's identity only when set.
10494
11971
  */
10495
11972
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
10496
- /** `character` only. Draw `standard` bases and every loop in isometric view. */
11973
+ /**
11974
+ * `character` and `pixflux`. Draw `standard` character bases and every
11975
+ * loop, or a `pixflux` image, in isometric view. PixelLab calls it weakly
11976
+ * guiding on `pixflux`. Part of a `pixflux` asset's identity only when true.
11977
+ */
10497
11978
  isometric: z.ZodOptional<z.ZodBoolean>;
11979
+ /**
11980
+ * `pixflux` only, with `noBackground`: how the background is cut away.
11981
+ * `simple` is PixelLab's default and faster; `complex` handles fine or
11982
+ * busy edges better. Part of the asset's identity only when set.
11983
+ */
11984
+ backgroundRemoval: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
10498
11985
  /** `character` only, `v3` bases: let PixelLab expand the prompt into a fuller one before drawing. */
10499
11986
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
10500
11987
  /**
@@ -10704,6 +12191,7 @@ declare const ManifestInputSchema: z.ZodObject<{
10704
12191
  hipWidth?: number | undefined;
10705
12192
  } | undefined;
10706
12193
  textGuidanceScale?: number | undefined;
12194
+ backgroundRemoval?: "simple" | "complex" | undefined;
10707
12195
  styleCharacter?: string | undefined;
10708
12196
  seed?: number | undefined;
10709
12197
  paletteName?: string | undefined;
@@ -10804,6 +12292,7 @@ declare const ManifestInputSchema: z.ZodObject<{
10804
12292
  hipWidth?: number | undefined;
10805
12293
  } | undefined;
10806
12294
  textGuidanceScale?: number | undefined;
12295
+ backgroundRemoval?: "simple" | "complex" | undefined;
10807
12296
  styleCharacter?: string | undefined;
10808
12297
  seed?: number | undefined;
10809
12298
  paletteName?: string | undefined;
@@ -10910,6 +12399,7 @@ declare const ManifestInputSchema: z.ZodObject<{
10910
12399
  hipWidth?: number | undefined;
10911
12400
  } | undefined;
10912
12401
  textGuidanceScale?: number | undefined;
12402
+ backgroundRemoval?: "simple" | "complex" | undefined;
10913
12403
  styleCharacter?: string | undefined;
10914
12404
  seed?: number | undefined;
10915
12405
  paletteName?: string | undefined;
@@ -11010,6 +12500,7 @@ declare const ManifestInputSchema: z.ZodObject<{
11010
12500
  hipWidth?: number | undefined;
11011
12501
  } | undefined;
11012
12502
  textGuidanceScale?: number | undefined;
12503
+ backgroundRemoval?: "simple" | "complex" | undefined;
11013
12504
  styleCharacter?: string | undefined;
11014
12505
  seed?: number | undefined;
11015
12506
  paletteName?: string | undefined;
@@ -11116,6 +12607,7 @@ declare const ManifestInputSchema: z.ZodObject<{
11116
12607
  hipWidth?: number | undefined;
11117
12608
  } | undefined;
11118
12609
  textGuidanceScale?: number | undefined;
12610
+ backgroundRemoval?: "simple" | "complex" | undefined;
11119
12611
  styleCharacter?: string | undefined;
11120
12612
  seed?: number | undefined;
11121
12613
  paletteName?: string | undefined;
@@ -11216,6 +12708,7 @@ declare const ManifestInputSchema: z.ZodObject<{
11216
12708
  hipWidth?: number | undefined;
11217
12709
  } | undefined;
11218
12710
  textGuidanceScale?: number | undefined;
12711
+ backgroundRemoval?: "simple" | "complex" | undefined;
11219
12712
  styleCharacter?: string | undefined;
11220
12713
  seed?: number | undefined;
11221
12714
  paletteName?: string | undefined;
@@ -11343,6 +12836,7 @@ declare const ManifestInputSchema: z.ZodObject<{
11343
12836
  }>]>>>;
11344
12837
  textGuidanceScale: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
11345
12838
  isometric: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
12839
+ backgroundRemoval: z.ZodOptional<z.ZodOptional<z.ZodEnum<["simple", "complex"]>>>;
11346
12840
  enhancePrompt: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
11347
12841
  styleCharacter: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11348
12842
  seed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
@@ -11485,6 +12979,7 @@ declare const ManifestInputSchema: z.ZodObject<{
11485
12979
  hipWidth?: number | undefined;
11486
12980
  } | undefined;
11487
12981
  textGuidanceScale?: number | undefined;
12982
+ backgroundRemoval?: "simple" | "complex" | undefined;
11488
12983
  styleCharacter?: string | undefined;
11489
12984
  seed?: number | undefined;
11490
12985
  paletteName?: string | undefined;
@@ -11589,6 +13084,7 @@ declare const ManifestInputSchema: z.ZodObject<{
11589
13084
  hipWidth?: number | undefined;
11590
13085
  } | undefined;
11591
13086
  textGuidanceScale?: number | undefined;
13087
+ backgroundRemoval?: "simple" | "complex" | undefined;
11592
13088
  styleCharacter?: string | undefined;
11593
13089
  seed?: number | undefined;
11594
13090
  paletteName?: string | undefined;
@@ -11984,6 +13480,14 @@ declare const ManifestInputSchema: z.ZodObject<{
11984
13480
  fps: z.ZodDefault<z.ZodNumber>;
11985
13481
  /** v3 only: keep the resting pose as frame 0, so `frames` generated frames land as `frames + 1` files. */
11986
13482
  keepFirstFrame: z.ZodDefault<z.ZodBoolean>;
13483
+ /**
13484
+ * `character` loops: strip the ghost pixels an animation model leaves
13485
+ * around a figure (pale arcs beside the head, fragments off a limb) from
13486
+ * each frame as it is downloaded, judged against the parent's rotations.
13487
+ * Applied to the downloaded bytes, so turning it on or off re-processes
13488
+ * the frames without generating them again.
13489
+ */
13490
+ clean: z.ZodOptional<z.ZodBoolean>;
11987
13491
  /**
11988
13492
  * `template` when a template is named, otherwise `v3`; `skeleton-v3`
11989
13493
  * poses a template with PixelLab's skeleton model instead, or, with no
@@ -12018,6 +13522,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12018
13522
  keepFirstFrame: boolean;
12019
13523
  frames?: number | undefined;
12020
13524
  template?: string | undefined;
13525
+ clean?: boolean | undefined;
12021
13526
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12022
13527
  motionFrom?: string | undefined;
12023
13528
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -12033,6 +13538,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12033
13538
  frames?: number | undefined;
12034
13539
  fps?: number | undefined;
12035
13540
  template?: string | undefined;
13541
+ clean?: boolean | undefined;
12036
13542
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
12037
13543
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12038
13544
  motionFrom?: string | undefined;
@@ -12052,6 +13558,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12052
13558
  keepFirstFrame: boolean;
12053
13559
  frames?: number | undefined;
12054
13560
  template?: string | undefined;
13561
+ clean?: boolean | undefined;
12055
13562
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12056
13563
  motionFrom?: string | undefined;
12057
13564
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -12067,6 +13574,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12067
13574
  frames?: number | undefined;
12068
13575
  fps?: number | undefined;
12069
13576
  template?: string | undefined;
13577
+ clean?: boolean | undefined;
12070
13578
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
12071
13579
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12072
13580
  motionFrom?: string | undefined;
@@ -12205,6 +13713,236 @@ declare const ManifestInputSchema: z.ZodObject<{
12205
13713
  reference: string;
12206
13714
  additionalInstructions?: string | undefined;
12207
13715
  }>>;
13716
+ /** `character` styles: this asset's prompt, drawn as a clothing layer over existing frames. See CharacterLayerSchema. */
13717
+ layer: z.ZodOptional<z.ZodEffects<z.ZodObject<{
13718
+ /** The assets to dress, in the same style: a base, its states, its loops. Their frames share one sheet, in this order. */
13719
+ of: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
13720
+ /**
13721
+ * Manifest-relative black-and-white PNG the size of the sheet, replacing
13722
+ * the computed mask (white below each figure's neck). The escape hatch for
13723
+ * hair, hats and raised arms, where the neck is not the narrowest row.
13724
+ */
13725
+ mask: z.ZodOptional<z.ZodString>;
13726
+ /** Manifest-relative PNG the size of the sheet, replacing the computed keyed sheet. */
13727
+ keyed: z.ZodOptional<z.ZodString>;
13728
+ /** The colours that are skin. Omit on a bare base, where everything that is not outline is skin. */
13729
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13730
+ /** The stand-in colour skin is painted before the provider sees it. Default cyan. */
13731
+ key: z.ZodOptional<z.ZodString>;
13732
+ /**
13733
+ * Remove animation ghosts from the loops before dressing them, judged
13734
+ * against the stills among `of` (bases and states). Default true; it has
13735
+ * nothing to judge against, and is skipped, when `of` holds no still.
13736
+ */
13737
+ clean: z.ZodOptional<z.ZodBoolean>;
13738
+ /** Sheet columns. Chosen to fit the provider's limit in the smallest area when omitted. */
13739
+ columns: z.ZodOptional<z.ZodNumber>;
13740
+ /**
13741
+ * Which part of each figure may be repainted. `body` (default): the
13742
+ * figure's own pixels below the neck, for clothing. `head`: everything
13743
+ * from the top of the cell to the neck, for hats, hair and helmets.
13744
+ * `around`: everything below the neck, empty space included, for held
13745
+ * items, capes and packs.
13746
+ */
13747
+ region: z.ZodOptional<z.ZodEnum<["body", "head", "around"]>>;
13748
+ /**
13749
+ * Empty pixels added around every figure on the sheet, for a layer that
13750
+ * reaches past it. Each layer frame comes back on its source frame's
13751
+ * canvas grown by this much on every side. Default 0 for `body`, 8 otherwise.
13752
+ */
13753
+ padding: z.ZodOptional<z.ZodNumber>;
13754
+ /**
13755
+ * Nudge the layer by `[x, y]` pixels, x to the right and y down: a hat a
13756
+ * pixel or two higher, a mask lower on the face. One pair moves every
13757
+ * frame; an object moves the frames of each `of` asset it names by that
13758
+ * asset's own pair, with `"*"` for the rest, since a provider can seat a
13759
+ * hat a little differently on a walk than on the stills. On a drawn layer
13760
+ * it is applied at download and changing it costs nothing; on a held item
13761
+ * it moves the item on the hand.
13762
+ */
13763
+ offset: z.ZodOptional<z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
13764
+ /**
13765
+ * Make this layer a held item instead of an inpaint: a sprite you already
13766
+ * have, pinned to a hand in every frame. Free and local. See
13767
+ * CharacterAttachSchema.
13768
+ */
13769
+ attach: z.ZodOptional<z.ZodObject<{
13770
+ /**
13771
+ * Manifest-relative PNG of the item. With `{direction}` in the path, one
13772
+ * file per direction the frames face (an 8-direction object's rotations);
13773
+ * without it, the same image in every direction.
13774
+ */
13775
+ item: z.ZodString;
13776
+ /**
13777
+ * Manifest-relative anchors file: every frame's skeleton, which is where
13778
+ * its hands are. `pixelkiln anchors <asset>` writes it; one file serves
13779
+ * every item the character holds.
13780
+ */
13781
+ anchors: z.ZodString;
13782
+ /** Which hand holds it. Default `right-hand`. */
13783
+ joint: z.ZodOptional<z.ZodEnum<["right-hand", "left-hand"]>>;
13784
+ /**
13785
+ * The point of the item the hand holds: `"center"` (a shield), or item
13786
+ * pixels as drawn, one `[x, y]` for every direction or one per direction.
13787
+ * Default: the middle of the item's lowest fifth, which is the handle of
13788
+ * anything drawn handle-down.
13789
+ */
13790
+ grip: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodRecord<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>]>>;
13791
+ /**
13792
+ * Resize the item by this factor before placing it, nearest neighbour.
13793
+ * An object generator fills its canvas, so an item often comes back
13794
+ * larger than the hand it goes in. Default 1.
13795
+ */
13796
+ scale: z.ZodOptional<z.ZodNumber>;
13797
+ /**
13798
+ * Degrees to lean an upright item the way the figure faces, turned
13799
+ * locally. Shows from the side, not from the front or back. Default 0:
13800
+ * the item is used as drawn, which is right for one drawn already leaning.
13801
+ */
13802
+ tilt: z.ZodOptional<z.ZodNumber>;
13803
+ /** Degrees to tip an upright item outward from the body, seen from the front and back. Default 0. */
13804
+ lean: z.ZodOptional<z.ZodNumber>;
13805
+ /**
13806
+ * Whether the body covers the item. `auto` (default) follows each frame's
13807
+ * skeleton: the item goes behind the figure when its hand is.
13808
+ */
13809
+ depth: z.ZodOptional<z.ZodEnum<["auto", "front", "behind"]>>;
13810
+ /**
13811
+ * Redraw the hand around the item so it is held, not resting on the
13812
+ * hand: one inpaint over a small disc at each hand, the rest of the item
13813
+ * untouched. `true`, or `{ "radius": 9 }` for the disc in pixels. This
13814
+ * makes the layer a paid one (one inpaint, priced by the sheet); the
13815
+ * asset's `prompt`, when it has one, tells the provider what the item is.
13816
+ */
13817
+ grasp: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
13818
+ radius: z.ZodOptional<z.ZodNumber>;
13819
+ }, "strict", z.ZodTypeAny, {
13820
+ radius?: number | undefined;
13821
+ }, {
13822
+ radius?: number | undefined;
13823
+ }>]>>;
13824
+ }, "strict", z.ZodTypeAny, {
13825
+ item: string;
13826
+ anchors: string;
13827
+ depth?: "auto" | "front" | "behind" | undefined;
13828
+ joint?: "right-hand" | "left-hand" | undefined;
13829
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
13830
+ scale?: number | undefined;
13831
+ tilt?: number | undefined;
13832
+ lean?: number | undefined;
13833
+ grasp?: boolean | {
13834
+ radius?: number | undefined;
13835
+ } | undefined;
13836
+ }, {
13837
+ item: string;
13838
+ anchors: string;
13839
+ depth?: "auto" | "front" | "behind" | undefined;
13840
+ joint?: "right-hand" | "left-hand" | undefined;
13841
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
13842
+ scale?: number | undefined;
13843
+ tilt?: number | undefined;
13844
+ lean?: number | undefined;
13845
+ grasp?: boolean | {
13846
+ radius?: number | undefined;
13847
+ } | undefined;
13848
+ }>>;
13849
+ }, "strict", z.ZodTypeAny, {
13850
+ of: string | string[];
13851
+ key?: string | undefined;
13852
+ mask?: string | undefined;
13853
+ keyed?: string | undefined;
13854
+ skin?: string[] | undefined;
13855
+ clean?: boolean | undefined;
13856
+ columns?: number | undefined;
13857
+ region?: "body" | "head" | "around" | undefined;
13858
+ padding?: number | undefined;
13859
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
13860
+ attach?: {
13861
+ item: string;
13862
+ anchors: string;
13863
+ depth?: "auto" | "front" | "behind" | undefined;
13864
+ joint?: "right-hand" | "left-hand" | undefined;
13865
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
13866
+ scale?: number | undefined;
13867
+ tilt?: number | undefined;
13868
+ lean?: number | undefined;
13869
+ grasp?: boolean | {
13870
+ radius?: number | undefined;
13871
+ } | undefined;
13872
+ } | undefined;
13873
+ }, {
13874
+ of: string | string[];
13875
+ key?: string | undefined;
13876
+ mask?: string | undefined;
13877
+ keyed?: string | undefined;
13878
+ skin?: string[] | undefined;
13879
+ clean?: boolean | undefined;
13880
+ columns?: number | undefined;
13881
+ region?: "body" | "head" | "around" | undefined;
13882
+ padding?: number | undefined;
13883
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
13884
+ attach?: {
13885
+ item: string;
13886
+ anchors: string;
13887
+ depth?: "auto" | "front" | "behind" | undefined;
13888
+ joint?: "right-hand" | "left-hand" | undefined;
13889
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
13890
+ scale?: number | undefined;
13891
+ tilt?: number | undefined;
13892
+ lean?: number | undefined;
13893
+ grasp?: boolean | {
13894
+ radius?: number | undefined;
13895
+ } | undefined;
13896
+ } | undefined;
13897
+ }>, {
13898
+ of: string | string[];
13899
+ key?: string | undefined;
13900
+ mask?: string | undefined;
13901
+ keyed?: string | undefined;
13902
+ skin?: string[] | undefined;
13903
+ clean?: boolean | undefined;
13904
+ columns?: number | undefined;
13905
+ region?: "body" | "head" | "around" | undefined;
13906
+ padding?: number | undefined;
13907
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
13908
+ attach?: {
13909
+ item: string;
13910
+ anchors: string;
13911
+ depth?: "auto" | "front" | "behind" | undefined;
13912
+ joint?: "right-hand" | "left-hand" | undefined;
13913
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
13914
+ scale?: number | undefined;
13915
+ tilt?: number | undefined;
13916
+ lean?: number | undefined;
13917
+ grasp?: boolean | {
13918
+ radius?: number | undefined;
13919
+ } | undefined;
13920
+ } | undefined;
13921
+ }, {
13922
+ of: string | string[];
13923
+ key?: string | undefined;
13924
+ mask?: string | undefined;
13925
+ keyed?: string | undefined;
13926
+ skin?: string[] | undefined;
13927
+ clean?: boolean | undefined;
13928
+ columns?: number | undefined;
13929
+ region?: "body" | "head" | "around" | undefined;
13930
+ padding?: number | undefined;
13931
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
13932
+ attach?: {
13933
+ item: string;
13934
+ anchors: string;
13935
+ depth?: "auto" | "front" | "behind" | undefined;
13936
+ joint?: "right-hand" | "left-hand" | undefined;
13937
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
13938
+ scale?: number | undefined;
13939
+ tilt?: number | undefined;
13940
+ lean?: number | undefined;
13941
+ grasp?: boolean | {
13942
+ radius?: number | undefined;
13943
+ } | undefined;
13944
+ } | undefined;
13945
+ }>>;
12208
13946
  /** `map` styles only: draw this object in the style of a scene image. See `MapSceneSchema`. */
12209
13947
  scene: z.ZodOptional<z.ZodObject<{
12210
13948
  /** Manifest-relative PNG of the scene. Any earlier asset's output file works. */
@@ -12442,6 +14180,12 @@ declare const ManifestInputSchema: z.ZodObject<{
12442
14180
  * instead of starting from nothing.
12443
14181
  */
12444
14182
  initImage: z.ZodOptional<z.ZodString>;
14183
+ /**
14184
+ * `pixflux` styles: the way the subject faces. PixelLab calls it weakly
14185
+ * guiding, so treat it as a nudge. Part of the asset's identity only
14186
+ * when set.
14187
+ */
14188
+ direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
12445
14189
  /**
12446
14190
  * With `initImage`: how strongly the starting image holds, 1 to 999.
12447
14191
  * PixelLab's default is 300.
@@ -12473,7 +14217,20 @@ declare const ManifestInputSchema: z.ZodObject<{
12473
14217
  from: z.ZodOptional<z.ZodString>;
12474
14218
  /** A committed PNG, relative to the manifest, as the input. */
12475
14219
  file: z.ZodOptional<z.ZodString>;
12476
- transform: z.ZodEnum<["recolor", "palette-snap", "scale"]>;
14220
+ transform: z.ZodEnum<["recolor", "palette-snap", "hue-shift", "scale", "key-skin", "despeckle"]>;
14221
+ /** hue-shift: degrees to turn each pixel's hue by, -180 to 180. */
14222
+ degrees: z.ZodOptional<z.ZodNumber>;
14223
+ /**
14224
+ * hue-shift: only pixels whose hue lies in this window, `[from, to]` in
14225
+ * degrees going clockwise (so `[330, 30]` is the reds), are changed.
14226
+ * Everything is, when omitted. Greys and near-blacks have no hue to speak
14227
+ * of and are left alone either way.
14228
+ */
14229
+ hue: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
14230
+ /** hue-shift: multiply saturation by this, 0 to 4. Default 1. */
14231
+ saturation: z.ZodOptional<z.ZodNumber>;
14232
+ /** hue-shift: multiply brightness by this, 0 to 4. Default 1. */
14233
+ brightness: z.ZodOptional<z.ZodNumber>;
12477
14234
  /** recolor: exact replacements, `#rrggbb` to `#rrggbb`. Unmapped colors and every alpha value stay. */
12478
14235
  map: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12479
14236
  /** palette-snap: the closed palette every visible pixel moves to. */
@@ -12483,42 +14240,86 @@ declare const ManifestInputSchema: z.ZodObject<{
12483
14240
  height: z.ZodOptional<z.ZodNumber>;
12484
14241
  /** scale: `nearest` (default) keeps hard edges; `box` averages the covered pixels. */
12485
14242
  mode: z.ZodOptional<z.ZodEnum<["nearest", "box"]>>;
14243
+ /** key-skin: the colours that are skin; every pixel that is not outline when omitted. */
14244
+ skin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14245
+ /** key-skin: the stand-in colour. Default cyan. */
14246
+ key: z.ZodOptional<z.ZodString>;
14247
+ /**
14248
+ * despeckle: committed PNGs, relative to the manifest, whose colours are known good (the character's stills).
14249
+ * hue-shift: only pixels in a colour one of these PNGs uses are changed, which
14250
+ * is how skin on a layer (the fingers of a grip) is told from the item in it.
14251
+ */
14252
+ reference: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14253
+ /** key-skin: how far a pixel may sit from a `skin` colour. despeckle: how near a reference colour must be to vouch for a pixel. */
14254
+ tolerance: z.ZodOptional<z.ZodNumber>;
12486
14255
  }, "strict", z.ZodTypeAny, {
12487
- transform: "recolor" | "palette-snap" | "scale";
14256
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
12488
14257
  map?: Record<string, string> | undefined;
12489
14258
  width?: number | undefined;
12490
14259
  height?: number | undefined;
14260
+ key?: string | undefined;
12491
14261
  palette?: string[] | undefined;
14262
+ reference?: string[] | undefined;
14263
+ skin?: string[] | undefined;
12492
14264
  mode?: "nearest" | "box" | undefined;
12493
14265
  from?: string | undefined;
12494
14266
  file?: string | undefined;
14267
+ degrees?: number | undefined;
14268
+ hue?: [number, number] | undefined;
14269
+ saturation?: number | undefined;
14270
+ brightness?: number | undefined;
14271
+ tolerance?: number | undefined;
12495
14272
  }, {
12496
- transform: "recolor" | "palette-snap" | "scale";
14273
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
12497
14274
  map?: Record<string, string> | undefined;
12498
14275
  width?: number | undefined;
12499
14276
  height?: number | undefined;
14277
+ key?: string | undefined;
12500
14278
  palette?: string[] | undefined;
14279
+ reference?: string[] | undefined;
14280
+ skin?: string[] | undefined;
12501
14281
  mode?: "nearest" | "box" | undefined;
12502
14282
  from?: string | undefined;
12503
14283
  file?: string | undefined;
14284
+ degrees?: number | undefined;
14285
+ hue?: [number, number] | undefined;
14286
+ saturation?: number | undefined;
14287
+ brightness?: number | undefined;
14288
+ tolerance?: number | undefined;
12504
14289
  }>, {
12505
- transform: "recolor" | "palette-snap" | "scale";
14290
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
12506
14291
  map?: Record<string, string> | undefined;
12507
14292
  width?: number | undefined;
12508
14293
  height?: number | undefined;
14294
+ key?: string | undefined;
12509
14295
  palette?: string[] | undefined;
14296
+ reference?: string[] | undefined;
14297
+ skin?: string[] | undefined;
12510
14298
  mode?: "nearest" | "box" | undefined;
12511
14299
  from?: string | undefined;
12512
14300
  file?: string | undefined;
14301
+ degrees?: number | undefined;
14302
+ hue?: [number, number] | undefined;
14303
+ saturation?: number | undefined;
14304
+ brightness?: number | undefined;
14305
+ tolerance?: number | undefined;
12513
14306
  }, {
12514
- transform: "recolor" | "palette-snap" | "scale";
14307
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
12515
14308
  map?: Record<string, string> | undefined;
12516
14309
  width?: number | undefined;
12517
14310
  height?: number | undefined;
14311
+ key?: string | undefined;
12518
14312
  palette?: string[] | undefined;
14313
+ reference?: string[] | undefined;
14314
+ skin?: string[] | undefined;
12519
14315
  mode?: "nearest" | "box" | undefined;
12520
14316
  from?: string | undefined;
12521
14317
  file?: string | undefined;
14318
+ degrees?: number | undefined;
14319
+ hue?: [number, number] | undefined;
14320
+ saturation?: number | undefined;
14321
+ brightness?: number | undefined;
14322
+ tolerance?: number | undefined;
12522
14323
  }>>;
12523
14324
  /** Built by a tool outside pixelkiln; see AssetExternalSchema. Never generated. */
12524
14325
  external: z.ZodOptional<z.ZodObject<{
@@ -12574,6 +14375,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12574
14375
  keepFirstFrame: boolean;
12575
14376
  frames?: number | undefined;
12576
14377
  template?: string | undefined;
14378
+ clean?: boolean | undefined;
12577
14379
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12578
14380
  motionFrom?: string | undefined;
12579
14381
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -12601,6 +14403,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12601
14403
  } | undefined;
12602
14404
  size?: number | undefined;
12603
14405
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
14406
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
12604
14407
  state?: {
12605
14408
  of: string;
12606
14409
  paletteFromReference: boolean;
@@ -12618,6 +14421,31 @@ declare const ManifestInputSchema: z.ZodObject<{
12618
14421
  reference: string;
12619
14422
  additionalInstructions?: string | undefined;
12620
14423
  } | undefined;
14424
+ layer?: {
14425
+ of: string | string[];
14426
+ key?: string | undefined;
14427
+ mask?: string | undefined;
14428
+ keyed?: string | undefined;
14429
+ skin?: string[] | undefined;
14430
+ clean?: boolean | undefined;
14431
+ columns?: number | undefined;
14432
+ region?: "body" | "head" | "around" | undefined;
14433
+ padding?: number | undefined;
14434
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
14435
+ attach?: {
14436
+ item: string;
14437
+ anchors: string;
14438
+ depth?: "auto" | "front" | "behind" | undefined;
14439
+ joint?: "right-hand" | "left-hand" | undefined;
14440
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
14441
+ scale?: number | undefined;
14442
+ tilt?: number | undefined;
14443
+ lean?: number | undefined;
14444
+ grasp?: boolean | {
14445
+ radius?: number | undefined;
14446
+ } | undefined;
14447
+ } | undefined;
14448
+ } | undefined;
12621
14449
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
12622
14450
  headSize?: number | undefined;
12623
14451
  armsLength?: number | undefined;
@@ -12725,14 +14553,22 @@ declare const ManifestInputSchema: z.ZodObject<{
12725
14553
  transition?: string | undefined;
12726
14554
  } | undefined;
12727
14555
  derive?: {
12728
- transform: "recolor" | "palette-snap" | "scale";
14556
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
12729
14557
  map?: Record<string, string> | undefined;
12730
14558
  width?: number | undefined;
12731
14559
  height?: number | undefined;
14560
+ key?: string | undefined;
12732
14561
  palette?: string[] | undefined;
14562
+ reference?: string[] | undefined;
14563
+ skin?: string[] | undefined;
12733
14564
  mode?: "nearest" | "box" | undefined;
12734
14565
  from?: string | undefined;
12735
14566
  file?: string | undefined;
14567
+ degrees?: number | undefined;
14568
+ hue?: [number, number] | undefined;
14569
+ saturation?: number | undefined;
14570
+ brightness?: number | undefined;
14571
+ tolerance?: number | undefined;
12736
14572
  } | undefined;
12737
14573
  external?: {
12738
14574
  builder: string;
@@ -12747,6 +14583,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12747
14583
  frames?: number | undefined;
12748
14584
  fps?: number | undefined;
12749
14585
  template?: string | undefined;
14586
+ clean?: boolean | undefined;
12750
14587
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
12751
14588
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12752
14589
  motionFrom?: string | undefined;
@@ -12776,6 +14613,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12776
14613
  } | undefined;
12777
14614
  size?: number | undefined;
12778
14615
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
14616
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
12779
14617
  state?: {
12780
14618
  of: string;
12781
14619
  paletteFromReference?: boolean | undefined;
@@ -12793,6 +14631,31 @@ declare const ManifestInputSchema: z.ZodObject<{
12793
14631
  reference: string;
12794
14632
  additionalInstructions?: string | undefined;
12795
14633
  } | undefined;
14634
+ layer?: {
14635
+ of: string | string[];
14636
+ key?: string | undefined;
14637
+ mask?: string | undefined;
14638
+ keyed?: string | undefined;
14639
+ skin?: string[] | undefined;
14640
+ clean?: boolean | undefined;
14641
+ columns?: number | undefined;
14642
+ region?: "body" | "head" | "around" | undefined;
14643
+ padding?: number | undefined;
14644
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
14645
+ attach?: {
14646
+ item: string;
14647
+ anchors: string;
14648
+ depth?: "auto" | "front" | "behind" | undefined;
14649
+ joint?: "right-hand" | "left-hand" | undefined;
14650
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
14651
+ scale?: number | undefined;
14652
+ tilt?: number | undefined;
14653
+ lean?: number | undefined;
14654
+ grasp?: boolean | {
14655
+ radius?: number | undefined;
14656
+ } | undefined;
14657
+ } | undefined;
14658
+ } | undefined;
12796
14659
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
12797
14660
  headSize?: number | undefined;
12798
14661
  armsLength?: number | undefined;
@@ -12902,14 +14765,22 @@ declare const ManifestInputSchema: z.ZodObject<{
12902
14765
  transition?: string | undefined;
12903
14766
  } | undefined;
12904
14767
  derive?: {
12905
- transform: "recolor" | "palette-snap" | "scale";
14768
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
12906
14769
  map?: Record<string, string> | undefined;
12907
14770
  width?: number | undefined;
12908
14771
  height?: number | undefined;
14772
+ key?: string | undefined;
12909
14773
  palette?: string[] | undefined;
14774
+ reference?: string[] | undefined;
14775
+ skin?: string[] | undefined;
12910
14776
  mode?: "nearest" | "box" | undefined;
12911
14777
  from?: string | undefined;
12912
14778
  file?: string | undefined;
14779
+ degrees?: number | undefined;
14780
+ hue?: [number, number] | undefined;
14781
+ saturation?: number | undefined;
14782
+ brightness?: number | undefined;
14783
+ tolerance?: number | undefined;
12913
14784
  } | undefined;
12914
14785
  external?: {
12915
14786
  builder: string;
@@ -12934,6 +14805,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12934
14805
  keepFirstFrame: boolean;
12935
14806
  frames?: number | undefined;
12936
14807
  template?: string | undefined;
14808
+ clean?: boolean | undefined;
12937
14809
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
12938
14810
  motionFrom?: string | undefined;
12939
14811
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -12961,6 +14833,7 @@ declare const ManifestInputSchema: z.ZodObject<{
12961
14833
  } | undefined;
12962
14834
  size?: number | undefined;
12963
14835
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
14836
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
12964
14837
  state?: {
12965
14838
  of: string;
12966
14839
  paletteFromReference: boolean;
@@ -12978,6 +14851,31 @@ declare const ManifestInputSchema: z.ZodObject<{
12978
14851
  reference: string;
12979
14852
  additionalInstructions?: string | undefined;
12980
14853
  } | undefined;
14854
+ layer?: {
14855
+ of: string | string[];
14856
+ key?: string | undefined;
14857
+ mask?: string | undefined;
14858
+ keyed?: string | undefined;
14859
+ skin?: string[] | undefined;
14860
+ clean?: boolean | undefined;
14861
+ columns?: number | undefined;
14862
+ region?: "body" | "head" | "around" | undefined;
14863
+ padding?: number | undefined;
14864
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
14865
+ attach?: {
14866
+ item: string;
14867
+ anchors: string;
14868
+ depth?: "auto" | "front" | "behind" | undefined;
14869
+ joint?: "right-hand" | "left-hand" | undefined;
14870
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
14871
+ scale?: number | undefined;
14872
+ tilt?: number | undefined;
14873
+ lean?: number | undefined;
14874
+ grasp?: boolean | {
14875
+ radius?: number | undefined;
14876
+ } | undefined;
14877
+ } | undefined;
14878
+ } | undefined;
12981
14879
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
12982
14880
  headSize?: number | undefined;
12983
14881
  armsLength?: number | undefined;
@@ -13085,14 +14983,22 @@ declare const ManifestInputSchema: z.ZodObject<{
13085
14983
  transition?: string | undefined;
13086
14984
  } | undefined;
13087
14985
  derive?: {
13088
- transform: "recolor" | "palette-snap" | "scale";
14986
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
13089
14987
  map?: Record<string, string> | undefined;
13090
14988
  width?: number | undefined;
13091
14989
  height?: number | undefined;
14990
+ key?: string | undefined;
13092
14991
  palette?: string[] | undefined;
14992
+ reference?: string[] | undefined;
14993
+ skin?: string[] | undefined;
13093
14994
  mode?: "nearest" | "box" | undefined;
13094
14995
  from?: string | undefined;
13095
14996
  file?: string | undefined;
14997
+ degrees?: number | undefined;
14998
+ hue?: [number, number] | undefined;
14999
+ saturation?: number | undefined;
15000
+ brightness?: number | undefined;
15001
+ tolerance?: number | undefined;
13096
15002
  } | undefined;
13097
15003
  external?: {
13098
15004
  builder: string;
@@ -13107,6 +15013,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13107
15013
  frames?: number | undefined;
13108
15014
  fps?: number | undefined;
13109
15015
  template?: string | undefined;
15016
+ clean?: boolean | undefined;
13110
15017
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
13111
15018
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
13112
15019
  motionFrom?: string | undefined;
@@ -13136,6 +15043,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13136
15043
  } | undefined;
13137
15044
  size?: number | undefined;
13138
15045
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
15046
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
13139
15047
  state?: {
13140
15048
  of: string;
13141
15049
  paletteFromReference?: boolean | undefined;
@@ -13153,6 +15061,31 @@ declare const ManifestInputSchema: z.ZodObject<{
13153
15061
  reference: string;
13154
15062
  additionalInstructions?: string | undefined;
13155
15063
  } | undefined;
15064
+ layer?: {
15065
+ of: string | string[];
15066
+ key?: string | undefined;
15067
+ mask?: string | undefined;
15068
+ keyed?: string | undefined;
15069
+ skin?: string[] | undefined;
15070
+ clean?: boolean | undefined;
15071
+ columns?: number | undefined;
15072
+ region?: "body" | "head" | "around" | undefined;
15073
+ padding?: number | undefined;
15074
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
15075
+ attach?: {
15076
+ item: string;
15077
+ anchors: string;
15078
+ depth?: "auto" | "front" | "behind" | undefined;
15079
+ joint?: "right-hand" | "left-hand" | undefined;
15080
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
15081
+ scale?: number | undefined;
15082
+ tilt?: number | undefined;
15083
+ lean?: number | undefined;
15084
+ grasp?: boolean | {
15085
+ radius?: number | undefined;
15086
+ } | undefined;
15087
+ } | undefined;
15088
+ } | undefined;
13156
15089
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
13157
15090
  headSize?: number | undefined;
13158
15091
  armsLength?: number | undefined;
@@ -13262,14 +15195,22 @@ declare const ManifestInputSchema: z.ZodObject<{
13262
15195
  transition?: string | undefined;
13263
15196
  } | undefined;
13264
15197
  derive?: {
13265
- transform: "recolor" | "palette-snap" | "scale";
15198
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
13266
15199
  map?: Record<string, string> | undefined;
13267
15200
  width?: number | undefined;
13268
15201
  height?: number | undefined;
15202
+ key?: string | undefined;
13269
15203
  palette?: string[] | undefined;
15204
+ reference?: string[] | undefined;
15205
+ skin?: string[] | undefined;
13270
15206
  mode?: "nearest" | "box" | undefined;
13271
15207
  from?: string | undefined;
13272
15208
  file?: string | undefined;
15209
+ degrees?: number | undefined;
15210
+ hue?: [number, number] | undefined;
15211
+ saturation?: number | undefined;
15212
+ brightness?: number | undefined;
15213
+ tolerance?: number | undefined;
13273
15214
  } | undefined;
13274
15215
  external?: {
13275
15216
  builder: string;
@@ -13367,6 +15308,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13367
15308
  hipWidth?: number | undefined;
13368
15309
  } | undefined;
13369
15310
  textGuidanceScale?: number | undefined;
15311
+ backgroundRemoval?: "simple" | "complex" | undefined;
13370
15312
  styleCharacter?: string | undefined;
13371
15313
  seed?: number | undefined;
13372
15314
  paletteName?: string | undefined;
@@ -13468,6 +15410,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13468
15410
  hipWidth?: number | undefined;
13469
15411
  } | undefined;
13470
15412
  textGuidanceScale?: number | undefined;
15413
+ backgroundRemoval?: "simple" | "complex" | undefined;
13471
15414
  styleCharacter?: string | undefined;
13472
15415
  seed?: number | undefined;
13473
15416
  paletteName?: string | undefined;
@@ -13506,6 +15449,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13506
15449
  keepFirstFrame: boolean;
13507
15450
  frames?: number | undefined;
13508
15451
  template?: string | undefined;
15452
+ clean?: boolean | undefined;
13509
15453
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
13510
15454
  motionFrom?: string | undefined;
13511
15455
  mode?: "pro" | "v3" | "template" | "skeleton-v3" | undefined;
@@ -13533,6 +15477,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13533
15477
  } | undefined;
13534
15478
  size?: number | undefined;
13535
15479
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
15480
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
13536
15481
  state?: {
13537
15482
  of: string;
13538
15483
  paletteFromReference: boolean;
@@ -13550,6 +15495,31 @@ declare const ManifestInputSchema: z.ZodObject<{
13550
15495
  reference: string;
13551
15496
  additionalInstructions?: string | undefined;
13552
15497
  } | undefined;
15498
+ layer?: {
15499
+ of: string | string[];
15500
+ key?: string | undefined;
15501
+ mask?: string | undefined;
15502
+ keyed?: string | undefined;
15503
+ skin?: string[] | undefined;
15504
+ clean?: boolean | undefined;
15505
+ columns?: number | undefined;
15506
+ region?: "body" | "head" | "around" | undefined;
15507
+ padding?: number | undefined;
15508
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
15509
+ attach?: {
15510
+ item: string;
15511
+ anchors: string;
15512
+ depth?: "auto" | "front" | "behind" | undefined;
15513
+ joint?: "right-hand" | "left-hand" | undefined;
15514
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
15515
+ scale?: number | undefined;
15516
+ tilt?: number | undefined;
15517
+ lean?: number | undefined;
15518
+ grasp?: boolean | {
15519
+ radius?: number | undefined;
15520
+ } | undefined;
15521
+ } | undefined;
15522
+ } | undefined;
13553
15523
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
13554
15524
  headSize?: number | undefined;
13555
15525
  armsLength?: number | undefined;
@@ -13657,14 +15627,22 @@ declare const ManifestInputSchema: z.ZodObject<{
13657
15627
  transition?: string | undefined;
13658
15628
  } | undefined;
13659
15629
  derive?: {
13660
- transform: "recolor" | "palette-snap" | "scale";
15630
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
13661
15631
  map?: Record<string, string> | undefined;
13662
15632
  width?: number | undefined;
13663
15633
  height?: number | undefined;
15634
+ key?: string | undefined;
13664
15635
  palette?: string[] | undefined;
15636
+ reference?: string[] | undefined;
15637
+ skin?: string[] | undefined;
13665
15638
  mode?: "nearest" | "box" | undefined;
13666
15639
  from?: string | undefined;
13667
15640
  file?: string | undefined;
15641
+ degrees?: number | undefined;
15642
+ hue?: [number, number] | undefined;
15643
+ saturation?: number | undefined;
15644
+ brightness?: number | undefined;
15645
+ tolerance?: number | undefined;
13668
15646
  } | undefined;
13669
15647
  external?: {
13670
15648
  builder: string;
@@ -13757,6 +15735,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13757
15735
  hipWidth?: number | undefined;
13758
15736
  } | undefined;
13759
15737
  textGuidanceScale?: number | undefined;
15738
+ backgroundRemoval?: "simple" | "complex" | undefined;
13760
15739
  styleCharacter?: string | undefined;
13761
15740
  seed?: number | undefined;
13762
15741
  paletteName?: string | undefined;
@@ -13861,6 +15840,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13861
15840
  hipWidth?: number | undefined;
13862
15841
  } | undefined;
13863
15842
  textGuidanceScale?: number | undefined;
15843
+ backgroundRemoval?: "simple" | "complex" | undefined;
13864
15844
  styleCharacter?: string | undefined;
13865
15845
  seed?: number | undefined;
13866
15846
  paletteName?: string | undefined;
@@ -13892,6 +15872,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13892
15872
  frames?: number | undefined;
13893
15873
  fps?: number | undefined;
13894
15874
  template?: string | undefined;
15875
+ clean?: boolean | undefined;
13895
15876
  direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
13896
15877
  directions?: ("south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west")[] | undefined;
13897
15878
  motionFrom?: string | undefined;
@@ -13921,6 +15902,7 @@ declare const ManifestInputSchema: z.ZodObject<{
13921
15902
  } | undefined;
13922
15903
  size?: number | undefined;
13923
15904
  reference?: string | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", string>> | undefined;
15905
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
13924
15906
  state?: {
13925
15907
  of: string;
13926
15908
  paletteFromReference?: boolean | undefined;
@@ -13938,6 +15920,31 @@ declare const ManifestInputSchema: z.ZodObject<{
13938
15920
  reference: string;
13939
15921
  additionalInstructions?: string | undefined;
13940
15922
  } | undefined;
15923
+ layer?: {
15924
+ of: string | string[];
15925
+ key?: string | undefined;
15926
+ mask?: string | undefined;
15927
+ keyed?: string | undefined;
15928
+ skin?: string[] | undefined;
15929
+ clean?: boolean | undefined;
15930
+ columns?: number | undefined;
15931
+ region?: "body" | "head" | "around" | undefined;
15932
+ padding?: number | undefined;
15933
+ offset?: [number, number] | Record<string, [number, number]> | undefined;
15934
+ attach?: {
15935
+ item: string;
15936
+ anchors: string;
15937
+ depth?: "auto" | "front" | "behind" | undefined;
15938
+ joint?: "right-hand" | "left-hand" | undefined;
15939
+ grip?: [number, number] | "center" | Partial<Record<"south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west", [number, number]>> | undefined;
15940
+ scale?: number | undefined;
15941
+ tilt?: number | undefined;
15942
+ lean?: number | undefined;
15943
+ grasp?: boolean | {
15944
+ radius?: number | undefined;
15945
+ } | undefined;
15946
+ } | undefined;
15947
+ } | undefined;
13941
15948
  proportions?: "default" | "chibi" | "cartoon" | "stylized" | "realistic_male" | "realistic_female" | "heroic" | {
13942
15949
  headSize?: number | undefined;
13943
15950
  armsLength?: number | undefined;
@@ -14047,14 +16054,22 @@ declare const ManifestInputSchema: z.ZodObject<{
14047
16054
  transition?: string | undefined;
14048
16055
  } | undefined;
14049
16056
  derive?: {
14050
- transform: "recolor" | "palette-snap" | "scale";
16057
+ transform: "scale" | "recolor" | "palette-snap" | "hue-shift" | "key-skin" | "despeckle";
14051
16058
  map?: Record<string, string> | undefined;
14052
16059
  width?: number | undefined;
14053
16060
  height?: number | undefined;
16061
+ key?: string | undefined;
14054
16062
  palette?: string[] | undefined;
16063
+ reference?: string[] | undefined;
16064
+ skin?: string[] | undefined;
14055
16065
  mode?: "nearest" | "box" | undefined;
14056
16066
  from?: string | undefined;
14057
16067
  file?: string | undefined;
16068
+ degrees?: number | undefined;
16069
+ hue?: [number, number] | undefined;
16070
+ saturation?: number | undefined;
16071
+ brightness?: number | undefined;
16072
+ tolerance?: number | undefined;
14058
16073
  } | undefined;
14059
16074
  external?: {
14060
16075
  builder: string;
@@ -14078,6 +16093,47 @@ type Asset = z.infer<typeof AssetSchema>;
14078
16093
  * and `restore` can reproduce the recorded hash from the raw bytes.
14079
16094
  */
14080
16095
  declare const PostprocessSchema: z.ZodObject<{
16096
+ /**
16097
+ * Ghost pixels were removed from each frame, judged against the rotations
16098
+ * of this asset in the same style. Which bytes those rotations held is not
16099
+ * recorded here: a regenerated parent already makes its loops stale.
16100
+ */
16101
+ despeckle: z.ZodOptional<z.ZodObject<{
16102
+ of: z.ZodString;
16103
+ }, "strip", z.ZodTypeAny, {
16104
+ of: string;
16105
+ }, {
16106
+ of: string;
16107
+ }>>;
16108
+ /** A layer's frames were moved by this many pixels, with per-source-asset pairs over the default. */
16109
+ offset: z.ZodOptional<z.ZodObject<{
16110
+ x: z.ZodNumber;
16111
+ y: z.ZodNumber;
16112
+ per: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16113
+ x: z.ZodNumber;
16114
+ y: z.ZodNumber;
16115
+ }, "strip", z.ZodTypeAny, {
16116
+ x: number;
16117
+ y: number;
16118
+ }, {
16119
+ x: number;
16120
+ y: number;
16121
+ }>>>;
16122
+ }, "strip", z.ZodTypeAny, {
16123
+ x: number;
16124
+ y: number;
16125
+ per?: Record<string, {
16126
+ x: number;
16127
+ y: number;
16128
+ }> | undefined;
16129
+ }, {
16130
+ x: number;
16131
+ y: number;
16132
+ per?: Record<string, {
16133
+ x: number;
16134
+ y: number;
16135
+ }> | undefined;
16136
+ }>>;
14081
16137
  palette: z.ZodOptional<z.ZodObject<{
14082
16138
  /** Canonical lowercase `#rrggbb` values, in manifest order. */
14083
16139
  colors: z.ZodArray<z.ZodString, "many">;
@@ -14098,12 +16154,34 @@ declare const PostprocessSchema: z.ZodObject<{
14098
16154
  dither: "none";
14099
16155
  distance: "redmean";
14100
16156
  } | undefined;
16157
+ offset?: {
16158
+ x: number;
16159
+ y: number;
16160
+ per?: Record<string, {
16161
+ x: number;
16162
+ y: number;
16163
+ }> | undefined;
16164
+ } | undefined;
16165
+ despeckle?: {
16166
+ of: string;
16167
+ } | undefined;
14101
16168
  }, {
14102
16169
  palette?: {
14103
16170
  colors: string[];
14104
16171
  dither: "none";
14105
16172
  distance: "redmean";
14106
16173
  } | undefined;
16174
+ offset?: {
16175
+ x: number;
16176
+ y: number;
16177
+ per?: Record<string, {
16178
+ x: number;
16179
+ y: number;
16180
+ }> | undefined;
16181
+ } | undefined;
16182
+ despeckle?: {
16183
+ of: string;
16184
+ } | undefined;
14107
16185
  }>;
14108
16186
  type Postprocess = z.infer<typeof PostprocessSchema>;
14109
16187
  /**
@@ -14259,6 +16337,47 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
14259
16337
  }>>>;
14260
16338
  provider: z.ZodDefault<z.ZodString>;
14261
16339
  postprocess: z.ZodOptional<z.ZodObject<{
16340
+ /**
16341
+ * Ghost pixels were removed from each frame, judged against the rotations
16342
+ * of this asset in the same style. Which bytes those rotations held is not
16343
+ * recorded here: a regenerated parent already makes its loops stale.
16344
+ */
16345
+ despeckle: z.ZodOptional<z.ZodObject<{
16346
+ of: z.ZodString;
16347
+ }, "strip", z.ZodTypeAny, {
16348
+ of: string;
16349
+ }, {
16350
+ of: string;
16351
+ }>>;
16352
+ /** A layer's frames were moved by this many pixels, with per-source-asset pairs over the default. */
16353
+ offset: z.ZodOptional<z.ZodObject<{
16354
+ x: z.ZodNumber;
16355
+ y: z.ZodNumber;
16356
+ per: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
16357
+ x: z.ZodNumber;
16358
+ y: z.ZodNumber;
16359
+ }, "strip", z.ZodTypeAny, {
16360
+ x: number;
16361
+ y: number;
16362
+ }, {
16363
+ x: number;
16364
+ y: number;
16365
+ }>>>;
16366
+ }, "strip", z.ZodTypeAny, {
16367
+ x: number;
16368
+ y: number;
16369
+ per?: Record<string, {
16370
+ x: number;
16371
+ y: number;
16372
+ }> | undefined;
16373
+ }, {
16374
+ x: number;
16375
+ y: number;
16376
+ per?: Record<string, {
16377
+ x: number;
16378
+ y: number;
16379
+ }> | undefined;
16380
+ }>>;
14262
16381
  palette: z.ZodOptional<z.ZodObject<{
14263
16382
  /** Canonical lowercase `#rrggbb` values, in manifest order. */
14264
16383
  colors: z.ZodArray<z.ZodString, "many">;
@@ -14279,12 +16398,34 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
14279
16398
  dither: "none";
14280
16399
  distance: "redmean";
14281
16400
  } | undefined;
16401
+ offset?: {
16402
+ x: number;
16403
+ y: number;
16404
+ per?: Record<string, {
16405
+ x: number;
16406
+ y: number;
16407
+ }> | undefined;
16408
+ } | undefined;
16409
+ despeckle?: {
16410
+ of: string;
16411
+ } | undefined;
14282
16412
  }, {
14283
16413
  palette?: {
14284
16414
  colors: string[];
14285
16415
  dither: "none";
14286
16416
  distance: "redmean";
14287
16417
  } | undefined;
16418
+ offset?: {
16419
+ x: number;
16420
+ y: number;
16421
+ per?: Record<string, {
16422
+ x: number;
16423
+ y: number;
16424
+ }> | undefined;
16425
+ } | undefined;
16426
+ despeckle?: {
16427
+ of: string;
16428
+ } | undefined;
14288
16429
  }>>;
14289
16430
  /** A connected terrain set's other sets; see LockEntrySchema.terrainConnect. */
14290
16431
  terrainConnect: z.ZodOptional<z.ZodRecord<z.ZodEnum<["lower", "upper"]>, z.ZodObject<{
@@ -14428,6 +16569,17 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
14428
16569
  dither: "none";
14429
16570
  distance: "redmean";
14430
16571
  } | undefined;
16572
+ offset?: {
16573
+ x: number;
16574
+ y: number;
16575
+ per?: Record<string, {
16576
+ x: number;
16577
+ y: number;
16578
+ }> | undefined;
16579
+ } | undefined;
16580
+ despeckle?: {
16581
+ of: string;
16582
+ } | undefined;
14431
16583
  } | undefined;
14432
16584
  terrainConnect?: Partial<Record<"lower" | "upper", {
14433
16585
  sourceAssetId: string;
@@ -14503,6 +16655,17 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
14503
16655
  dither: "none";
14504
16656
  distance: "redmean";
14505
16657
  } | undefined;
16658
+ offset?: {
16659
+ x: number;
16660
+ y: number;
16661
+ per?: Record<string, {
16662
+ x: number;
16663
+ y: number;
16664
+ }> | undefined;
16665
+ } | undefined;
16666
+ despeckle?: {
16667
+ of: string;
16668
+ } | undefined;
14506
16669
  } | undefined;
14507
16670
  terrainConnect?: Partial<Record<"lower" | "upper", {
14508
16671
  sourceAssetId: string;
@@ -14672,6 +16835,33 @@ declare const LockEntrySchema: z.ZodObject<{
14672
16835
  sourceSha256: string;
14673
16836
  referenceSha256: string;
14674
16837
  }>>>;
16838
+ /**
16839
+ * For a layer: each asset it dressed and a hash over that asset's output
16840
+ * hashes when this was made. Tracked the way `outfit` is: the sources'
16841
+ * current frame bytes are only in the lockfile.
16842
+ */
16843
+ layer: z.ZodOptional<z.ZodObject<{
16844
+ sources: z.ZodArray<z.ZodObject<{
16845
+ assetId: z.ZodString;
16846
+ sha256: z.ZodString;
16847
+ }, "strict", z.ZodTypeAny, {
16848
+ sha256: string;
16849
+ assetId: string;
16850
+ }, {
16851
+ sha256: string;
16852
+ assetId: string;
16853
+ }>, "many">;
16854
+ }, "strict", z.ZodTypeAny, {
16855
+ sources: {
16856
+ sha256: string;
16857
+ assetId: string;
16858
+ }[];
16859
+ }, {
16860
+ sources: {
16861
+ sha256: string;
16862
+ assetId: string;
16863
+ }[];
16864
+ }>>;
14675
16865
  /**
14676
16866
  * For a connected terrain set: per side of this set, the set it shares
14677
16867
  * that terrain with and that set's provider id when this was submitted.
@@ -14925,6 +17115,47 @@ declare const LockEntrySchema: z.ZodObject<{
14925
17115
  }>>>;
14926
17116
  provider: z.ZodDefault<z.ZodString>;
14927
17117
  postprocess: z.ZodOptional<z.ZodObject<{
17118
+ /**
17119
+ * Ghost pixels were removed from each frame, judged against the rotations
17120
+ * of this asset in the same style. Which bytes those rotations held is not
17121
+ * recorded here: a regenerated parent already makes its loops stale.
17122
+ */
17123
+ despeckle: z.ZodOptional<z.ZodObject<{
17124
+ of: z.ZodString;
17125
+ }, "strip", z.ZodTypeAny, {
17126
+ of: string;
17127
+ }, {
17128
+ of: string;
17129
+ }>>;
17130
+ /** A layer's frames were moved by this many pixels, with per-source-asset pairs over the default. */
17131
+ offset: z.ZodOptional<z.ZodObject<{
17132
+ x: z.ZodNumber;
17133
+ y: z.ZodNumber;
17134
+ per: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17135
+ x: z.ZodNumber;
17136
+ y: z.ZodNumber;
17137
+ }, "strip", z.ZodTypeAny, {
17138
+ x: number;
17139
+ y: number;
17140
+ }, {
17141
+ x: number;
17142
+ y: number;
17143
+ }>>>;
17144
+ }, "strip", z.ZodTypeAny, {
17145
+ x: number;
17146
+ y: number;
17147
+ per?: Record<string, {
17148
+ x: number;
17149
+ y: number;
17150
+ }> | undefined;
17151
+ }, {
17152
+ x: number;
17153
+ y: number;
17154
+ per?: Record<string, {
17155
+ x: number;
17156
+ y: number;
17157
+ }> | undefined;
17158
+ }>>;
14928
17159
  palette: z.ZodOptional<z.ZodObject<{
14929
17160
  /** Canonical lowercase `#rrggbb` values, in manifest order. */
14930
17161
  colors: z.ZodArray<z.ZodString, "many">;
@@ -14945,12 +17176,34 @@ declare const LockEntrySchema: z.ZodObject<{
14945
17176
  dither: "none";
14946
17177
  distance: "redmean";
14947
17178
  } | undefined;
17179
+ offset?: {
17180
+ x: number;
17181
+ y: number;
17182
+ per?: Record<string, {
17183
+ x: number;
17184
+ y: number;
17185
+ }> | undefined;
17186
+ } | undefined;
17187
+ despeckle?: {
17188
+ of: string;
17189
+ } | undefined;
14948
17190
  }, {
14949
17191
  palette?: {
14950
17192
  colors: string[];
14951
17193
  dither: "none";
14952
17194
  distance: "redmean";
14953
17195
  } | undefined;
17196
+ offset?: {
17197
+ x: number;
17198
+ y: number;
17199
+ per?: Record<string, {
17200
+ x: number;
17201
+ y: number;
17202
+ }> | undefined;
17203
+ } | undefined;
17204
+ despeckle?: {
17205
+ of: string;
17206
+ } | undefined;
14954
17207
  }>>;
14955
17208
  /** A connected terrain set's other sets; see LockEntrySchema.terrainConnect. */
14956
17209
  terrainConnect: z.ZodOptional<z.ZodRecord<z.ZodEnum<["lower", "upper"]>, z.ZodObject<{
@@ -15094,6 +17347,17 @@ declare const LockEntrySchema: z.ZodObject<{
15094
17347
  dither: "none";
15095
17348
  distance: "redmean";
15096
17349
  } | undefined;
17350
+ offset?: {
17351
+ x: number;
17352
+ y: number;
17353
+ per?: Record<string, {
17354
+ x: number;
17355
+ y: number;
17356
+ }> | undefined;
17357
+ } | undefined;
17358
+ despeckle?: {
17359
+ of: string;
17360
+ } | undefined;
15097
17361
  } | undefined;
15098
17362
  terrainConnect?: Partial<Record<"lower" | "upper", {
15099
17363
  sourceAssetId: string;
@@ -15169,6 +17433,17 @@ declare const LockEntrySchema: z.ZodObject<{
15169
17433
  dither: "none";
15170
17434
  distance: "redmean";
15171
17435
  } | undefined;
17436
+ offset?: {
17437
+ x: number;
17438
+ y: number;
17439
+ per?: Record<string, {
17440
+ x: number;
17441
+ y: number;
17442
+ }> | undefined;
17443
+ } | undefined;
17444
+ despeckle?: {
17445
+ of: string;
17446
+ } | undefined;
15172
17447
  } | undefined;
15173
17448
  terrainConnect?: Partial<Record<"lower" | "upper", {
15174
17449
  sourceAssetId: string;
@@ -15207,6 +17482,47 @@ declare const LockEntrySchema: z.ZodObject<{
15207
17482
  }>, "many">>;
15208
17483
  /** Post-processing applied to the recorded outputs; absent when the bytes are the provider's. */
15209
17484
  postprocess: z.ZodOptional<z.ZodObject<{
17485
+ /**
17486
+ * Ghost pixels were removed from each frame, judged against the rotations
17487
+ * of this asset in the same style. Which bytes those rotations held is not
17488
+ * recorded here: a regenerated parent already makes its loops stale.
17489
+ */
17490
+ despeckle: z.ZodOptional<z.ZodObject<{
17491
+ of: z.ZodString;
17492
+ }, "strip", z.ZodTypeAny, {
17493
+ of: string;
17494
+ }, {
17495
+ of: string;
17496
+ }>>;
17497
+ /** A layer's frames were moved by this many pixels, with per-source-asset pairs over the default. */
17498
+ offset: z.ZodOptional<z.ZodObject<{
17499
+ x: z.ZodNumber;
17500
+ y: z.ZodNumber;
17501
+ per: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
17502
+ x: z.ZodNumber;
17503
+ y: z.ZodNumber;
17504
+ }, "strip", z.ZodTypeAny, {
17505
+ x: number;
17506
+ y: number;
17507
+ }, {
17508
+ x: number;
17509
+ y: number;
17510
+ }>>>;
17511
+ }, "strip", z.ZodTypeAny, {
17512
+ x: number;
17513
+ y: number;
17514
+ per?: Record<string, {
17515
+ x: number;
17516
+ y: number;
17517
+ }> | undefined;
17518
+ }, {
17519
+ x: number;
17520
+ y: number;
17521
+ per?: Record<string, {
17522
+ x: number;
17523
+ y: number;
17524
+ }> | undefined;
17525
+ }>>;
15210
17526
  palette: z.ZodOptional<z.ZodObject<{
15211
17527
  /** Canonical lowercase `#rrggbb` values, in manifest order. */
15212
17528
  colors: z.ZodArray<z.ZodString, "many">;
@@ -15227,12 +17543,34 @@ declare const LockEntrySchema: z.ZodObject<{
15227
17543
  dither: "none";
15228
17544
  distance: "redmean";
15229
17545
  } | undefined;
17546
+ offset?: {
17547
+ x: number;
17548
+ y: number;
17549
+ per?: Record<string, {
17550
+ x: number;
17551
+ y: number;
17552
+ }> | undefined;
17553
+ } | undefined;
17554
+ despeckle?: {
17555
+ of: string;
17556
+ } | undefined;
15230
17557
  }, {
15231
17558
  palette?: {
15232
17559
  colors: string[];
15233
17560
  dither: "none";
15234
17561
  distance: "redmean";
15235
17562
  } | undefined;
17563
+ offset?: {
17564
+ x: number;
17565
+ y: number;
17566
+ per?: Record<string, {
17567
+ x: number;
17568
+ y: number;
17569
+ }> | undefined;
17570
+ } | undefined;
17571
+ despeckle?: {
17572
+ of: string;
17573
+ } | undefined;
15236
17574
  }>>;
15237
17575
  /**
15238
17576
  * Set when the entry records art made outside pixelkiln (the PixelLab MCP, a
@@ -15407,6 +17745,12 @@ declare const LockEntrySchema: z.ZodObject<{
15407
17745
  assetId: string;
15408
17746
  reviewObjectId: string | null;
15409
17747
  error: string | null;
17748
+ layer?: {
17749
+ sources: {
17750
+ sha256: string;
17751
+ assetId: string;
17752
+ }[];
17753
+ } | undefined;
15410
17754
  derive?: {
15411
17755
  sourceSha256: string;
15412
17756
  sourceAssetId?: string | undefined;
@@ -15459,6 +17803,17 @@ declare const LockEntrySchema: z.ZodObject<{
15459
17803
  dither: "none";
15460
17804
  distance: "redmean";
15461
17805
  } | undefined;
17806
+ offset?: {
17807
+ x: number;
17808
+ y: number;
17809
+ per?: Record<string, {
17810
+ x: number;
17811
+ y: number;
17812
+ }> | undefined;
17813
+ } | undefined;
17814
+ despeckle?: {
17815
+ of: string;
17816
+ } | undefined;
15462
17817
  } | undefined;
15463
17818
  terrainConnect?: Partial<Record<"lower" | "upper", {
15464
17819
  sourceAssetId: string;
@@ -15501,6 +17856,17 @@ declare const LockEntrySchema: z.ZodObject<{
15501
17856
  dither: "none";
15502
17857
  distance: "redmean";
15503
17858
  } | undefined;
17859
+ offset?: {
17860
+ x: number;
17861
+ y: number;
17862
+ per?: Record<string, {
17863
+ x: number;
17864
+ y: number;
17865
+ }> | undefined;
17866
+ } | undefined;
17867
+ despeckle?: {
17868
+ of: string;
17869
+ } | undefined;
15504
17870
  } | undefined;
15505
17871
  terrainConnect?: Partial<Record<"lower" | "upper", {
15506
17872
  sourceAssetId: string;
@@ -15558,6 +17924,12 @@ declare const LockEntrySchema: z.ZodObject<{
15558
17924
  sourceSha256: string;
15559
17925
  referenceSha256: string;
15560
17926
  } | null | undefined;
17927
+ layer?: {
17928
+ sources: {
17929
+ sha256: string;
17930
+ assetId: string;
17931
+ }[];
17932
+ } | undefined;
15561
17933
  tileFeature?: string | null | undefined;
15562
17934
  revision?: {
15563
17935
  mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation" | "normal-map";
@@ -15646,6 +18018,17 @@ declare const LockEntrySchema: z.ZodObject<{
15646
18018
  dither: "none";
15647
18019
  distance: "redmean";
15648
18020
  } | undefined;
18021
+ offset?: {
18022
+ x: number;
18023
+ y: number;
18024
+ per?: Record<string, {
18025
+ x: number;
18026
+ y: number;
18027
+ }> | undefined;
18028
+ } | undefined;
18029
+ despeckle?: {
18030
+ of: string;
18031
+ } | undefined;
15649
18032
  } | undefined;
15650
18033
  terrainConnect?: Partial<Record<"lower" | "upper", {
15651
18034
  sourceAssetId: string;
@@ -15713,6 +18096,17 @@ declare const LockEntrySchema: z.ZodObject<{
15713
18096
  dither: "none";
15714
18097
  distance: "redmean";
15715
18098
  } | undefined;
18099
+ offset?: {
18100
+ x: number;
18101
+ y: number;
18102
+ per?: Record<string, {
18103
+ x: number;
18104
+ y: number;
18105
+ }> | undefined;
18106
+ } | undefined;
18107
+ despeckle?: {
18108
+ of: string;
18109
+ } | undefined;
15716
18110
  } | undefined;
15717
18111
  terrainConnect?: Partial<Record<"lower" | "upper", {
15718
18112
  sourceAssetId: string;
@@ -15893,6 +18287,33 @@ declare const LockSchema: z.ZodObject<{
15893
18287
  sourceSha256: string;
15894
18288
  referenceSha256: string;
15895
18289
  }>>>;
18290
+ /**
18291
+ * For a layer: each asset it dressed and a hash over that asset's output
18292
+ * hashes when this was made. Tracked the way `outfit` is: the sources'
18293
+ * current frame bytes are only in the lockfile.
18294
+ */
18295
+ layer: z.ZodOptional<z.ZodObject<{
18296
+ sources: z.ZodArray<z.ZodObject<{
18297
+ assetId: z.ZodString;
18298
+ sha256: z.ZodString;
18299
+ }, "strict", z.ZodTypeAny, {
18300
+ sha256: string;
18301
+ assetId: string;
18302
+ }, {
18303
+ sha256: string;
18304
+ assetId: string;
18305
+ }>, "many">;
18306
+ }, "strict", z.ZodTypeAny, {
18307
+ sources: {
18308
+ sha256: string;
18309
+ assetId: string;
18310
+ }[];
18311
+ }, {
18312
+ sources: {
18313
+ sha256: string;
18314
+ assetId: string;
18315
+ }[];
18316
+ }>>;
15896
18317
  /**
15897
18318
  * For a connected terrain set: per side of this set, the set it shares
15898
18319
  * that terrain with and that set's provider id when this was submitted.
@@ -16146,6 +18567,47 @@ declare const LockSchema: z.ZodObject<{
16146
18567
  }>>>;
16147
18568
  provider: z.ZodDefault<z.ZodString>;
16148
18569
  postprocess: z.ZodOptional<z.ZodObject<{
18570
+ /**
18571
+ * Ghost pixels were removed from each frame, judged against the rotations
18572
+ * of this asset in the same style. Which bytes those rotations held is not
18573
+ * recorded here: a regenerated parent already makes its loops stale.
18574
+ */
18575
+ despeckle: z.ZodOptional<z.ZodObject<{
18576
+ of: z.ZodString;
18577
+ }, "strip", z.ZodTypeAny, {
18578
+ of: string;
18579
+ }, {
18580
+ of: string;
18581
+ }>>;
18582
+ /** A layer's frames were moved by this many pixels, with per-source-asset pairs over the default. */
18583
+ offset: z.ZodOptional<z.ZodObject<{
18584
+ x: z.ZodNumber;
18585
+ y: z.ZodNumber;
18586
+ per: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
18587
+ x: z.ZodNumber;
18588
+ y: z.ZodNumber;
18589
+ }, "strip", z.ZodTypeAny, {
18590
+ x: number;
18591
+ y: number;
18592
+ }, {
18593
+ x: number;
18594
+ y: number;
18595
+ }>>>;
18596
+ }, "strip", z.ZodTypeAny, {
18597
+ x: number;
18598
+ y: number;
18599
+ per?: Record<string, {
18600
+ x: number;
18601
+ y: number;
18602
+ }> | undefined;
18603
+ }, {
18604
+ x: number;
18605
+ y: number;
18606
+ per?: Record<string, {
18607
+ x: number;
18608
+ y: number;
18609
+ }> | undefined;
18610
+ }>>;
16149
18611
  palette: z.ZodOptional<z.ZodObject<{
16150
18612
  /** Canonical lowercase `#rrggbb` values, in manifest order. */
16151
18613
  colors: z.ZodArray<z.ZodString, "many">;
@@ -16166,12 +18628,34 @@ declare const LockSchema: z.ZodObject<{
16166
18628
  dither: "none";
16167
18629
  distance: "redmean";
16168
18630
  } | undefined;
18631
+ offset?: {
18632
+ x: number;
18633
+ y: number;
18634
+ per?: Record<string, {
18635
+ x: number;
18636
+ y: number;
18637
+ }> | undefined;
18638
+ } | undefined;
18639
+ despeckle?: {
18640
+ of: string;
18641
+ } | undefined;
16169
18642
  }, {
16170
18643
  palette?: {
16171
18644
  colors: string[];
16172
18645
  dither: "none";
16173
18646
  distance: "redmean";
16174
18647
  } | undefined;
18648
+ offset?: {
18649
+ x: number;
18650
+ y: number;
18651
+ per?: Record<string, {
18652
+ x: number;
18653
+ y: number;
18654
+ }> | undefined;
18655
+ } | undefined;
18656
+ despeckle?: {
18657
+ of: string;
18658
+ } | undefined;
16175
18659
  }>>;
16176
18660
  /** A connected terrain set's other sets; see LockEntrySchema.terrainConnect. */
16177
18661
  terrainConnect: z.ZodOptional<z.ZodRecord<z.ZodEnum<["lower", "upper"]>, z.ZodObject<{
@@ -16315,6 +18799,17 @@ declare const LockSchema: z.ZodObject<{
16315
18799
  dither: "none";
16316
18800
  distance: "redmean";
16317
18801
  } | undefined;
18802
+ offset?: {
18803
+ x: number;
18804
+ y: number;
18805
+ per?: Record<string, {
18806
+ x: number;
18807
+ y: number;
18808
+ }> | undefined;
18809
+ } | undefined;
18810
+ despeckle?: {
18811
+ of: string;
18812
+ } | undefined;
16318
18813
  } | undefined;
16319
18814
  terrainConnect?: Partial<Record<"lower" | "upper", {
16320
18815
  sourceAssetId: string;
@@ -16390,6 +18885,17 @@ declare const LockSchema: z.ZodObject<{
16390
18885
  dither: "none";
16391
18886
  distance: "redmean";
16392
18887
  } | undefined;
18888
+ offset?: {
18889
+ x: number;
18890
+ y: number;
18891
+ per?: Record<string, {
18892
+ x: number;
18893
+ y: number;
18894
+ }> | undefined;
18895
+ } | undefined;
18896
+ despeckle?: {
18897
+ of: string;
18898
+ } | undefined;
16393
18899
  } | undefined;
16394
18900
  terrainConnect?: Partial<Record<"lower" | "upper", {
16395
18901
  sourceAssetId: string;
@@ -16428,6 +18934,47 @@ declare const LockSchema: z.ZodObject<{
16428
18934
  }>, "many">>;
16429
18935
  /** Post-processing applied to the recorded outputs; absent when the bytes are the provider's. */
16430
18936
  postprocess: z.ZodOptional<z.ZodObject<{
18937
+ /**
18938
+ * Ghost pixels were removed from each frame, judged against the rotations
18939
+ * of this asset in the same style. Which bytes those rotations held is not
18940
+ * recorded here: a regenerated parent already makes its loops stale.
18941
+ */
18942
+ despeckle: z.ZodOptional<z.ZodObject<{
18943
+ of: z.ZodString;
18944
+ }, "strip", z.ZodTypeAny, {
18945
+ of: string;
18946
+ }, {
18947
+ of: string;
18948
+ }>>;
18949
+ /** A layer's frames were moved by this many pixels, with per-source-asset pairs over the default. */
18950
+ offset: z.ZodOptional<z.ZodObject<{
18951
+ x: z.ZodNumber;
18952
+ y: z.ZodNumber;
18953
+ per: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
18954
+ x: z.ZodNumber;
18955
+ y: z.ZodNumber;
18956
+ }, "strip", z.ZodTypeAny, {
18957
+ x: number;
18958
+ y: number;
18959
+ }, {
18960
+ x: number;
18961
+ y: number;
18962
+ }>>>;
18963
+ }, "strip", z.ZodTypeAny, {
18964
+ x: number;
18965
+ y: number;
18966
+ per?: Record<string, {
18967
+ x: number;
18968
+ y: number;
18969
+ }> | undefined;
18970
+ }, {
18971
+ x: number;
18972
+ y: number;
18973
+ per?: Record<string, {
18974
+ x: number;
18975
+ y: number;
18976
+ }> | undefined;
18977
+ }>>;
16431
18978
  palette: z.ZodOptional<z.ZodObject<{
16432
18979
  /** Canonical lowercase `#rrggbb` values, in manifest order. */
16433
18980
  colors: z.ZodArray<z.ZodString, "many">;
@@ -16448,12 +18995,34 @@ declare const LockSchema: z.ZodObject<{
16448
18995
  dither: "none";
16449
18996
  distance: "redmean";
16450
18997
  } | undefined;
18998
+ offset?: {
18999
+ x: number;
19000
+ y: number;
19001
+ per?: Record<string, {
19002
+ x: number;
19003
+ y: number;
19004
+ }> | undefined;
19005
+ } | undefined;
19006
+ despeckle?: {
19007
+ of: string;
19008
+ } | undefined;
16451
19009
  }, {
16452
19010
  palette?: {
16453
19011
  colors: string[];
16454
19012
  dither: "none";
16455
19013
  distance: "redmean";
16456
19014
  } | undefined;
19015
+ offset?: {
19016
+ x: number;
19017
+ y: number;
19018
+ per?: Record<string, {
19019
+ x: number;
19020
+ y: number;
19021
+ }> | undefined;
19022
+ } | undefined;
19023
+ despeckle?: {
19024
+ of: string;
19025
+ } | undefined;
16457
19026
  }>>;
16458
19027
  /**
16459
19028
  * Set when the entry records art made outside pixelkiln (the PixelLab MCP, a
@@ -16628,6 +19197,12 @@ declare const LockSchema: z.ZodObject<{
16628
19197
  assetId: string;
16629
19198
  reviewObjectId: string | null;
16630
19199
  error: string | null;
19200
+ layer?: {
19201
+ sources: {
19202
+ sha256: string;
19203
+ assetId: string;
19204
+ }[];
19205
+ } | undefined;
16631
19206
  derive?: {
16632
19207
  sourceSha256: string;
16633
19208
  sourceAssetId?: string | undefined;
@@ -16680,6 +19255,17 @@ declare const LockSchema: z.ZodObject<{
16680
19255
  dither: "none";
16681
19256
  distance: "redmean";
16682
19257
  } | undefined;
19258
+ offset?: {
19259
+ x: number;
19260
+ y: number;
19261
+ per?: Record<string, {
19262
+ x: number;
19263
+ y: number;
19264
+ }> | undefined;
19265
+ } | undefined;
19266
+ despeckle?: {
19267
+ of: string;
19268
+ } | undefined;
16683
19269
  } | undefined;
16684
19270
  terrainConnect?: Partial<Record<"lower" | "upper", {
16685
19271
  sourceAssetId: string;
@@ -16722,6 +19308,17 @@ declare const LockSchema: z.ZodObject<{
16722
19308
  dither: "none";
16723
19309
  distance: "redmean";
16724
19310
  } | undefined;
19311
+ offset?: {
19312
+ x: number;
19313
+ y: number;
19314
+ per?: Record<string, {
19315
+ x: number;
19316
+ y: number;
19317
+ }> | undefined;
19318
+ } | undefined;
19319
+ despeckle?: {
19320
+ of: string;
19321
+ } | undefined;
16725
19322
  } | undefined;
16726
19323
  terrainConnect?: Partial<Record<"lower" | "upper", {
16727
19324
  sourceAssetId: string;
@@ -16779,6 +19376,12 @@ declare const LockSchema: z.ZodObject<{
16779
19376
  sourceSha256: string;
16780
19377
  referenceSha256: string;
16781
19378
  } | null | undefined;
19379
+ layer?: {
19380
+ sources: {
19381
+ sha256: string;
19382
+ assetId: string;
19383
+ }[];
19384
+ } | undefined;
16782
19385
  tileFeature?: string | null | undefined;
16783
19386
  revision?: {
16784
19387
  mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation" | "normal-map";
@@ -16867,6 +19470,17 @@ declare const LockSchema: z.ZodObject<{
16867
19470
  dither: "none";
16868
19471
  distance: "redmean";
16869
19472
  } | undefined;
19473
+ offset?: {
19474
+ x: number;
19475
+ y: number;
19476
+ per?: Record<string, {
19477
+ x: number;
19478
+ y: number;
19479
+ }> | undefined;
19480
+ } | undefined;
19481
+ despeckle?: {
19482
+ of: string;
19483
+ } | undefined;
16870
19484
  } | undefined;
16871
19485
  terrainConnect?: Partial<Record<"lower" | "upper", {
16872
19486
  sourceAssetId: string;
@@ -16934,6 +19548,17 @@ declare const LockSchema: z.ZodObject<{
16934
19548
  dither: "none";
16935
19549
  distance: "redmean";
16936
19550
  } | undefined;
19551
+ offset?: {
19552
+ x: number;
19553
+ y: number;
19554
+ per?: Record<string, {
19555
+ x: number;
19556
+ y: number;
19557
+ }> | undefined;
19558
+ } | undefined;
19559
+ despeckle?: {
19560
+ of: string;
19561
+ } | undefined;
16937
19562
  } | undefined;
16938
19563
  terrainConnect?: Partial<Record<"lower" | "upper", {
16939
19564
  sourceAssetId: string;
@@ -17058,6 +19683,12 @@ declare const LockSchema: z.ZodObject<{
17058
19683
  assetId: string;
17059
19684
  reviewObjectId: string | null;
17060
19685
  error: string | null;
19686
+ layer?: {
19687
+ sources: {
19688
+ sha256: string;
19689
+ assetId: string;
19690
+ }[];
19691
+ } | undefined;
17061
19692
  derive?: {
17062
19693
  sourceSha256: string;
17063
19694
  sourceAssetId?: string | undefined;
@@ -17110,6 +19741,17 @@ declare const LockSchema: z.ZodObject<{
17110
19741
  dither: "none";
17111
19742
  distance: "redmean";
17112
19743
  } | undefined;
19744
+ offset?: {
19745
+ x: number;
19746
+ y: number;
19747
+ per?: Record<string, {
19748
+ x: number;
19749
+ y: number;
19750
+ }> | undefined;
19751
+ } | undefined;
19752
+ despeckle?: {
19753
+ of: string;
19754
+ } | undefined;
17113
19755
  } | undefined;
17114
19756
  terrainConnect?: Partial<Record<"lower" | "upper", {
17115
19757
  sourceAssetId: string;
@@ -17152,6 +19794,17 @@ declare const LockSchema: z.ZodObject<{
17152
19794
  dither: "none";
17153
19795
  distance: "redmean";
17154
19796
  } | undefined;
19797
+ offset?: {
19798
+ x: number;
19799
+ y: number;
19800
+ per?: Record<string, {
19801
+ x: number;
19802
+ y: number;
19803
+ }> | undefined;
19804
+ } | undefined;
19805
+ despeckle?: {
19806
+ of: string;
19807
+ } | undefined;
17155
19808
  } | undefined;
17156
19809
  terrainConnect?: Partial<Record<"lower" | "upper", {
17157
19810
  sourceAssetId: string;
@@ -17212,6 +19865,12 @@ declare const LockSchema: z.ZodObject<{
17212
19865
  sourceSha256: string;
17213
19866
  referenceSha256: string;
17214
19867
  } | null | undefined;
19868
+ layer?: {
19869
+ sources: {
19870
+ sha256: string;
19871
+ assetId: string;
19872
+ }[];
19873
+ } | undefined;
17215
19874
  tileFeature?: string | null | undefined;
17216
19875
  revision?: {
17217
19876
  mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation" | "normal-map";
@@ -17300,6 +19959,17 @@ declare const LockSchema: z.ZodObject<{
17300
19959
  dither: "none";
17301
19960
  distance: "redmean";
17302
19961
  } | undefined;
19962
+ offset?: {
19963
+ x: number;
19964
+ y: number;
19965
+ per?: Record<string, {
19966
+ x: number;
19967
+ y: number;
19968
+ }> | undefined;
19969
+ } | undefined;
19970
+ despeckle?: {
19971
+ of: string;
19972
+ } | undefined;
17303
19973
  } | undefined;
17304
19974
  terrainConnect?: Partial<Record<"lower" | "upper", {
17305
19975
  sourceAssetId: string;
@@ -17367,6 +20037,17 @@ declare const LockSchema: z.ZodObject<{
17367
20037
  dither: "none";
17368
20038
  distance: "redmean";
17369
20039
  } | undefined;
20040
+ offset?: {
20041
+ x: number;
20042
+ y: number;
20043
+ per?: Record<string, {
20044
+ x: number;
20045
+ y: number;
20046
+ }> | undefined;
20047
+ } | undefined;
20048
+ despeckle?: {
20049
+ of: string;
20050
+ } | undefined;
17370
20051
  } | undefined;
17371
20052
  terrainConnect?: Partial<Record<"lower" | "upper", {
17372
20053
  sourceAssetId: string;
@@ -17499,9 +20180,21 @@ interface ResolvedDerive {
17499
20180
  transform: AssetDerive["transform"];
17500
20181
  map?: Record<string, string>;
17501
20182
  palette?: string[];
20183
+ degrees?: number;
20184
+ hue?: [number, number];
20185
+ saturation?: number;
20186
+ brightness?: number;
17502
20187
  width?: number;
17503
20188
  height?: number;
17504
20189
  mode?: "nearest" | "box";
20190
+ skin?: string[];
20191
+ key?: string;
20192
+ tolerance?: number;
20193
+ /** despeckle: the stills, relative to the manifest, with each one's hash when it exists. */
20194
+ reference?: Array<{
20195
+ file: string;
20196
+ sha256: string | null;
20197
+ }>;
17505
20198
  source: {
17506
20199
  kind: "asset";
17507
20200
  assetId: string;
@@ -17671,6 +20364,10 @@ interface ResolvedSpec {
17671
20364
  terrainEnhance?: boolean;
17672
20365
  /** `pixflux` only: prompt adherence, 1 to 20. Absent leaves PixelLab's 8. */
17673
20366
  textGuidanceScale?: number;
20367
+ /** `pixflux` only, each absent unless the manifest sets it: the subject's facing, isometric view, and the background-removal task. */
20368
+ subjectDirection?: CharacterDirection;
20369
+ isometric?: true;
20370
+ backgroundRemoval?: "simple" | "complex";
17674
20371
  terrainPlatformThickness?: number;
17675
20372
  terrainLowerWalkable?: boolean;
17676
20373
  terrainUpperWalkable?: boolean;
@@ -21574,6 +24271,11 @@ declare class PixelLabClient {
21574
24271
  view?: string;
21575
24272
  /** How closely to follow the description, 1 to 20; the API default is 8. */
21576
24273
  textGuidanceScale?: number;
24274
+ /** The subject's facing and isometric view, both weakly guiding. */
24275
+ direction?: string;
24276
+ isometric?: boolean;
24277
+ /** How the background is cut away when `noBackground` is on; the API default is simple. */
24278
+ backgroundRemoval?: "simple" | "complex";
21577
24279
  seed?: number;
21578
24280
  }): Promise<{
21579
24281
  png: Buffer;
@@ -22720,6 +25422,14 @@ declare class PixelLabProvider implements Provider {
22720
25422
  * to the source frames' own roles recorded at submit time.
22721
25423
  */
22722
25424
  private pollCharacterOutfit;
25425
+ /**
25426
+ * A layer's job is a plain /inpaint-v3 background job returning the
25427
+ * repainted sheet. The layer is cut from it here, against the keyed sheet
25428
+ * and mask that submit left in the layer's work folder, and each frame is
25429
+ * cached under its source asset and role so fetch names the files after
25430
+ * the frames they sit over.
25431
+ */
25432
+ private pollCharacterLayer;
22723
25433
  /**
22724
25434
  * The background job is the authoritative record of one direction: it
22725
25435
  * completes with the frame URLs, the animation id, and the direction, and
@@ -22924,6 +25634,27 @@ declare class PixelLabProvider implements Provider {
22924
25634
  sourceUrl: string | null;
22925
25635
  }>;
22926
25636
  download(url: string): Promise<Buffer>;
25637
+ /**
25638
+ * One masked inpaint over a sheet, outside the plan and the lockfile: what
25639
+ * `redraw` uses to draw single frames of a layer again. `paintedSheet`
25640
+ * reads the job, and returns the repainted sheet once it has landed.
25641
+ */
25642
+ paintSheet(args: {
25643
+ description: string;
25644
+ keyed: Buffer;
25645
+ mask: Buffer;
25646
+ seed?: number;
25647
+ }): Promise<string>;
25648
+ paintedSheet(jobId: string): Promise<{
25649
+ status: "processing";
25650
+ } | {
25651
+ status: "failed";
25652
+ error: string;
25653
+ } | {
25654
+ status: "ready";
25655
+ png: Buffer;
25656
+ billed: BilledAmount | null;
25657
+ }>;
22927
25658
  balance(): Promise<BalanceInfo>;
22928
25659
  setTags(objectId: string, tags: string[], generator?: Generator): Promise<void>;
22929
25660
  list(): AsyncGenerator<RemoteAsset>;
@@ -23889,6 +26620,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
23889
26620
  }>]>>;
23890
26621
  textGuidanceScale: z.ZodOptional<z.ZodNumber>;
23891
26622
  isometric: z.ZodOptional<z.ZodBoolean>;
26623
+ backgroundRemoval: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
23892
26624
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
23893
26625
  styleCharacter: z.ZodOptional<z.ZodString>;
23894
26626
  seed: z.ZodOptional<z.ZodNumber>;
@@ -24039,6 +26771,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24039
26771
  hipWidth?: number | undefined;
24040
26772
  } | undefined;
24041
26773
  textGuidanceScale?: number | undefined;
26774
+ backgroundRemoval?: "simple" | "complex" | undefined;
24042
26775
  styleCharacter?: string | undefined;
24043
26776
  seed?: number | undefined;
24044
26777
  paletteName?: string | undefined;
@@ -24139,6 +26872,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24139
26872
  hipWidth?: number | undefined;
24140
26873
  } | undefined;
24141
26874
  textGuidanceScale?: number | undefined;
26875
+ backgroundRemoval?: "simple" | "complex" | undefined;
24142
26876
  styleCharacter?: string | undefined;
24143
26877
  seed?: number | undefined;
24144
26878
  paletteName?: string | undefined;
@@ -24245,6 +26979,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24245
26979
  hipWidth?: number | undefined;
24246
26980
  } | undefined;
24247
26981
  textGuidanceScale?: number | undefined;
26982
+ backgroundRemoval?: "simple" | "complex" | undefined;
24248
26983
  styleCharacter?: string | undefined;
24249
26984
  seed?: number | undefined;
24250
26985
  paletteName?: string | undefined;
@@ -24345,6 +27080,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24345
27080
  hipWidth?: number | undefined;
24346
27081
  } | undefined;
24347
27082
  textGuidanceScale?: number | undefined;
27083
+ backgroundRemoval?: "simple" | "complex" | undefined;
24348
27084
  styleCharacter?: string | undefined;
24349
27085
  seed?: number | undefined;
24350
27086
  paletteName?: string | undefined;
@@ -24451,6 +27187,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24451
27187
  hipWidth?: number | undefined;
24452
27188
  } | undefined;
24453
27189
  textGuidanceScale?: number | undefined;
27190
+ backgroundRemoval?: "simple" | "complex" | undefined;
24454
27191
  styleCharacter?: string | undefined;
24455
27192
  seed?: number | undefined;
24456
27193
  paletteName?: string | undefined;
@@ -24551,6 +27288,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24551
27288
  hipWidth?: number | undefined;
24552
27289
  } | undefined;
24553
27290
  textGuidanceScale?: number | undefined;
27291
+ backgroundRemoval?: "simple" | "complex" | undefined;
24554
27292
  styleCharacter?: string | undefined;
24555
27293
  seed?: number | undefined;
24556
27294
  paletteName?: string | undefined;
@@ -24995,6 +27733,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
24995
27733
  hipWidth?: number | undefined;
24996
27734
  } | undefined;
24997
27735
  textGuidanceScale?: number | undefined;
27736
+ backgroundRemoval?: "simple" | "complex" | undefined;
24998
27737
  styleCharacter?: string | undefined;
24999
27738
  seed?: number | undefined;
25000
27739
  paletteName?: string | undefined;
@@ -25177,6 +27916,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
25177
27916
  hipWidth?: number | undefined;
25178
27917
  } | undefined;
25179
27918
  textGuidanceScale?: number | undefined;
27919
+ backgroundRemoval?: "simple" | "complex" | undefined;
25180
27920
  styleCharacter?: string | undefined;
25181
27921
  seed?: number | undefined;
25182
27922
  paletteName?: string | undefined;
@@ -25365,6 +28105,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
25365
28105
  hipWidth?: number | undefined;
25366
28106
  } | undefined;
25367
28107
  textGuidanceScale?: number | undefined;
28108
+ backgroundRemoval?: "simple" | "complex" | undefined;
25368
28109
  styleCharacter?: string | undefined;
25369
28110
  seed?: number | undefined;
25370
28111
  paletteName?: string | undefined;
@@ -25547,6 +28288,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
25547
28288
  hipWidth?: number | undefined;
25548
28289
  } | undefined;
25549
28290
  textGuidanceScale?: number | undefined;
28291
+ backgroundRemoval?: "simple" | "complex" | undefined;
25550
28292
  styleCharacter?: string | undefined;
25551
28293
  seed?: number | undefined;
25552
28294
  paletteName?: string | undefined;
@@ -27457,6 +30199,27 @@ interface AtlasSet {
27457
30199
  /** Frame ids in play order. */
27458
30200
  frames: string[];
27459
30201
  }
30202
+ /**
30203
+ * A paperdoll layer on the sheet: which frame of it goes over which frame of
30204
+ * the character, and where. A game draws the `over` frame at some point P and
30205
+ * then the layer's `frame` at P plus (`dx`, `dy`); those are zero for a layer
30206
+ * the size of its source frame and negative for a padded one, which shares
30207
+ * its source's centre. Draw order between layers is the game's to decide.
30208
+ */
30209
+ interface AtlasLayer {
30210
+ /** Asset id of the layer. */
30211
+ id: string;
30212
+ /** The assets it sits over, in the layer's own order. */
30213
+ of: string[];
30214
+ frames: Array<{
30215
+ /** Frame id of the layer's own image. */
30216
+ frame: string;
30217
+ /** Frame id of the character frame it is drawn over. */
30218
+ over: string;
30219
+ dx: number;
30220
+ dy: number;
30221
+ }>;
30222
+ }
27460
30223
  /** What both writers need from a packed or mounted atlas. */
27461
30224
  interface SheetAtlas {
27462
30225
  style: string;
@@ -27544,6 +30307,8 @@ interface PackedSheet {
27544
30307
  * lockfile style was packed and had one.
27545
30308
  */
27546
30309
  sets?: AtlasSet[];
30310
+ /** Paperdoll layers on the sheet, each frame paired with the character frame it goes over. */
30311
+ layers?: AtlasLayer[];
27547
30312
  };
27548
30313
  /** Assets skipped because their file was missing or unreadable. */
27549
30314
  skipped: {
@@ -28422,7 +31187,7 @@ interface GallerySkeleton {
28422
31187
  interface GalleryCharacter {
28423
31188
  /** Which family this belongs to: a skeleton-based `character`, or a skeleton-free `objectPro`. */
28424
31189
  generator: "character" | "objectPro";
28425
- kind: "base" | "state" | "animation" | "portrait" | "outfit";
31190
+ kind: "base" | "state" | "animation" | "portrait" | "outfit" | "layer";
28426
31191
  /** Lock key of the base or state this is drawn from; null for a base. */
28427
31192
  parentKey: string | null;
28428
31193
  mode: string;
@@ -32978,4 +35743,4 @@ interface WorkspaceStatusReport {
32978
35743
  */
32979
35744
  declare function workspaceStatus(ws: Workspace, dir: string): Promise<WorkspaceStatusReport>;
32980
35745
 
32981
- export { ASSET_KINDS, type AdoptResult, type ApproveQualityOptions, type ApprovedQualityReview, type ArtifactBundleManifest, type ArtifactBundleOptions, type ArtifactBundleResult, type ArtifactFile, type ArtifactProvenance, type ArtifactSource, type ArtifactVerification, type Asset, type AssetAudit, type AssetBatch, AssetBatchSchema, type AssetDerive, AssetDeriveSchema, type AssetExternal, AssetExternalSchema, AssetSchema, type AssetVfx, AssetVfxSchema, type AtlasSet, type AudioFormat, type AuditEvaluation, type AuditThresholds, type AuditViolation, type Balance, type BalanceChange, type BalanceInfo, type Base64Image, type BilledAmount, BudgetError, type BuildGalleryOptions, type BuildWorkspaceGalleryOptions, CHARACTER_DIRECTIONS_4, CHARACTER_DIRECTIONS_8, CHARACTER_PROPORTION_PRESETS, type CacheHealthOptions, type CacheHealthReport, type CandidateSelection, type CharacterAnimation, type CharacterAnimationMode, CharacterAnimationModeSchema, CharacterAnimationSchema$1 as CharacterAnimationSchema, type CharacterDirection, CharacterDirectionSchema, type CharacterMode, CharacterModeSchema, type CharacterOutfit, CharacterOutfitSchema, type CharacterPortrait, CharacterPortraitSchema, type CharacterPortraitSize, CharacterPortraitSizeSchema, type CharacterProportions, CharacterProportionsSchema, type CharacterState, CharacterStateSchema, type ComfyUIBinding, type ComfyUIBindings, type ComfyUIFramesOptions, type ComfyUIImageInput, type ComfyUIOptions, ComfyUIProvider, type ContentCacheHealth, type ContentCacheIssue, type CostEstimate, type CostUnit, type CreateUiStatesOptions, type CreateUiStatesResult, DEFAULT_HISTORY_LIMIT, DEFAULT_QUALITY_TOLERANCES, DEFAULT_RATE_LIMIT, DEFAULT_TIMEOUT_MS, type DoctorCheck, type DoctorLevel, type DoctorOptions, type DoctorReport, EDITOR_PIN, EDITOR_RELEASE_BASE, EXIT_CODES, EXPAND_DIRECTIONS, EXPAND_MAX_COST, EXPAND_MIN_COST, EXPORT_FORMATS, EditorInstallError, type EditorInstallOptions, type EditorInstallProgress, type EditorInstallResult, type EditorInstallStatus, type EditorPin, type ErrorCode, type ExpandObjectOptions, type ExpandObjectResult, FAKE_PNG, FONT_COST_GENERATIONS, FONT_GLYPH_SIZES, FONT_WEIGHTS, FRAME_SET_REVISION_MODES, type FakeOptions, FakeProvider, type FetchResult, type FontGlyphSize, type FontWeight, type GalleryBuild, type GalleryEditHandlerOptions, type GalleryEditMeta, type GalleryEditorHandlers, type GalleryEditorOptions, type GalleryEditorStatus, type GalleryGenerateHandlers, type GalleryGeneration, type GalleryItem, type GalleryMedia, type GalleryOutput, type GalleryProject, type GalleryProjectContext, type GalleryQuality, type GalleryServer, type GalleryServerOptions, type GallerySnapshot, type GalleryState, type GalleryStyle, type GenerateFontOptions, type GenerateFontResult, type GenerateHandlerOptions, type GenerateJob, type GenerateMusicOptions, type GenerateMusicResult, type GeneratePhase, GenerateRequestError, GenerateRequestSchema, type GenerateSoundEffectOptions, type GenerateSoundEffectResult, type GenerateStatus, type Generator, GeneratorSchema, type GenericTileset, type GridConfidence, GridConfidenceSchema, HAND_EDIT_DIR, HISTORY_ENV, type HandEditCompanion, HandEditCompanionSchema, type HandEditMember, type HandEditSave, type HandEditSaveInput, type HandEditStart, type HandEditStatus, type HistoryPick, IMPORT_MAX_SIDE, IMPORT_MAX_TILES, IMPORT_TILE_TYPES, IMPORT_TILE_VIEWS, type ImageQualityMetrics, ImageQualityMetricsSchema, type ImportOptions, type ImportResult, type ImportTilesetOptions, InheritedStyleSchema, type InstallRecipeOptions, type InstallRecipeResult, type InvalidManifestEntry, type JobState, type LoadManifestOptions, type LoadedManifest, type LoadedRecipe, type Lock, type LockEntry, LockEntrySchema, type LockHistoryEntry, LockHistoryEntrySchema, type LockOrigin, LockOriginSchema, type LockOutput, LockSchema, type LockTerrainSettings, LockTerrainSettingsSchema, MAX_DOWNLOAD_BYTES, MAX_HAND_EDIT_BYTES, MAX_RETRIES, MEMBER_SET_REVISION_MODES, MIRRORED_DIRECTION, MIRROR_DIRECTIONS, MUSIC_COST_GENERATIONS, MUSIC_LOOP_COST_GENERATIONS, MUSIC_LOOP_MIN_BODY_SECONDS, MUSIC_MAX_BPM, MUSIC_MAX_SECONDS, MUSIC_MIN_BPM, MUSIC_MIN_SECONDS, type MakeVfxOptions, type MakeVfxResult, type MakeVfxWithArtistOptions, type MakeVfxWithArtistResult, type ManagedArtifactBundleOptions, type Manifest, ManifestDriftError, type ManifestEdit, ManifestEditError, type ManifestEditResult, ManifestEditSchema, ManifestInputSchema, ManifestSchema, type MapObject, type MapScene, type MapScenePlacement, MapScenePlacementSchema, MapSceneSchema, type McpImage, type McpToolResult, MediaType, type MountPlacement, type MountedSheet, type MusicOutputPaths, type MusicTake, NORMAL_MAP_CONVENTIONS, NORMAL_MAP_COST_GENERATIONS, NORMAL_MAP_KINDS, NORMAL_MAP_MAX_FRAMES, NORMAL_MAP_MAX_SIDE, NORMAL_MAP_MIN_SIDE, NORMAL_MAP_MODES, NORMAL_MAP_SHAPE_RANGES, type NormalMapConvention, NormalMapConventionSchema, type NormalMapKind, type NormalMapMode, type NormalMapOptions, type NormalMapResult, type NormalMapShape, type NormalizedTileRules, type ObjectAnimationGroup, type OpenProjectOptions, type Orphan, type OrphanGroups, type OutputSelection, type OutputSource, OverwriteRefusedError, PIXELATE_COST_GENERATIONS, PIXELATE_MAX_SIDE, PIXELATE_PRO_COST_GENERATIONS, PIXELLAB_MCP_URL, PIXEL_ART_FIXER_REVISION, PIXEL_ART_FIXER_URL, PRO_TIER_PRICES, type PackedFrame, type PackedSheet, type PackedSource, type PendingQualityReview, type PickResult, type PixelArtFixerDetection, PixelKilnError, type PixelKilnErrorOptions, type PixelLabAssetKind, type PixelLabCharacter, type PixelLabCharacterAnimation, PixelLabClient, PixelLabError, type PixelLabExportFormat, PixelLabMcpClient, type PixelLabObject, PixelLabProvider, type PixelLabSong, type PixelLabSoundEffect, type PixelLabUiAsset, type PixelLabUiPart, type PixelLabUsage, type PixelateOptions, type PixelateResult, type Plan, type PlanItem, type PlanState, type PollContext, type PollOptions, type PollResult, type Postprocess, PostprocessSchema, type PrepareReviewOptions, type ProFlashCostOperation, type ProFlashQuote, type Project, ProjectError, type Provider, ProviderError, type ProviderFactory, type ProviderInputContext, type ProviderInputScalar, type ProviderInputValue, type ProviderMetadata, type ProviderMode, type ProviderOptionContext, type ProviderSubmission, type PullUiResult, type PulledUiFile, type QualityBaseline, QualityBaselineSchema, type QualityCaseChange, type QualityCheck, type QualityMetricChange, type QualityProfile, type QualityProfileInspection, QualityProfileSchema, type QualityProfileState, type QualityRegressionCaseResult, type QualityRegressionReport, type QualitySnapshotResult, QualityToleranceSchema, type QualityTolerances, type RateLimit, type Recipe, type RecipeFileVerification, type RecipeModelVerification, RecipeSchema, type RecipeVerification, type RefineAudit, type RefineFrameSetOptions, type RefineFrameSetResult, type RefineOptions, type RefineQualityProfilesOptions, type RefineQualityProfilesResult, type RefineRecordOptions, type RefineResult, type RefreshContext, type RemoteAsset, type RemoteCharacter, type RemoteCharacterDetail, type RemoteHashCacheHealth, type RenderGalleryOptions, type RenderSheetOptions, type ResolvedBatch, type ResolvedCharacter, type ResolvedDerive, type ResolvedExternal, type ResolvedMapScene, type ResolvedMirror, type ResolvedObjectPro, type ResolvedOutput, type ResolvedProviderInputs, type ResolvedProviderOptions, type ResolvedQualityInput, type ResolvedQualityProfile, type ResolvedReferenceImage, type ResolvedRevision, type ResolvedRevisionMember, type ResolvedSpec, type ResolvedStyleAnchor, type ResolvedStyleImage, type ResolvedTerrainLink, type ResolvedTerrainReference, type ResolvedVfx, type ResumeAction, type ResumeCommand, type RetroDiffusionOptions, RetroDiffusionProvider, type RetryInit, type RetryOptions, type RetryingFetch, type RevertOptions, type RevertResult, type ReviewReadyInfo, type ReviewSession, type Revision, type RevisionDithering, RevisionDitheringSchema, type RevisionMode, RevisionModeSchema, type RevisionReadiness, RevisionSchema, SFX_MAX_SECONDS, SFX_MIN_SECONDS, SHEET_FORMATS, type SalvageAction, type SalvageResult, type SaveToAssetResult, type ScannedAsset, type ScenarioOptions, ScenarioProvider, type SessionBudget, type SheetAtlas, type SheetFormat, type SheetFormatOptions, type SheetGroup, type SiblingManifest, type SpecHashReport, type SpriteInput, type Style, type StyleAudit, type StyleInput, StyleInputSchema, StyleSchema, type SubmissionCheckpoint, type SubmitContext, type SubmitOptions, type SubmitResult, TARGET_PALETTE_GENERATORS, TILESET_MODES, type TargetPaletteArg, type TerrainConnect, TerrainConnectSchema, type TerrainLink, TerrainLinkSchema, type TerrainSide, TerrainSideSchema, type TilesPro, type Tileset, type TilesetExport, type TilesetExportOptions, type TilesetFormat, type TilesetMetadata, type TilesetSheetReading, type TilesetTile, UI_STATES_COSTS, UI_STATES_MAX_COST, UI_STATES_MAX_ELEMENTS, UI_STATES_MAX_STATES, UNZOOM_MAX_AREA, UNZOOM_MIN_SIDE, type UiBox, type UiElement, UiElementSchema, type UiInsets, type UiPiece, UiPieceSchema, type UiStateSpec, UnsupportedCapabilityError, type UnzoomFileResult, UsageError, VFX_ARTISTS, VFX_ARTIST_ANIMATED_EXTRA, VFX_ARTIST_MAX_FRAMES, VFX_ARTIST_MAX_SPRITE, VFX_ARTIST_MAX_STRIP, VFX_TOOL, type VfxArtist, type VfxArtistFile, type VfxArtistProvenance, type VfxArtistResult, type VfxExport, type VfxPart, VfxPartSchema, type VfxProvenance, type VfxWorkbenchOptions, type Workspace, type WorkspaceClaims, type WorkspaceDiagnostic, type WorkspaceProject, WorkspaceProjectSchema, type WorkspaceProjectStatus, WorkspaceSchema, type WorkspaceStatusReport, adopt, applyManifestEdit, applyTags, approveQualityRecord, assetInStyle, auditStyle, availableProviders, backoffMs, buildGallerySnapshot, buildImportedEntry, buildManifest, buildPlan, buildWorkspaceGallerySnapshot, bundledRecipeRoot, cacheFileName, candidateCount, characterDirections, checkExportBytes, checkQualityBaseline, checkQualityRecord, checkSaveTarget, checkUiInsets, chooseTilesetSheetReading, clientFromEnv, colorDistance, countNumberedDescriptions, createArtifactBundleManifest, createGalleryEditHandler, createGalleryEditorHandlers, createGenerateHandlers, createProvider, createUiStates, currentEntryOutputPath, currentOutputPath, defaultNormalMapOut, defaultOpenCommand, defaultPixelateOut, defaultUnzoomOut, describeVfx, detachHandEdit, detectAudioFormat, detectMediaType, doctor, editorBaseUrl, editorDir, editorRoute, editorStatus, editorToolsRoot, errorCode, evaluateAudit, exitCodeFor, expandObject, expectedOutputPath, exportAssetFile, exportOutPath, exportTileset, fallbackOutputRole, fetchAssets, fetchWithRetry, findOrphans, fontOutputPaths, formatCost, frameSetFps, frameSetLoop, galleryContentSecurityPolicy, galleryMediaId, galleryMediaRoute, generateFont, generateMusic, generateSoundEffect, generationCost, gifSize, groupOrphansByStyle, handEditBase, handEditBases, handEditCompanionPath, handEditMembers, handEditPath, handEditProjectPath, hex, historyAfterReplacing, historyLimit, idFromPrompt, imageMetadata, importLocal, importObjectFile, importTileHeights, importTilesFiles, importTilesetFile, inspectCaches, inspectQualityProfile, inspectRevisionReadiness, installEditor, installRecipe, isBusyReply, isFrameSetEntry, isMemberSetEntry, isSensitiveSourceUrl, isVfxReference, isometricTileCost, listBundledRecipes, loadClaims, loadLock, loadManifest, loadSiblingManifests, loadWorkspace, lockKey, makeVfx, makeVfxWithArtist, matchOrphanStyle, mcpClientFromEnv, measureBalanceChange, measureDecodedImageQuality, measureImageQuality, mediaExtension, mediaTypeFromExtension, memberPath, mergePalettes, mountSprites, mountStyle, musicCost, musicOutputPaths, normalMapCost, normalMapFile, normalMapResultPng, normalMapSizeProblem, normalizeLockOutputPaths, normalizeRefinementPalette, normalizeTerrainTiles, normalizeTileRules, openExternal, openInEditor, openProject, outliers, outputId, packSprites, packStyle, paletteDistance, parentAssetId, parseCanvasSize, parseLock, parseMcpBody, parseProFlashQuote, parseTerrainDescriptions, parseUiBox, parseUiInsets, parseUiState, parseVfxArtistResult, parseVfxExport, parseVfxRecipe, parseVfxStep, parseWorkspace, pickHistory, pixMiniMaxCost, pixelateFile, pngFilesAt, pngSize, poll, portableOutputPath, prepareReview, primaryOutput, proTierCost, proportionsPayload, providerCredentialEnvs, providerFactory, pullExpansionReview, pullUiAsset, pushTags, qualityFrameOutputPath, qualityRecordPath, quantizeToPalette, readArtifactBundleManifest, readHandEditCompanion, readQualityBaseline, readSavedVfxRecipe, readVfxConversation, readVfxRecipe, recipeDigest, recordedAnimationGroup, referencedHashes, refineAsset, refineFrameSet, refineQualityProfiles, registerProvider, remove, renderAsepriteSheet, renderGallery, renderGodotSpriteFrames, renderSalvageSheet, renderSheet, renderSheetDocument, reportSpecHashes, requireApprovedQualitySources, requireBalance, requireDelete, requireList, requireRevisionReady, requireSelectCandidate, resolveEntryOutputs, resolveOutputPath, resolvePackInputs, resolveProject, resolveQualityInputs, resolveRecipe, resolveSpecEntryOutputs, resolveSpecOutputs, resolveSpecs, resolveStyleImages, resolveStyleOutputs, resolveVfxSprite, resumeActions, resumeCommandForStatus, retireGeneration, retryAfterMs, revertGeneration, runPicker, runSalvage, runVfxWorkbench, saveHandEdit, saveLock, saveToAssetFile, saveUndoDir, saveWorkspace, scanAssets, selectEntryOutput, serveGallery, sha256, sha256File, shouldPersistSourceUrl, shouldRetry, sliceVfxSheet, slugify, snapshotQualityBaseline, snapshotQualityCases, soundEffectCost, soundEffectOutputPaths, sourceIsStem, sourceOutputPath, specHash, spendByUnit, startHandEdit, styleImagesBase64, submit, summarize, tagAdopted, targetPaletteBody, terrainCost, terrainSettings, terrainTileCount, tileFeatureOutputCount, tileVariationCount, tilesCost, tilesetSheetReadings, toPortablePath, totalSpend, uiElementCandidateCount, uiStateElements, unzoomFile, upsert, validateAudio, validateCostEstimate, validateMedia, validateWorkspace, verifyArtifactBundle, verifyRecipe, vfxArtistCeiling, vfxArtistFiles, vfxArtistFrameFacts, vfxArtistFrameSide, vfxArtistQuote, vfxArtistSprite, vfxAtlasFrames, vfxJobFailure, vfxOutputPaths, vfxRecipeSha256, withArtifactManifest, workspaceClaims, workspaceStatus, writeArtifactBundle, writeManagedArtifactBundle };
35746
+ export { ASSET_KINDS, ATTACH_JOINTS, type AdoptResult, type ApproveQualityOptions, type ApprovedQualityReview, type ArtifactBundleManifest, type ArtifactBundleOptions, type ArtifactBundleResult, type ArtifactFile, type ArtifactProvenance, type ArtifactSource, type ArtifactVerification, type Asset, type AssetAudit, type AssetBatch, AssetBatchSchema, type AssetDerive, AssetDeriveSchema, type AssetExternal, AssetExternalSchema, AssetSchema, type AssetVfx, AssetVfxSchema, type AtlasLayer, type AtlasSet, type AttachJoint, type AudioFormat, type AuditEvaluation, type AuditThresholds, type AuditViolation, type Balance, type BalanceChange, type BalanceInfo, type Base64Image, type BilledAmount, BudgetError, type BuildGalleryOptions, type BuildWorkspaceGalleryOptions, CHARACTER_DIRECTIONS_4, CHARACTER_DIRECTIONS_8, CHARACTER_PROPORTION_PRESETS, type CacheHealthOptions, type CacheHealthReport, type CandidateSelection, type CharacterAnimation, type CharacterAnimationMode, CharacterAnimationModeSchema, CharacterAnimationSchema$1 as CharacterAnimationSchema, type CharacterAttach, CharacterAttachSchema, type CharacterDirection, CharacterDirectionSchema, type CharacterLayer, CharacterLayerSchema, type CharacterMode, CharacterModeSchema, type CharacterOutfit, CharacterOutfitSchema, type CharacterPortrait, CharacterPortraitSchema, type CharacterPortraitSize, CharacterPortraitSizeSchema, type CharacterProportions, CharacterProportionsSchema, type CharacterState, CharacterStateSchema, type ComfyUIBinding, type ComfyUIBindings, type ComfyUIFramesOptions, type ComfyUIImageInput, type ComfyUIOptions, ComfyUIProvider, type ContentCacheHealth, type ContentCacheIssue, type CostEstimate, type CostUnit, type CreateUiStatesOptions, type CreateUiStatesResult, DEFAULT_HISTORY_LIMIT, DEFAULT_QUALITY_TOLERANCES, DEFAULT_RATE_LIMIT, DEFAULT_TIMEOUT_MS, type DoctorCheck, type DoctorLevel, type DoctorOptions, type DoctorReport, EDITOR_PIN, EDITOR_RELEASE_BASE, EXIT_CODES, EXPAND_DIRECTIONS, EXPAND_MAX_COST, EXPAND_MIN_COST, EXPORT_FORMATS, EditorInstallError, type EditorInstallOptions, type EditorInstallProgress, type EditorInstallResult, type EditorInstallStatus, type EditorPin, type ErrorCode, type ExpandObjectOptions, type ExpandObjectResult, FAKE_PNG, FONT_COST_GENERATIONS, FONT_GLYPH_SIZES, FONT_WEIGHTS, FRAME_SET_REVISION_MODES, type FakeOptions, FakeProvider, type FetchResult, type FontGlyphSize, type FontWeight, type GalleryBuild, type GalleryEditHandlerOptions, type GalleryEditMeta, type GalleryEditorHandlers, type GalleryEditorOptions, type GalleryEditorStatus, type GalleryGenerateHandlers, type GalleryGeneration, type GalleryItem, type GalleryMedia, type GalleryOutput, type GalleryProject, type GalleryProjectContext, type GalleryQuality, type GalleryServer, type GalleryServerOptions, type GallerySnapshot, type GalleryState, type GalleryStyle, type GenerateFontOptions, type GenerateFontResult, type GenerateHandlerOptions, type GenerateJob, type GenerateMusicOptions, type GenerateMusicResult, type GeneratePhase, GenerateRequestError, GenerateRequestSchema, type GenerateSoundEffectOptions, type GenerateSoundEffectResult, type GenerateStatus, type Generator, GeneratorSchema, type GenericTileset, type GridConfidence, GridConfidenceSchema, HAND_EDIT_DIR, HISTORY_ENV, type HandEditCompanion, HandEditCompanionSchema, type HandEditMember, type HandEditSave, type HandEditSaveInput, type HandEditStart, type HandEditStatus, type HistoryPick, IMPORT_MAX_SIDE, IMPORT_MAX_TILES, IMPORT_TILE_TYPES, IMPORT_TILE_VIEWS, type ImageQualityMetrics, ImageQualityMetricsSchema, type ImportOptions, type ImportResult, type ImportTilesetOptions, InheritedStyleSchema, type InstallRecipeOptions, type InstallRecipeResult, type InvalidManifestEntry, type JobState, type LayerOffset, type LoadManifestOptions, type LoadedManifest, type LoadedRecipe, type Lock, type LockEntry, LockEntrySchema, type LockHistoryEntry, LockHistoryEntrySchema, type LockOrigin, LockOriginSchema, type LockOutput, LockSchema, type LockTerrainSettings, LockTerrainSettingsSchema, MAX_DOWNLOAD_BYTES, MAX_HAND_EDIT_BYTES, MAX_RETRIES, MEMBER_SET_REVISION_MODES, MIRRORED_DIRECTION, MIRROR_DIRECTIONS, MUSIC_COST_GENERATIONS, MUSIC_LOOP_COST_GENERATIONS, MUSIC_LOOP_MIN_BODY_SECONDS, MUSIC_MAX_BPM, MUSIC_MAX_SECONDS, MUSIC_MIN_BPM, MUSIC_MIN_SECONDS, type MakeVfxOptions, type MakeVfxResult, type MakeVfxWithArtistOptions, type MakeVfxWithArtistResult, type ManagedArtifactBundleOptions, type Manifest, ManifestDriftError, type ManifestEdit, ManifestEditError, type ManifestEditResult, ManifestEditSchema, ManifestInputSchema, ManifestSchema, type MapObject, type MapScene, type MapScenePlacement, MapScenePlacementSchema, MapSceneSchema, type McpImage, type McpToolResult, MediaType, type MountPlacement, type MountedSheet, type MusicOutputPaths, type MusicTake, NORMAL_MAP_CONVENTIONS, NORMAL_MAP_COST_GENERATIONS, NORMAL_MAP_KINDS, NORMAL_MAP_MAX_FRAMES, NORMAL_MAP_MAX_SIDE, NORMAL_MAP_MIN_SIDE, NORMAL_MAP_MODES, NORMAL_MAP_SHAPE_RANGES, type NormalMapConvention, NormalMapConventionSchema, type NormalMapKind, type NormalMapMode, type NormalMapOptions, type NormalMapResult, type NormalMapShape, type NormalizedTileRules, type ObjectAnimationGroup, type OpenProjectOptions, type Orphan, type OrphanGroups, type OutputSelection, type OutputSource, OverwriteRefusedError, PIXELATE_COST_GENERATIONS, PIXELATE_MAX_SIDE, PIXELATE_PRO_COST_GENERATIONS, PIXELLAB_MCP_URL, PIXEL_ART_FIXER_REVISION, PIXEL_ART_FIXER_URL, PRO_TIER_PRICES, type PackedFrame, type PackedSheet, type PackedSource, type PendingQualityReview, type PickResult, type PixelArtFixerDetection, PixelKilnError, type PixelKilnErrorOptions, type PixelLabAssetKind, type PixelLabCharacter, type PixelLabCharacterAnimation, PixelLabClient, PixelLabError, type PixelLabExportFormat, PixelLabMcpClient, type PixelLabObject, PixelLabProvider, type PixelLabSong, type PixelLabSoundEffect, type PixelLabUiAsset, type PixelLabUiPart, type PixelLabUsage, type PixelateOptions, type PixelateResult, type Plan, type PlanItem, type PlanState, type PollContext, type PollOptions, type PollResult, type Postprocess, PostprocessSchema, type PrepareReviewOptions, type ProFlashCostOperation, type ProFlashQuote, type Project, ProjectError, type Provider, ProviderError, type ProviderFactory, type ProviderInputContext, type ProviderInputScalar, type ProviderInputValue, type ProviderMetadata, type ProviderMode, type ProviderOptionContext, type ProviderSubmission, type PullUiResult, type PulledUiFile, type QualityBaseline, QualityBaselineSchema, type QualityCaseChange, type QualityCheck, type QualityMetricChange, type QualityProfile, type QualityProfileInspection, QualityProfileSchema, type QualityProfileState, type QualityRegressionCaseResult, type QualityRegressionReport, type QualitySnapshotResult, QualityToleranceSchema, type QualityTolerances, type RateLimit, type Recipe, type RecipeFileVerification, type RecipeModelVerification, RecipeSchema, type RecipeVerification, type RefineAudit, type RefineFrameSetOptions, type RefineFrameSetResult, type RefineOptions, type RefineQualityProfilesOptions, type RefineQualityProfilesResult, type RefineRecordOptions, type RefineResult, type RefreshContext, type RemoteAsset, type RemoteCharacter, type RemoteCharacterDetail, type RemoteHashCacheHealth, type RenderGalleryOptions, type RenderSheetOptions, type ResolvedBatch, type ResolvedCharacter, type ResolvedDerive, type ResolvedExternal, type ResolvedMapScene, type ResolvedMirror, type ResolvedObjectPro, type ResolvedOutput, type ResolvedProviderInputs, type ResolvedProviderOptions, type ResolvedQualityInput, type ResolvedQualityProfile, type ResolvedReferenceImage, type ResolvedRevision, type ResolvedRevisionMember, type ResolvedSpec, type ResolvedStyleAnchor, type ResolvedStyleImage, type ResolvedTerrainLink, type ResolvedTerrainReference, type ResolvedVfx, type ResumeAction, type ResumeCommand, type RetroDiffusionOptions, RetroDiffusionProvider, type RetryInit, type RetryOptions, type RetryingFetch, type RevertOptions, type RevertResult, type ReviewReadyInfo, type ReviewSession, type Revision, type RevisionDithering, RevisionDitheringSchema, type RevisionMode, RevisionModeSchema, type RevisionReadiness, RevisionSchema, SFX_MAX_SECONDS, SFX_MIN_SECONDS, SHEET_FORMATS, type SalvageAction, type SalvageResult, type SaveToAssetResult, type ScannedAsset, type ScenarioOptions, ScenarioProvider, type SessionBudget, type SheetAtlas, type SheetFormat, type SheetFormatOptions, type SheetGroup, type SiblingManifest, type SpecHashReport, type SpriteInput, type Style, type StyleAudit, type StyleInput, StyleInputSchema, StyleSchema, type SubmissionCheckpoint, type SubmitContext, type SubmitOptions, type SubmitResult, TARGET_PALETTE_GENERATORS, TILESET_MODES, type TargetPaletteArg, type TerrainConnect, TerrainConnectSchema, type TerrainLink, TerrainLinkSchema, type TerrainSide, TerrainSideSchema, type TilesPro, type Tileset, type TilesetExport, type TilesetExportOptions, type TilesetFormat, type TilesetMetadata, type TilesetSheetReading, type TilesetTile, UI_STATES_COSTS, UI_STATES_MAX_COST, UI_STATES_MAX_ELEMENTS, UI_STATES_MAX_STATES, UNZOOM_MAX_AREA, UNZOOM_MIN_SIDE, type UiBox, type UiElement, UiElementSchema, type UiInsets, type UiPiece, UiPieceSchema, type UiStateSpec, UnsupportedCapabilityError, type UnzoomFileResult, UsageError, VFX_ARTISTS, VFX_ARTIST_ANIMATED_EXTRA, VFX_ARTIST_MAX_FRAMES, VFX_ARTIST_MAX_SPRITE, VFX_ARTIST_MAX_STRIP, VFX_TOOL, type VfxArtist, type VfxArtistFile, type VfxArtistProvenance, type VfxArtistResult, type VfxExport, type VfxPart, VfxPartSchema, type VfxProvenance, type VfxWorkbenchOptions, type Workspace, type WorkspaceClaims, type WorkspaceDiagnostic, type WorkspaceProject, WorkspaceProjectSchema, type WorkspaceProjectStatus, WorkspaceSchema, type WorkspaceStatusReport, adopt, applyManifestEdit, applyTags, approveQualityRecord, assetInStyle, auditStyle, availableProviders, backoffMs, buildGallerySnapshot, buildImportedEntry, buildManifest, buildPlan, buildWorkspaceGallerySnapshot, bundledRecipeRoot, cacheFileName, candidateCount, characterDirections, checkExportBytes, checkQualityBaseline, checkQualityRecord, checkSaveTarget, checkUiInsets, chooseTilesetSheetReading, clientFromEnv, colorDistance, countNumberedDescriptions, createArtifactBundleManifest, createGalleryEditHandler, createGalleryEditorHandlers, createGenerateHandlers, createProvider, createUiStates, currentEntryOutputPath, currentOutputPath, defaultNormalMapOut, defaultOpenCommand, defaultPixelateOut, defaultUnzoomOut, describeVfx, detachHandEdit, detectAudioFormat, detectMediaType, doctor, editorBaseUrl, editorDir, editorRoute, editorStatus, editorToolsRoot, errorCode, evaluateAudit, exitCodeFor, expandObject, expectedOutputPath, exportAssetFile, exportOutPath, exportTileset, fallbackOutputRole, fetchAssets, fetchWithRetry, findOrphans, fontOutputPaths, formatCost, frameSetFps, frameSetLoop, galleryContentSecurityPolicy, galleryMediaId, galleryMediaRoute, generateFont, generateMusic, generateSoundEffect, generationCost, gifSize, groupOrphansByStyle, handEditBase, handEditBases, handEditCompanionPath, handEditMembers, handEditPath, handEditProjectPath, hex, historyAfterReplacing, historyLimit, idFromPrompt, imageMetadata, importLocal, importObjectFile, importTileHeights, importTilesFiles, importTilesetFile, inspectCaches, inspectQualityProfile, inspectRevisionReadiness, installEditor, installRecipe, isBusyReply, isFrameSetEntry, isMemberSetEntry, isSensitiveSourceUrl, isVfxReference, isometricTileCost, layerOffsetFor, listBundledRecipes, loadClaims, loadLock, loadManifest, loadSiblingManifests, loadWorkspace, lockKey, makeVfx, makeVfxWithArtist, matchOrphanStyle, mcpClientFromEnv, measureBalanceChange, measureDecodedImageQuality, measureImageQuality, mediaExtension, mediaTypeFromExtension, memberPath, mergePalettes, mountSprites, mountStyle, musicCost, musicOutputPaths, normalMapCost, normalMapFile, normalMapResultPng, normalMapSizeProblem, normalizeLockOutputPaths, normalizeRefinementPalette, normalizeTerrainTiles, normalizeTileRules, openExternal, openInEditor, openProject, outliers, outputId, packSprites, packStyle, paletteDistance, parentAssetId, parseCanvasSize, parseLock, parseMcpBody, parseProFlashQuote, parseTerrainDescriptions, parseUiBox, parseUiInsets, parseUiState, parseVfxArtistResult, parseVfxExport, parseVfxRecipe, parseVfxStep, parseWorkspace, pickHistory, pixMiniMaxCost, pixelateFile, pngFilesAt, pngSize, poll, portableOutputPath, prepareReview, primaryOutput, proTierCost, proportionsPayload, providerCredentialEnvs, providerFactory, pullExpansionReview, pullUiAsset, pushTags, qualityFrameOutputPath, qualityRecordPath, quantizeToPalette, readArtifactBundleManifest, readHandEditCompanion, readQualityBaseline, readSavedVfxRecipe, readVfxConversation, readVfxRecipe, recipeDigest, recordedAnimationGroup, referencedHashes, refineAsset, refineFrameSet, refineQualityProfiles, registerProvider, remove, renderAsepriteSheet, renderGallery, renderGodotSpriteFrames, renderSalvageSheet, renderSheet, renderSheetDocument, reportSpecHashes, requireApprovedQualitySources, requireBalance, requireDelete, requireList, requireRevisionReady, requireSelectCandidate, resolveEntryOutputs, resolveOutputPath, resolvePackInputs, resolveProject, resolveQualityInputs, resolveRecipe, resolveSpecEntryOutputs, resolveSpecOutputs, resolveSpecs, resolveStyleImages, resolveStyleOutputs, resolveVfxSprite, resumeActions, resumeCommandForStatus, retireGeneration, retryAfterMs, revertGeneration, runPicker, runSalvage, runVfxWorkbench, saveHandEdit, saveLock, saveToAssetFile, saveUndoDir, saveWorkspace, scanAssets, selectEntryOutput, serveGallery, sha256, sha256File, shouldPersistSourceUrl, shouldRetry, sliceVfxSheet, slugify, snapshotQualityBaseline, snapshotQualityCases, soundEffectCost, soundEffectOutputPaths, sourceIsStem, sourceOutputPath, specHash, spendByUnit, startHandEdit, styleImagesBase64, submit, summarize, tagAdopted, targetPaletteBody, terrainCost, terrainSettings, terrainTileCount, tileFeatureOutputCount, tileVariationCount, tilesCost, tilesetSheetReadings, toPortablePath, totalSpend, uiElementCandidateCount, uiStateElements, unzoomFile, upsert, validateAudio, validateCostEstimate, validateMedia, validateWorkspace, verifyArtifactBundle, verifyRecipe, vfxArtistCeiling, vfxArtistFiles, vfxArtistFrameFacts, vfxArtistFrameSide, vfxArtistQuote, vfxArtistSprite, vfxAtlasFrames, vfxJobFailure, vfxOutputPaths, vfxRecipeSha256, withArtifactManifest, workspaceClaims, workspaceStatus, writeArtifactBundle, writeManagedArtifactBundle };