pixelkiln 0.36.0 → 0.37.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
@@ -626,6 +626,18 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
626
626
  * chocolate bar.
627
627
  */
628
628
  palette: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
629
+ /**
630
+ * Snap every visible pixel of the downloaded art to the nearest `palette`
631
+ * colour, without dithering. The palette is sent to providers that take
632
+ * one, and most honour it most of the time; this makes it a guarantee
633
+ * for every generator, including the ones with no palette parameter.
634
+ * Applied by `fetch` as the file is written and recorded on the lock
635
+ * entry, so a restore reproduces the same bytes. Turning it on or off
636
+ * does not change the spec hash: `plan` reports the entry as recoverable
637
+ * and the next `fetch` or `restore` re-applies it from the art already
638
+ * on disk or in the cache, spending nothing.
639
+ */
640
+ enforcePalette: z.ZodDefault<z.ZodBoolean>;
629
641
  /** Fail-closed native-grid, palette, and human-approval policy for derived art. */
630
642
  quality: z.ZodOptional<z.ZodEffects<z.ZodObject<{
631
643
  /** Output root for approved refined art, relative to the manifest. */
@@ -722,6 +734,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
722
734
  path: string;
723
735
  }[];
724
736
  noBackground: boolean;
737
+ enforcePalette: boolean;
725
738
  tags: string[];
726
739
  providerOptions: Record<string, Record<string, unknown>>;
727
740
  provider?: string | undefined;
@@ -773,6 +786,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
773
786
  outlineMode?: "outline" | "segmentation" | undefined;
774
787
  noBackground?: boolean | undefined;
775
788
  seed?: number | undefined;
789
+ enforcePalette?: boolean | undefined;
776
790
  quality?: {
777
791
  outDir: string;
778
792
  palette: string[];
@@ -800,6 +814,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
800
814
  path: string;
801
815
  }[];
802
816
  noBackground: boolean;
817
+ enforcePalette: boolean;
803
818
  tags: string[];
804
819
  providerOptions: Record<string, Record<string, unknown>>;
805
820
  provider?: string | undefined;
@@ -851,6 +866,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
851
866
  outlineMode?: "outline" | "segmentation" | undefined;
852
867
  noBackground?: boolean | undefined;
853
868
  seed?: number | undefined;
869
+ enforcePalette?: boolean | undefined;
854
870
  quality?: {
855
871
  outDir: string;
856
872
  palette: string[];
@@ -878,6 +894,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
878
894
  path: string;
879
895
  }[];
880
896
  noBackground: boolean;
897
+ enforcePalette: boolean;
881
898
  tags: string[];
882
899
  providerOptions: Record<string, Record<string, unknown>>;
883
900
  provider?: string | undefined;
@@ -929,6 +946,7 @@ declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
929
946
  outlineMode?: "outline" | "segmentation" | undefined;
930
947
  noBackground?: boolean | undefined;
931
948
  seed?: number | undefined;
949
+ enforcePalette?: boolean | undefined;
932
950
  quality?: {
933
951
  outDir: string;
934
952
  palette: string[];
@@ -977,6 +995,7 @@ declare const InheritedStyleSchema: z.ZodObject<{
977
995
  noBackground: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
978
996
  seed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
979
997
  palette: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
998
+ enforcePalette: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
980
999
  mount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
981
1000
  /**
982
1001
  * Existing sheet to composite into, relative to the manifest. Every
@@ -1053,6 +1072,7 @@ declare const InheritedStyleSchema: z.ZodObject<{
1053
1072
  outlineMode?: "outline" | "segmentation" | undefined;
1054
1073
  noBackground?: boolean | undefined;
1055
1074
  seed?: number | undefined;
1075
+ enforcePalette?: boolean | undefined;
1056
1076
  quality?: {
1057
1077
  outDir?: string | undefined;
1058
1078
  palette?: string[] | undefined;
@@ -1093,6 +1113,7 @@ declare const InheritedStyleSchema: z.ZodObject<{
1093
1113
  outlineMode?: "outline" | "segmentation" | undefined;
1094
1114
  noBackground?: boolean | undefined;
1095
1115
  seed?: number | undefined;
1116
+ enforcePalette?: boolean | undefined;
1096
1117
  quality?: {
1097
1118
  outDir?: string | undefined;
1098
1119
  palette?: string[] | undefined;
@@ -1202,6 +1223,18 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1202
1223
  * chocolate bar.
1203
1224
  */
1204
1225
  palette: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1226
+ /**
1227
+ * Snap every visible pixel of the downloaded art to the nearest `palette`
1228
+ * colour, without dithering. The palette is sent to providers that take
1229
+ * one, and most honour it most of the time; this makes it a guarantee
1230
+ * for every generator, including the ones with no palette parameter.
1231
+ * Applied by `fetch` as the file is written and recorded on the lock
1232
+ * entry, so a restore reproduces the same bytes. Turning it on or off
1233
+ * does not change the spec hash: `plan` reports the entry as recoverable
1234
+ * and the next `fetch` or `restore` re-applies it from the art already
1235
+ * on disk or in the cache, spending nothing.
1236
+ */
1237
+ enforcePalette: z.ZodDefault<z.ZodBoolean>;
1205
1238
  /** Fail-closed native-grid, palette, and human-approval policy for derived art. */
1206
1239
  quality: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1207
1240
  /** Output root for approved refined art, relative to the manifest. */
@@ -1298,6 +1331,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1298
1331
  path: string;
1299
1332
  }[];
1300
1333
  noBackground: boolean;
1334
+ enforcePalette: boolean;
1301
1335
  tags: string[];
1302
1336
  providerOptions: Record<string, Record<string, unknown>>;
1303
1337
  provider?: string | undefined;
@@ -1349,6 +1383,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1349
1383
  outlineMode?: "outline" | "segmentation" | undefined;
1350
1384
  noBackground?: boolean | undefined;
1351
1385
  seed?: number | undefined;
1386
+ enforcePalette?: boolean | undefined;
1352
1387
  quality?: {
1353
1388
  outDir: string;
1354
1389
  palette: string[];
@@ -1376,6 +1411,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1376
1411
  path: string;
1377
1412
  }[];
1378
1413
  noBackground: boolean;
1414
+ enforcePalette: boolean;
1379
1415
  tags: string[];
1380
1416
  providerOptions: Record<string, Record<string, unknown>>;
1381
1417
  provider?: string | undefined;
@@ -1427,6 +1463,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1427
1463
  outlineMode?: "outline" | "segmentation" | undefined;
1428
1464
  noBackground?: boolean | undefined;
1429
1465
  seed?: number | undefined;
1466
+ enforcePalette?: boolean | undefined;
1430
1467
  quality?: {
1431
1468
  outDir: string;
1432
1469
  palette: string[];
@@ -1454,6 +1491,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1454
1491
  path: string;
1455
1492
  }[];
1456
1493
  noBackground: boolean;
1494
+ enforcePalette: boolean;
1457
1495
  tags: string[];
1458
1496
  providerOptions: Record<string, Record<string, unknown>>;
1459
1497
  provider?: string | undefined;
@@ -1505,6 +1543,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1505
1543
  outlineMode?: "outline" | "segmentation" | undefined;
1506
1544
  noBackground?: boolean | undefined;
1507
1545
  seed?: number | undefined;
1546
+ enforcePalette?: boolean | undefined;
1508
1547
  quality?: {
1509
1548
  outDir: string;
1510
1549
  palette: string[];
@@ -1548,6 +1587,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1548
1587
  noBackground: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1549
1588
  seed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1550
1589
  palette: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
1590
+ enforcePalette: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1551
1591
  mount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1552
1592
  /**
1553
1593
  * Existing sheet to composite into, relative to the manifest. Every
@@ -1624,6 +1664,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1624
1664
  outlineMode?: "outline" | "segmentation" | undefined;
1625
1665
  noBackground?: boolean | undefined;
1626
1666
  seed?: number | undefined;
1667
+ enforcePalette?: boolean | undefined;
1627
1668
  quality?: {
1628
1669
  outDir?: string | undefined;
1629
1670
  palette?: string[] | undefined;
@@ -1664,6 +1705,7 @@ declare const StyleInputSchema: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodObjec
1664
1705
  outlineMode?: "outline" | "segmentation" | undefined;
1665
1706
  noBackground?: boolean | undefined;
1666
1707
  seed?: number | undefined;
1708
+ enforcePalette?: boolean | undefined;
1667
1709
  quality?: {
1668
1710
  outDir?: string | undefined;
1669
1711
  palette?: string[] | undefined;
@@ -1972,6 +2014,18 @@ declare const ManifestSchema: z.ZodObject<{
1972
2014
  * chocolate bar.
1973
2015
  */
1974
2016
  palette: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2017
+ /**
2018
+ * Snap every visible pixel of the downloaded art to the nearest `palette`
2019
+ * colour, without dithering. The palette is sent to providers that take
2020
+ * one, and most honour it most of the time; this makes it a guarantee
2021
+ * for every generator, including the ones with no palette parameter.
2022
+ * Applied by `fetch` as the file is written and recorded on the lock
2023
+ * entry, so a restore reproduces the same bytes. Turning it on or off
2024
+ * does not change the spec hash: `plan` reports the entry as recoverable
2025
+ * and the next `fetch` or `restore` re-applies it from the art already
2026
+ * on disk or in the cache, spending nothing.
2027
+ */
2028
+ enforcePalette: z.ZodDefault<z.ZodBoolean>;
1975
2029
  /** Fail-closed native-grid, palette, and human-approval policy for derived art. */
1976
2030
  quality: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1977
2031
  /** Output root for approved refined art, relative to the manifest. */
@@ -2068,6 +2122,7 @@ declare const ManifestSchema: z.ZodObject<{
2068
2122
  path: string;
2069
2123
  }[];
2070
2124
  noBackground: boolean;
2125
+ enforcePalette: boolean;
2071
2126
  tags: string[];
2072
2127
  providerOptions: Record<string, Record<string, unknown>>;
2073
2128
  provider?: string | undefined;
@@ -2119,6 +2174,7 @@ declare const ManifestSchema: z.ZodObject<{
2119
2174
  outlineMode?: "outline" | "segmentation" | undefined;
2120
2175
  noBackground?: boolean | undefined;
2121
2176
  seed?: number | undefined;
2177
+ enforcePalette?: boolean | undefined;
2122
2178
  quality?: {
2123
2179
  outDir: string;
2124
2180
  palette: string[];
@@ -2146,6 +2202,7 @@ declare const ManifestSchema: z.ZodObject<{
2146
2202
  path: string;
2147
2203
  }[];
2148
2204
  noBackground: boolean;
2205
+ enforcePalette: boolean;
2149
2206
  tags: string[];
2150
2207
  providerOptions: Record<string, Record<string, unknown>>;
2151
2208
  provider?: string | undefined;
@@ -2197,6 +2254,7 @@ declare const ManifestSchema: z.ZodObject<{
2197
2254
  outlineMode?: "outline" | "segmentation" | undefined;
2198
2255
  noBackground?: boolean | undefined;
2199
2256
  seed?: number | undefined;
2257
+ enforcePalette?: boolean | undefined;
2200
2258
  quality?: {
2201
2259
  outDir: string;
2202
2260
  palette: string[];
@@ -2224,6 +2282,7 @@ declare const ManifestSchema: z.ZodObject<{
2224
2282
  path: string;
2225
2283
  }[];
2226
2284
  noBackground: boolean;
2285
+ enforcePalette: boolean;
2227
2286
  tags: string[];
2228
2287
  providerOptions: Record<string, Record<string, unknown>>;
2229
2288
  provider?: string | undefined;
@@ -2275,6 +2334,7 @@ declare const ManifestSchema: z.ZodObject<{
2275
2334
  outlineMode?: "outline" | "segmentation" | undefined;
2276
2335
  noBackground?: boolean | undefined;
2277
2336
  seed?: number | undefined;
2337
+ enforcePalette?: boolean | undefined;
2278
2338
  quality?: {
2279
2339
  outDir: string;
2280
2340
  palette: string[];
@@ -2494,6 +2554,7 @@ declare const ManifestSchema: z.ZodObject<{
2494
2554
  path: string;
2495
2555
  }[];
2496
2556
  noBackground: boolean;
2557
+ enforcePalette: boolean;
2497
2558
  tags: string[];
2498
2559
  providerOptions: Record<string, Record<string, unknown>>;
2499
2560
  provider?: string | undefined;
@@ -2572,6 +2633,7 @@ declare const ManifestSchema: z.ZodObject<{
2572
2633
  outlineMode?: "outline" | "segmentation" | undefined;
2573
2634
  noBackground?: boolean | undefined;
2574
2635
  seed?: number | undefined;
2636
+ enforcePalette?: boolean | undefined;
2575
2637
  quality?: {
2576
2638
  outDir: string;
2577
2639
  palette: string[];
@@ -2714,6 +2776,18 @@ declare const ManifestInputSchema: z.ZodObject<{
2714
2776
  * chocolate bar.
2715
2777
  */
2716
2778
  palette: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2779
+ /**
2780
+ * Snap every visible pixel of the downloaded art to the nearest `palette`
2781
+ * colour, without dithering. The palette is sent to providers that take
2782
+ * one, and most honour it most of the time; this makes it a guarantee
2783
+ * for every generator, including the ones with no palette parameter.
2784
+ * Applied by `fetch` as the file is written and recorded on the lock
2785
+ * entry, so a restore reproduces the same bytes. Turning it on or off
2786
+ * does not change the spec hash: `plan` reports the entry as recoverable
2787
+ * and the next `fetch` or `restore` re-applies it from the art already
2788
+ * on disk or in the cache, spending nothing.
2789
+ */
2790
+ enforcePalette: z.ZodDefault<z.ZodBoolean>;
2717
2791
  /** Fail-closed native-grid, palette, and human-approval policy for derived art. */
2718
2792
  quality: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2719
2793
  /** Output root for approved refined art, relative to the manifest. */
@@ -2810,6 +2884,7 @@ declare const ManifestInputSchema: z.ZodObject<{
2810
2884
  path: string;
2811
2885
  }[];
2812
2886
  noBackground: boolean;
2887
+ enforcePalette: boolean;
2813
2888
  tags: string[];
2814
2889
  providerOptions: Record<string, Record<string, unknown>>;
2815
2890
  provider?: string | undefined;
@@ -2861,6 +2936,7 @@ declare const ManifestInputSchema: z.ZodObject<{
2861
2936
  outlineMode?: "outline" | "segmentation" | undefined;
2862
2937
  noBackground?: boolean | undefined;
2863
2938
  seed?: number | undefined;
2939
+ enforcePalette?: boolean | undefined;
2864
2940
  quality?: {
2865
2941
  outDir: string;
2866
2942
  palette: string[];
@@ -2888,6 +2964,7 @@ declare const ManifestInputSchema: z.ZodObject<{
2888
2964
  path: string;
2889
2965
  }[];
2890
2966
  noBackground: boolean;
2967
+ enforcePalette: boolean;
2891
2968
  tags: string[];
2892
2969
  providerOptions: Record<string, Record<string, unknown>>;
2893
2970
  provider?: string | undefined;
@@ -2939,6 +3016,7 @@ declare const ManifestInputSchema: z.ZodObject<{
2939
3016
  outlineMode?: "outline" | "segmentation" | undefined;
2940
3017
  noBackground?: boolean | undefined;
2941
3018
  seed?: number | undefined;
3019
+ enforcePalette?: boolean | undefined;
2942
3020
  quality?: {
2943
3021
  outDir: string;
2944
3022
  palette: string[];
@@ -2966,6 +3044,7 @@ declare const ManifestInputSchema: z.ZodObject<{
2966
3044
  path: string;
2967
3045
  }[];
2968
3046
  noBackground: boolean;
3047
+ enforcePalette: boolean;
2969
3048
  tags: string[];
2970
3049
  providerOptions: Record<string, Record<string, unknown>>;
2971
3050
  provider?: string | undefined;
@@ -3017,6 +3096,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3017
3096
  outlineMode?: "outline" | "segmentation" | undefined;
3018
3097
  noBackground?: boolean | undefined;
3019
3098
  seed?: number | undefined;
3099
+ enforcePalette?: boolean | undefined;
3020
3100
  quality?: {
3021
3101
  outDir: string;
3022
3102
  palette: string[];
@@ -3060,6 +3140,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3060
3140
  noBackground: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3061
3141
  seed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
3062
3142
  palette: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
3143
+ enforcePalette: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
3063
3144
  mount: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3064
3145
  /**
3065
3146
  * Existing sheet to composite into, relative to the manifest. Every
@@ -3136,6 +3217,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3136
3217
  outlineMode?: "outline" | "segmentation" | undefined;
3137
3218
  noBackground?: boolean | undefined;
3138
3219
  seed?: number | undefined;
3220
+ enforcePalette?: boolean | undefined;
3139
3221
  quality?: {
3140
3222
  outDir?: string | undefined;
3141
3223
  palette?: string[] | undefined;
@@ -3176,6 +3258,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3176
3258
  outlineMode?: "outline" | "segmentation" | undefined;
3177
3259
  noBackground?: boolean | undefined;
3178
3260
  seed?: number | undefined;
3261
+ enforcePalette?: boolean | undefined;
3179
3262
  quality?: {
3180
3263
  outDir?: string | undefined;
3181
3264
  palette?: string[] | undefined;
@@ -3395,6 +3478,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3395
3478
  path: string;
3396
3479
  }[];
3397
3480
  noBackground: boolean;
3481
+ enforcePalette: boolean;
3398
3482
  tags: string[];
3399
3483
  providerOptions: Record<string, Record<string, unknown>>;
3400
3484
  provider?: string | undefined;
@@ -3447,6 +3531,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3447
3531
  outlineMode?: "outline" | "segmentation" | undefined;
3448
3532
  noBackground?: boolean | undefined;
3449
3533
  seed?: number | undefined;
3534
+ enforcePalette?: boolean | undefined;
3450
3535
  quality?: {
3451
3536
  outDir?: string | undefined;
3452
3537
  palette?: string[] | undefined;
@@ -3513,6 +3598,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3513
3598
  outlineMode?: "outline" | "segmentation" | undefined;
3514
3599
  noBackground?: boolean | undefined;
3515
3600
  seed?: number | undefined;
3601
+ enforcePalette?: boolean | undefined;
3516
3602
  quality?: {
3517
3603
  outDir: string;
3518
3604
  palette: string[];
@@ -3553,6 +3639,7 @@ declare const ManifestInputSchema: z.ZodObject<{
3553
3639
  outlineMode?: "outline" | "segmentation" | undefined;
3554
3640
  noBackground?: boolean | undefined;
3555
3641
  seed?: number | undefined;
3642
+ enforcePalette?: boolean | undefined;
3556
3643
  quality?: {
3557
3644
  outDir?: string | undefined;
3558
3645
  palette?: string[] | undefined;
@@ -3601,6 +3688,40 @@ declare const ManifestInputSchema: z.ZodObject<{
3601
3688
  type Manifest = z.infer<typeof ManifestSchema>;
3602
3689
  type Style = z.infer<typeof StyleSchema>;
3603
3690
  type Asset = z.infer<typeof AssetSchema>;
3691
+ /**
3692
+ * What `fetch` did to the provider's bytes before writing them. Recorded on
3693
+ * the entry so `plan` can tell when the manifest asks for something else
3694
+ * and `restore` can reproduce the recorded hash from the raw bytes.
3695
+ */
3696
+ declare const PostprocessSchema: z.ZodObject<{
3697
+ palette: z.ZodOptional<z.ZodObject<{
3698
+ /** Canonical lowercase `#rrggbb` values, in manifest order. */
3699
+ colors: z.ZodArray<z.ZodString, "many">;
3700
+ dither: z.ZodLiteral<"none">;
3701
+ distance: z.ZodLiteral<"redmean">;
3702
+ }, "strip", z.ZodTypeAny, {
3703
+ colors: string[];
3704
+ dither: "none";
3705
+ distance: "redmean";
3706
+ }, {
3707
+ colors: string[];
3708
+ dither: "none";
3709
+ distance: "redmean";
3710
+ }>>;
3711
+ }, "strip", z.ZodTypeAny, {
3712
+ palette?: {
3713
+ colors: string[];
3714
+ dither: "none";
3715
+ distance: "redmean";
3716
+ } | undefined;
3717
+ }, {
3718
+ palette?: {
3719
+ colors: string[];
3720
+ dither: "none";
3721
+ distance: "redmean";
3722
+ } | undefined;
3723
+ }>;
3724
+ type Postprocess = z.infer<typeof PostprocessSchema>;
3604
3725
  /**
3605
3726
  * A generation this entry replaced, kept so it can be brought back. It is the
3606
3727
  * retired entry's identity — object, sources, output hashes, prompt, cost —
@@ -3637,16 +3758,24 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
3637
3758
  sha256: z.ZodString;
3638
3759
  role: z.ZodOptional<z.ZodString>;
3639
3760
  mediaType: z.ZodOptional<z.ZodEnum<["image/png", "image/gif"]>>;
3761
+ /**
3762
+ * Hash of the provider's bytes before post-processing changed them, when
3763
+ * it did. The content cache keeps both, so the post-processing can be
3764
+ * undone or redone without contacting the provider.
3765
+ */
3766
+ raw: z.ZodOptional<z.ZodString>;
3640
3767
  }, "strip", z.ZodTypeAny, {
3641
3768
  path: string;
3642
3769
  sha256: string;
3643
3770
  role?: string | undefined;
3644
3771
  mediaType?: "image/png" | "image/gif" | undefined;
3772
+ raw?: string | undefined;
3645
3773
  }, {
3646
3774
  path: string;
3647
3775
  sha256: string;
3648
3776
  role?: string | undefined;
3649
3777
  mediaType?: "image/png" | "image/gif" | undefined;
3778
+ raw?: string | undefined;
3650
3779
  }>, "many">>;
3651
3780
  providerMetadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3652
3781
  submittedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3654,6 +3783,34 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
3654
3783
  cost: z.ZodDefault<z.ZodNumber>;
3655
3784
  costUnit: z.ZodDefault<z.ZodString>;
3656
3785
  provider: z.ZodDefault<z.ZodString>;
3786
+ postprocess: z.ZodOptional<z.ZodObject<{
3787
+ palette: z.ZodOptional<z.ZodObject<{
3788
+ /** Canonical lowercase `#rrggbb` values, in manifest order. */
3789
+ colors: z.ZodArray<z.ZodString, "many">;
3790
+ dither: z.ZodLiteral<"none">;
3791
+ distance: z.ZodLiteral<"redmean">;
3792
+ }, "strip", z.ZodTypeAny, {
3793
+ colors: string[];
3794
+ dither: "none";
3795
+ distance: "redmean";
3796
+ }, {
3797
+ colors: string[];
3798
+ dither: "none";
3799
+ distance: "redmean";
3800
+ }>>;
3801
+ }, "strip", z.ZodTypeAny, {
3802
+ palette?: {
3803
+ colors: string[];
3804
+ dither: "none";
3805
+ distance: "redmean";
3806
+ } | undefined;
3807
+ }, {
3808
+ palette?: {
3809
+ colors: string[];
3810
+ dither: "none";
3811
+ distance: "redmean";
3812
+ } | undefined;
3813
+ }>>;
3657
3814
  /** When the replacement was submitted. */
3658
3815
  retiredAt: z.ZodString;
3659
3816
  }, "strip", z.ZodTypeAny, {
@@ -3678,6 +3835,7 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
3678
3835
  sha256: string;
3679
3836
  role?: string | undefined;
3680
3837
  mediaType?: "image/png" | "image/gif" | undefined;
3838
+ raw?: string | undefined;
3681
3839
  }[];
3682
3840
  providerMetadata: Record<string, Record<string, unknown>>;
3683
3841
  submittedAt: string | null;
@@ -3685,6 +3843,13 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
3685
3843
  cost: number;
3686
3844
  costUnit: string;
3687
3845
  retiredAt: string;
3846
+ postprocess?: {
3847
+ palette?: {
3848
+ colors: string[];
3849
+ dither: "none";
3850
+ distance: "redmean";
3851
+ } | undefined;
3852
+ } | undefined;
3688
3853
  }, {
3689
3854
  width: number;
3690
3855
  height: number;
@@ -3708,12 +3873,20 @@ declare const LockHistoryEntrySchema: z.ZodObject<{
3708
3873
  sha256: string;
3709
3874
  role?: string | undefined;
3710
3875
  mediaType?: "image/png" | "image/gif" | undefined;
3876
+ raw?: string | undefined;
3711
3877
  }[] | undefined;
3712
3878
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
3713
3879
  submittedAt?: string | null | undefined;
3714
3880
  downloadedAt?: string | null | undefined;
3715
3881
  cost?: number | undefined;
3716
3882
  costUnit?: string | undefined;
3883
+ postprocess?: {
3884
+ palette?: {
3885
+ colors: string[];
3886
+ dither: "none";
3887
+ distance: "redmean";
3888
+ } | undefined;
3889
+ } | undefined;
3717
3890
  }>;
3718
3891
  declare const LockEntrySchema: z.ZodObject<{
3719
3892
  styleId: z.ZodString;
@@ -3806,16 +3979,24 @@ declare const LockEntrySchema: z.ZodObject<{
3806
3979
  sha256: z.ZodString;
3807
3980
  role: z.ZodOptional<z.ZodString>;
3808
3981
  mediaType: z.ZodOptional<z.ZodEnum<["image/png", "image/gif"]>>;
3982
+ /**
3983
+ * Hash of the provider's bytes before post-processing changed them, when
3984
+ * it did. The content cache keeps both, so the post-processing can be
3985
+ * undone or redone without contacting the provider.
3986
+ */
3987
+ raw: z.ZodOptional<z.ZodString>;
3809
3988
  }, "strip", z.ZodTypeAny, {
3810
3989
  path: string;
3811
3990
  sha256: string;
3812
3991
  role?: string | undefined;
3813
3992
  mediaType?: "image/png" | "image/gif" | undefined;
3993
+ raw?: string | undefined;
3814
3994
  }, {
3815
3995
  path: string;
3816
3996
  sha256: string;
3817
3997
  role?: string | undefined;
3818
3998
  mediaType?: "image/png" | "image/gif" | undefined;
3999
+ raw?: string | undefined;
3819
4000
  }>, "many">>;
3820
4001
  /**
3821
4002
  * Provider-owned data retained for downstream consumers, namespaced by
@@ -3861,16 +4042,24 @@ declare const LockEntrySchema: z.ZodObject<{
3861
4042
  sha256: z.ZodString;
3862
4043
  role: z.ZodOptional<z.ZodString>;
3863
4044
  mediaType: z.ZodOptional<z.ZodEnum<["image/png", "image/gif"]>>;
4045
+ /**
4046
+ * Hash of the provider's bytes before post-processing changed them, when
4047
+ * it did. The content cache keeps both, so the post-processing can be
4048
+ * undone or redone without contacting the provider.
4049
+ */
4050
+ raw: z.ZodOptional<z.ZodString>;
3864
4051
  }, "strip", z.ZodTypeAny, {
3865
4052
  path: string;
3866
4053
  sha256: string;
3867
4054
  role?: string | undefined;
3868
4055
  mediaType?: "image/png" | "image/gif" | undefined;
4056
+ raw?: string | undefined;
3869
4057
  }, {
3870
4058
  path: string;
3871
4059
  sha256: string;
3872
4060
  role?: string | undefined;
3873
4061
  mediaType?: "image/png" | "image/gif" | undefined;
4062
+ raw?: string | undefined;
3874
4063
  }>, "many">>;
3875
4064
  providerMetadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3876
4065
  submittedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -3878,6 +4067,34 @@ declare const LockEntrySchema: z.ZodObject<{
3878
4067
  cost: z.ZodDefault<z.ZodNumber>;
3879
4068
  costUnit: z.ZodDefault<z.ZodString>;
3880
4069
  provider: z.ZodDefault<z.ZodString>;
4070
+ postprocess: z.ZodOptional<z.ZodObject<{
4071
+ palette: z.ZodOptional<z.ZodObject<{
4072
+ /** Canonical lowercase `#rrggbb` values, in manifest order. */
4073
+ colors: z.ZodArray<z.ZodString, "many">;
4074
+ dither: z.ZodLiteral<"none">;
4075
+ distance: z.ZodLiteral<"redmean">;
4076
+ }, "strip", z.ZodTypeAny, {
4077
+ colors: string[];
4078
+ dither: "none";
4079
+ distance: "redmean";
4080
+ }, {
4081
+ colors: string[];
4082
+ dither: "none";
4083
+ distance: "redmean";
4084
+ }>>;
4085
+ }, "strip", z.ZodTypeAny, {
4086
+ palette?: {
4087
+ colors: string[];
4088
+ dither: "none";
4089
+ distance: "redmean";
4090
+ } | undefined;
4091
+ }, {
4092
+ palette?: {
4093
+ colors: string[];
4094
+ dither: "none";
4095
+ distance: "redmean";
4096
+ } | undefined;
4097
+ }>>;
3881
4098
  /** When the replacement was submitted. */
3882
4099
  retiredAt: z.ZodString;
3883
4100
  }, "strip", z.ZodTypeAny, {
@@ -3902,6 +4119,7 @@ declare const LockEntrySchema: z.ZodObject<{
3902
4119
  sha256: string;
3903
4120
  role?: string | undefined;
3904
4121
  mediaType?: "image/png" | "image/gif" | undefined;
4122
+ raw?: string | undefined;
3905
4123
  }[];
3906
4124
  providerMetadata: Record<string, Record<string, unknown>>;
3907
4125
  submittedAt: string | null;
@@ -3909,6 +4127,13 @@ declare const LockEntrySchema: z.ZodObject<{
3909
4127
  cost: number;
3910
4128
  costUnit: string;
3911
4129
  retiredAt: string;
4130
+ postprocess?: {
4131
+ palette?: {
4132
+ colors: string[];
4133
+ dither: "none";
4134
+ distance: "redmean";
4135
+ } | undefined;
4136
+ } | undefined;
3912
4137
  }, {
3913
4138
  width: number;
3914
4139
  height: number;
@@ -3932,13 +4157,50 @@ declare const LockEntrySchema: z.ZodObject<{
3932
4157
  sha256: string;
3933
4158
  role?: string | undefined;
3934
4159
  mediaType?: "image/png" | "image/gif" | undefined;
4160
+ raw?: string | undefined;
3935
4161
  }[] | undefined;
3936
4162
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
3937
4163
  submittedAt?: string | null | undefined;
3938
4164
  downloadedAt?: string | null | undefined;
3939
4165
  cost?: number | undefined;
3940
4166
  costUnit?: string | undefined;
4167
+ postprocess?: {
4168
+ palette?: {
4169
+ colors: string[];
4170
+ dither: "none";
4171
+ distance: "redmean";
4172
+ } | undefined;
4173
+ } | undefined;
3941
4174
  }>, "many">>;
4175
+ /** Post-processing applied to the recorded outputs; absent when the bytes are the provider's. */
4176
+ postprocess: z.ZodOptional<z.ZodObject<{
4177
+ palette: z.ZodOptional<z.ZodObject<{
4178
+ /** Canonical lowercase `#rrggbb` values, in manifest order. */
4179
+ colors: z.ZodArray<z.ZodString, "many">;
4180
+ dither: z.ZodLiteral<"none">;
4181
+ distance: z.ZodLiteral<"redmean">;
4182
+ }, "strip", z.ZodTypeAny, {
4183
+ colors: string[];
4184
+ dither: "none";
4185
+ distance: "redmean";
4186
+ }, {
4187
+ colors: string[];
4188
+ dither: "none";
4189
+ distance: "redmean";
4190
+ }>>;
4191
+ }, "strip", z.ZodTypeAny, {
4192
+ palette?: {
4193
+ colors: string[];
4194
+ dither: "none";
4195
+ distance: "redmean";
4196
+ } | undefined;
4197
+ }, {
4198
+ palette?: {
4199
+ colors: string[];
4200
+ dither: "none";
4201
+ distance: "redmean";
4202
+ } | undefined;
4203
+ }>>;
3942
4204
  }, "strip", z.ZodTypeAny, {
3943
4205
  width: number;
3944
4206
  height: number;
@@ -3969,6 +4231,7 @@ declare const LockEntrySchema: z.ZodObject<{
3969
4231
  sha256: string;
3970
4232
  role?: string | undefined;
3971
4233
  mediaType?: "image/png" | "image/gif" | undefined;
4234
+ raw?: string | undefined;
3972
4235
  }[];
3973
4236
  providerMetadata: Record<string, Record<string, unknown>>;
3974
4237
  submittedAt: string | null;
@@ -4001,6 +4264,7 @@ declare const LockEntrySchema: z.ZodObject<{
4001
4264
  sha256: string;
4002
4265
  role?: string | undefined;
4003
4266
  mediaType?: "image/png" | "image/gif" | undefined;
4267
+ raw?: string | undefined;
4004
4268
  }[];
4005
4269
  providerMetadata: Record<string, Record<string, unknown>>;
4006
4270
  submittedAt: string | null;
@@ -4008,7 +4272,21 @@ declare const LockEntrySchema: z.ZodObject<{
4008
4272
  cost: number;
4009
4273
  costUnit: string;
4010
4274
  retiredAt: string;
4275
+ postprocess?: {
4276
+ palette?: {
4277
+ colors: string[];
4278
+ dither: "none";
4279
+ distance: "redmean";
4280
+ } | undefined;
4281
+ } | undefined;
4011
4282
  }[] | undefined;
4283
+ postprocess?: {
4284
+ palette?: {
4285
+ colors: string[];
4286
+ dither: "none";
4287
+ distance: "redmean";
4288
+ } | undefined;
4289
+ } | undefined;
4012
4290
  supersededOutputs?: {
4013
4291
  path: string;
4014
4292
  sha256: string;
@@ -4057,12 +4335,20 @@ declare const LockEntrySchema: z.ZodObject<{
4057
4335
  sha256: string;
4058
4336
  role?: string | undefined;
4059
4337
  mediaType?: "image/png" | "image/gif" | undefined;
4338
+ raw?: string | undefined;
4060
4339
  }[] | undefined;
4061
4340
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4062
4341
  submittedAt?: string | null | undefined;
4063
4342
  downloadedAt?: string | null | undefined;
4064
4343
  cost?: number | undefined;
4065
4344
  costUnit?: string | undefined;
4345
+ postprocess?: {
4346
+ palette?: {
4347
+ colors: string[];
4348
+ dither: "none";
4349
+ distance: "redmean";
4350
+ } | undefined;
4351
+ } | undefined;
4066
4352
  }[] | undefined;
4067
4353
  jobId?: string | null | undefined;
4068
4354
  objectId?: string | null | undefined;
@@ -4078,12 +4364,20 @@ declare const LockEntrySchema: z.ZodObject<{
4078
4364
  sha256: string;
4079
4365
  role?: string | undefined;
4080
4366
  mediaType?: "image/png" | "image/gif" | undefined;
4367
+ raw?: string | undefined;
4081
4368
  }[] | undefined;
4082
4369
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4083
4370
  submittedAt?: string | null | undefined;
4084
4371
  downloadedAt?: string | null | undefined;
4085
4372
  cost?: number | undefined;
4086
4373
  costUnit?: string | undefined;
4374
+ postprocess?: {
4375
+ palette?: {
4376
+ colors: string[];
4377
+ dither: "none";
4378
+ distance: "redmean";
4379
+ } | undefined;
4380
+ } | undefined;
4087
4381
  supersededOutputs?: {
4088
4382
  path: string;
4089
4383
  sha256: string;
@@ -4187,16 +4481,24 @@ declare const LockSchema: z.ZodObject<{
4187
4481
  sha256: z.ZodString;
4188
4482
  role: z.ZodOptional<z.ZodString>;
4189
4483
  mediaType: z.ZodOptional<z.ZodEnum<["image/png", "image/gif"]>>;
4484
+ /**
4485
+ * Hash of the provider's bytes before post-processing changed them, when
4486
+ * it did. The content cache keeps both, so the post-processing can be
4487
+ * undone or redone without contacting the provider.
4488
+ */
4489
+ raw: z.ZodOptional<z.ZodString>;
4190
4490
  }, "strip", z.ZodTypeAny, {
4191
4491
  path: string;
4192
4492
  sha256: string;
4193
4493
  role?: string | undefined;
4194
4494
  mediaType?: "image/png" | "image/gif" | undefined;
4495
+ raw?: string | undefined;
4195
4496
  }, {
4196
4497
  path: string;
4197
4498
  sha256: string;
4198
4499
  role?: string | undefined;
4199
4500
  mediaType?: "image/png" | "image/gif" | undefined;
4501
+ raw?: string | undefined;
4200
4502
  }>, "many">>;
4201
4503
  /**
4202
4504
  * Provider-owned data retained for downstream consumers, namespaced by
@@ -4242,16 +4544,24 @@ declare const LockSchema: z.ZodObject<{
4242
4544
  sha256: z.ZodString;
4243
4545
  role: z.ZodOptional<z.ZodString>;
4244
4546
  mediaType: z.ZodOptional<z.ZodEnum<["image/png", "image/gif"]>>;
4547
+ /**
4548
+ * Hash of the provider's bytes before post-processing changed them, when
4549
+ * it did. The content cache keeps both, so the post-processing can be
4550
+ * undone or redone without contacting the provider.
4551
+ */
4552
+ raw: z.ZodOptional<z.ZodString>;
4245
4553
  }, "strip", z.ZodTypeAny, {
4246
4554
  path: string;
4247
4555
  sha256: string;
4248
4556
  role?: string | undefined;
4249
4557
  mediaType?: "image/png" | "image/gif" | undefined;
4558
+ raw?: string | undefined;
4250
4559
  }, {
4251
4560
  path: string;
4252
4561
  sha256: string;
4253
4562
  role?: string | undefined;
4254
4563
  mediaType?: "image/png" | "image/gif" | undefined;
4564
+ raw?: string | undefined;
4255
4565
  }>, "many">>;
4256
4566
  providerMetadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4257
4567
  submittedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
@@ -4259,6 +4569,34 @@ declare const LockSchema: z.ZodObject<{
4259
4569
  cost: z.ZodDefault<z.ZodNumber>;
4260
4570
  costUnit: z.ZodDefault<z.ZodString>;
4261
4571
  provider: z.ZodDefault<z.ZodString>;
4572
+ postprocess: z.ZodOptional<z.ZodObject<{
4573
+ palette: z.ZodOptional<z.ZodObject<{
4574
+ /** Canonical lowercase `#rrggbb` values, in manifest order. */
4575
+ colors: z.ZodArray<z.ZodString, "many">;
4576
+ dither: z.ZodLiteral<"none">;
4577
+ distance: z.ZodLiteral<"redmean">;
4578
+ }, "strip", z.ZodTypeAny, {
4579
+ colors: string[];
4580
+ dither: "none";
4581
+ distance: "redmean";
4582
+ }, {
4583
+ colors: string[];
4584
+ dither: "none";
4585
+ distance: "redmean";
4586
+ }>>;
4587
+ }, "strip", z.ZodTypeAny, {
4588
+ palette?: {
4589
+ colors: string[];
4590
+ dither: "none";
4591
+ distance: "redmean";
4592
+ } | undefined;
4593
+ }, {
4594
+ palette?: {
4595
+ colors: string[];
4596
+ dither: "none";
4597
+ distance: "redmean";
4598
+ } | undefined;
4599
+ }>>;
4262
4600
  /** When the replacement was submitted. */
4263
4601
  retiredAt: z.ZodString;
4264
4602
  }, "strip", z.ZodTypeAny, {
@@ -4283,6 +4621,7 @@ declare const LockSchema: z.ZodObject<{
4283
4621
  sha256: string;
4284
4622
  role?: string | undefined;
4285
4623
  mediaType?: "image/png" | "image/gif" | undefined;
4624
+ raw?: string | undefined;
4286
4625
  }[];
4287
4626
  providerMetadata: Record<string, Record<string, unknown>>;
4288
4627
  submittedAt: string | null;
@@ -4290,6 +4629,13 @@ declare const LockSchema: z.ZodObject<{
4290
4629
  cost: number;
4291
4630
  costUnit: string;
4292
4631
  retiredAt: string;
4632
+ postprocess?: {
4633
+ palette?: {
4634
+ colors: string[];
4635
+ dither: "none";
4636
+ distance: "redmean";
4637
+ } | undefined;
4638
+ } | undefined;
4293
4639
  }, {
4294
4640
  width: number;
4295
4641
  height: number;
@@ -4313,13 +4659,50 @@ declare const LockSchema: z.ZodObject<{
4313
4659
  sha256: string;
4314
4660
  role?: string | undefined;
4315
4661
  mediaType?: "image/png" | "image/gif" | undefined;
4662
+ raw?: string | undefined;
4316
4663
  }[] | undefined;
4317
4664
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4318
4665
  submittedAt?: string | null | undefined;
4319
4666
  downloadedAt?: string | null | undefined;
4320
4667
  cost?: number | undefined;
4321
4668
  costUnit?: string | undefined;
4669
+ postprocess?: {
4670
+ palette?: {
4671
+ colors: string[];
4672
+ dither: "none";
4673
+ distance: "redmean";
4674
+ } | undefined;
4675
+ } | undefined;
4322
4676
  }>, "many">>;
4677
+ /** Post-processing applied to the recorded outputs; absent when the bytes are the provider's. */
4678
+ postprocess: z.ZodOptional<z.ZodObject<{
4679
+ palette: z.ZodOptional<z.ZodObject<{
4680
+ /** Canonical lowercase `#rrggbb` values, in manifest order. */
4681
+ colors: z.ZodArray<z.ZodString, "many">;
4682
+ dither: z.ZodLiteral<"none">;
4683
+ distance: z.ZodLiteral<"redmean">;
4684
+ }, "strip", z.ZodTypeAny, {
4685
+ colors: string[];
4686
+ dither: "none";
4687
+ distance: "redmean";
4688
+ }, {
4689
+ colors: string[];
4690
+ dither: "none";
4691
+ distance: "redmean";
4692
+ }>>;
4693
+ }, "strip", z.ZodTypeAny, {
4694
+ palette?: {
4695
+ colors: string[];
4696
+ dither: "none";
4697
+ distance: "redmean";
4698
+ } | undefined;
4699
+ }, {
4700
+ palette?: {
4701
+ colors: string[];
4702
+ dither: "none";
4703
+ distance: "redmean";
4704
+ } | undefined;
4705
+ }>>;
4323
4706
  }, "strip", z.ZodTypeAny, {
4324
4707
  width: number;
4325
4708
  height: number;
@@ -4350,6 +4733,7 @@ declare const LockSchema: z.ZodObject<{
4350
4733
  sha256: string;
4351
4734
  role?: string | undefined;
4352
4735
  mediaType?: "image/png" | "image/gif" | undefined;
4736
+ raw?: string | undefined;
4353
4737
  }[];
4354
4738
  providerMetadata: Record<string, Record<string, unknown>>;
4355
4739
  submittedAt: string | null;
@@ -4382,6 +4766,7 @@ declare const LockSchema: z.ZodObject<{
4382
4766
  sha256: string;
4383
4767
  role?: string | undefined;
4384
4768
  mediaType?: "image/png" | "image/gif" | undefined;
4769
+ raw?: string | undefined;
4385
4770
  }[];
4386
4771
  providerMetadata: Record<string, Record<string, unknown>>;
4387
4772
  submittedAt: string | null;
@@ -4389,7 +4774,21 @@ declare const LockSchema: z.ZodObject<{
4389
4774
  cost: number;
4390
4775
  costUnit: string;
4391
4776
  retiredAt: string;
4777
+ postprocess?: {
4778
+ palette?: {
4779
+ colors: string[];
4780
+ dither: "none";
4781
+ distance: "redmean";
4782
+ } | undefined;
4783
+ } | undefined;
4392
4784
  }[] | undefined;
4785
+ postprocess?: {
4786
+ palette?: {
4787
+ colors: string[];
4788
+ dither: "none";
4789
+ distance: "redmean";
4790
+ } | undefined;
4791
+ } | undefined;
4393
4792
  supersededOutputs?: {
4394
4793
  path: string;
4395
4794
  sha256: string;
@@ -4438,12 +4837,20 @@ declare const LockSchema: z.ZodObject<{
4438
4837
  sha256: string;
4439
4838
  role?: string | undefined;
4440
4839
  mediaType?: "image/png" | "image/gif" | undefined;
4840
+ raw?: string | undefined;
4441
4841
  }[] | undefined;
4442
4842
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4443
4843
  submittedAt?: string | null | undefined;
4444
4844
  downloadedAt?: string | null | undefined;
4445
4845
  cost?: number | undefined;
4446
4846
  costUnit?: string | undefined;
4847
+ postprocess?: {
4848
+ palette?: {
4849
+ colors: string[];
4850
+ dither: "none";
4851
+ distance: "redmean";
4852
+ } | undefined;
4853
+ } | undefined;
4447
4854
  }[] | undefined;
4448
4855
  jobId?: string | null | undefined;
4449
4856
  objectId?: string | null | undefined;
@@ -4459,12 +4866,20 @@ declare const LockSchema: z.ZodObject<{
4459
4866
  sha256: string;
4460
4867
  role?: string | undefined;
4461
4868
  mediaType?: "image/png" | "image/gif" | undefined;
4869
+ raw?: string | undefined;
4462
4870
  }[] | undefined;
4463
4871
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4464
4872
  submittedAt?: string | null | undefined;
4465
4873
  downloadedAt?: string | null | undefined;
4466
4874
  cost?: number | undefined;
4467
4875
  costUnit?: string | undefined;
4876
+ postprocess?: {
4877
+ palette?: {
4878
+ colors: string[];
4879
+ dither: "none";
4880
+ distance: "redmean";
4881
+ } | undefined;
4882
+ } | undefined;
4468
4883
  supersededOutputs?: {
4469
4884
  path: string;
4470
4885
  sha256: string;
@@ -4506,6 +4921,7 @@ declare const LockSchema: z.ZodObject<{
4506
4921
  sha256: string;
4507
4922
  role?: string | undefined;
4508
4923
  mediaType?: "image/png" | "image/gif" | undefined;
4924
+ raw?: string | undefined;
4509
4925
  }[];
4510
4926
  providerMetadata: Record<string, Record<string, unknown>>;
4511
4927
  submittedAt: string | null;
@@ -4538,6 +4954,7 @@ declare const LockSchema: z.ZodObject<{
4538
4954
  sha256: string;
4539
4955
  role?: string | undefined;
4540
4956
  mediaType?: "image/png" | "image/gif" | undefined;
4957
+ raw?: string | undefined;
4541
4958
  }[];
4542
4959
  providerMetadata: Record<string, Record<string, unknown>>;
4543
4960
  submittedAt: string | null;
@@ -4545,7 +4962,21 @@ declare const LockSchema: z.ZodObject<{
4545
4962
  cost: number;
4546
4963
  costUnit: string;
4547
4964
  retiredAt: string;
4965
+ postprocess?: {
4966
+ palette?: {
4967
+ colors: string[];
4968
+ dither: "none";
4969
+ distance: "redmean";
4970
+ } | undefined;
4971
+ } | undefined;
4548
4972
  }[] | undefined;
4973
+ postprocess?: {
4974
+ palette?: {
4975
+ colors: string[];
4976
+ dither: "none";
4977
+ distance: "redmean";
4978
+ } | undefined;
4979
+ } | undefined;
4549
4980
  supersededOutputs?: {
4550
4981
  path: string;
4551
4982
  sha256: string;
@@ -4597,12 +5028,20 @@ declare const LockSchema: z.ZodObject<{
4597
5028
  sha256: string;
4598
5029
  role?: string | undefined;
4599
5030
  mediaType?: "image/png" | "image/gif" | undefined;
5031
+ raw?: string | undefined;
4600
5032
  }[] | undefined;
4601
5033
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4602
5034
  submittedAt?: string | null | undefined;
4603
5035
  downloadedAt?: string | null | undefined;
4604
5036
  cost?: number | undefined;
4605
5037
  costUnit?: string | undefined;
5038
+ postprocess?: {
5039
+ palette?: {
5040
+ colors: string[];
5041
+ dither: "none";
5042
+ distance: "redmean";
5043
+ } | undefined;
5044
+ } | undefined;
4606
5045
  }[] | undefined;
4607
5046
  jobId?: string | null | undefined;
4608
5047
  objectId?: string | null | undefined;
@@ -4618,12 +5057,20 @@ declare const LockSchema: z.ZodObject<{
4618
5057
  sha256: string;
4619
5058
  role?: string | undefined;
4620
5059
  mediaType?: "image/png" | "image/gif" | undefined;
5060
+ raw?: string | undefined;
4621
5061
  }[] | undefined;
4622
5062
  providerMetadata?: Record<string, Record<string, unknown>> | undefined;
4623
5063
  submittedAt?: string | null | undefined;
4624
5064
  downloadedAt?: string | null | undefined;
4625
5065
  cost?: number | undefined;
4626
5066
  costUnit?: string | undefined;
5067
+ postprocess?: {
5068
+ palette?: {
5069
+ colors: string[];
5070
+ dither: "none";
5071
+ distance: "redmean";
5072
+ } | undefined;
5073
+ } | undefined;
4627
5074
  supersededOutputs?: {
4628
5075
  path: string;
4629
5076
  sha256: string;
@@ -4694,6 +5141,8 @@ interface ResolvedSpec {
4694
5141
  seed?: number;
4695
5142
  /** Forced palette hex values; empty unless the style sets one. */
4696
5143
  palette: string[];
5144
+ /** Snap downloaded art to `palette`; excluded from the spec hash. */
5145
+ enforcePalette: boolean;
4697
5146
  /** `pixflux` only — strip the generated background. Defaults to true. */
4698
5147
  noBackground: boolean;
4699
5148
  /** `tiles` generator only — see StyleSchema for what each one means. */
@@ -5753,6 +6202,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
5753
6202
  noBackground: z.ZodDefault<z.ZodBoolean>;
5754
6203
  seed: z.ZodOptional<z.ZodNumber>;
5755
6204
  palette: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
6205
+ enforcePalette: z.ZodDefault<z.ZodBoolean>;
5756
6206
  quality: z.ZodOptional<z.ZodEffects<z.ZodObject<{
5757
6207
  outDir: z.ZodString;
5758
6208
  palette: z.ZodArray<z.ZodString, "many">;
@@ -5822,6 +6272,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
5822
6272
  path: string;
5823
6273
  }[];
5824
6274
  noBackground: boolean;
6275
+ enforcePalette: boolean;
5825
6276
  tags: string[];
5826
6277
  providerOptions: Record<string, Record<string, unknown>>;
5827
6278
  provider?: string | undefined;
@@ -5873,6 +6324,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
5873
6324
  outlineMode?: "outline" | "segmentation" | undefined;
5874
6325
  noBackground?: boolean | undefined;
5875
6326
  seed?: number | undefined;
6327
+ enforcePalette?: boolean | undefined;
5876
6328
  quality?: {
5877
6329
  outDir: string;
5878
6330
  palette: string[];
@@ -5900,6 +6352,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
5900
6352
  path: string;
5901
6353
  }[];
5902
6354
  noBackground: boolean;
6355
+ enforcePalette: boolean;
5903
6356
  tags: string[];
5904
6357
  providerOptions: Record<string, Record<string, unknown>>;
5905
6358
  provider?: string | undefined;
@@ -5951,6 +6404,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
5951
6404
  outlineMode?: "outline" | "segmentation" | undefined;
5952
6405
  noBackground?: boolean | undefined;
5953
6406
  seed?: number | undefined;
6407
+ enforcePalette?: boolean | undefined;
5954
6408
  quality?: {
5955
6409
  outDir: string;
5956
6410
  palette: string[];
@@ -5978,6 +6432,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
5978
6432
  path: string;
5979
6433
  }[];
5980
6434
  noBackground: boolean;
6435
+ enforcePalette: boolean;
5981
6436
  tags: string[];
5982
6437
  providerOptions: Record<string, Record<string, unknown>>;
5983
6438
  provider?: string | undefined;
@@ -6029,6 +6484,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
6029
6484
  outlineMode?: "outline" | "segmentation" | undefined;
6030
6485
  noBackground?: boolean | undefined;
6031
6486
  seed?: number | undefined;
6487
+ enforcePalette?: boolean | undefined;
6032
6488
  quality?: {
6033
6489
  outDir: string;
6034
6490
  palette: string[];
@@ -6407,6 +6863,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
6407
6863
  path: string;
6408
6864
  }[];
6409
6865
  noBackground: boolean;
6866
+ enforcePalette: boolean;
6410
6867
  tags: string[];
6411
6868
  providerOptions: Record<string, Record<string, unknown>>;
6412
6869
  provider?: string | undefined;
@@ -6529,6 +6986,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
6529
6986
  outlineMode?: "outline" | "segmentation" | undefined;
6530
6987
  noBackground?: boolean | undefined;
6531
6988
  seed?: number | undefined;
6989
+ enforcePalette?: boolean | undefined;
6532
6990
  quality?: {
6533
6991
  outDir: string;
6534
6992
  palette: string[];
@@ -6649,6 +7107,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
6649
7107
  path: string;
6650
7108
  }[];
6651
7109
  noBackground: boolean;
7110
+ enforcePalette: boolean;
6652
7111
  tags: string[];
6653
7112
  providerOptions: Record<string, Record<string, unknown>>;
6654
7113
  provider?: string | undefined;
@@ -6771,6 +7230,7 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
6771
7230
  outlineMode?: "outline" | "segmentation" | undefined;
6772
7231
  noBackground?: boolean | undefined;
6773
7232
  seed?: number | undefined;
7233
+ enforcePalette?: boolean | undefined;
6774
7234
  quality?: {
6775
7235
  outDir: string;
6776
7236
  palette: string[];
@@ -6844,6 +7304,8 @@ declare const RecipeSchema: z.ZodEffects<z.ZodObject<{
6844
7304
  type Recipe = z.infer<typeof RecipeSchema>;
6845
7305
  interface LoadedRecipe {
6846
7306
  recipe: Recipe;
7307
+ /** The file's JSON as written, before schema defaults; what the digest covers. */
7308
+ authored: Record<string, unknown>;
6847
7309
  path: string;
6848
7310
  dir: string;
6849
7311
  bundled: boolean;
@@ -6894,7 +7356,14 @@ interface InstallRecipeResult {
6894
7356
  styleId: string;
6895
7357
  style: Style;
6896
7358
  }
6897
- declare function recipeDigest(recipe: Recipe): string;
7359
+ /**
7360
+ * The digest covers the recipe as its author wrote it, minus `integrity`.
7361
+ * It used to cover the parsed form, which meant every schema default added
7362
+ * to a style changed the digest of every recipe ever published; the
7363
+ * `enforcePalette` default was the first to trip it. What the author
7364
+ * signed is what the file says, so that is what is hashed.
7365
+ */
7366
+ declare function recipeDigest(recipe: Recipe | Record<string, unknown>): string;
6898
7367
  declare function bundledRecipeRoot(): string;
6899
7368
  declare function listBundledRecipes(root?: string): Promise<LoadedRecipe[]>;
6900
7369
  declare function resolveRecipe(target: string, bundledRoot?: string): Promise<LoadedRecipe>;
@@ -6919,11 +7388,9 @@ interface PaletteEntry {
6919
7388
  }
6920
7389
 
6921
7390
  /**
6922
- * Perceptual-ish distance between two colours, 0-255ish.
6923
- *
6924
- * "Redmean" — a cheap weighting that tracks human perception far better than
6925
- * raw RGB euclidean and needs no colour-space conversion or dependency. Good
6926
- * enough to rank outliers, which is all this is for; it is not colourimetry.
7391
+ * Perceptual-ish RGB distance that weights channels by where the colour sits
7392
+ * (Riemersma's redmean). Cheap and good enough to pick a swatch; not a
7393
+ * colour-management tool.
6927
7394
  */
6928
7395
  declare function colorDistance(a: {
6929
7396
  r: number;
@@ -6934,6 +7401,9 @@ declare function colorDistance(a: {
6934
7401
  g: number;
6935
7402
  b: number;
6936
7403
  }): number;
7404
+ /** `quantize` for callers that only want the picture. */
7405
+ declare function quantizeToPalette(png: DecodedPng, palette: string[]): DecodedPng;
7406
+
6937
7407
  /**
6938
7408
  * How far an asset's palette sits from a reference palette.
6939
7409
  *
@@ -7177,8 +7647,7 @@ interface ApproveQualityOptions {
7177
7647
  declare function qualityRecordPath(output: string): string;
7178
7648
  /** Canonical lowercase palette identity shared by manifest quality profiles. */
7179
7649
  declare function normalizeRefinementPalette(values: string[]): string[];
7180
- /** Map every visible pixel to the nearest explicit color, without dithering. */
7181
- declare function quantizeToPalette(png: DecodedPng, palette: string[]): DecodedPng;
7650
+
7182
7651
  /** Derive a stable frame PNG beside a quality profile's virtual output stem. */
7183
7652
  declare function qualityFrameOutputPath(output: string, role: string, index: number): string;
7184
7653
  /** Recover an image's native grid, enforce its final palette, and write an auditable bundle. */
@@ -7258,9 +7727,9 @@ declare const ImageQualityMetricsSchema: z.ZodObject<{
7258
7727
  width: number;
7259
7728
  height: number;
7260
7729
  sha256: string;
7730
+ colors: string[];
7261
7731
  colorCount: number;
7262
7732
  transparency: number;
7263
- colors: string[];
7264
7733
  partialAlpha: number;
7265
7734
  edgeDensity: number;
7266
7735
  meanEdgeContrast: number;
@@ -7269,9 +7738,9 @@ declare const ImageQualityMetricsSchema: z.ZodObject<{
7269
7738
  width: number;
7270
7739
  height: number;
7271
7740
  sha256: string;
7741
+ colors: string[];
7272
7742
  colorCount: number;
7273
7743
  transparency: number;
7274
- colors: string[];
7275
7744
  partialAlpha: number;
7276
7745
  edgeDensity: number;
7277
7746
  meanEdgeContrast: number;
@@ -7310,9 +7779,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7310
7779
  width: number;
7311
7780
  height: number;
7312
7781
  sha256: string;
7782
+ colors: string[];
7313
7783
  colorCount: number;
7314
7784
  transparency: number;
7315
- colors: string[];
7316
7785
  partialAlpha: number;
7317
7786
  edgeDensity: number;
7318
7787
  meanEdgeContrast: number;
@@ -7321,9 +7790,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7321
7790
  width: number;
7322
7791
  height: number;
7323
7792
  sha256: string;
7793
+ colors: string[];
7324
7794
  colorCount: number;
7325
7795
  transparency: number;
7326
- colors: string[];
7327
7796
  partialAlpha: number;
7328
7797
  edgeDensity: number;
7329
7798
  meanEdgeContrast: number;
@@ -7362,9 +7831,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7362
7831
  width: number;
7363
7832
  height: number;
7364
7833
  sha256: string;
7834
+ colors: string[];
7365
7835
  colorCount: number;
7366
7836
  transparency: number;
7367
- colors: string[];
7368
7837
  partialAlpha: number;
7369
7838
  edgeDensity: number;
7370
7839
  meanEdgeContrast: number;
@@ -7391,9 +7860,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7391
7860
  width: number;
7392
7861
  height: number;
7393
7862
  sha256: string;
7863
+ colors: string[];
7394
7864
  colorCount: number;
7395
7865
  transparency: number;
7396
- colors: string[];
7397
7866
  partialAlpha: number;
7398
7867
  edgeDensity: number;
7399
7868
  meanEdgeContrast: number;
@@ -7424,9 +7893,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7424
7893
  width: number;
7425
7894
  height: number;
7426
7895
  sha256: string;
7896
+ colors: string[];
7427
7897
  colorCount: number;
7428
7898
  transparency: number;
7429
- colors: string[];
7430
7899
  partialAlpha: number;
7431
7900
  edgeDensity: number;
7432
7901
  meanEdgeContrast: number;
@@ -7458,9 +7927,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7458
7927
  width: number;
7459
7928
  height: number;
7460
7929
  sha256: string;
7930
+ colors: string[];
7461
7931
  colorCount: number;
7462
7932
  transparency: number;
7463
- colors: string[];
7464
7933
  partialAlpha: number;
7465
7934
  edgeDensity: number;
7466
7935
  meanEdgeContrast: number;
@@ -7492,9 +7961,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7492
7961
  width: number;
7493
7962
  height: number;
7494
7963
  sha256: string;
7964
+ colors: string[];
7495
7965
  colorCount: number;
7496
7966
  transparency: number;
7497
- colors: string[];
7498
7967
  partialAlpha: number;
7499
7968
  edgeDensity: number;
7500
7969
  meanEdgeContrast: number;
@@ -7526,9 +7995,9 @@ declare const QualityBaselineSchema: z.ZodEffects<z.ZodObject<{
7526
7995
  width: number;
7527
7996
  height: number;
7528
7997
  sha256: string;
7998
+ colors: string[];
7529
7999
  colorCount: number;
7530
8000
  transparency: number;
7531
- colors: string[];
7532
8001
  partialAlpha: number;
7533
8002
  edgeDensity: number;
7534
8003
  meanEdgeContrast: number;
@@ -8376,6 +8845,8 @@ interface GalleryItem {
8376
8845
  outputs: GalleryOutput[];
8377
8846
  quality: GalleryQuality | null;
8378
8847
  providerMetadata: Record<string, unknown>;
8848
+ /** Post-processing recorded on the entry: the palette its files were snapped to, if any. */
8849
+ postprocess: Postprocess | null;
8379
8850
  /** Manifest asset as declared, for the "intent" side of the record. */
8380
8851
  asset: Asset | null;
8381
8852
  /** Manifest-relative committed art placed instead of generated output. */
@@ -8421,6 +8892,8 @@ interface GalleryStyle {
8421
8892
  promptPrefix: string;
8422
8893
  promptSuffix: string;
8423
8894
  palette: string[];
8895
+ /** Downloaded art is snapped to `palette` by fetch. */
8896
+ enforcePalette: boolean;
8424
8897
  /** Provider view name, when the style sets one. */
8425
8898
  view: string | null;
8426
8899
  /** Strip the generated background (sent for pixflux and non-PixelLab providers). */
@@ -8908,7 +9381,7 @@ declare function retireGeneration(entry: LockEntry, retiredAt: string): LockHist
8908
9381
  * no bytes to come back to.
8909
9382
  */
8910
9383
  declare function historyAfterReplacing(previous: LockEntry | undefined, limit: number, retiredAt: string): LockHistoryEntry[] | undefined;
8911
- /** Output hashes every generation in the lockfile, current or retired, still refers to. */
9384
+ /** Hashes every generation in the lockfile, current or retired, still refers to: outputs and the raw bytes behind them. */
8912
9385
  declare function referencedHashes(lock: Lock): Set<string>;
8913
9386
  interface HistoryPick {
8914
9387
  /** 1 is the most recently replaced generation. */
@@ -9436,6 +9909,8 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9436
9909
  promptSuffix: z.ZodOptional<z.ZodString>;
9437
9910
  /** `#rrggbb` values; null or empty clears the style's own palette. */
9438
9911
  palette: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
9912
+ /** Snap downloaded art to the palette; false clears the style's own value. */
9913
+ enforcePalette: z.ZodOptional<z.ZodBoolean>;
9439
9914
  /** Provider view name (PixelLab: low top-down, high top-down, side); empty clears. */
9440
9915
  view: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9441
9916
  /** pixflux only; null clears the style's own value. */
@@ -9447,6 +9922,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9447
9922
  promptSuffix?: string | undefined;
9448
9923
  promptPrefix?: string | undefined;
9449
9924
  noBackground?: boolean | null | undefined;
9925
+ enforcePalette?: boolean | undefined;
9450
9926
  }, {
9451
9927
  candidates?: number | undefined;
9452
9928
  palette?: string[] | null | undefined;
@@ -9454,6 +9930,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9454
9930
  promptSuffix?: string | undefined;
9455
9931
  promptPrefix?: string | undefined;
9456
9932
  noBackground?: boolean | null | undefined;
9933
+ enforcePalette?: boolean | undefined;
9457
9934
  }>, {
9458
9935
  candidates?: number | undefined;
9459
9936
  palette?: string[] | null | undefined;
@@ -9461,6 +9938,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9461
9938
  promptSuffix?: string | undefined;
9462
9939
  promptPrefix?: string | undefined;
9463
9940
  noBackground?: boolean | null | undefined;
9941
+ enforcePalette?: boolean | undefined;
9464
9942
  }, {
9465
9943
  candidates?: number | undefined;
9466
9944
  palette?: string[] | null | undefined;
@@ -9468,6 +9946,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9468
9946
  promptSuffix?: string | undefined;
9469
9947
  promptPrefix?: string | undefined;
9470
9948
  noBackground?: boolean | null | undefined;
9949
+ enforcePalette?: boolean | undefined;
9471
9950
  }>;
9472
9951
  }, "strict", z.ZodTypeAny, {
9473
9952
  styleId: string;
@@ -9478,6 +9957,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9478
9957
  promptSuffix?: string | undefined;
9479
9958
  promptPrefix?: string | undefined;
9480
9959
  noBackground?: boolean | null | undefined;
9960
+ enforcePalette?: boolean | undefined;
9481
9961
  };
9482
9962
  expectedSha256: string;
9483
9963
  action: "patch-style";
@@ -9491,6 +9971,7 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
9491
9971
  promptSuffix?: string | undefined;
9492
9972
  promptPrefix?: string | undefined;
9493
9973
  noBackground?: boolean | null | undefined;
9974
+ enforcePalette?: boolean | undefined;
9494
9975
  };
9495
9976
  expectedSha256: string;
9496
9977
  action: "patch-style";
@@ -9841,4 +10322,4 @@ interface WorkspaceStatusReport {
9841
10322
  */
9842
10323
  declare function workspaceStatus(ws: Workspace, dir: string): Promise<WorkspaceStatusReport>;
9843
10324
 
9844
- export { type AdoptResult, type ApproveQualityOptions, type ApprovedQualityReview, type ArtifactBundleManifest, type ArtifactBundleOptions, type ArtifactBundleResult, type ArtifactFile, type ArtifactProvenance, type ArtifactSource, type ArtifactVerification, type Asset, type AssetAudit, AssetSchema, type AuditEvaluation, type AuditThresholds, type AuditViolation, type Balance, type BalanceChange, type BalanceInfo, BudgetError, type BuildGalleryOptions, type BuildWorkspaceGalleryOptions, type CacheHealthOptions, type CacheHealthReport, type CandidateSelection, type ComfyUIBinding, type ComfyUIBindings, type ComfyUIFramesOptions, type ComfyUIImageInput, type ComfyUIOptions, ComfyUIProvider, type ContentCacheHealth, type ContentCacheIssue, type CostEstimate, type CostUnit, DEFAULT_HISTORY_LIMIT, DEFAULT_QUALITY_TOLERANCES, DEFAULT_RATE_LIMIT, DEFAULT_TIMEOUT_MS, type DoctorCheck, type DoctorLevel, type DoctorOptions, type DoctorReport, EDITOR_PIN, EDITOR_RELEASE_BASE, EXIT_CODES, EditorInstallError, type EditorInstallOptions, type EditorInstallProgress, type EditorInstallResult, type EditorInstallStatus, type EditorPin, type ErrorCode, FAKE_PNG, type FakeOptions, FakeProvider, type FetchResult, type GalleryBuild, type GalleryEditHandlerOptions, type GalleryEditMeta, type GalleryEditorHandlers, type GalleryEditorOptions, type GalleryEditorStatus, type GalleryGenerateHandlers, type GalleryGeneration, type GalleryItem, type GalleryMedia, type GalleryOutput, type GalleryProject, type GalleryProjectContext, type GalleryQuality, type GalleryServer, type GalleryServerOptions, type GallerySnapshot, type GalleryState, type GalleryStyle, type GenerateHandlerOptions, type GenerateJob, type GeneratePhase, GenerateRequestError, GenerateRequestSchema, type GenerateStatus, type Generator, GeneratorSchema, type GenericTileset, type GridConfidence, GridConfidenceSchema, HAND_EDIT_DIR, HISTORY_ENV, type HandEditCompanion, HandEditCompanionSchema, type HandEditMember, type HandEditSave, type HandEditSaveInput, type HandEditStart, type HandEditStatus, type HistoryPick, type ImageQualityMetrics, ImageQualityMetricsSchema, InheritedStyleSchema, type InstallRecipeOptions, type InstallRecipeResult, type JobState, type LoadedManifest, type LoadedRecipe, type Lock, type LockEntry, LockEntrySchema, type LockHistoryEntry, LockHistoryEntrySchema, type LockOutput, LockSchema, MAX_DOWNLOAD_BYTES, MAX_HAND_EDIT_BYTES, MAX_RETRIES, type ManagedArtifactBundleOptions, type Manifest, ManifestDriftError, type ManifestEdit, ManifestEditError, type ManifestEditResult, ManifestEditSchema, ManifestInputSchema, ManifestSchema, type MapObject, MediaType, type MountPlacement, type MountedSheet, type NormalizedTileRules, type OpenProjectOptions, type Orphan, type OrphanGroups, type OutputSelection, type OutputSource, OverwriteRefusedError, PIXEL_ART_FIXER_REVISION, PIXEL_ART_FIXER_URL, type PackedFrame, type PackedSheet, type PackedSource, type PendingQualityReview, type PickResult, type PixelArtFixerDetection, PixelKilnError, type PixelKilnErrorOptions, PixelLabClient, PixelLabError, type PixelLabObject, PixelLabProvider, type Plan, type PlanItem, type PlanState, type PollContext, type PollOptions, type PollResult, type PrepareReviewOptions, type Project, ProjectError, type Provider, ProviderError, type ProviderFactory, type ProviderInputContext, type ProviderInputScalar, type ProviderInputValue, type ProviderMetadata, type ProviderMode, type ProviderOptionContext, type ProviderSubmission, type QualityBaseline, QualityBaselineSchema, type QualityCheck, type QualityProfile, type QualityProfileInspection, QualityProfileSchema, type QualityProfileState, type QualityRegressionCaseResult, type QualityRegressionReport, type QualitySnapshotResult, QualityToleranceSchema, type QualityTolerances, type RateLimit, type Recipe, type RecipeFileVerification, type RecipeModelVerification, RecipeSchema, type RecipeVerification, type RefineAudit, type RefineFrameSetOptions, type RefineFrameSetResult, type RefineOptions, type RefineQualityProfilesOptions, type RefineQualityProfilesResult, type RefineRecordOptions, type RefineResult, type RemoteAsset, type RemoteHashCacheHealth, type RenderGalleryOptions, type RenderSheetOptions, type ResolvedOutput, type ResolvedProviderInputs, type ResolvedProviderOptions, type ResolvedQualityInput, type ResolvedQualityProfile, type ResolvedRevision, type ResolvedSpec, type ResolvedStyleImage, type ResumeAction, type ResumeCommand, type RetroDiffusionOptions, RetroDiffusionProvider, type RetryInit, type RetryOptions, type RetryingFetch, type RevertOptions, type RevertResult, type ReviewReadyInfo, type ReviewSession, type Revision, type RevisionMode, RevisionModeSchema, type RevisionReadiness, RevisionSchema, type SalvageAction, type SalvageResult, type ScannedAsset, type ScenarioOptions, ScenarioProvider, type SessionBudget, type SheetGroup, type SiblingManifest, type SpriteInput, type Style, type StyleAudit, type StyleInput, StyleInputSchema, StyleSchema, type SubmissionCheckpoint, type SubmitContext, type SubmitOptions, type SubmitResult, type TilesPro, type TilesetExport, type TilesetExportOptions, type TilesetFormat, UnsupportedCapabilityError, UsageError, type Workspace, type WorkspaceClaims, type WorkspaceDiagnostic, type WorkspaceProject, WorkspaceProjectSchema, type WorkspaceProjectStatus, WorkspaceSchema, type WorkspaceStatusReport, adopt, applyManifestEdit, applyTags, approveQualityRecord, auditStyle, availableProviders, backoffMs, buildGallerySnapshot, buildManifest, buildPlan, buildWorkspaceGallerySnapshot, bundledRecipeRoot, cacheFileName, candidateCount, checkQualityBaseline, checkQualityRecord, clientFromEnv, colorDistance, countNumberedDescriptions, createArtifactBundleManifest, createGalleryEditHandler, createGalleryEditorHandlers, createGenerateHandlers, createProvider, currentEntryOutputPath, currentOutputPath, defaultOpenCommand, detachHandEdit, detectMediaType, doctor, editorBaseUrl, editorDir, editorRoute, editorStatus, editorToolsRoot, errorCode, evaluateAudit, exitCodeFor, expectedOutputPath, exportTileset, fallbackOutputRole, fetchAssets, fetchWithRetry, findOrphans, formatCost, galleryMediaId, galleryMediaRoute, generationCost, groupOrphansByStyle, handEditBase, handEditBases, handEditCompanionPath, handEditMembers, handEditPath, handEditProjectPath, hex, historyAfterReplacing, historyLimit, idFromPrompt, imageMetadata, inspectCaches, inspectQualityProfile, inspectRevisionReadiness, installEditor, installRecipe, isFrameSetEntry, isMemberSetEntry, isSensitiveSourceUrl, listBundledRecipes, loadClaims, loadLock, loadManifest, loadSiblingManifests, loadWorkspace, lockKey, matchOrphanStyle, measureBalanceChange, measureDecodedImageQuality, measureImageQuality, mediaExtension, mediaTypeFromExtension, memberPath, mergePalettes, mountSprites, mountStyle, normalizeLockOutputPaths, normalizeRefinementPalette, normalizeTileRules, openExternal, openInEditor, openProject, outliers, outputId, packSprites, packStyle, paletteDistance, parseLock, parseWorkspace, pickHistory, pngSize, poll, portableOutputPath, prepareReview, primaryOutput, providerCredentialEnvs, providerFactory, pushTags, qualityFrameOutputPath, qualityRecordPath, quantizeToPalette, readArtifactBundleManifest, readHandEditCompanion, readQualityBaseline, recipeDigest, referencedHashes, refineAsset, refineFrameSet, refineQualityProfiles, registerProvider, remove, renderGallery, renderSalvageSheet, renderSheet, requireApprovedQualitySources, requireBalance, requireDelete, requireList, requireRevisionReady, requireSelectCandidate, resolveEntryOutputs, resolveOutputPath, resolvePackInputs, resolveProject, resolveQualityInputs, resolveRecipe, resolveSpecEntryOutputs, resolveSpecOutputs, resolveSpecs, resolveStyleImages, resolveStyleOutputs, resumeActions, resumeCommandForStatus, retireGeneration, retryAfterMs, revertGeneration, runPicker, runSalvage, saveHandEdit, saveLock, saveWorkspace, scanAssets, selectEntryOutput, serveGallery, sha256, sha256File, shouldPersistSourceUrl, shouldRetry, slugify, snapshotQualityBaseline, sourceIsStem, sourceOutputPath, specHash, spendByUnit, startHandEdit, styleImagesBase64, submit, summarize, tagAdopted, tileFeatureOutputCount, tileVariationCount, tilesCost, toPortablePath, totalSpend, upsert, validateCostEstimate, validateMedia, validateWorkspace, verifyArtifactBundle, verifyRecipe, withArtifactManifest, workspaceClaims, workspaceStatus, writeArtifactBundle, writeManagedArtifactBundle };
10325
+ export { type AdoptResult, type ApproveQualityOptions, type ApprovedQualityReview, type ArtifactBundleManifest, type ArtifactBundleOptions, type ArtifactBundleResult, type ArtifactFile, type ArtifactProvenance, type ArtifactSource, type ArtifactVerification, type Asset, type AssetAudit, AssetSchema, type AuditEvaluation, type AuditThresholds, type AuditViolation, type Balance, type BalanceChange, type BalanceInfo, BudgetError, type BuildGalleryOptions, type BuildWorkspaceGalleryOptions, type CacheHealthOptions, type CacheHealthReport, type CandidateSelection, type ComfyUIBinding, type ComfyUIBindings, type ComfyUIFramesOptions, type ComfyUIImageInput, type ComfyUIOptions, ComfyUIProvider, type ContentCacheHealth, type ContentCacheIssue, type CostEstimate, type CostUnit, DEFAULT_HISTORY_LIMIT, DEFAULT_QUALITY_TOLERANCES, DEFAULT_RATE_LIMIT, DEFAULT_TIMEOUT_MS, type DoctorCheck, type DoctorLevel, type DoctorOptions, type DoctorReport, EDITOR_PIN, EDITOR_RELEASE_BASE, EXIT_CODES, EditorInstallError, type EditorInstallOptions, type EditorInstallProgress, type EditorInstallResult, type EditorInstallStatus, type EditorPin, type ErrorCode, FAKE_PNG, type FakeOptions, FakeProvider, type FetchResult, type GalleryBuild, type GalleryEditHandlerOptions, type GalleryEditMeta, type GalleryEditorHandlers, type GalleryEditorOptions, type GalleryEditorStatus, type GalleryGenerateHandlers, type GalleryGeneration, type GalleryItem, type GalleryMedia, type GalleryOutput, type GalleryProject, type GalleryProjectContext, type GalleryQuality, type GalleryServer, type GalleryServerOptions, type GallerySnapshot, type GalleryState, type GalleryStyle, type GenerateHandlerOptions, type GenerateJob, type GeneratePhase, GenerateRequestError, GenerateRequestSchema, type GenerateStatus, type Generator, GeneratorSchema, type GenericTileset, type GridConfidence, GridConfidenceSchema, HAND_EDIT_DIR, HISTORY_ENV, type HandEditCompanion, HandEditCompanionSchema, type HandEditMember, type HandEditSave, type HandEditSaveInput, type HandEditStart, type HandEditStatus, type HistoryPick, type ImageQualityMetrics, ImageQualityMetricsSchema, InheritedStyleSchema, type InstallRecipeOptions, type InstallRecipeResult, type JobState, type LoadedManifest, type LoadedRecipe, type Lock, type LockEntry, LockEntrySchema, type LockHistoryEntry, LockHistoryEntrySchema, type LockOutput, LockSchema, MAX_DOWNLOAD_BYTES, MAX_HAND_EDIT_BYTES, MAX_RETRIES, type ManagedArtifactBundleOptions, type Manifest, ManifestDriftError, type ManifestEdit, ManifestEditError, type ManifestEditResult, ManifestEditSchema, ManifestInputSchema, ManifestSchema, type MapObject, MediaType, type MountPlacement, type MountedSheet, type NormalizedTileRules, type OpenProjectOptions, type Orphan, type OrphanGroups, type OutputSelection, type OutputSource, OverwriteRefusedError, PIXEL_ART_FIXER_REVISION, PIXEL_ART_FIXER_URL, type PackedFrame, type PackedSheet, type PackedSource, type PendingQualityReview, type PickResult, type PixelArtFixerDetection, PixelKilnError, type PixelKilnErrorOptions, PixelLabClient, PixelLabError, type PixelLabObject, PixelLabProvider, type Plan, type PlanItem, type PlanState, type PollContext, type PollOptions, type PollResult, type Postprocess, PostprocessSchema, type PrepareReviewOptions, type Project, ProjectError, type Provider, ProviderError, type ProviderFactory, type ProviderInputContext, type ProviderInputScalar, type ProviderInputValue, type ProviderMetadata, type ProviderMode, type ProviderOptionContext, type ProviderSubmission, type QualityBaseline, QualityBaselineSchema, type QualityCheck, type QualityProfile, type QualityProfileInspection, QualityProfileSchema, type QualityProfileState, type QualityRegressionCaseResult, type QualityRegressionReport, type QualitySnapshotResult, QualityToleranceSchema, type QualityTolerances, type RateLimit, type Recipe, type RecipeFileVerification, type RecipeModelVerification, RecipeSchema, type RecipeVerification, type RefineAudit, type RefineFrameSetOptions, type RefineFrameSetResult, type RefineOptions, type RefineQualityProfilesOptions, type RefineQualityProfilesResult, type RefineRecordOptions, type RefineResult, type RemoteAsset, type RemoteHashCacheHealth, type RenderGalleryOptions, type RenderSheetOptions, type ResolvedOutput, type ResolvedProviderInputs, type ResolvedProviderOptions, type ResolvedQualityInput, type ResolvedQualityProfile, type ResolvedRevision, type ResolvedSpec, type ResolvedStyleImage, type ResumeAction, type ResumeCommand, type RetroDiffusionOptions, RetroDiffusionProvider, type RetryInit, type RetryOptions, type RetryingFetch, type RevertOptions, type RevertResult, type ReviewReadyInfo, type ReviewSession, type Revision, type RevisionMode, RevisionModeSchema, type RevisionReadiness, RevisionSchema, type SalvageAction, type SalvageResult, type ScannedAsset, type ScenarioOptions, ScenarioProvider, type SessionBudget, type SheetGroup, type SiblingManifest, type SpriteInput, type Style, type StyleAudit, type StyleInput, StyleInputSchema, StyleSchema, type SubmissionCheckpoint, type SubmitContext, type SubmitOptions, type SubmitResult, type TilesPro, type TilesetExport, type TilesetExportOptions, type TilesetFormat, UnsupportedCapabilityError, UsageError, type Workspace, type WorkspaceClaims, type WorkspaceDiagnostic, type WorkspaceProject, WorkspaceProjectSchema, type WorkspaceProjectStatus, WorkspaceSchema, type WorkspaceStatusReport, adopt, applyManifestEdit, applyTags, approveQualityRecord, auditStyle, availableProviders, backoffMs, buildGallerySnapshot, buildManifest, buildPlan, buildWorkspaceGallerySnapshot, bundledRecipeRoot, cacheFileName, candidateCount, checkQualityBaseline, checkQualityRecord, clientFromEnv, colorDistance, countNumberedDescriptions, createArtifactBundleManifest, createGalleryEditHandler, createGalleryEditorHandlers, createGenerateHandlers, createProvider, currentEntryOutputPath, currentOutputPath, defaultOpenCommand, detachHandEdit, detectMediaType, doctor, editorBaseUrl, editorDir, editorRoute, editorStatus, editorToolsRoot, errorCode, evaluateAudit, exitCodeFor, expectedOutputPath, exportTileset, fallbackOutputRole, fetchAssets, fetchWithRetry, findOrphans, formatCost, galleryMediaId, galleryMediaRoute, generationCost, groupOrphansByStyle, handEditBase, handEditBases, handEditCompanionPath, handEditMembers, handEditPath, handEditProjectPath, hex, historyAfterReplacing, historyLimit, idFromPrompt, imageMetadata, inspectCaches, inspectQualityProfile, inspectRevisionReadiness, installEditor, installRecipe, isFrameSetEntry, isMemberSetEntry, isSensitiveSourceUrl, listBundledRecipes, loadClaims, loadLock, loadManifest, loadSiblingManifests, loadWorkspace, lockKey, matchOrphanStyle, measureBalanceChange, measureDecodedImageQuality, measureImageQuality, mediaExtension, mediaTypeFromExtension, memberPath, mergePalettes, mountSprites, mountStyle, normalizeLockOutputPaths, normalizeRefinementPalette, normalizeTileRules, openExternal, openInEditor, openProject, outliers, outputId, packSprites, packStyle, paletteDistance, parseLock, parseWorkspace, pickHistory, pngSize, poll, portableOutputPath, prepareReview, primaryOutput, providerCredentialEnvs, providerFactory, pushTags, qualityFrameOutputPath, qualityRecordPath, quantizeToPalette, readArtifactBundleManifest, readHandEditCompanion, readQualityBaseline, recipeDigest, referencedHashes, refineAsset, refineFrameSet, refineQualityProfiles, registerProvider, remove, renderGallery, renderSalvageSheet, renderSheet, requireApprovedQualitySources, requireBalance, requireDelete, requireList, requireRevisionReady, requireSelectCandidate, resolveEntryOutputs, resolveOutputPath, resolvePackInputs, resolveProject, resolveQualityInputs, resolveRecipe, resolveSpecEntryOutputs, resolveSpecOutputs, resolveSpecs, resolveStyleImages, resolveStyleOutputs, resumeActions, resumeCommandForStatus, retireGeneration, retryAfterMs, revertGeneration, runPicker, runSalvage, saveHandEdit, saveLock, saveWorkspace, scanAssets, selectEntryOutput, serveGallery, sha256, sha256File, shouldPersistSourceUrl, shouldRetry, slugify, snapshotQualityBaseline, sourceIsStem, sourceOutputPath, specHash, spendByUnit, startHandEdit, styleImagesBase64, submit, summarize, tagAdopted, tileFeatureOutputCount, tileVariationCount, tilesCost, toPortablePath, totalSpend, upsert, validateCostEstimate, validateMedia, validateWorkspace, verifyArtifactBundle, verifyRecipe, withArtifactManifest, workspaceClaims, workspaceStatus, writeArtifactBundle, writeManagedArtifactBundle };