pixelkiln 0.82.0 → 0.84.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.cts CHANGED
@@ -581,7 +581,7 @@ declare const GeneratorSchema: z.ZodEnum<["1dir", "map", "pixflux", "tiles", "an
581
581
  type Generator = z.infer<typeof GeneratorSchema>;
582
582
  declare const GridConfidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
583
583
  type GridConfidence = z.infer<typeof GridConfidenceSchema>;
584
- declare const RevisionModeSchema: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
584
+ declare const RevisionModeSchema: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
585
585
  type RevisionMode = z.infer<typeof RevisionModeSchema>;
586
586
  /** A decoded style reference ready for a provider-specific request body. */
587
587
  interface ResolvedStyleImage {
@@ -1343,7 +1343,7 @@ declare const RevisionDitheringSchema: z.ZodEnum<["none", "2x2", "4x4", "8x8"]>;
1343
1343
  type RevisionDithering = z.infer<typeof RevisionDitheringSchema>;
1344
1344
  declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1345
1345
  /** What kind of controlled change the provider workflow performs. */
1346
- mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
1346
+ mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
1347
1347
  /** Parent asset id in the same style. */
1348
1348
  from: z.ZodString;
1349
1349
  /** Manifest-relative black/white PNG. Required only for masked inpainting. */
@@ -1372,7 +1372,22 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1372
1372
  * `interpolate`: required, the ending keyframe; the parent is the start.
1373
1373
  */
1374
1374
  lastFrame: z.ZodOptional<z.ZodString>;
1375
- /** `animate-pixminimax` only: facing direction, used only alongside `enhancePrompt` to hold the sprite's facing. */
1375
+ /**
1376
+ * `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
1377
+ * Frames whose foreground drifts from the first frame beyond this are
1378
+ * corrected toward it; 0 corrects every frame and higher values correct
1379
+ * fewer. Omit for PixelLab's default.
1380
+ */
1381
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
1382
+ /**
1383
+ * `animate-pixminimax` only: one noun phrase for what the parent shows.
1384
+ * PixelLab reads it off the image when omitted, and can decline some
1385
+ * images, failing the job until it is sent.
1386
+ */
1387
+ subjectDescription: z.ZodOptional<z.ZodString>;
1388
+ /** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
1389
+ initialPose: z.ZodOptional<z.ZodString>;
1390
+ /** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
1376
1391
  direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
1377
1392
  /** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
1378
1393
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
@@ -1392,12 +1407,15 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1392
1407
  * same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
1393
1408
  */
1394
1409
  skeletonTemplate: z.ZodOptional<z.ZodString>;
1410
+ /** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
1411
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
1395
1412
  /**
1396
- * `animate-skeleton` only: what the character *looks like*, a noun
1413
+ * `animate-skeleton`: what the character *looks like*, a noun
1397
1414
  * phrase (colours, clothing, held items) — distinct from the asset's
1398
1415
  * own `prompt`, which this mode sends as the motion's short label
1399
1416
  * (PixelLab's `action`), the same `prompt`-as-motion convention
1400
- * `animate`/`animate-pixminimax` already use.
1417
+ * `animate`/`animate-pixminimax` already use. `remove-background`: a
1418
+ * short description of the foreground, which PixelLab uses as a hint.
1401
1419
  */
1402
1420
  description: z.ZodOptional<z.ZodString>;
1403
1421
  /**
@@ -1408,7 +1426,7 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1408
1426
  */
1409
1427
  engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
1410
1428
  }, "strict", z.ZodTypeAny, {
1411
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1429
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1412
1430
  from: string;
1413
1431
  frames?: number | undefined;
1414
1432
  fps?: number | undefined;
@@ -1421,12 +1439,16 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1421
1439
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
1422
1440
  ditheringStrength?: number | undefined;
1423
1441
  lastFrame?: string | undefined;
1442
+ driftThreshold?: number | undefined;
1443
+ subjectDescription?: string | undefined;
1444
+ initialPose?: string | undefined;
1424
1445
  keypointsFile?: string | undefined;
1425
1446
  skeletonTemplate?: string | undefined;
1447
+ removalTask?: "simple" | "complex" | undefined;
1426
1448
  description?: string | undefined;
1427
1449
  engine?: "pro-flash" | undefined;
1428
1450
  }, {
1429
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1451
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1430
1452
  from: string;
1431
1453
  frames?: number | undefined;
1432
1454
  fps?: number | undefined;
@@ -1439,12 +1461,16 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1439
1461
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
1440
1462
  ditheringStrength?: number | undefined;
1441
1463
  lastFrame?: string | undefined;
1464
+ driftThreshold?: number | undefined;
1465
+ subjectDescription?: string | undefined;
1466
+ initialPose?: string | undefined;
1442
1467
  keypointsFile?: string | undefined;
1443
1468
  skeletonTemplate?: string | undefined;
1469
+ removalTask?: "simple" | "complex" | undefined;
1444
1470
  description?: string | undefined;
1445
1471
  engine?: "pro-flash" | undefined;
1446
1472
  }>, {
1447
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1473
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1448
1474
  from: string;
1449
1475
  frames?: number | undefined;
1450
1476
  fps?: number | undefined;
@@ -1457,12 +1483,16 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1457
1483
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
1458
1484
  ditheringStrength?: number | undefined;
1459
1485
  lastFrame?: string | undefined;
1486
+ driftThreshold?: number | undefined;
1487
+ subjectDescription?: string | undefined;
1488
+ initialPose?: string | undefined;
1460
1489
  keypointsFile?: string | undefined;
1461
1490
  skeletonTemplate?: string | undefined;
1491
+ removalTask?: "simple" | "complex" | undefined;
1462
1492
  description?: string | undefined;
1463
1493
  engine?: "pro-flash" | undefined;
1464
1494
  }, {
1465
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1495
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
1466
1496
  from: string;
1467
1497
  frames?: number | undefined;
1468
1498
  fps?: number | undefined;
@@ -1475,8 +1505,12 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
1475
1505
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
1476
1506
  ditheringStrength?: number | undefined;
1477
1507
  lastFrame?: string | undefined;
1508
+ driftThreshold?: number | undefined;
1509
+ subjectDescription?: string | undefined;
1510
+ initialPose?: string | undefined;
1478
1511
  keypointsFile?: string | undefined;
1479
1512
  skeletonTemplate?: string | undefined;
1513
+ removalTask?: "simple" | "complex" | undefined;
1480
1514
  description?: string | undefined;
1481
1515
  engine?: "pro-flash" | undefined;
1482
1516
  }>;
@@ -1552,6 +1586,10 @@ interface ResolvedRevision {
1552
1586
  skeleton?: SkeletonSet | null;
1553
1587
  skeletonTemplate?: string;
1554
1588
  description?: string;
1589
+ removalTask?: "simple" | "complex";
1590
+ driftThreshold?: number;
1591
+ subjectDescription?: string;
1592
+ initialPose?: string;
1555
1593
  engine?: "pro-flash";
1556
1594
  }
1557
1595
  declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
@@ -3976,7 +4014,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
3976
4014
  /** Controlled generation derived from another asset in the same style. */
3977
4015
  revision: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3978
4016
  /** What kind of controlled change the provider workflow performs. */
3979
- mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
4017
+ mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
3980
4018
  /** Parent asset id in the same style. */
3981
4019
  from: z.ZodString;
3982
4020
  /** Manifest-relative black/white PNG. Required only for masked inpainting. */
@@ -4005,7 +4043,22 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4005
4043
  * `interpolate`: required, the ending keyframe; the parent is the start.
4006
4044
  */
4007
4045
  lastFrame: z.ZodOptional<z.ZodString>;
4008
- /** `animate-pixminimax` only: facing direction, used only alongside `enhancePrompt` to hold the sprite's facing. */
4046
+ /**
4047
+ * `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
4048
+ * Frames whose foreground drifts from the first frame beyond this are
4049
+ * corrected toward it; 0 corrects every frame and higher values correct
4050
+ * fewer. Omit for PixelLab's default.
4051
+ */
4052
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
4053
+ /**
4054
+ * `animate-pixminimax` only: one noun phrase for what the parent shows.
4055
+ * PixelLab reads it off the image when omitted, and can decline some
4056
+ * images, failing the job until it is sent.
4057
+ */
4058
+ subjectDescription: z.ZodOptional<z.ZodString>;
4059
+ /** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
4060
+ initialPose: z.ZodOptional<z.ZodString>;
4061
+ /** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
4009
4062
  direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
4010
4063
  /** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
4011
4064
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
@@ -4025,12 +4078,15 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4025
4078
  * same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
4026
4079
  */
4027
4080
  skeletonTemplate: z.ZodOptional<z.ZodString>;
4081
+ /** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
4082
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
4028
4083
  /**
4029
- * `animate-skeleton` only: what the character *looks like*, a noun
4084
+ * `animate-skeleton`: what the character *looks like*, a noun
4030
4085
  * phrase (colours, clothing, held items) — distinct from the asset's
4031
4086
  * own `prompt`, which this mode sends as the motion's short label
4032
4087
  * (PixelLab's `action`), the same `prompt`-as-motion convention
4033
- * `animate`/`animate-pixminimax` already use.
4088
+ * `animate`/`animate-pixminimax` already use. `remove-background`: a
4089
+ * short description of the foreground, which PixelLab uses as a hint.
4034
4090
  */
4035
4091
  description: z.ZodOptional<z.ZodString>;
4036
4092
  /**
@@ -4041,7 +4097,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4041
4097
  */
4042
4098
  engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
4043
4099
  }, "strict", z.ZodTypeAny, {
4044
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4100
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4045
4101
  from: string;
4046
4102
  frames?: number | undefined;
4047
4103
  fps?: number | undefined;
@@ -4054,12 +4110,16 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4054
4110
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4055
4111
  ditheringStrength?: number | undefined;
4056
4112
  lastFrame?: string | undefined;
4113
+ driftThreshold?: number | undefined;
4114
+ subjectDescription?: string | undefined;
4115
+ initialPose?: string | undefined;
4057
4116
  keypointsFile?: string | undefined;
4058
4117
  skeletonTemplate?: string | undefined;
4118
+ removalTask?: "simple" | "complex" | undefined;
4059
4119
  description?: string | undefined;
4060
4120
  engine?: "pro-flash" | undefined;
4061
4121
  }, {
4062
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4122
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4063
4123
  from: string;
4064
4124
  frames?: number | undefined;
4065
4125
  fps?: number | undefined;
@@ -4072,12 +4132,16 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4072
4132
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4073
4133
  ditheringStrength?: number | undefined;
4074
4134
  lastFrame?: string | undefined;
4135
+ driftThreshold?: number | undefined;
4136
+ subjectDescription?: string | undefined;
4137
+ initialPose?: string | undefined;
4075
4138
  keypointsFile?: string | undefined;
4076
4139
  skeletonTemplate?: string | undefined;
4140
+ removalTask?: "simple" | "complex" | undefined;
4077
4141
  description?: string | undefined;
4078
4142
  engine?: "pro-flash" | undefined;
4079
4143
  }>, {
4080
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4144
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4081
4145
  from: string;
4082
4146
  frames?: number | undefined;
4083
4147
  fps?: number | undefined;
@@ -4090,12 +4154,16 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4090
4154
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4091
4155
  ditheringStrength?: number | undefined;
4092
4156
  lastFrame?: string | undefined;
4157
+ driftThreshold?: number | undefined;
4158
+ subjectDescription?: string | undefined;
4159
+ initialPose?: string | undefined;
4093
4160
  keypointsFile?: string | undefined;
4094
4161
  skeletonTemplate?: string | undefined;
4162
+ removalTask?: "simple" | "complex" | undefined;
4095
4163
  description?: string | undefined;
4096
4164
  engine?: "pro-flash" | undefined;
4097
4165
  }, {
4098
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4166
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4099
4167
  from: string;
4100
4168
  frames?: number | undefined;
4101
4169
  fps?: number | undefined;
@@ -4108,8 +4176,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4108
4176
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4109
4177
  ditheringStrength?: number | undefined;
4110
4178
  lastFrame?: string | undefined;
4179
+ driftThreshold?: number | undefined;
4180
+ subjectDescription?: string | undefined;
4181
+ initialPose?: string | undefined;
4111
4182
  keypointsFile?: string | undefined;
4112
4183
  skeletonTemplate?: string | undefined;
4184
+ removalTask?: "simple" | "complex" | undefined;
4113
4185
  description?: string | undefined;
4114
4186
  engine?: "pro-flash" | undefined;
4115
4187
  }>>;
@@ -4584,7 +4656,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4584
4656
  cell?: [number, number] | undefined;
4585
4657
  source?: string | undefined;
4586
4658
  revision?: {
4587
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4659
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4588
4660
  from: string;
4589
4661
  frames?: number | undefined;
4590
4662
  fps?: number | undefined;
@@ -4597,8 +4669,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4597
4669
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4598
4670
  ditheringStrength?: number | undefined;
4599
4671
  lastFrame?: string | undefined;
4672
+ driftThreshold?: number | undefined;
4673
+ subjectDescription?: string | undefined;
4674
+ initialPose?: string | undefined;
4600
4675
  keypointsFile?: string | undefined;
4601
4676
  skeletonTemplate?: string | undefined;
4677
+ removalTask?: "simple" | "complex" | undefined;
4602
4678
  description?: string | undefined;
4603
4679
  engine?: "pro-flash" | undefined;
4604
4680
  } | undefined;
@@ -4702,7 +4778,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4702
4778
  source?: string | undefined;
4703
4779
  sourceByStyle?: Record<string, string> | undefined;
4704
4780
  revision?: {
4705
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4781
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4706
4782
  from: string;
4707
4783
  frames?: number | undefined;
4708
4784
  fps?: number | undefined;
@@ -4715,8 +4791,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4715
4791
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4716
4792
  ditheringStrength?: number | undefined;
4717
4793
  lastFrame?: string | undefined;
4794
+ driftThreshold?: number | undefined;
4795
+ subjectDescription?: string | undefined;
4796
+ initialPose?: string | undefined;
4718
4797
  keypointsFile?: string | undefined;
4719
4798
  skeletonTemplate?: string | undefined;
4799
+ removalTask?: "simple" | "complex" | undefined;
4720
4800
  description?: string | undefined;
4721
4801
  engine?: "pro-flash" | undefined;
4722
4802
  } | undefined;
@@ -4826,7 +4906,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4826
4906
  cell?: [number, number] | undefined;
4827
4907
  source?: string | undefined;
4828
4908
  revision?: {
4829
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4909
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4830
4910
  from: string;
4831
4911
  frames?: number | undefined;
4832
4912
  fps?: number | undefined;
@@ -4839,8 +4919,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4839
4919
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4840
4920
  ditheringStrength?: number | undefined;
4841
4921
  lastFrame?: string | undefined;
4922
+ driftThreshold?: number | undefined;
4923
+ subjectDescription?: string | undefined;
4924
+ initialPose?: string | undefined;
4842
4925
  keypointsFile?: string | undefined;
4843
4926
  skeletonTemplate?: string | undefined;
4927
+ removalTask?: "simple" | "complex" | undefined;
4844
4928
  description?: string | undefined;
4845
4929
  engine?: "pro-flash" | undefined;
4846
4930
  } | undefined;
@@ -4944,7 +5028,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4944
5028
  source?: string | undefined;
4945
5029
  sourceByStyle?: Record<string, string> | undefined;
4946
5030
  revision?: {
4947
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
5031
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
4948
5032
  from: string;
4949
5033
  frames?: number | undefined;
4950
5034
  fps?: number | undefined;
@@ -4957,8 +5041,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
4957
5041
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
4958
5042
  ditheringStrength?: number | undefined;
4959
5043
  lastFrame?: string | undefined;
5044
+ driftThreshold?: number | undefined;
5045
+ subjectDescription?: string | undefined;
5046
+ initialPose?: string | undefined;
4960
5047
  keypointsFile?: string | undefined;
4961
5048
  skeletonTemplate?: string | undefined;
5049
+ removalTask?: "simple" | "complex" | undefined;
4962
5050
  description?: string | undefined;
4963
5051
  engine?: "pro-flash" | undefined;
4964
5052
  } | undefined;
@@ -5940,7 +6028,7 @@ declare const ManifestSchema: z.ZodObject<{
5940
6028
  /** Controlled generation derived from another asset in the same style. */
5941
6029
  revision: z.ZodOptional<z.ZodEffects<z.ZodObject<{
5942
6030
  /** What kind of controlled change the provider workflow performs. */
5943
- mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
6031
+ mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
5944
6032
  /** Parent asset id in the same style. */
5945
6033
  from: z.ZodString;
5946
6034
  /** Manifest-relative black/white PNG. Required only for masked inpainting. */
@@ -5969,7 +6057,22 @@ declare const ManifestSchema: z.ZodObject<{
5969
6057
  * `interpolate`: required, the ending keyframe; the parent is the start.
5970
6058
  */
5971
6059
  lastFrame: z.ZodOptional<z.ZodString>;
5972
- /** `animate-pixminimax` only: facing direction, used only alongside `enhancePrompt` to hold the sprite's facing. */
6060
+ /**
6061
+ * `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
6062
+ * Frames whose foreground drifts from the first frame beyond this are
6063
+ * corrected toward it; 0 corrects every frame and higher values correct
6064
+ * fewer. Omit for PixelLab's default.
6065
+ */
6066
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
6067
+ /**
6068
+ * `animate-pixminimax` only: one noun phrase for what the parent shows.
6069
+ * PixelLab reads it off the image when omitted, and can decline some
6070
+ * images, failing the job until it is sent.
6071
+ */
6072
+ subjectDescription: z.ZodOptional<z.ZodString>;
6073
+ /** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
6074
+ initialPose: z.ZodOptional<z.ZodString>;
6075
+ /** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
5973
6076
  direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
5974
6077
  /** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
5975
6078
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
@@ -5989,12 +6092,15 @@ declare const ManifestSchema: z.ZodObject<{
5989
6092
  * same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
5990
6093
  */
5991
6094
  skeletonTemplate: z.ZodOptional<z.ZodString>;
6095
+ /** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
6096
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
5992
6097
  /**
5993
- * `animate-skeleton` only: what the character *looks like*, a noun
6098
+ * `animate-skeleton`: what the character *looks like*, a noun
5994
6099
  * phrase (colours, clothing, held items) — distinct from the asset's
5995
6100
  * own `prompt`, which this mode sends as the motion's short label
5996
6101
  * (PixelLab's `action`), the same `prompt`-as-motion convention
5997
- * `animate`/`animate-pixminimax` already use.
6102
+ * `animate`/`animate-pixminimax` already use. `remove-background`: a
6103
+ * short description of the foreground, which PixelLab uses as a hint.
5998
6104
  */
5999
6105
  description: z.ZodOptional<z.ZodString>;
6000
6106
  /**
@@ -6005,7 +6111,7 @@ declare const ManifestSchema: z.ZodObject<{
6005
6111
  */
6006
6112
  engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
6007
6113
  }, "strict", z.ZodTypeAny, {
6008
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6114
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6009
6115
  from: string;
6010
6116
  frames?: number | undefined;
6011
6117
  fps?: number | undefined;
@@ -6018,12 +6124,16 @@ declare const ManifestSchema: z.ZodObject<{
6018
6124
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6019
6125
  ditheringStrength?: number | undefined;
6020
6126
  lastFrame?: string | undefined;
6127
+ driftThreshold?: number | undefined;
6128
+ subjectDescription?: string | undefined;
6129
+ initialPose?: string | undefined;
6021
6130
  keypointsFile?: string | undefined;
6022
6131
  skeletonTemplate?: string | undefined;
6132
+ removalTask?: "simple" | "complex" | undefined;
6023
6133
  description?: string | undefined;
6024
6134
  engine?: "pro-flash" | undefined;
6025
6135
  }, {
6026
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6136
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6027
6137
  from: string;
6028
6138
  frames?: number | undefined;
6029
6139
  fps?: number | undefined;
@@ -6036,12 +6146,16 @@ declare const ManifestSchema: z.ZodObject<{
6036
6146
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6037
6147
  ditheringStrength?: number | undefined;
6038
6148
  lastFrame?: string | undefined;
6149
+ driftThreshold?: number | undefined;
6150
+ subjectDescription?: string | undefined;
6151
+ initialPose?: string | undefined;
6039
6152
  keypointsFile?: string | undefined;
6040
6153
  skeletonTemplate?: string | undefined;
6154
+ removalTask?: "simple" | "complex" | undefined;
6041
6155
  description?: string | undefined;
6042
6156
  engine?: "pro-flash" | undefined;
6043
6157
  }>, {
6044
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6158
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6045
6159
  from: string;
6046
6160
  frames?: number | undefined;
6047
6161
  fps?: number | undefined;
@@ -6054,12 +6168,16 @@ declare const ManifestSchema: z.ZodObject<{
6054
6168
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6055
6169
  ditheringStrength?: number | undefined;
6056
6170
  lastFrame?: string | undefined;
6171
+ driftThreshold?: number | undefined;
6172
+ subjectDescription?: string | undefined;
6173
+ initialPose?: string | undefined;
6057
6174
  keypointsFile?: string | undefined;
6058
6175
  skeletonTemplate?: string | undefined;
6176
+ removalTask?: "simple" | "complex" | undefined;
6059
6177
  description?: string | undefined;
6060
6178
  engine?: "pro-flash" | undefined;
6061
6179
  }, {
6062
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6180
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6063
6181
  from: string;
6064
6182
  frames?: number | undefined;
6065
6183
  fps?: number | undefined;
@@ -6072,8 +6190,12 @@ declare const ManifestSchema: z.ZodObject<{
6072
6190
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6073
6191
  ditheringStrength?: number | undefined;
6074
6192
  lastFrame?: string | undefined;
6193
+ driftThreshold?: number | undefined;
6194
+ subjectDescription?: string | undefined;
6195
+ initialPose?: string | undefined;
6075
6196
  keypointsFile?: string | undefined;
6076
6197
  skeletonTemplate?: string | undefined;
6198
+ removalTask?: "simple" | "complex" | undefined;
6077
6199
  description?: string | undefined;
6078
6200
  engine?: "pro-flash" | undefined;
6079
6201
  }>>;
@@ -6548,7 +6670,7 @@ declare const ManifestSchema: z.ZodObject<{
6548
6670
  cell?: [number, number] | undefined;
6549
6671
  source?: string | undefined;
6550
6672
  revision?: {
6551
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6673
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6552
6674
  from: string;
6553
6675
  frames?: number | undefined;
6554
6676
  fps?: number | undefined;
@@ -6561,8 +6683,12 @@ declare const ManifestSchema: z.ZodObject<{
6561
6683
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6562
6684
  ditheringStrength?: number | undefined;
6563
6685
  lastFrame?: string | undefined;
6686
+ driftThreshold?: number | undefined;
6687
+ subjectDescription?: string | undefined;
6688
+ initialPose?: string | undefined;
6564
6689
  keypointsFile?: string | undefined;
6565
6690
  skeletonTemplate?: string | undefined;
6691
+ removalTask?: "simple" | "complex" | undefined;
6566
6692
  description?: string | undefined;
6567
6693
  engine?: "pro-flash" | undefined;
6568
6694
  } | undefined;
@@ -6666,7 +6792,7 @@ declare const ManifestSchema: z.ZodObject<{
6666
6792
  source?: string | undefined;
6667
6793
  sourceByStyle?: Record<string, string> | undefined;
6668
6794
  revision?: {
6669
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6795
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6670
6796
  from: string;
6671
6797
  frames?: number | undefined;
6672
6798
  fps?: number | undefined;
@@ -6679,8 +6805,12 @@ declare const ManifestSchema: z.ZodObject<{
6679
6805
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6680
6806
  ditheringStrength?: number | undefined;
6681
6807
  lastFrame?: string | undefined;
6808
+ driftThreshold?: number | undefined;
6809
+ subjectDescription?: string | undefined;
6810
+ initialPose?: string | undefined;
6682
6811
  keypointsFile?: string | undefined;
6683
6812
  skeletonTemplate?: string | undefined;
6813
+ removalTask?: "simple" | "complex" | undefined;
6684
6814
  description?: string | undefined;
6685
6815
  engine?: "pro-flash" | undefined;
6686
6816
  } | undefined;
@@ -6790,7 +6920,7 @@ declare const ManifestSchema: z.ZodObject<{
6790
6920
  cell?: [number, number] | undefined;
6791
6921
  source?: string | undefined;
6792
6922
  revision?: {
6793
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6923
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6794
6924
  from: string;
6795
6925
  frames?: number | undefined;
6796
6926
  fps?: number | undefined;
@@ -6803,8 +6933,12 @@ declare const ManifestSchema: z.ZodObject<{
6803
6933
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6804
6934
  ditheringStrength?: number | undefined;
6805
6935
  lastFrame?: string | undefined;
6936
+ driftThreshold?: number | undefined;
6937
+ subjectDescription?: string | undefined;
6938
+ initialPose?: string | undefined;
6806
6939
  keypointsFile?: string | undefined;
6807
6940
  skeletonTemplate?: string | undefined;
6941
+ removalTask?: "simple" | "complex" | undefined;
6808
6942
  description?: string | undefined;
6809
6943
  engine?: "pro-flash" | undefined;
6810
6944
  } | undefined;
@@ -6908,7 +7042,7 @@ declare const ManifestSchema: z.ZodObject<{
6908
7042
  source?: string | undefined;
6909
7043
  sourceByStyle?: Record<string, string> | undefined;
6910
7044
  revision?: {
6911
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
7045
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
6912
7046
  from: string;
6913
7047
  frames?: number | undefined;
6914
7048
  fps?: number | undefined;
@@ -6921,8 +7055,12 @@ declare const ManifestSchema: z.ZodObject<{
6921
7055
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
6922
7056
  ditheringStrength?: number | undefined;
6923
7057
  lastFrame?: string | undefined;
7058
+ driftThreshold?: number | undefined;
7059
+ subjectDescription?: string | undefined;
7060
+ initialPose?: string | undefined;
6924
7061
  keypointsFile?: string | undefined;
6925
7062
  skeletonTemplate?: string | undefined;
7063
+ removalTask?: "simple" | "complex" | undefined;
6926
7064
  description?: string | undefined;
6927
7065
  engine?: "pro-flash" | undefined;
6928
7066
  } | undefined;
@@ -7120,7 +7258,7 @@ declare const ManifestSchema: z.ZodObject<{
7120
7258
  cell?: [number, number] | undefined;
7121
7259
  source?: string | undefined;
7122
7260
  revision?: {
7123
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
7261
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
7124
7262
  from: string;
7125
7263
  frames?: number | undefined;
7126
7264
  fps?: number | undefined;
@@ -7133,8 +7271,12 @@ declare const ManifestSchema: z.ZodObject<{
7133
7271
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
7134
7272
  ditheringStrength?: number | undefined;
7135
7273
  lastFrame?: string | undefined;
7274
+ driftThreshold?: number | undefined;
7275
+ subjectDescription?: string | undefined;
7276
+ initialPose?: string | undefined;
7136
7277
  keypointsFile?: string | undefined;
7137
7278
  skeletonTemplate?: string | undefined;
7279
+ removalTask?: "simple" | "complex" | undefined;
7138
7280
  description?: string | undefined;
7139
7281
  engine?: "pro-flash" | undefined;
7140
7282
  } | undefined;
@@ -7327,7 +7469,7 @@ declare const ManifestSchema: z.ZodObject<{
7327
7469
  source?: string | undefined;
7328
7470
  sourceByStyle?: Record<string, string> | undefined;
7329
7471
  revision?: {
7330
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
7472
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
7331
7473
  from: string;
7332
7474
  frames?: number | undefined;
7333
7475
  fps?: number | undefined;
@@ -7340,8 +7482,12 @@ declare const ManifestSchema: z.ZodObject<{
7340
7482
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
7341
7483
  ditheringStrength?: number | undefined;
7342
7484
  lastFrame?: string | undefined;
7485
+ driftThreshold?: number | undefined;
7486
+ subjectDescription?: string | undefined;
7487
+ initialPose?: string | undefined;
7343
7488
  keypointsFile?: string | undefined;
7344
7489
  skeletonTemplate?: string | undefined;
7490
+ removalTask?: "simple" | "complex" | undefined;
7345
7491
  description?: string | undefined;
7346
7492
  engine?: "pro-flash" | undefined;
7347
7493
  } | undefined;
@@ -8637,7 +8783,7 @@ declare const ManifestInputSchema: z.ZodObject<{
8637
8783
  /** Controlled generation derived from another asset in the same style. */
8638
8784
  revision: z.ZodOptional<z.ZodEffects<z.ZodObject<{
8639
8785
  /** What kind of controlled change the provider workflow performs. */
8640
- mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
8786
+ mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
8641
8787
  /** Parent asset id in the same style. */
8642
8788
  from: z.ZodString;
8643
8789
  /** Manifest-relative black/white PNG. Required only for masked inpainting. */
@@ -8666,7 +8812,22 @@ declare const ManifestInputSchema: z.ZodObject<{
8666
8812
  * `interpolate`: required, the ending keyframe; the parent is the start.
8667
8813
  */
8668
8814
  lastFrame: z.ZodOptional<z.ZodString>;
8669
- /** `animate-pixminimax` only: facing direction, used only alongside `enhancePrompt` to hold the sprite's facing. */
8815
+ /**
8816
+ * `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
8817
+ * Frames whose foreground drifts from the first frame beyond this are
8818
+ * corrected toward it; 0 corrects every frame and higher values correct
8819
+ * fewer. Omit for PixelLab's default.
8820
+ */
8821
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
8822
+ /**
8823
+ * `animate-pixminimax` only: one noun phrase for what the parent shows.
8824
+ * PixelLab reads it off the image when omitted, and can decline some
8825
+ * images, failing the job until it is sent.
8826
+ */
8827
+ subjectDescription: z.ZodOptional<z.ZodString>;
8828
+ /** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
8829
+ initialPose: z.ZodOptional<z.ZodString>;
8830
+ /** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
8670
8831
  direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
8671
8832
  /** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
8672
8833
  enhancePrompt: z.ZodOptional<z.ZodBoolean>;
@@ -8686,12 +8847,15 @@ declare const ManifestInputSchema: z.ZodObject<{
8686
8847
  * same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
8687
8848
  */
8688
8849
  skeletonTemplate: z.ZodOptional<z.ZodString>;
8850
+ /** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
8851
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
8689
8852
  /**
8690
- * `animate-skeleton` only: what the character *looks like*, a noun
8853
+ * `animate-skeleton`: what the character *looks like*, a noun
8691
8854
  * phrase (colours, clothing, held items) — distinct from the asset's
8692
8855
  * own `prompt`, which this mode sends as the motion's short label
8693
8856
  * (PixelLab's `action`), the same `prompt`-as-motion convention
8694
- * `animate`/`animate-pixminimax` already use.
8857
+ * `animate`/`animate-pixminimax` already use. `remove-background`: a
8858
+ * short description of the foreground, which PixelLab uses as a hint.
8695
8859
  */
8696
8860
  description: z.ZodOptional<z.ZodString>;
8697
8861
  /**
@@ -8702,7 +8866,7 @@ declare const ManifestInputSchema: z.ZodObject<{
8702
8866
  */
8703
8867
  engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
8704
8868
  }, "strict", z.ZodTypeAny, {
8705
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8869
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8706
8870
  from: string;
8707
8871
  frames?: number | undefined;
8708
8872
  fps?: number | undefined;
@@ -8715,12 +8879,16 @@ declare const ManifestInputSchema: z.ZodObject<{
8715
8879
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
8716
8880
  ditheringStrength?: number | undefined;
8717
8881
  lastFrame?: string | undefined;
8882
+ driftThreshold?: number | undefined;
8883
+ subjectDescription?: string | undefined;
8884
+ initialPose?: string | undefined;
8718
8885
  keypointsFile?: string | undefined;
8719
8886
  skeletonTemplate?: string | undefined;
8887
+ removalTask?: "simple" | "complex" | undefined;
8720
8888
  description?: string | undefined;
8721
8889
  engine?: "pro-flash" | undefined;
8722
8890
  }, {
8723
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8891
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8724
8892
  from: string;
8725
8893
  frames?: number | undefined;
8726
8894
  fps?: number | undefined;
@@ -8733,12 +8901,16 @@ declare const ManifestInputSchema: z.ZodObject<{
8733
8901
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
8734
8902
  ditheringStrength?: number | undefined;
8735
8903
  lastFrame?: string | undefined;
8904
+ driftThreshold?: number | undefined;
8905
+ subjectDescription?: string | undefined;
8906
+ initialPose?: string | undefined;
8736
8907
  keypointsFile?: string | undefined;
8737
8908
  skeletonTemplate?: string | undefined;
8909
+ removalTask?: "simple" | "complex" | undefined;
8738
8910
  description?: string | undefined;
8739
8911
  engine?: "pro-flash" | undefined;
8740
8912
  }>, {
8741
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8913
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8742
8914
  from: string;
8743
8915
  frames?: number | undefined;
8744
8916
  fps?: number | undefined;
@@ -8751,12 +8923,16 @@ declare const ManifestInputSchema: z.ZodObject<{
8751
8923
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
8752
8924
  ditheringStrength?: number | undefined;
8753
8925
  lastFrame?: string | undefined;
8926
+ driftThreshold?: number | undefined;
8927
+ subjectDescription?: string | undefined;
8928
+ initialPose?: string | undefined;
8754
8929
  keypointsFile?: string | undefined;
8755
8930
  skeletonTemplate?: string | undefined;
8931
+ removalTask?: "simple" | "complex" | undefined;
8756
8932
  description?: string | undefined;
8757
8933
  engine?: "pro-flash" | undefined;
8758
8934
  }, {
8759
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8935
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
8760
8936
  from: string;
8761
8937
  frames?: number | undefined;
8762
8938
  fps?: number | undefined;
@@ -8769,8 +8945,12 @@ declare const ManifestInputSchema: z.ZodObject<{
8769
8945
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
8770
8946
  ditheringStrength?: number | undefined;
8771
8947
  lastFrame?: string | undefined;
8948
+ driftThreshold?: number | undefined;
8949
+ subjectDescription?: string | undefined;
8950
+ initialPose?: string | undefined;
8772
8951
  keypointsFile?: string | undefined;
8773
8952
  skeletonTemplate?: string | undefined;
8953
+ removalTask?: "simple" | "complex" | undefined;
8774
8954
  description?: string | undefined;
8775
8955
  engine?: "pro-flash" | undefined;
8776
8956
  }>>;
@@ -9245,7 +9425,7 @@ declare const ManifestInputSchema: z.ZodObject<{
9245
9425
  cell?: [number, number] | undefined;
9246
9426
  source?: string | undefined;
9247
9427
  revision?: {
9248
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9428
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9249
9429
  from: string;
9250
9430
  frames?: number | undefined;
9251
9431
  fps?: number | undefined;
@@ -9258,8 +9438,12 @@ declare const ManifestInputSchema: z.ZodObject<{
9258
9438
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
9259
9439
  ditheringStrength?: number | undefined;
9260
9440
  lastFrame?: string | undefined;
9441
+ driftThreshold?: number | undefined;
9442
+ subjectDescription?: string | undefined;
9443
+ initialPose?: string | undefined;
9261
9444
  keypointsFile?: string | undefined;
9262
9445
  skeletonTemplate?: string | undefined;
9446
+ removalTask?: "simple" | "complex" | undefined;
9263
9447
  description?: string | undefined;
9264
9448
  engine?: "pro-flash" | undefined;
9265
9449
  } | undefined;
@@ -9363,7 +9547,7 @@ declare const ManifestInputSchema: z.ZodObject<{
9363
9547
  source?: string | undefined;
9364
9548
  sourceByStyle?: Record<string, string> | undefined;
9365
9549
  revision?: {
9366
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9550
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9367
9551
  from: string;
9368
9552
  frames?: number | undefined;
9369
9553
  fps?: number | undefined;
@@ -9376,8 +9560,12 @@ declare const ManifestInputSchema: z.ZodObject<{
9376
9560
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
9377
9561
  ditheringStrength?: number | undefined;
9378
9562
  lastFrame?: string | undefined;
9563
+ driftThreshold?: number | undefined;
9564
+ subjectDescription?: string | undefined;
9565
+ initialPose?: string | undefined;
9379
9566
  keypointsFile?: string | undefined;
9380
9567
  skeletonTemplate?: string | undefined;
9568
+ removalTask?: "simple" | "complex" | undefined;
9381
9569
  description?: string | undefined;
9382
9570
  engine?: "pro-flash" | undefined;
9383
9571
  } | undefined;
@@ -9487,7 +9675,7 @@ declare const ManifestInputSchema: z.ZodObject<{
9487
9675
  cell?: [number, number] | undefined;
9488
9676
  source?: string | undefined;
9489
9677
  revision?: {
9490
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9678
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9491
9679
  from: string;
9492
9680
  frames?: number | undefined;
9493
9681
  fps?: number | undefined;
@@ -9500,8 +9688,12 @@ declare const ManifestInputSchema: z.ZodObject<{
9500
9688
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
9501
9689
  ditheringStrength?: number | undefined;
9502
9690
  lastFrame?: string | undefined;
9691
+ driftThreshold?: number | undefined;
9692
+ subjectDescription?: string | undefined;
9693
+ initialPose?: string | undefined;
9503
9694
  keypointsFile?: string | undefined;
9504
9695
  skeletonTemplate?: string | undefined;
9696
+ removalTask?: "simple" | "complex" | undefined;
9505
9697
  description?: string | undefined;
9506
9698
  engine?: "pro-flash" | undefined;
9507
9699
  } | undefined;
@@ -9605,7 +9797,7 @@ declare const ManifestInputSchema: z.ZodObject<{
9605
9797
  source?: string | undefined;
9606
9798
  sourceByStyle?: Record<string, string> | undefined;
9607
9799
  revision?: {
9608
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9800
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9609
9801
  from: string;
9610
9802
  frames?: number | undefined;
9611
9803
  fps?: number | undefined;
@@ -9618,8 +9810,12 @@ declare const ManifestInputSchema: z.ZodObject<{
9618
9810
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
9619
9811
  ditheringStrength?: number | undefined;
9620
9812
  lastFrame?: string | undefined;
9813
+ driftThreshold?: number | undefined;
9814
+ subjectDescription?: string | undefined;
9815
+ initialPose?: string | undefined;
9621
9816
  keypointsFile?: string | undefined;
9622
9817
  skeletonTemplate?: string | undefined;
9818
+ removalTask?: "simple" | "complex" | undefined;
9623
9819
  description?: string | undefined;
9624
9820
  engine?: "pro-flash" | undefined;
9625
9821
  } | undefined;
@@ -9901,7 +10097,7 @@ declare const ManifestInputSchema: z.ZodObject<{
9901
10097
  cell?: [number, number] | undefined;
9902
10098
  source?: string | undefined;
9903
10099
  revision?: {
9904
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10100
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
9905
10101
  from: string;
9906
10102
  frames?: number | undefined;
9907
10103
  fps?: number | undefined;
@@ -9914,8 +10110,12 @@ declare const ManifestInputSchema: z.ZodObject<{
9914
10110
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
9915
10111
  ditheringStrength?: number | undefined;
9916
10112
  lastFrame?: string | undefined;
10113
+ driftThreshold?: number | undefined;
10114
+ subjectDescription?: string | undefined;
10115
+ initialPose?: string | undefined;
9917
10116
  keypointsFile?: string | undefined;
9918
10117
  skeletonTemplate?: string | undefined;
10118
+ removalTask?: "simple" | "complex" | undefined;
9919
10119
  description?: string | undefined;
9920
10120
  engine?: "pro-flash" | undefined;
9921
10121
  } | undefined;
@@ -10192,7 +10392,7 @@ declare const ManifestInputSchema: z.ZodObject<{
10192
10392
  source?: string | undefined;
10193
10393
  sourceByStyle?: Record<string, string> | undefined;
10194
10394
  revision?: {
10195
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10395
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10196
10396
  from: string;
10197
10397
  frames?: number | undefined;
10198
10398
  fps?: number | undefined;
@@ -10205,8 +10405,12 @@ declare const ManifestInputSchema: z.ZodObject<{
10205
10405
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
10206
10406
  ditheringStrength?: number | undefined;
10207
10407
  lastFrame?: string | undefined;
10408
+ driftThreshold?: number | undefined;
10409
+ subjectDescription?: string | undefined;
10410
+ initialPose?: string | undefined;
10208
10411
  keypointsFile?: string | undefined;
10209
10412
  skeletonTemplate?: string | undefined;
10413
+ removalTask?: "simple" | "complex" | undefined;
10210
10414
  description?: string | undefined;
10211
10415
  engine?: "pro-flash" | undefined;
10212
10416
  } | undefined;
@@ -10499,7 +10703,7 @@ declare const LockEntrySchema: z.ZodObject<{
10499
10703
  height: z.ZodNumber;
10500
10704
  /** Explicit parent/input lineage for a revision generation. */
10501
10705
  revision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
10502
- mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
10706
+ mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
10503
10707
  sourceAssetId: z.ZodString;
10504
10708
  sourceSha256: z.ZodString;
10505
10709
  maskSha256: z.ZodOptional<z.ZodString>;
@@ -10516,9 +10720,13 @@ declare const LockEntrySchema: z.ZodObject<{
10516
10720
  keypointsSha256: z.ZodOptional<z.ZodString>;
10517
10721
  skeletonTemplate: z.ZodOptional<z.ZodString>;
10518
10722
  description: z.ZodOptional<z.ZodString>;
10723
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
10724
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
10725
+ subjectDescription: z.ZodOptional<z.ZodString>;
10726
+ initialPose: z.ZodOptional<z.ZodString>;
10519
10727
  engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
10520
10728
  }, "strict", z.ZodTypeAny, {
10521
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10729
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10522
10730
  sourceAssetId: string;
10523
10731
  sourceSha256: string;
10524
10732
  frames?: number | undefined;
@@ -10529,7 +10737,11 @@ declare const LockEntrySchema: z.ZodObject<{
10529
10737
  numColors?: number | undefined;
10530
10738
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
10531
10739
  ditheringStrength?: number | undefined;
10740
+ driftThreshold?: number | undefined;
10741
+ subjectDescription?: string | undefined;
10742
+ initialPose?: string | undefined;
10532
10743
  skeletonTemplate?: string | undefined;
10744
+ removalTask?: "simple" | "complex" | undefined;
10533
10745
  description?: string | undefined;
10534
10746
  engine?: "pro-flash" | undefined;
10535
10747
  maskSha256?: string | undefined;
@@ -10537,7 +10749,7 @@ declare const LockEntrySchema: z.ZodObject<{
10537
10749
  lastFrameSha256?: string | undefined;
10538
10750
  keypointsSha256?: string | undefined;
10539
10751
  }, {
10540
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10752
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10541
10753
  sourceAssetId: string;
10542
10754
  sourceSha256: string;
10543
10755
  frames?: number | undefined;
@@ -10548,7 +10760,11 @@ declare const LockEntrySchema: z.ZodObject<{
10548
10760
  numColors?: number | undefined;
10549
10761
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
10550
10762
  ditheringStrength?: number | undefined;
10763
+ driftThreshold?: number | undefined;
10764
+ subjectDescription?: string | undefined;
10765
+ initialPose?: string | undefined;
10551
10766
  skeletonTemplate?: string | undefined;
10767
+ removalTask?: "simple" | "complex" | undefined;
10552
10768
  description?: string | undefined;
10553
10769
  engine?: "pro-flash" | undefined;
10554
10770
  maskSha256?: string | undefined;
@@ -10931,7 +11147,7 @@ declare const LockEntrySchema: z.ZodObject<{
10931
11147
  tileFeature: string | null;
10932
11148
  prompt: string;
10933
11149
  revision: {
10934
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11150
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
10935
11151
  sourceAssetId: string;
10936
11152
  sourceSha256: string;
10937
11153
  frames?: number | undefined;
@@ -10942,7 +11158,11 @@ declare const LockEntrySchema: z.ZodObject<{
10942
11158
  numColors?: number | undefined;
10943
11159
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
10944
11160
  ditheringStrength?: number | undefined;
11161
+ driftThreshold?: number | undefined;
11162
+ subjectDescription?: string | undefined;
11163
+ initialPose?: string | undefined;
10945
11164
  skeletonTemplate?: string | undefined;
11165
+ removalTask?: "simple" | "complex" | undefined;
10946
11166
  description?: string | undefined;
10947
11167
  engine?: "pro-flash" | undefined;
10948
11168
  maskSha256?: string | undefined;
@@ -11062,7 +11282,7 @@ declare const LockEntrySchema: z.ZodObject<{
11062
11282
  } | null | undefined;
11063
11283
  tileFeature?: string | null | undefined;
11064
11284
  revision?: {
11065
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11285
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11066
11286
  sourceAssetId: string;
11067
11287
  sourceSha256: string;
11068
11288
  frames?: number | undefined;
@@ -11073,7 +11293,11 @@ declare const LockEntrySchema: z.ZodObject<{
11073
11293
  numColors?: number | undefined;
11074
11294
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
11075
11295
  ditheringStrength?: number | undefined;
11296
+ driftThreshold?: number | undefined;
11297
+ subjectDescription?: string | undefined;
11298
+ initialPose?: string | undefined;
11076
11299
  skeletonTemplate?: string | undefined;
11300
+ removalTask?: "simple" | "complex" | undefined;
11077
11301
  description?: string | undefined;
11078
11302
  engine?: "pro-flash" | undefined;
11079
11303
  maskSha256?: string | undefined;
@@ -11190,7 +11414,7 @@ declare const LockSchema: z.ZodObject<{
11190
11414
  height: z.ZodNumber;
11191
11415
  /** Explicit parent/input lineage for a revision generation. */
11192
11416
  revision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
11193
- mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
11417
+ mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
11194
11418
  sourceAssetId: z.ZodString;
11195
11419
  sourceSha256: z.ZodString;
11196
11420
  maskSha256: z.ZodOptional<z.ZodString>;
@@ -11207,9 +11431,13 @@ declare const LockSchema: z.ZodObject<{
11207
11431
  keypointsSha256: z.ZodOptional<z.ZodString>;
11208
11432
  skeletonTemplate: z.ZodOptional<z.ZodString>;
11209
11433
  description: z.ZodOptional<z.ZodString>;
11434
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
11435
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
11436
+ subjectDescription: z.ZodOptional<z.ZodString>;
11437
+ initialPose: z.ZodOptional<z.ZodString>;
11210
11438
  engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
11211
11439
  }, "strict", z.ZodTypeAny, {
11212
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11440
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11213
11441
  sourceAssetId: string;
11214
11442
  sourceSha256: string;
11215
11443
  frames?: number | undefined;
@@ -11220,7 +11448,11 @@ declare const LockSchema: z.ZodObject<{
11220
11448
  numColors?: number | undefined;
11221
11449
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
11222
11450
  ditheringStrength?: number | undefined;
11451
+ driftThreshold?: number | undefined;
11452
+ subjectDescription?: string | undefined;
11453
+ initialPose?: string | undefined;
11223
11454
  skeletonTemplate?: string | undefined;
11455
+ removalTask?: "simple" | "complex" | undefined;
11224
11456
  description?: string | undefined;
11225
11457
  engine?: "pro-flash" | undefined;
11226
11458
  maskSha256?: string | undefined;
@@ -11228,7 +11460,7 @@ declare const LockSchema: z.ZodObject<{
11228
11460
  lastFrameSha256?: string | undefined;
11229
11461
  keypointsSha256?: string | undefined;
11230
11462
  }, {
11231
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11463
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11232
11464
  sourceAssetId: string;
11233
11465
  sourceSha256: string;
11234
11466
  frames?: number | undefined;
@@ -11239,7 +11471,11 @@ declare const LockSchema: z.ZodObject<{
11239
11471
  numColors?: number | undefined;
11240
11472
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
11241
11473
  ditheringStrength?: number | undefined;
11474
+ driftThreshold?: number | undefined;
11475
+ subjectDescription?: string | undefined;
11476
+ initialPose?: string | undefined;
11242
11477
  skeletonTemplate?: string | undefined;
11478
+ removalTask?: "simple" | "complex" | undefined;
11243
11479
  description?: string | undefined;
11244
11480
  engine?: "pro-flash" | undefined;
11245
11481
  maskSha256?: string | undefined;
@@ -11622,7 +11858,7 @@ declare const LockSchema: z.ZodObject<{
11622
11858
  tileFeature: string | null;
11623
11859
  prompt: string;
11624
11860
  revision: {
11625
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11861
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11626
11862
  sourceAssetId: string;
11627
11863
  sourceSha256: string;
11628
11864
  frames?: number | undefined;
@@ -11633,7 +11869,11 @@ declare const LockSchema: z.ZodObject<{
11633
11869
  numColors?: number | undefined;
11634
11870
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
11635
11871
  ditheringStrength?: number | undefined;
11872
+ driftThreshold?: number | undefined;
11873
+ subjectDescription?: string | undefined;
11874
+ initialPose?: string | undefined;
11636
11875
  skeletonTemplate?: string | undefined;
11876
+ removalTask?: "simple" | "complex" | undefined;
11637
11877
  description?: string | undefined;
11638
11878
  engine?: "pro-flash" | undefined;
11639
11879
  maskSha256?: string | undefined;
@@ -11753,7 +11993,7 @@ declare const LockSchema: z.ZodObject<{
11753
11993
  } | null | undefined;
11754
11994
  tileFeature?: string | null | undefined;
11755
11995
  revision?: {
11756
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11996
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11757
11997
  sourceAssetId: string;
11758
11998
  sourceSha256: string;
11759
11999
  frames?: number | undefined;
@@ -11764,7 +12004,11 @@ declare const LockSchema: z.ZodObject<{
11764
12004
  numColors?: number | undefined;
11765
12005
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
11766
12006
  ditheringStrength?: number | undefined;
12007
+ driftThreshold?: number | undefined;
12008
+ subjectDescription?: string | undefined;
12009
+ initialPose?: string | undefined;
11767
12010
  skeletonTemplate?: string | undefined;
12011
+ removalTask?: "simple" | "complex" | undefined;
11768
12012
  description?: string | undefined;
11769
12013
  engine?: "pro-flash" | undefined;
11770
12014
  maskSha256?: string | undefined;
@@ -11880,7 +12124,7 @@ declare const LockSchema: z.ZodObject<{
11880
12124
  tileFeature: string | null;
11881
12125
  prompt: string;
11882
12126
  revision: {
11883
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
12127
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
11884
12128
  sourceAssetId: string;
11885
12129
  sourceSha256: string;
11886
12130
  frames?: number | undefined;
@@ -11891,7 +12135,11 @@ declare const LockSchema: z.ZodObject<{
11891
12135
  numColors?: number | undefined;
11892
12136
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
11893
12137
  ditheringStrength?: number | undefined;
12138
+ driftThreshold?: number | undefined;
12139
+ subjectDescription?: string | undefined;
12140
+ initialPose?: string | undefined;
11894
12141
  skeletonTemplate?: string | undefined;
12142
+ removalTask?: "simple" | "complex" | undefined;
11895
12143
  description?: string | undefined;
11896
12144
  engine?: "pro-flash" | undefined;
11897
12145
  maskSha256?: string | undefined;
@@ -12014,7 +12262,7 @@ declare const LockSchema: z.ZodObject<{
12014
12262
  } | null | undefined;
12015
12263
  tileFeature?: string | null | undefined;
12016
12264
  revision?: {
12017
- mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
12265
+ mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
12018
12266
  sourceAssetId: string;
12019
12267
  sourceSha256: string;
12020
12268
  frames?: number | undefined;
@@ -12025,7 +12273,11 @@ declare const LockSchema: z.ZodObject<{
12025
12273
  numColors?: number | undefined;
12026
12274
  dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
12027
12275
  ditheringStrength?: number | undefined;
12276
+ driftThreshold?: number | undefined;
12277
+ subjectDescription?: string | undefined;
12278
+ initialPose?: string | undefined;
12028
12279
  skeletonTemplate?: string | undefined;
12280
+ removalTask?: "simple" | "complex" | undefined;
12029
12281
  description?: string | undefined;
12030
12282
  engine?: "pro-flash" | undefined;
12031
12283
  maskSha256?: string | undefined;
@@ -13530,6 +13782,26 @@ declare class PixelLabClient {
13530
13782
  pngs: Buffer[];
13531
13783
  usage: unknown;
13532
13784
  }>;
13785
+ /**
13786
+ * `/remove-background`: a transparent PNG from one pixel-art image,
13787
+ * synchronously, like the rest of the Cleanup tier. The API takes at most
13788
+ * 400x400 worth of area, one image per call. `simple` is faster and suits
13789
+ * flat backgrounds; `complex` is slower and handles detailed edges. The
13790
+ * schema's response example is dollar-denominated (`usd: 0.01`); the
13791
+ * subscription cost measured 1 generation (docs/ENDPOINTS.md), and the
13792
+ * default `simple` task is the one measured.
13793
+ */
13794
+ removeBackground(args: {
13795
+ image: Base64Image;
13796
+ width: number;
13797
+ height: number;
13798
+ task?: "simple" | "complex";
13799
+ text?: string;
13800
+ seed?: number;
13801
+ }): Promise<{
13802
+ png: Buffer;
13803
+ usage: unknown;
13804
+ }>;
13533
13805
  /**
13534
13806
  * `/unzoom`: recover native-resolution pixel art from an upscaled image (a
13535
13807
  * 32x32 sprite saved at 512x512). Synchronous like the Cleanup tier.
@@ -13632,6 +13904,7 @@ declare class PixelLabClient {
13632
13904
  seed?: number;
13633
13905
  noBackground?: boolean;
13634
13906
  enhancePrompt?: boolean;
13907
+ driftThreshold?: number;
13635
13908
  }): Promise<{
13636
13909
  background_job_id: string;
13637
13910
  status: string;
@@ -13651,6 +13924,11 @@ declare class PixelLabClient {
13651
13924
  noBackground?: boolean;
13652
13925
  enhancePrompt?: boolean;
13653
13926
  direction?: string;
13927
+ /** PixMiniMax's other caption fields; any left out are read off the image, which can fail the job. */
13928
+ view?: "side" | "low top-down" | "high top-down";
13929
+ subjectDescription?: string;
13930
+ initialPose?: string;
13931
+ driftThreshold?: number;
13654
13932
  }): Promise<{
13655
13933
  background_job_id: string;
13656
13934
  status: string;
@@ -13676,6 +13954,8 @@ declare class PixelLabClient {
13676
13954
  firstFrameKeypoints: SkeletonKeypoint[];
13677
13955
  keypoints: SkeletonKeypoint[][];
13678
13956
  direction: CharacterDirection;
13957
+ /** The camera the sprite is drawn at; PixelLab assumes `low top-down` when omitted, which poses a side-view sprite for the wrong camera. */
13958
+ view?: "side" | "low top-down" | "high top-down";
13679
13959
  templateId?: string;
13680
13960
  action?: string;
13681
13961
  description?: string;
@@ -18983,10 +19263,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
18983
19263
  styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18984
19264
  /**
18985
19265
  * A controlled regeneration of another asset in the same manifest,
18986
- * instead of a fresh generation. `inpaint` needs a mask upload the
18987
- * gallery does not offer yet, so only `image-to-image` and
18988
- * `animate-skeleton` (whose keypoints file the gallery writes first) can
18989
- * be created here; hand-edit the manifest for the other modes.
19266
+ * instead of a fresh generation. Every mode but `outpaint` can be
19267
+ * created here: `inpaint` names a mask file the gallery's mask editor
19268
+ * wrote first, `interpolate` names an existing image as its ending
19269
+ * keyframe, and `animate-skeleton` names the keypoints file the gallery
19270
+ * wrote first.
18990
19271
  */
18991
19272
  revision: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
18992
19273
  mode: z.ZodLiteral<"image-to-image">;
@@ -19001,6 +19282,125 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19001
19282
  mode: "image-to-image";
19002
19283
  from: string;
19003
19284
  strength?: number | undefined;
19285
+ }>, z.ZodObject<{
19286
+ mode: z.ZodLiteral<"reduce-colors">;
19287
+ from: z.ZodString;
19288
+ /** A target colour count; the gallery leaves PixelLab's default when this is omitted. */
19289
+ numColors: z.ZodOptional<z.ZodNumber>;
19290
+ dithering: z.ZodOptional<z.ZodEnum<["none", "2x2", "4x4", "8x8"]>>;
19291
+ ditheringStrength: z.ZodOptional<z.ZodNumber>;
19292
+ }, "strict", z.ZodTypeAny, {
19293
+ mode: "reduce-colors";
19294
+ from: string;
19295
+ numColors?: number | undefined;
19296
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19297
+ ditheringStrength?: number | undefined;
19298
+ }, {
19299
+ mode: "reduce-colors";
19300
+ from: string;
19301
+ numColors?: number | undefined;
19302
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19303
+ ditheringStrength?: number | undefined;
19304
+ }>, z.ZodObject<{
19305
+ mode: z.ZodLiteral<"inpaint">;
19306
+ from: z.ZodString;
19307
+ /** Black-and-white PNG the same size as the parent; white is repainted. */
19308
+ mask: z.ZodEffects<z.ZodString, string, string>;
19309
+ }, "strict", z.ZodTypeAny, {
19310
+ mask: string;
19311
+ mode: "inpaint";
19312
+ from: string;
19313
+ }, {
19314
+ mask: string;
19315
+ mode: "inpaint";
19316
+ from: string;
19317
+ }>, z.ZodObject<{
19318
+ mode: z.ZodLiteral<"interpolate">;
19319
+ from: z.ZodString;
19320
+ /** The ending keyframe: an image already in the project, the parent's size. */
19321
+ lastFrame: z.ZodEffects<z.ZodString, string, string>;
19322
+ fps: z.ZodOptional<z.ZodNumber>;
19323
+ }, "strict", z.ZodTypeAny, {
19324
+ mode: "interpolate";
19325
+ from: string;
19326
+ lastFrame: string;
19327
+ fps?: number | undefined;
19328
+ }, {
19329
+ mode: "interpolate";
19330
+ from: string;
19331
+ lastFrame: string;
19332
+ fps?: number | undefined;
19333
+ }>, z.ZodObject<{
19334
+ mode: z.ZodLiteral<"correct-pixelart">;
19335
+ from: z.ZodString;
19336
+ strength: z.ZodOptional<z.ZodNumber>;
19337
+ }, "strict", z.ZodTypeAny, {
19338
+ mode: "correct-pixelart";
19339
+ from: string;
19340
+ strength?: number | undefined;
19341
+ }, {
19342
+ mode: "correct-pixelart";
19343
+ from: string;
19344
+ strength?: number | undefined;
19345
+ }>, z.ZodObject<{
19346
+ mode: z.ZodLiteral<"remove-background">;
19347
+ from: z.ZodString;
19348
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
19349
+ /** A short description of the foreground, sent as PixelLab's text hint. */
19350
+ description: z.ZodOptional<z.ZodString>;
19351
+ }, "strict", z.ZodTypeAny, {
19352
+ mode: "remove-background";
19353
+ from: string;
19354
+ removalTask?: "simple" | "complex" | undefined;
19355
+ description?: string | undefined;
19356
+ }, {
19357
+ mode: "remove-background";
19358
+ from: string;
19359
+ removalTask?: "simple" | "complex" | undefined;
19360
+ description?: string | undefined;
19361
+ }>, z.ZodObject<{
19362
+ mode: z.ZodEnum<["animate", "animate-pixminimax"]>;
19363
+ from: z.ZodString;
19364
+ frames: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
19365
+ fps: z.ZodOptional<z.ZodNumber>;
19366
+ enhancePrompt: z.ZodOptional<z.ZodBoolean>;
19367
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
19368
+ /** `animate-pixminimax` only; the loader refuses these on `animate`. */
19369
+ direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
19370
+ subjectDescription: z.ZodOptional<z.ZodString>;
19371
+ initialPose: z.ZodOptional<z.ZodString>;
19372
+ }, "strict", z.ZodTypeAny, {
19373
+ mode: "animate" | "animate-pixminimax";
19374
+ from: string;
19375
+ frames?: number | undefined;
19376
+ fps?: number | undefined;
19377
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
19378
+ enhancePrompt?: boolean | undefined;
19379
+ driftThreshold?: number | undefined;
19380
+ subjectDescription?: string | undefined;
19381
+ initialPose?: string | undefined;
19382
+ }, {
19383
+ mode: "animate" | "animate-pixminimax";
19384
+ from: string;
19385
+ frames?: number | undefined;
19386
+ fps?: number | undefined;
19387
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
19388
+ enhancePrompt?: boolean | undefined;
19389
+ driftThreshold?: number | undefined;
19390
+ subjectDescription?: string | undefined;
19391
+ initialPose?: string | undefined;
19392
+ }>, z.ZodObject<{
19393
+ mode: z.ZodLiteral<"edit-animation">;
19394
+ from: z.ZodString;
19395
+ fps: z.ZodOptional<z.ZodNumber>;
19396
+ }, "strict", z.ZodTypeAny, {
19397
+ mode: "edit-animation";
19398
+ from: string;
19399
+ fps?: number | undefined;
19400
+ }, {
19401
+ mode: "edit-animation";
19402
+ from: string;
19403
+ fps?: number | undefined;
19004
19404
  }>, z.ZodObject<{
19005
19405
  mode: z.ZodLiteral<"animate-skeleton">;
19006
19406
  from: z.ZodString;
@@ -19194,6 +19594,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19194
19594
  mode: "image-to-image";
19195
19595
  from: string;
19196
19596
  strength?: number | undefined;
19597
+ } | {
19598
+ mode: "reduce-colors";
19599
+ from: string;
19600
+ numColors?: number | undefined;
19601
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19602
+ ditheringStrength?: number | undefined;
19603
+ } | {
19604
+ mask: string;
19605
+ mode: "inpaint";
19606
+ from: string;
19607
+ } | {
19608
+ mode: "interpolate";
19609
+ from: string;
19610
+ lastFrame: string;
19611
+ fps?: number | undefined;
19612
+ } | {
19613
+ mode: "correct-pixelart";
19614
+ from: string;
19615
+ strength?: number | undefined;
19616
+ } | {
19617
+ mode: "remove-background";
19618
+ from: string;
19619
+ removalTask?: "simple" | "complex" | undefined;
19620
+ description?: string | undefined;
19621
+ } | {
19622
+ mode: "animate" | "animate-pixminimax";
19623
+ from: string;
19624
+ frames?: number | undefined;
19625
+ fps?: number | undefined;
19626
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
19627
+ enhancePrompt?: boolean | undefined;
19628
+ driftThreshold?: number | undefined;
19629
+ subjectDescription?: string | undefined;
19630
+ initialPose?: string | undefined;
19631
+ } | {
19632
+ mode: "edit-animation";
19633
+ from: string;
19634
+ fps?: number | undefined;
19197
19635
  } | {
19198
19636
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19199
19637
  mode: "animate-skeleton";
@@ -19253,6 +19691,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19253
19691
  mode: "image-to-image";
19254
19692
  from: string;
19255
19693
  strength?: number | undefined;
19694
+ } | {
19695
+ mode: "reduce-colors";
19696
+ from: string;
19697
+ numColors?: number | undefined;
19698
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19699
+ ditheringStrength?: number | undefined;
19700
+ } | {
19701
+ mask: string;
19702
+ mode: "inpaint";
19703
+ from: string;
19704
+ } | {
19705
+ mode: "interpolate";
19706
+ from: string;
19707
+ lastFrame: string;
19708
+ fps?: number | undefined;
19709
+ } | {
19710
+ mode: "correct-pixelart";
19711
+ from: string;
19712
+ strength?: number | undefined;
19713
+ } | {
19714
+ mode: "remove-background";
19715
+ from: string;
19716
+ removalTask?: "simple" | "complex" | undefined;
19717
+ description?: string | undefined;
19718
+ } | {
19719
+ mode: "animate" | "animate-pixminimax";
19720
+ from: string;
19721
+ frames?: number | undefined;
19722
+ fps?: number | undefined;
19723
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
19724
+ enhancePrompt?: boolean | undefined;
19725
+ driftThreshold?: number | undefined;
19726
+ subjectDescription?: string | undefined;
19727
+ initialPose?: string | undefined;
19728
+ } | {
19729
+ mode: "edit-animation";
19730
+ from: string;
19731
+ fps?: number | undefined;
19256
19732
  } | {
19257
19733
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19258
19734
  mode: "animate-skeleton";
@@ -19312,6 +19788,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19312
19788
  mode: "image-to-image";
19313
19789
  from: string;
19314
19790
  strength?: number | undefined;
19791
+ } | {
19792
+ mode: "reduce-colors";
19793
+ from: string;
19794
+ numColors?: number | undefined;
19795
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19796
+ ditheringStrength?: number | undefined;
19797
+ } | {
19798
+ mask: string;
19799
+ mode: "inpaint";
19800
+ from: string;
19801
+ } | {
19802
+ mode: "interpolate";
19803
+ from: string;
19804
+ lastFrame: string;
19805
+ fps?: number | undefined;
19806
+ } | {
19807
+ mode: "correct-pixelart";
19808
+ from: string;
19809
+ strength?: number | undefined;
19810
+ } | {
19811
+ mode: "remove-background";
19812
+ from: string;
19813
+ removalTask?: "simple" | "complex" | undefined;
19814
+ description?: string | undefined;
19815
+ } | {
19816
+ mode: "animate" | "animate-pixminimax";
19817
+ from: string;
19818
+ frames?: number | undefined;
19819
+ fps?: number | undefined;
19820
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
19821
+ enhancePrompt?: boolean | undefined;
19822
+ driftThreshold?: number | undefined;
19823
+ subjectDescription?: string | undefined;
19824
+ initialPose?: string | undefined;
19825
+ } | {
19826
+ mode: "edit-animation";
19827
+ from: string;
19828
+ fps?: number | undefined;
19315
19829
  } | {
19316
19830
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19317
19831
  mode: "animate-skeleton";
@@ -19371,6 +19885,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19371
19885
  mode: "image-to-image";
19372
19886
  from: string;
19373
19887
  strength?: number | undefined;
19888
+ } | {
19889
+ mode: "reduce-colors";
19890
+ from: string;
19891
+ numColors?: number | undefined;
19892
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19893
+ ditheringStrength?: number | undefined;
19894
+ } | {
19895
+ mask: string;
19896
+ mode: "inpaint";
19897
+ from: string;
19898
+ } | {
19899
+ mode: "interpolate";
19900
+ from: string;
19901
+ lastFrame: string;
19902
+ fps?: number | undefined;
19903
+ } | {
19904
+ mode: "correct-pixelart";
19905
+ from: string;
19906
+ strength?: number | undefined;
19907
+ } | {
19908
+ mode: "remove-background";
19909
+ from: string;
19910
+ removalTask?: "simple" | "complex" | undefined;
19911
+ description?: string | undefined;
19912
+ } | {
19913
+ mode: "animate" | "animate-pixminimax";
19914
+ from: string;
19915
+ frames?: number | undefined;
19916
+ fps?: number | undefined;
19917
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
19918
+ enhancePrompt?: boolean | undefined;
19919
+ driftThreshold?: number | undefined;
19920
+ subjectDescription?: string | undefined;
19921
+ initialPose?: string | undefined;
19922
+ } | {
19923
+ mode: "edit-animation";
19924
+ from: string;
19925
+ fps?: number | undefined;
19374
19926
  } | {
19375
19927
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19376
19928
  mode: "animate-skeleton";
@@ -19430,6 +19982,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19430
19982
  mode: "image-to-image";
19431
19983
  from: string;
19432
19984
  strength?: number | undefined;
19985
+ } | {
19986
+ mode: "reduce-colors";
19987
+ from: string;
19988
+ numColors?: number | undefined;
19989
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
19990
+ ditheringStrength?: number | undefined;
19991
+ } | {
19992
+ mask: string;
19993
+ mode: "inpaint";
19994
+ from: string;
19995
+ } | {
19996
+ mode: "interpolate";
19997
+ from: string;
19998
+ lastFrame: string;
19999
+ fps?: number | undefined;
20000
+ } | {
20001
+ mode: "correct-pixelart";
20002
+ from: string;
20003
+ strength?: number | undefined;
20004
+ } | {
20005
+ mode: "remove-background";
20006
+ from: string;
20007
+ removalTask?: "simple" | "complex" | undefined;
20008
+ description?: string | undefined;
20009
+ } | {
20010
+ mode: "animate" | "animate-pixminimax";
20011
+ from: string;
20012
+ frames?: number | undefined;
20013
+ fps?: number | undefined;
20014
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
20015
+ enhancePrompt?: boolean | undefined;
20016
+ driftThreshold?: number | undefined;
20017
+ subjectDescription?: string | undefined;
20018
+ initialPose?: string | undefined;
20019
+ } | {
20020
+ mode: "edit-animation";
20021
+ from: string;
20022
+ fps?: number | undefined;
19433
20023
  } | {
19434
20024
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19435
20025
  mode: "animate-skeleton";
@@ -19490,18 +20080,56 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19490
20080
  from: string;
19491
20081
  strength?: number | undefined;
19492
20082
  } | {
19493
- direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19494
- mode: "animate-skeleton";
20083
+ mode: "reduce-colors";
19495
20084
  from: string;
19496
- keypointsFile: string;
19497
- skeletonTemplate?: string | undefined;
20085
+ numColors?: number | undefined;
20086
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
20087
+ ditheringStrength?: number | undefined;
20088
+ } | {
20089
+ mask: string;
20090
+ mode: "inpaint";
20091
+ from: string;
20092
+ } | {
20093
+ mode: "interpolate";
20094
+ from: string;
20095
+ lastFrame: string;
20096
+ fps?: number | undefined;
20097
+ } | {
20098
+ mode: "correct-pixelart";
20099
+ from: string;
20100
+ strength?: number | undefined;
20101
+ } | {
20102
+ mode: "remove-background";
20103
+ from: string;
20104
+ removalTask?: "simple" | "complex" | undefined;
19498
20105
  description?: string | undefined;
19499
- } | undefined;
19500
- concept?: string | undefined;
19501
- mirror?: string | undefined;
19502
- styles?: string[] | undefined;
19503
- }>;
19504
- } & {
20106
+ } | {
20107
+ mode: "animate" | "animate-pixminimax";
20108
+ from: string;
20109
+ frames?: number | undefined;
20110
+ fps?: number | undefined;
20111
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
20112
+ enhancePrompt?: boolean | undefined;
20113
+ driftThreshold?: number | undefined;
20114
+ subjectDescription?: string | undefined;
20115
+ initialPose?: string | undefined;
20116
+ } | {
20117
+ mode: "edit-animation";
20118
+ from: string;
20119
+ fps?: number | undefined;
20120
+ } | {
20121
+ direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20122
+ mode: "animate-skeleton";
20123
+ from: string;
20124
+ keypointsFile: string;
20125
+ skeletonTemplate?: string | undefined;
20126
+ description?: string | undefined;
20127
+ } | undefined;
20128
+ concept?: string | undefined;
20129
+ mirror?: string | undefined;
20130
+ styles?: string[] | undefined;
20131
+ }>;
20132
+ } & {
19505
20133
  /** Workspace project id; omitted for a single-project gallery. */
19506
20134
  project: z.ZodOptional<z.ZodString>;
19507
20135
  /** Manifest bytes the page last saw; a mismatch refuses the write. */
@@ -19557,6 +20185,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19557
20185
  mode: "image-to-image";
19558
20186
  from: string;
19559
20187
  strength?: number | undefined;
20188
+ } | {
20189
+ mode: "reduce-colors";
20190
+ from: string;
20191
+ numColors?: number | undefined;
20192
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
20193
+ ditheringStrength?: number | undefined;
20194
+ } | {
20195
+ mask: string;
20196
+ mode: "inpaint";
20197
+ from: string;
20198
+ } | {
20199
+ mode: "interpolate";
20200
+ from: string;
20201
+ lastFrame: string;
20202
+ fps?: number | undefined;
20203
+ } | {
20204
+ mode: "correct-pixelart";
20205
+ from: string;
20206
+ strength?: number | undefined;
20207
+ } | {
20208
+ mode: "remove-background";
20209
+ from: string;
20210
+ removalTask?: "simple" | "complex" | undefined;
20211
+ description?: string | undefined;
20212
+ } | {
20213
+ mode: "animate" | "animate-pixminimax";
20214
+ from: string;
20215
+ frames?: number | undefined;
20216
+ fps?: number | undefined;
20217
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
20218
+ enhancePrompt?: boolean | undefined;
20219
+ driftThreshold?: number | undefined;
20220
+ subjectDescription?: string | undefined;
20221
+ initialPose?: string | undefined;
20222
+ } | {
20223
+ mode: "edit-animation";
20224
+ from: string;
20225
+ fps?: number | undefined;
19560
20226
  } | {
19561
20227
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19562
20228
  mode: "animate-skeleton";
@@ -19622,6 +20288,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
19622
20288
  mode: "image-to-image";
19623
20289
  from: string;
19624
20290
  strength?: number | undefined;
20291
+ } | {
20292
+ mode: "reduce-colors";
20293
+ from: string;
20294
+ numColors?: number | undefined;
20295
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
20296
+ ditheringStrength?: number | undefined;
20297
+ } | {
20298
+ mask: string;
20299
+ mode: "inpaint";
20300
+ from: string;
20301
+ } | {
20302
+ mode: "interpolate";
20303
+ from: string;
20304
+ lastFrame: string;
20305
+ fps?: number | undefined;
20306
+ } | {
20307
+ mode: "correct-pixelart";
20308
+ from: string;
20309
+ strength?: number | undefined;
20310
+ } | {
20311
+ mode: "remove-background";
20312
+ from: string;
20313
+ removalTask?: "simple" | "complex" | undefined;
20314
+ description?: string | undefined;
20315
+ } | {
20316
+ mode: "animate" | "animate-pixminimax";
20317
+ from: string;
20318
+ frames?: number | undefined;
20319
+ fps?: number | undefined;
20320
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
20321
+ enhancePrompt?: boolean | undefined;
20322
+ driftThreshold?: number | undefined;
20323
+ subjectDescription?: string | undefined;
20324
+ initialPose?: string | undefined;
20325
+ } | {
20326
+ mode: "edit-animation";
20327
+ from: string;
20328
+ fps?: number | undefined;
19625
20329
  } | {
19626
20330
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
19627
20331
  mode: "animate-skeleton";
@@ -20003,10 +20707,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20003
20707
  styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20004
20708
  /**
20005
20709
  * A controlled regeneration of another asset in the same manifest,
20006
- * instead of a fresh generation. `inpaint` needs a mask upload the
20007
- * gallery does not offer yet, so only `image-to-image` and
20008
- * `animate-skeleton` (whose keypoints file the gallery writes first) can
20009
- * be created here; hand-edit the manifest for the other modes.
20710
+ * instead of a fresh generation. Every mode but `outpaint` can be
20711
+ * created here: `inpaint` names a mask file the gallery's mask editor
20712
+ * wrote first, `interpolate` names an existing image as its ending
20713
+ * keyframe, and `animate-skeleton` names the keypoints file the gallery
20714
+ * wrote first.
20010
20715
  */
20011
20716
  revision: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
20012
20717
  mode: z.ZodLiteral<"image-to-image">;
@@ -20021,6 +20726,125 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20021
20726
  mode: "image-to-image";
20022
20727
  from: string;
20023
20728
  strength?: number | undefined;
20729
+ }>, z.ZodObject<{
20730
+ mode: z.ZodLiteral<"reduce-colors">;
20731
+ from: z.ZodString;
20732
+ /** A target colour count; the gallery leaves PixelLab's default when this is omitted. */
20733
+ numColors: z.ZodOptional<z.ZodNumber>;
20734
+ dithering: z.ZodOptional<z.ZodEnum<["none", "2x2", "4x4", "8x8"]>>;
20735
+ ditheringStrength: z.ZodOptional<z.ZodNumber>;
20736
+ }, "strict", z.ZodTypeAny, {
20737
+ mode: "reduce-colors";
20738
+ from: string;
20739
+ numColors?: number | undefined;
20740
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
20741
+ ditheringStrength?: number | undefined;
20742
+ }, {
20743
+ mode: "reduce-colors";
20744
+ from: string;
20745
+ numColors?: number | undefined;
20746
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
20747
+ ditheringStrength?: number | undefined;
20748
+ }>, z.ZodObject<{
20749
+ mode: z.ZodLiteral<"inpaint">;
20750
+ from: z.ZodString;
20751
+ /** Black-and-white PNG the same size as the parent; white is repainted. */
20752
+ mask: z.ZodEffects<z.ZodString, string, string>;
20753
+ }, "strict", z.ZodTypeAny, {
20754
+ mask: string;
20755
+ mode: "inpaint";
20756
+ from: string;
20757
+ }, {
20758
+ mask: string;
20759
+ mode: "inpaint";
20760
+ from: string;
20761
+ }>, z.ZodObject<{
20762
+ mode: z.ZodLiteral<"interpolate">;
20763
+ from: z.ZodString;
20764
+ /** The ending keyframe: an image already in the project, the parent's size. */
20765
+ lastFrame: z.ZodEffects<z.ZodString, string, string>;
20766
+ fps: z.ZodOptional<z.ZodNumber>;
20767
+ }, "strict", z.ZodTypeAny, {
20768
+ mode: "interpolate";
20769
+ from: string;
20770
+ lastFrame: string;
20771
+ fps?: number | undefined;
20772
+ }, {
20773
+ mode: "interpolate";
20774
+ from: string;
20775
+ lastFrame: string;
20776
+ fps?: number | undefined;
20777
+ }>, z.ZodObject<{
20778
+ mode: z.ZodLiteral<"correct-pixelart">;
20779
+ from: z.ZodString;
20780
+ strength: z.ZodOptional<z.ZodNumber>;
20781
+ }, "strict", z.ZodTypeAny, {
20782
+ mode: "correct-pixelart";
20783
+ from: string;
20784
+ strength?: number | undefined;
20785
+ }, {
20786
+ mode: "correct-pixelart";
20787
+ from: string;
20788
+ strength?: number | undefined;
20789
+ }>, z.ZodObject<{
20790
+ mode: z.ZodLiteral<"remove-background">;
20791
+ from: z.ZodString;
20792
+ removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
20793
+ /** A short description of the foreground, sent as PixelLab's text hint. */
20794
+ description: z.ZodOptional<z.ZodString>;
20795
+ }, "strict", z.ZodTypeAny, {
20796
+ mode: "remove-background";
20797
+ from: string;
20798
+ removalTask?: "simple" | "complex" | undefined;
20799
+ description?: string | undefined;
20800
+ }, {
20801
+ mode: "remove-background";
20802
+ from: string;
20803
+ removalTask?: "simple" | "complex" | undefined;
20804
+ description?: string | undefined;
20805
+ }>, z.ZodObject<{
20806
+ mode: z.ZodEnum<["animate", "animate-pixminimax"]>;
20807
+ from: z.ZodString;
20808
+ frames: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
20809
+ fps: z.ZodOptional<z.ZodNumber>;
20810
+ enhancePrompt: z.ZodOptional<z.ZodBoolean>;
20811
+ driftThreshold: z.ZodOptional<z.ZodNumber>;
20812
+ /** `animate-pixminimax` only; the loader refuses these on `animate`. */
20813
+ direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
20814
+ subjectDescription: z.ZodOptional<z.ZodString>;
20815
+ initialPose: z.ZodOptional<z.ZodString>;
20816
+ }, "strict", z.ZodTypeAny, {
20817
+ mode: "animate" | "animate-pixminimax";
20818
+ from: string;
20819
+ frames?: number | undefined;
20820
+ fps?: number | undefined;
20821
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
20822
+ enhancePrompt?: boolean | undefined;
20823
+ driftThreshold?: number | undefined;
20824
+ subjectDescription?: string | undefined;
20825
+ initialPose?: string | undefined;
20826
+ }, {
20827
+ mode: "animate" | "animate-pixminimax";
20828
+ from: string;
20829
+ frames?: number | undefined;
20830
+ fps?: number | undefined;
20831
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
20832
+ enhancePrompt?: boolean | undefined;
20833
+ driftThreshold?: number | undefined;
20834
+ subjectDescription?: string | undefined;
20835
+ initialPose?: string | undefined;
20836
+ }>, z.ZodObject<{
20837
+ mode: z.ZodLiteral<"edit-animation">;
20838
+ from: z.ZodString;
20839
+ fps: z.ZodOptional<z.ZodNumber>;
20840
+ }, "strict", z.ZodTypeAny, {
20841
+ mode: "edit-animation";
20842
+ from: string;
20843
+ fps?: number | undefined;
20844
+ }, {
20845
+ mode: "edit-animation";
20846
+ from: string;
20847
+ fps?: number | undefined;
20024
20848
  }>, z.ZodObject<{
20025
20849
  mode: z.ZodLiteral<"animate-skeleton">;
20026
20850
  from: z.ZodString;
@@ -20214,6 +21038,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20214
21038
  mode: "image-to-image";
20215
21039
  from: string;
20216
21040
  strength?: number | undefined;
21041
+ } | {
21042
+ mode: "reduce-colors";
21043
+ from: string;
21044
+ numColors?: number | undefined;
21045
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21046
+ ditheringStrength?: number | undefined;
21047
+ } | {
21048
+ mask: string;
21049
+ mode: "inpaint";
21050
+ from: string;
21051
+ } | {
21052
+ mode: "interpolate";
21053
+ from: string;
21054
+ lastFrame: string;
21055
+ fps?: number | undefined;
21056
+ } | {
21057
+ mode: "correct-pixelart";
21058
+ from: string;
21059
+ strength?: number | undefined;
21060
+ } | {
21061
+ mode: "remove-background";
21062
+ from: string;
21063
+ removalTask?: "simple" | "complex" | undefined;
21064
+ description?: string | undefined;
21065
+ } | {
21066
+ mode: "animate" | "animate-pixminimax";
21067
+ from: string;
21068
+ frames?: number | undefined;
21069
+ fps?: number | undefined;
21070
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21071
+ enhancePrompt?: boolean | undefined;
21072
+ driftThreshold?: number | undefined;
21073
+ subjectDescription?: string | undefined;
21074
+ initialPose?: string | undefined;
21075
+ } | {
21076
+ mode: "edit-animation";
21077
+ from: string;
21078
+ fps?: number | undefined;
20217
21079
  } | {
20218
21080
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20219
21081
  mode: "animate-skeleton";
@@ -20273,6 +21135,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20273
21135
  mode: "image-to-image";
20274
21136
  from: string;
20275
21137
  strength?: number | undefined;
21138
+ } | {
21139
+ mode: "reduce-colors";
21140
+ from: string;
21141
+ numColors?: number | undefined;
21142
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21143
+ ditheringStrength?: number | undefined;
21144
+ } | {
21145
+ mask: string;
21146
+ mode: "inpaint";
21147
+ from: string;
21148
+ } | {
21149
+ mode: "interpolate";
21150
+ from: string;
21151
+ lastFrame: string;
21152
+ fps?: number | undefined;
21153
+ } | {
21154
+ mode: "correct-pixelart";
21155
+ from: string;
21156
+ strength?: number | undefined;
21157
+ } | {
21158
+ mode: "remove-background";
21159
+ from: string;
21160
+ removalTask?: "simple" | "complex" | undefined;
21161
+ description?: string | undefined;
21162
+ } | {
21163
+ mode: "animate" | "animate-pixminimax";
21164
+ from: string;
21165
+ frames?: number | undefined;
21166
+ fps?: number | undefined;
21167
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21168
+ enhancePrompt?: boolean | undefined;
21169
+ driftThreshold?: number | undefined;
21170
+ subjectDescription?: string | undefined;
21171
+ initialPose?: string | undefined;
21172
+ } | {
21173
+ mode: "edit-animation";
21174
+ from: string;
21175
+ fps?: number | undefined;
20276
21176
  } | {
20277
21177
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20278
21178
  mode: "animate-skeleton";
@@ -20332,6 +21232,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20332
21232
  mode: "image-to-image";
20333
21233
  from: string;
20334
21234
  strength?: number | undefined;
21235
+ } | {
21236
+ mode: "reduce-colors";
21237
+ from: string;
21238
+ numColors?: number | undefined;
21239
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21240
+ ditheringStrength?: number | undefined;
21241
+ } | {
21242
+ mask: string;
21243
+ mode: "inpaint";
21244
+ from: string;
21245
+ } | {
21246
+ mode: "interpolate";
21247
+ from: string;
21248
+ lastFrame: string;
21249
+ fps?: number | undefined;
21250
+ } | {
21251
+ mode: "correct-pixelart";
21252
+ from: string;
21253
+ strength?: number | undefined;
21254
+ } | {
21255
+ mode: "remove-background";
21256
+ from: string;
21257
+ removalTask?: "simple" | "complex" | undefined;
21258
+ description?: string | undefined;
21259
+ } | {
21260
+ mode: "animate" | "animate-pixminimax";
21261
+ from: string;
21262
+ frames?: number | undefined;
21263
+ fps?: number | undefined;
21264
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21265
+ enhancePrompt?: boolean | undefined;
21266
+ driftThreshold?: number | undefined;
21267
+ subjectDescription?: string | undefined;
21268
+ initialPose?: string | undefined;
21269
+ } | {
21270
+ mode: "edit-animation";
21271
+ from: string;
21272
+ fps?: number | undefined;
20335
21273
  } | {
20336
21274
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20337
21275
  mode: "animate-skeleton";
@@ -20391,6 +21329,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20391
21329
  mode: "image-to-image";
20392
21330
  from: string;
20393
21331
  strength?: number | undefined;
21332
+ } | {
21333
+ mode: "reduce-colors";
21334
+ from: string;
21335
+ numColors?: number | undefined;
21336
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21337
+ ditheringStrength?: number | undefined;
21338
+ } | {
21339
+ mask: string;
21340
+ mode: "inpaint";
21341
+ from: string;
21342
+ } | {
21343
+ mode: "interpolate";
21344
+ from: string;
21345
+ lastFrame: string;
21346
+ fps?: number | undefined;
21347
+ } | {
21348
+ mode: "correct-pixelart";
21349
+ from: string;
21350
+ strength?: number | undefined;
21351
+ } | {
21352
+ mode: "remove-background";
21353
+ from: string;
21354
+ removalTask?: "simple" | "complex" | undefined;
21355
+ description?: string | undefined;
21356
+ } | {
21357
+ mode: "animate" | "animate-pixminimax";
21358
+ from: string;
21359
+ frames?: number | undefined;
21360
+ fps?: number | undefined;
21361
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21362
+ enhancePrompt?: boolean | undefined;
21363
+ driftThreshold?: number | undefined;
21364
+ subjectDescription?: string | undefined;
21365
+ initialPose?: string | undefined;
21366
+ } | {
21367
+ mode: "edit-animation";
21368
+ from: string;
21369
+ fps?: number | undefined;
20394
21370
  } | {
20395
21371
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20396
21372
  mode: "animate-skeleton";
@@ -20450,6 +21426,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20450
21426
  mode: "image-to-image";
20451
21427
  from: string;
20452
21428
  strength?: number | undefined;
21429
+ } | {
21430
+ mode: "reduce-colors";
21431
+ from: string;
21432
+ numColors?: number | undefined;
21433
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21434
+ ditheringStrength?: number | undefined;
21435
+ } | {
21436
+ mask: string;
21437
+ mode: "inpaint";
21438
+ from: string;
21439
+ } | {
21440
+ mode: "interpolate";
21441
+ from: string;
21442
+ lastFrame: string;
21443
+ fps?: number | undefined;
21444
+ } | {
21445
+ mode: "correct-pixelart";
21446
+ from: string;
21447
+ strength?: number | undefined;
21448
+ } | {
21449
+ mode: "remove-background";
21450
+ from: string;
21451
+ removalTask?: "simple" | "complex" | undefined;
21452
+ description?: string | undefined;
21453
+ } | {
21454
+ mode: "animate" | "animate-pixminimax";
21455
+ from: string;
21456
+ frames?: number | undefined;
21457
+ fps?: number | undefined;
21458
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21459
+ enhancePrompt?: boolean | undefined;
21460
+ driftThreshold?: number | undefined;
21461
+ subjectDescription?: string | undefined;
21462
+ initialPose?: string | undefined;
21463
+ } | {
21464
+ mode: "edit-animation";
21465
+ from: string;
21466
+ fps?: number | undefined;
20453
21467
  } | {
20454
21468
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20455
21469
  mode: "animate-skeleton";
@@ -20509,6 +21523,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20509
21523
  mode: "image-to-image";
20510
21524
  from: string;
20511
21525
  strength?: number | undefined;
21526
+ } | {
21527
+ mode: "reduce-colors";
21528
+ from: string;
21529
+ numColors?: number | undefined;
21530
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21531
+ ditheringStrength?: number | undefined;
21532
+ } | {
21533
+ mask: string;
21534
+ mode: "inpaint";
21535
+ from: string;
21536
+ } | {
21537
+ mode: "interpolate";
21538
+ from: string;
21539
+ lastFrame: string;
21540
+ fps?: number | undefined;
21541
+ } | {
21542
+ mode: "correct-pixelart";
21543
+ from: string;
21544
+ strength?: number | undefined;
21545
+ } | {
21546
+ mode: "remove-background";
21547
+ from: string;
21548
+ removalTask?: "simple" | "complex" | undefined;
21549
+ description?: string | undefined;
21550
+ } | {
21551
+ mode: "animate" | "animate-pixminimax";
21552
+ from: string;
21553
+ frames?: number | undefined;
21554
+ fps?: number | undefined;
21555
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21556
+ enhancePrompt?: boolean | undefined;
21557
+ driftThreshold?: number | undefined;
21558
+ subjectDescription?: string | undefined;
21559
+ initialPose?: string | undefined;
21560
+ } | {
21561
+ mode: "edit-animation";
21562
+ from: string;
21563
+ fps?: number | undefined;
20512
21564
  } | {
20513
21565
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20514
21566
  mode: "animate-skeleton";
@@ -20572,6 +21624,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20572
21624
  mode: "image-to-image";
20573
21625
  from: string;
20574
21626
  strength?: number | undefined;
21627
+ } | {
21628
+ mode: "reduce-colors";
21629
+ from: string;
21630
+ numColors?: number | undefined;
21631
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21632
+ ditheringStrength?: number | undefined;
21633
+ } | {
21634
+ mask: string;
21635
+ mode: "inpaint";
21636
+ from: string;
21637
+ } | {
21638
+ mode: "interpolate";
21639
+ from: string;
21640
+ lastFrame: string;
21641
+ fps?: number | undefined;
21642
+ } | {
21643
+ mode: "correct-pixelart";
21644
+ from: string;
21645
+ strength?: number | undefined;
21646
+ } | {
21647
+ mode: "remove-background";
21648
+ from: string;
21649
+ removalTask?: "simple" | "complex" | undefined;
21650
+ description?: string | undefined;
21651
+ } | {
21652
+ mode: "animate" | "animate-pixminimax";
21653
+ from: string;
21654
+ frames?: number | undefined;
21655
+ fps?: number | undefined;
21656
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21657
+ enhancePrompt?: boolean | undefined;
21658
+ driftThreshold?: number | undefined;
21659
+ subjectDescription?: string | undefined;
21660
+ initialPose?: string | undefined;
21661
+ } | {
21662
+ mode: "edit-animation";
21663
+ from: string;
21664
+ fps?: number | undefined;
20575
21665
  } | {
20576
21666
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20577
21667
  mode: "animate-skeleton";
@@ -20635,6 +21725,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20635
21725
  mode: "image-to-image";
20636
21726
  from: string;
20637
21727
  strength?: number | undefined;
21728
+ } | {
21729
+ mode: "reduce-colors";
21730
+ from: string;
21731
+ numColors?: number | undefined;
21732
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
21733
+ ditheringStrength?: number | undefined;
21734
+ } | {
21735
+ mask: string;
21736
+ mode: "inpaint";
21737
+ from: string;
21738
+ } | {
21739
+ mode: "interpolate";
21740
+ from: string;
21741
+ lastFrame: string;
21742
+ fps?: number | undefined;
21743
+ } | {
21744
+ mode: "correct-pixelart";
21745
+ from: string;
21746
+ strength?: number | undefined;
21747
+ } | {
21748
+ mode: "remove-background";
21749
+ from: string;
21750
+ removalTask?: "simple" | "complex" | undefined;
21751
+ description?: string | undefined;
21752
+ } | {
21753
+ mode: "animate" | "animate-pixminimax";
21754
+ from: string;
21755
+ frames?: number | undefined;
21756
+ fps?: number | undefined;
21757
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
21758
+ enhancePrompt?: boolean | undefined;
21759
+ driftThreshold?: number | undefined;
21760
+ subjectDescription?: string | undefined;
21761
+ initialPose?: string | undefined;
21762
+ } | {
21763
+ mode: "edit-animation";
21764
+ from: string;
21765
+ fps?: number | undefined;
20638
21766
  } | {
20639
21767
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20640
21768
  mode: "animate-skeleton";
@@ -20955,6 +22083,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
20955
22083
  mode: "image-to-image";
20956
22084
  from: string;
20957
22085
  strength?: number | undefined;
22086
+ } | {
22087
+ mode: "reduce-colors";
22088
+ from: string;
22089
+ numColors?: number | undefined;
22090
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
22091
+ ditheringStrength?: number | undefined;
22092
+ } | {
22093
+ mask: string;
22094
+ mode: "inpaint";
22095
+ from: string;
22096
+ } | {
22097
+ mode: "interpolate";
22098
+ from: string;
22099
+ lastFrame: string;
22100
+ fps?: number | undefined;
22101
+ } | {
22102
+ mode: "correct-pixelart";
22103
+ from: string;
22104
+ strength?: number | undefined;
22105
+ } | {
22106
+ mode: "remove-background";
22107
+ from: string;
22108
+ removalTask?: "simple" | "complex" | undefined;
22109
+ description?: string | undefined;
22110
+ } | {
22111
+ mode: "animate" | "animate-pixminimax";
22112
+ from: string;
22113
+ frames?: number | undefined;
22114
+ fps?: number | undefined;
22115
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
22116
+ enhancePrompt?: boolean | undefined;
22117
+ driftThreshold?: number | undefined;
22118
+ subjectDescription?: string | undefined;
22119
+ initialPose?: string | undefined;
22120
+ } | {
22121
+ mode: "edit-animation";
22122
+ from: string;
22123
+ fps?: number | undefined;
20958
22124
  } | {
20959
22125
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
20960
22126
  mode: "animate-skeleton";
@@ -21085,6 +22251,44 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
21085
22251
  mode: "image-to-image";
21086
22252
  from: string;
21087
22253
  strength?: number | undefined;
22254
+ } | {
22255
+ mode: "reduce-colors";
22256
+ from: string;
22257
+ numColors?: number | undefined;
22258
+ dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
22259
+ ditheringStrength?: number | undefined;
22260
+ } | {
22261
+ mask: string;
22262
+ mode: "inpaint";
22263
+ from: string;
22264
+ } | {
22265
+ mode: "interpolate";
22266
+ from: string;
22267
+ lastFrame: string;
22268
+ fps?: number | undefined;
22269
+ } | {
22270
+ mode: "correct-pixelart";
22271
+ from: string;
22272
+ strength?: number | undefined;
22273
+ } | {
22274
+ mode: "remove-background";
22275
+ from: string;
22276
+ removalTask?: "simple" | "complex" | undefined;
22277
+ description?: string | undefined;
22278
+ } | {
22279
+ mode: "animate" | "animate-pixminimax";
22280
+ from: string;
22281
+ frames?: number | undefined;
22282
+ fps?: number | undefined;
22283
+ direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
22284
+ enhancePrompt?: boolean | undefined;
22285
+ driftThreshold?: number | undefined;
22286
+ subjectDescription?: string | undefined;
22287
+ initialPose?: string | undefined;
22288
+ } | {
22289
+ mode: "edit-animation";
22290
+ from: string;
22291
+ fps?: number | undefined;
21088
22292
  } | {
21089
22293
  direction: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west";
21090
22294
  mode: "animate-skeleton";